dragunu Posted August 28, 2007 Share Posted August 28, 2007 hello! i am typing the following code: $file = $_SESSION['filename']; $fh = fopen($file, 'a'); $string = ":s1;access=yes"; fwrite($fh,$string); fclose($fh); print '<script language="javascript">'; print 'location.href="wizard.php?screen=s2"'; print '</script>'; to first write a file, then redirect. however its not writing to the file. and when i remove the redirecting code, it writes it successfuly. what may cause this problem please? thx a lot Quote Link to comment https://forums.phpfreaks.com/topic/67005-solved-not-writing-when-followed-by-redirect/ Share on other sites More sharing options...
dragunu Posted August 28, 2007 Author Share Posted August 28, 2007 ah problem solved. was a bug in my other script. hehe me <-- nub Quote Link to comment https://forums.phpfreaks.com/topic/67005-solved-not-writing-when-followed-by-redirect/#findComment-335996 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.