PHP - Globals turned off? + Default Document?

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

[QUOTE=The Frog]
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
[/QUOTE]

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

[QUOTE=riley]

Hope that helps…
riley
[/QUOTE]

Sure does. Thanks a bunch.

NM the global thing either. I changed my code. :slight_smile:

[QUOTE=riley]
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
[/QUOTE]

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;
}
[/PHP]

If only I hadn’t been so lazy…