Jump to content

No Input File Specified, but not with a mod_rewrite fix


davidgolding

Recommended Posts

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:

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

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.

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

Thanks.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.