PHP - Globals turned off? + Default Document?

The Frog

Perch
I'm on the Windows server you guys have...

Have globals in PHP been turned off on your servers? A lot of my pages were depending upon it.


Also, have you guys included index.php as one of the default pages (in IIS I presume)? Because I'm having to manually type "index.php" in there...

TIA
 
The Frog said:
Also, have you guys included index.php as one of the default pages (in IIS I presume)? Because I'm having to manually type "index.php" in there...
TIA

Not sure about PSP Globals; someone from jodo will have to answer that. But I can help you with the index problem.

In control panel go to your domain and click on Web Services. Down near the bottom, you'll find Directory Indexes. Turn it on and then edit. You can set up different types of pages, separated by a space, and IIS will look for them in that order. For exaple:
index.php index.htm index.html default.aspx

Hope that helps...
riley
 
riley said:
In control panel go to your domain and click on Web Services. Down near the bottom, you'll find Directory Indexes. Turn it on and then edit. You can set up different types of pages, separated by a space, and IIS will look for them in that order. For exaple:
index.php index.htm index.html default.aspx

riley

Thanks for your explanation. I was having a problem with having to type index.php also. My problem is now solved by editing "Directory Indexes".

Larry
 
PHP Globals are turned off by default. This is the latest version of PHP. Let me know if you need it turned on
 
Nah, I changed my code in there...

PHP:
if(isset($_GET['id'])){

$id=$_GET['id'];

if($id==0 OR $id==""){
$id=0;
}
}
else{
$id=0;
}


If only I hadn't been so lazy...
 
Back
Top