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 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 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
Archived
This topic is now archived and is closed to further replies.