Jump to content

No input file specified


stacker20

Recommended Posts

First off Hello to everyone. I have a lot of respect for programmers/coders you guys are nuts!! I'm a designer and html is probably the extent of my coding ability hehe. Well my problem is this...

 

I have a flash form that sends variables to a php script which then writes the variables to a text file. Then a different flash file reads the text file. I have everything working perfectly in phpdev. But when I upload to a server I get this "no input file specified" in firefox and then I get the 404 error in IE. I set the php script and text file CHMOD properties to 777. But still nothing works. I ran phpinfo.php and did some google searching. Some postings said something about the type of php whether it is cgi or fact cgi or straight php (i don't know what that means) or another post said something about the script name file.  I don't know what I am supposed to do here any help is appreciated.

 

Here is the php code:

 

<?php
$newcontent = stripslashes($_POST[newcontent]);
$myFile = "mydata2.txt";
$fh = fopen($myFile, 'w+') or die("can't open file");


echo "changes have been submited";

fwrite($fh, $newcontent);
fclose($fh);
?>

Link to comment
https://forums.phpfreaks.com/topic/119655-no-input-file-specified/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.