Welcome Guest, Not a member yet? Register   Sign In
CI not called when using mod_rewrite with PHP5 running as cgi
#7

[eluser]david_ais[/eluser]
[quote author="thurting" date="1194375288"]Also, after looking on Google it seems there is a problem with the SCRIPT_FILENAME variable when using CGI. You should check it out.[/quote]

I've seen vague references to this - both in the forums here and also on Google. The suggestion seems to be that for some reason the value of $SERVER['SCRIPT_FILENAME'] doesn't point to the main CI index.php file. Or that somehow when running with PHP5 as cgi that it's value is changed in some unspecified way. A key question though is - why is it different as a result of a mod_rewrite internal direct compared with directly accessing a URL?

In any case the big difficulty with this is that the way the problem manifests is that it never actually runs CI's index.php So there's a bit of a problem in discovering what $SERVER['SCRIPT_FILENAME'] is set to as the only way I can think of to find out is to add some code the the PHP file to log the value!!

Logically this might be a good line of enquiry. But in practice - how do I find out what it's set to? And if it's wrong how do I change it anyway?

Googling for further info has so far failed to address those questions


Regards

db


Messages In This Thread
CI not called when using mod_rewrite with PHP5 running as cgi - by El Forum - 11-06-2007, 07:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB