|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Strange PHP Error
Well, it isn't really an error, but more of a problem. I have the following script
PHP Code:
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. |
|
#2
|
||||
|
||||
|
Sounds like register_globals=off to me. Check php.ini to see what the value of register_globals is. If it's turned off on the Solaris box, there's your problem. This setting, when disabled, forces you go define variables within their scope -- $num no longer represents the GET variable named num, which must in this case be referred to as $_GET["num"].
|
|
#3
|
|||
|
|||
|
that did it, thanks a lot
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Strange PHP Error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|