Page 1 of 1

PHP works and don't works !

Posted: Sat Oct 12, 2002 10:27 pm
by bibi
Hi,

I have a strange problem... I<ve installed the last version of PHP 4.2.3, and some php programs works and some others don't ? Someone have any idea ?

Posted: Sun Oct 13, 2002 2:52 am
by Takuma
Does that script use session or database? Have you setup a database etc.?

Can we see the code of those script?

Code...

Posted: Sun Oct 13, 2002 8:33 am
by bibi
I use PHP 4.2.3 with Roxen (the Web server). I've reinstalled all because, after an upgrade of RedHat, some of my programms did work well.

If you go on my web site : http://www.pointca.com then choose "Bibi's web site", you will arrive on a PHP page, but if you try to open the menu (on the left), nothing append, it is a bit strange...

This the logs of Roxen (v.2.1) :

--- begin ---
Today, 09:25 Internal server error: Lookup in destructed object.
base_server/configuration.pike:1283: low_get_file(object,0)
base_server/configuration.pike:1361: get_file(object,0,0)
base_server/configuration.pike:1336: handle_request(object)
protocols/http.pike:1966: unknown function()
protocols/http.pike:2190: unknown function(0,"GET /menu.php?e="+[316]+"59-1,*,utf-8\r\n\r\n")
/usr/local/pike/7.0.332/lib/modules/Stdio.pmod/module.pmod:308: unknown function()
internal_error() also failed: Cannot call functions in destructed objects.
Unknown program: destructed object->function(({"Lookup in destructed object.\n",({({"/usr/local/pike/"+[26]+"pmod/module.pmod",308,0}),({"/usr/local/Roxen"+[15]+"tocols/http.pike",2190,0,0,"GET /menu.php?e="+[316]+"59-1,*,utf-8\r\n\r\n"}),({"/usr/local/Roxen"+[15]+"tocols/http.pike",1966,0}),({"/usr/local/Roxen"+[26]+"nfiguration.pike",1336,base_server/configuration.pike.handle_request,object}),({"/usr/local/Roxen"+[26]+"nfiguration.pike",1361,base_server/configuration.pike.get_file,object,0,0}),({"/usr/local/Roxen"+[26]+"nfiguration.pike",1283,base_server/configuration.pike.low_get_file,object,0})})}))
protocols/http.pike:1967: unknown function()
protocols/http.pike:2190: unknown function(0,"GET /menu.php?e="+[316]+"59-1,*,utf-8\r\n\r\n")
/usr/local/pike/7.0.332/lib/modules/Stdio.pmod/module.pmod:308: unknown function().


Internal server error: Cannot access global variables in destructed object.
protocols/http.pike:1970: unknown function()
protocols/http.pike:2190: unknown function(0,"GET /menu.php?e="+[316]+"59-1,*,utf-8\r\n\r\n")
/usr/local/pike/7.0.332/lib/modules/Stdio.pmod/module.pmod:308: unknown function().
--- end ---

php-test.php

Posted: Sun Oct 13, 2002 11:03 am
by bibi
Try : http://24.202.71.130:8088/php-test.php

I think all is correct but like you see, some applications works and others don't works...

The code I provided, don't affect this fonctionality...

Regards,

YM

PS: my english is not nice too ! :-)

Posted: Sun Oct 13, 2002 12:16 pm
by zebrax
Looks like you are having the all to common problem with "register_globals"
have a lookhere for and explanation
You probably need to put in something like...

Code: Select all

$e=$_GET&#1111;'e'];

Thanks, it works now !

Posted: Sun Oct 13, 2002 2:34 pm
by bibi
Thanks for all, I change the variable "global" to "on"... and it works ...
(I spent a day (a night in fact !) to understand !...)

I keep this precious link ("PhpBB", this forum) on my bookmark...

In note, This forum works very well with or without this variable (on or off) !

Regards. :wink:

Yves MARTIN
http://www.PointCA.com