Jump to content

sheenayin

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sheenayin's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I'm facing a problem in exporting file into client machine. My current issue is, when my client click on "Export" button, the particular file will saved in SERVER instead of his computer. Refer below for my partial script. $target_folder = "C:/AuditReport/"; if (isset($_POST['btnExport'])) { if (file_exists($target_folder)) { } else { mkdir("C:/AuditReport/",0700); } $sql = "select to_char(sysdate,'yyyymmdd-HH24MISS') from dual"; $s = oci_parse($c, $sql); oci_execute($s); OCIFetchInto($s, $row2); $file_date = $row2[0]; $filename = $file_date.' StudAuditReport.txt'; $handle = fopen("C:/AuditReport/".$filename, 'x+'); fwrite($handle, $detail); fclose($handle); Any advice ? Sheena
×
×
  • 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.