Messju Mohr wrote: > On Sun, Oct 05, 2003 at 03:59:21AM +0800, Jason Wong wrote: >> On Sunday 05 October 2003 04:47, Cristian Lavaque wrote: >>> My webhost announced that it's changing PHP from Apache module to >>> CGI. I know nothing about this, so I'd like to know what I should >>> change in my scripts so they still run, or they'll work the same? > > you should ask this question to your webhost in the first place.
This was asked, he said that it wouldn't affect, but right after the change to one of the servers, a user complained about $_SERVER['PHP_SELF'] not working, but there weren't more details on what it'd affect to have that change > roughly all functions mentionend at > http://php.net/manual/en/ref.apache.php won't be available anymore. it > is not unlikely that the change is fully transparent to your scripts > (read: no change of php-code needed). hmm.. I haven't used those yet, but maybe my forum does, I'll have to check.. I read in the thread where this was announced that $_SERVER['PHP_SELF'] wasn't working after the change >> Did they give any convincing reason for the change? They seem to be >> taking a step backwards by switching to CGI. Maybe you should >> consider changing hosts. > > the cgi-sapi has a big advantage in a shared hosting environment: > suexec - your php-scripts run with a distict uid for each customer. > > this is by far better than the half-baked crutch called safe-mode. the > fact that the cgi-sapi's performance is worse than apache-sapi's > shouldn't bother you as much as security. your webhost will decide how > many customers (=virtual hosts) he puts on one machine anyway and > that's by far more noticable than the differences between > cgi-sapi/apache-sapi, IMHO. Yes, the reason was to control the accounts separately regarding PHP and Yes, I've been having thoughts about changing hosts. I'm with this one cause it gives pretty well for what I pay. Any other thing I should keep an eye on for when the change happens to my server? Cristian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php