| |||||||||||
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:
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 GrahamJust 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:
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.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |