Re: Command line cannot fwrite, browser can [message #174576 is a reply to message #174572] |
Sat, 18 June 2011 12:19 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 6/18/2011 4:05 AM, Adrienne Boswell wrote:
> Gazing into my crystal ball I observed Thomas 'PointedEars' Lahn
> <PointedEars(at)web(dot)de> writing in news:8844491(dot)SEqChMirdb(at)PointedEars(dot)de:
>
>>> $filename = "groupmail.html";
>>> $groupmhtml1noname = "groupmail1_noname.txt";
>>>
>>> //this above file is the one it cannot find
>>
>> (You don't say)
>
> Turns out I needed to use a single quote instead of a double quote. The
> script is running just fine now.
>
>>
>>>
>>> $groupmail = fopen( $filename,'w' ) or die( 'cannot open
>>> groupmail.html' );
>>
>> <http://www.phpfreaks.com/blog/or-die-must-die>
>>
>
>
> Thank you for all your help, and the link. I have read it and will
> implement it.
>
I think you have another problem. Single vs. double quotes would not
make any difference in the code you posted.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|