Jump to content

[SOLVED] not writing when followed by redirect


dragunu

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.