error output "no input file specified"
Posted: Wed Feb 05, 2003 10:57 am
I just changed servers. The old one ran version 4.0.6, and the new one runs 4.something (I was told by cust service). I can't use the <?php phpinfo()?> successfully to find out exactly which version they are running because any script I try to run returns the error message "no input file specified." Is this a problem with my script not being compatible with the server software, or the version of PHP? I'm not sure what server software they are running, either. I'm rather new to php, so I don't really know anything other than what I've read in forums similar to these. Here is a sample of the code I've been using, which worked perfectly on the old server.
<?PHP
/usr/local/bin/php4 #this line was not used on the old server, but without
#it, I was getting "file not found" errors
$filename = $myState.".txt";
if($submit == "yes"){
$fp = fopen($filename,"r");
$old = fread($fp, 800000);
fclose( $fp );
$old = split(",",$old);
$old = implode(",",$old);
$newText = $me.",".$old;
$fp = fopen($filename,"w+");
fwrite($fp, $newText, 800000);
fclose( $fp );
}
$fp = fopen($filename,"r");
$where = fread($fp, 800000);
fclose( $fp );
$where = split(",",$where);
$where = implode(",",$where);
print "&loading=absolutely";
print "&where=".$where;
?>
I don't know what to try...help please! Thanks
<?PHP
/usr/local/bin/php4 #this line was not used on the old server, but without
#it, I was getting "file not found" errors
$filename = $myState.".txt";
if($submit == "yes"){
$fp = fopen($filename,"r");
$old = fread($fp, 800000);
fclose( $fp );
$old = split(",",$old);
$old = implode(",",$old);
$newText = $me.",".$old;
$fp = fopen($filename,"w+");
fwrite($fp, $newText, 800000);
fclose( $fp );
}
$fp = fopen($filename,"r");
$where = fread($fp, 800000);
fclose( $fp );
$where = split(",",$where);
$where = implode(",",$where);
print "&loading=absolutely";
print "&where=".$where;
?>
I don't know what to try...help please! Thanks