FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Command line cannot fwrite, browser can
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Command line cannot fwrite, browser can [message #174566 is a reply to message #174561] Sat, 18 June 2011 00:35 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 6/17/2011 5:22 PM, Adrienne Boswell wrote:
> Okay, I give up! I pulled the very last hair out of my head, and now I
> am asking for help.
>
> This is a Win2003 SP2 server running Plesk PHP5 on Microsoft-IIS/6.0.
> Why am I using PHP on Win? The main application was written in Classic
> ASP, hence the Windows server. I need to run a script from the command
> line so I can call it with the task manager to run every night.
>
> Using the command line, the script gives a warning, and then fails saying
> it cannot write to a file. Using a browser, the script works flawlessly.
>
> I am thinking it might be a permission issue? I checked and IUSER the
> DOMAIN USER, SYSTEM and Administrator have full permissions on the file
> (s) in question. Is there another user I should be including? The batch
> file is running as Administrator.
>
> The other issue is that the file giving a warning IS on the server. All
> the other files mentioned are found without a problem - and again this
> only happens with the command line.
>
> This is the error I am getting:
> C:\Inetpub\vhosts\aloyaltycard.com\httpdocs\groupmail>cd c:\parallels
> \plesk\additional\pleskphp5
> C:\Parallels\Plesk\Additional\PleskPHP5>php.exe c:\inetpub\vhosts
> \aloyaltycard.com\httpdocs\groupmail\groupmail.php
>
> Warning: file_get_contents(groupmail1_noname.txt): failed to open stream:
> No such file or directory in C:\Inetpub\vhosts\aloyaltycard.com\httpdocs
> \groupmail\groupmail.php on line 88
> cannot write to groupmail.html
>

<lots of other stuff snipped>

Classic windows permission issue. First of all, ensure you're writing
to the file you think you are (i.e. use absolute paths, etc.). Then try
a windows-related newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: pagination driving me insane
Next Topic: insert query error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 05:56:30 GMT 2024

Total time taken to generate the page: 0.03889 seconds