Re: Command line cannot fwrite, browser can [message #174573 is a reply to message #174572] |
Sat, 18 June 2011 08:27 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Adrienne Boswell wrote:
> Thomas 'PointedEars' Lahn [wrote]:
>>> $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.
Now I am curious: Where exactly?
>>> $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.
You're welcome.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
|
|
|