d4onyeka Posted February 26, 2010 Share Posted February 26, 2010 Pls help!! I've tried all i can... <?php$file="file.prov";$filecontrol=fopen($file,'a') or die ("can't open file");$ip=$_POST["ip"];$port=$_POST["port"];$name=$_POST["name"];$apn=$_POST["apn"];$username=$_POST["username"];$password=$_POST["password"];$data="formdata";fwrite($filecontrol,$data);fclose($filecontrol);header('Location:/file.prov');?> it cant open d file pls tell me wat's wrong!! Link to comment Share on other sites More sharing options...
jeffman Posted February 26, 2010 Share Posted February 26, 2010 Your permissions may be incorrect. Try to change the file permissions of your directory and the script that is doing the writing. Your FTP program can usually do this. You can also try the chmod() function. This page at Wikipedia explains what Unix file permissions mean, if you need to know that. Link to comment Share on other sites More sharing options...
jeffman Posted February 26, 2010 Share Posted February 26, 2010 FWIW, you might also look into the file_put_contents() function. It is easier than the fopen() technique, but only available in PHP 5 or greater. Link to comment Share on other sites More sharing options...
d4onyeka Posted February 26, 2010 Author Share Posted February 26, 2010 Tnks i'll try that... Link to comment Share on other sites More sharing options...
justsomeguy Posted February 26, 2010 Share Posted February 26, 2010 must.. not... critique... grammar...arghhh Link to comment Share on other sites More sharing options...
jeffman Posted February 26, 2010 Share Posted February 26, 2010 must.. not... critique... grammar...arghhh Old guys like you just can't speak txt, that's all. Link to comment Share on other sites More sharing options...
justsomeguy Posted February 26, 2010 Share Posted February 26, 2010 That's right. I've never submitted a term paper with an emoticon in it. Link to comment Share on other sites More sharing options...
jeffman Posted February 26, 2010 Share Posted February 26, 2010 I actually receive student papers with emoticons and text nonsense in them. Swear words, too sometimes.And some people? Girls mostly? Make everything a question?When they're not using exclamations for every twirpy little thing!!!It's really amazing. Link to comment Share on other sites More sharing options...
ShadowMage Posted February 26, 2010 Share Posted February 26, 2010 I can just about imagine some of the weird things you see, being a professor and all. :)JSG, don't feel so bad, I'm just a young buck and I don't understand half of the txt lingo these days! :)Give yourself some credit...at least you know what an emoticon is! :)Lol! Just realized I'm doing the exclamation mark thingy!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.