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
Warning: Unknown():

Posted by nelli (nelli), 24 May 2004

I've just downloaded all of the files and documentation for the following resource: - 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:

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

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.


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 (it's sc6)
and for running at

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.


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:

Fatal error: Call to undefined function: xslt_create() in /wellho_example/ 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

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;action=display;num=1085803046;start=0

This page is a thread posted to the opentalk forum at 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., 2015: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: • WEB: • SKYPE: wellho