Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Warning: Unknown():

Posted by nelli (nelli), 24 May 2004
Hi

I've just downloaded all of the files and documentation for the following resource: http://www.wellho.net/resources/H115.html - PHP - complete example now including XSLT, SQL and pulldown menus (PS. many thanks for this example - this is just what I needed!).

Having loaded these up onto my testing server, I get the following message when trying to run sc5.php4:

Code:
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
.

Any ideas why this could be?

Thanks for your time
N

Posted by admin (Graham Ellis), 24 May 2004
I'll put it onto PHP5 overnight and have a play ... expect a follow up in the morning

-- Graham

Posted by nelli (nelli), 25 May 2004
Hi Graham

Just one thing I remembered that might have had an influence, is the fact that currently the server is not set up to recognise .php4 extensions - it just recognises .php extensions - does this have any effect?

I've asked the database administrator to change this.

We are currently using PHP version 4.3.4.

Cheers
N

Posted by admin (Graham Ellis), 25 May 2004
I don't think I was awake yesterday ... the problem relates to register_globals. I should have written the example to use $_SESSION super-globals rather than session_register; updated link to follow.

Nothing to do with the extension, by the way!

Posted by admin (Graham Ellis), 25 May 2004
OK - solution for recent versions of PHP without regsiter_globals set on is to use $_SESSION superglobal rather that session_register function and friends.  You still need things like session_start and session_destroy.

Updated script available for viewing at
http://www.wellho.net/resources/H115.html (it's sc6)
and for running at
http://www.wellho.net/demo/sc6.php4

I've left the old script up on the H115 page (sc5) so that if you want to see the changes in detail you can run a diff or other form of file comparison.

Graham

P.S. I also corrected a bug in the previouse version - one of the pages applied htmlspecialchars to a tag so that <br> was visible rather than giving a line break.  See - I warn you about this on the course, then I go and do it myself  

Posted by nelli (nelli), 27 May 2004
Thanks for this Graham.  That's sorted out that issue, but now I have another one!

When I get to the script which tries to use the XSL file, I get the following error:

Code:
Fatal error: Call to undefined function: xslt_create() in /wellho_example/xsltdemo.inc on line 3


I've tried to sort this out myself, but have had no luck.  During my research however, I have seen people suggesting that you have to enable DOM and XSLT processing extensions before you can use them.

Before I go and ask my database administrator about this, could you shed some light so that I am clear what I need to ask him to do?

Thanks in advance
Nick

Posted by admin (Graham Ellis), 28 May 2004
Yes - it does look as if it was built without the XSLT libraries.   I just spotted this post on the end of the previous thread ... I'll post up a fuller answer when today's Python class is over as I can't think two languages at once  

Edit Addition - this is a topic that desrves its own thread, which I've added at
http://www.wellho.net/cgi-bin/opentalk/YaBB.pl?board=php;action=display;num=1085803046;start=0





This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho