Page 1 of 1
can't initialize more variables
Posted: Mon Dec 12, 2005 10:42 am
by djot
-
Hi,
I tried to initialize $test. For testing purposes I did embed it into test output, because I could not initialize more variables for some reason I don't know.
Besides:
The original script did set many variables already. But I am far away of exhausting memory limits. When trying to set another variable, I get an internal server error. No matter which line below the current line I try to set a variable of any type or any value, I get this error.
Code: Select all
echo "1";
$test="hello world.";
echo "2";
output is
and then the script crashes.
djot
-
Posted: Mon Dec 12, 2005 11:13 am
by Chris Corbyn
Restart your web server or re-install if that doesn't work. If you're seriously saying that simply assigning a value to $test is crashing the server you may have some corrupt install of PHP... more than likely an httpd daemon restart will suffice though.
Posted: Mon Dec 12, 2005 11:23 am
by djot
-
Well thx, it is a webserver of a big <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> isp company. The script runs on lots of other servers of other isps. Did not here such problems from other persons. Restarting is impossible, at least on a legal way :)
Any other ideas?
djot
-
Posted: Mon Dec 12, 2005 11:29 am
by vincenzobar
remove the " before the first echo!!!
Posted: Mon Dec 12, 2005 11:34 am
by djot
-
Yes thanks, but this error was only here in the forum example code, the problem is still the same. Forum code corrected.
djot
-
Posted: Mon Dec 12, 2005 1:30 pm
by Chris Corbyn
Have you got a dodgey .htaccess file in the directory or such like? That could also be the cause.
Posted: Mon Dec 12, 2005 6:42 pm
by djot
-
Well, I have the same .htaccess file in some data folders, but not in the one with the file where the error occurs.
If you were right, the script would break when trying to include a file. In my case it breaks in the middle of a php file (line 46) when trying to set a variable to $test=ARRAY(); (or whatever).
I could not find any variable restrictions in php.ini that might cause this error. Also I can't imagine of memory limit, cause the script is far below the limit. I thought of limited access of calling files per session also, but that also would not explain, while the file breaks in the middle of the code and not before (or while loading).
djot
-