PHP works and don't works !

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bibi
Forum Newbie
Posts: 4
Joined: Sat Oct 12, 2002 10:27 pm
Location: Montreal, Quebec - CANADA
Contact:

PHP works and don't works !

Post 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 ?
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Does that script use session or database? Have you setup a database etc.?

Can we see the code of those script?
bibi
Forum Newbie
Posts: 4
Joined: Sat Oct 12, 2002 10:27 pm
Location: Montreal, Quebec - CANADA
Contact:

Code...

Post 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 ---
bibi
Forum Newbie
Posts: 4
Joined: Sat Oct 12, 2002 10:27 pm
Location: Montreal, Quebec - CANADA
Contact:

php-test.php

Post 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 ! :-)
zebrax
Forum Newbie
Posts: 16
Joined: Sat Sep 14, 2002 11:39 pm

Post 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'];
bibi
Forum Newbie
Posts: 4
Joined: Sat Oct 12, 2002 10:27 pm
Location: Montreal, Quebec - CANADA
Contact:

Thanks, it works now !

Post 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
Post Reply