/    Sign up×
Community /Pin to ProfileBookmark

Crazy ‘no input file specified’ headache

Hi All

I uploaded a fully working database site (made on my Mac and tested

on my local Apache server with no errors) and encountered a problem.

My landing PHP script executes fine, reads all its HTML in from
nominated files, and displays a start-up screen. HOWEVER, whenever
I choose an option on the screen which needs another file (such as a

text file) I get the ‘no input file specified’ on a blank page.

The paths to all my required files are correct (they work flawlessly on
my own server). I have even tried putting all the files in the same (top)

directory and changing the paths accordingly, but no joy.

It doesn’t appear to be a permissions issue, either, as even with every

conceivable thing chmod to 0777, the error is still there.

Mystified, but far from starry-eyed . . .

Chris

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@BIOSTALLMay 24.2011 — Hi Chris,

Are you using a .htaccess by any chance to rewrite your URL's. If so I wrote a post a while back that sounds similar which you can find below:

http://biostall.com/resolving-the-codeigniter-no-input-file-specified-error

I hope it's of some use.

Cheers,

BIOSTALL
Copy linkTweet thisAlerts:
@chrisecclesauthorMay 24.2011 — Thanks for the offer of help, BIOSTALL.

Unfortunately, placing your code in my .htaccess didn't solve

the problem. ;-(

My next move is to set up a script wherein PHP actually [B]creates[/B]

the directories and necessary files, rather than my simply using

Transmit to move the thing to the server. Maybe . . . ?
-


I should add, before anyone jumps in to mention php.ini or any

form of messing with the Apache config, that I'm on a shared host

where I have no control over such system matters.
-


The really weird thing is that other PHP scripts I've used in past run

perfectly well on the same host !

Any more advice most welcome. TIA.

Chris
Copy linkTweet thisAlerts:
@chrisecclesauthorMay 24.2011 — 

OK.
-


Time to eat very large segment of humble pie !
-


The error was in my code.

A cautionary tale to anyone saving and renaming files:

Script is named 'filetesting.php'

It puts together HTML which includes a <form> tag with

action="fileTesting.php"

I suspect not the first (or the last) time someone is driven

half to dementia by an uppercase "T".

Chris
×

Success!

Help @chriseccles spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...