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

Home » Imported messages » comp.lang.php » Failed to write to a text file (text file is RW)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Failed to write to a text file (text file is RW) [message #171449 is a reply to message #171444] Tue, 04 January 2011 04:16 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
justaguy wrote:
> On Jan 3, 6:53 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> On 1/2/2011 11:29 PM, justaguy wrote:
>>
>>
>>
>>
>>
>>>> > Jerry,
>>>> > The code isn't working, so, of course it's not in production. I'm
>>>> > using an ISP's server, don't have a lot of control...
>>>> > yes, you're right, I was lazy in error detection/tracking for this
>>>> > piece of code, thought it should be fairly straight-forward.
>>>> > Thanks.
>>>> > Don
>>>> Another point - get your own development machine going. It will make
>>>> your life a lot easier. Even if it's not the same OS and won't catch
>>>> every error (i.e. you wouldn't see this error on Windows), it will help
>>>> you many other ways.
>>>> And depending on the ISP's setup, ini_set() and/or your .htaccess file
>>>> can change a number of PHP settings for a single script, every script on
>>>> your site, or many steps in between.
>>> Too bad, an open source webserver, Caucho Resin on my Windows 7 box
>>> fails to support php. The same code produced a blank page with
>>> nothing.
>> Why don't you just install Apache - it's open source, free and supports
>> PHP just fine. It also happens to be the most used web server in the
>> world.
>>
>> And BTW - I didn't say the code was "in production". I said it was "on
>> a production machine". Two entirely different things.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> Hi all, problem resolved with the same (my 'original' code). My ISP
> first adversely changed file attributes of another text file,
> Terrible! Which failed my software download routine, anyway, after
> calling them up and instructing them to set it to rw rw rw, all's well
> now.
>
> But let me ask Jerry and all, how do we ensure the "target file" to
> support concurrent users, if it's opened by user A, we need to lock it
> or something... how do we do it with php?
>
> Many thanks.
>
> Don
create a lock file
[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
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: Print PHP Manual
Next Topic: Fetching an external web page
Goto Forum:
  

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

Current Time: Fri Oct 04 23:23:48 GMT 2024

Total time taken to generate the page: 0.04592 seconds