
July 10th, 2003, 02:33 PM
|
|
Junior Member
|
|
Join Date: Jul 2003
Posts: 19
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Strange PHP Error
Well, it isn't really an error, but more of a problem. I have the following script
PHP Code:
include 'func.inc.php';
if(!$num){
doHeader("Stuff");
echo("<a href='script.php?num=1'>Text</a>");
}elseif($num){
deHeader("Other Stuff"); //Upon clicking the link, it should go here, but it doesnt, it just shows the link again
echo("The number is: " . $num);
}
First off, the server I am working on is running on Solairs 8. Now, when I clicked the link, it would take me to script.php?num=1 but it wouldn't show the other stuff, it would show the link again, like it wasn't even recognizing that $num was there. I uploaded the script to a different server running RedHat 7.3, and it worked fine. On the Solaris server, we have phpBB installed as the forum, and it works fine. So I am wondering why my script will not run, permissions possibly? Thanks.
|