Posted by nelli (nelli), 24 May 2004Hi
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:
Any ideas why this could be?
Thanks for your time
Posted by admin (Graham Ellis), 24 May 2004I'll put it onto PHP5 overnight and have a play ... expect a follow up in the morning
Posted by nelli (nelli), 25 May 2004Hi 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 2004I 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 2004OK - 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
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 2004Thanks 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:
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 2004Yes - 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
PH: 01225 708225 • FAX: 01225 793803 • EMAIL: email@example.com • WEB: http://www.wellho.net • SKYPE: wellho