Jump to content


Photo

No Input File Specified, but not with a mod_rewrite fix


  • Please log in to reply
No replies to this topic

#1 davidgolding

davidgolding
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 19 October 2006 - 07:14 PM

I'm getting the "No Input File Specified" error after upgrading to PHP 5.  Everything was working fine, but now doesn't check out. I've combed the web for a solution, tried about 6 hours of trying to get it to work and am at the end of my rope! So please help.

I want to simply pass variables to a script using clean URLs like so:

http://site.com/test.php/1

I don't need to mod_rewrite to make the "test.php" not appear. That's not an issue. Here's my test.php script:

$data = explode("/",$_SERVER['REQUEST_URI']);
echo $data[1];

Just in case, here's my .htaccess entry that's being used for other scripts. I'm assuming that this is getting in the way.

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users