d4onyeka Posted February 26, 2010 Report 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 Report Share Posted February 26, 2010 (edited) 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. Edited February 26, 2010 by Deirdre's Dad Link to comment Share on other sites More sharing options...
jeffman Posted February 26, 2010 Report Share Posted February 26, 2010 (edited) 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. Edited February 26, 2010 by Deirdre's Dad Link to comment Share on other sites More sharing options...
d4onyeka Posted February 26, 2010 Author Report 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 Report 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 Report Share Posted February 26, 2010 (edited) must.. not... critique... grammar...arghhh Old guys like you just can't speak txt, that's all. Edited February 26, 2010 by Deirdre's Dad Link to comment Share on other sites More sharing options...
justsomeguy Posted February 26, 2010 Report 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 Report 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 Report Share Posted February 26, 2010 (edited) 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!!! Edited February 26, 2010 by jkloth Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now