|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by mouimet in PHP Scripting Language, PHP for Windows, OpenLaszlo
I have a tab file I am trying to write however some of the fields are occasionally blank. The tabs work fine if I print to the screen but fwrite is treating it as empty. I am trying to make the header count match the field count so I need the tabs even if the field is empty.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
Partial code:
$test1= "test";
$test2= "";
$test3 = "";
$upload_file = fopen($cwd.$tmp_filename, "w");
$file_contents=$test1."\t".$test2."\t".$test3;
fwrite($upload_file, $file_contents);
fclose($upload_file);
print_r($file_contents);
|
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625