Thanks for the suggestion.

Still no luck though with the file path on windows; e.g. file path is
http://192.168.1.2/dev_files/drop_down.js

So, when I open the file for writing: $fw = fopen($file_path, "wb") an error
results ("can't open file")

Looks like I need to escape out of slashes within the file path on windows.

In any case, thanks for the idea -- it's a step in the right direction,

--Noah


"Ptker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If the file is binary, try fopen($file_path, "wb");
> "Cf High" <[EMAIL PROTECTED]> ~{P4HkO{O"PBNE~}
> :[EMAIL PROTECTED]
> > Hey all.
> >
> > Quick question here that's driving me up the wall:
> >
> > Using fopen(), I'm easily able to open files for reading; however, when
I
> > attempt to open files for writing using fopen($file_path, "W+"), an
error
> > occurs.
> >
> > I'm able to use fopen($file_path, "a+"), but I need to be able to
> overwrite
> > files; not write to the end of the file.
> >
> > Again, I'm testing on windows here..........
> >
> > Any suggestions greatly appreciated,
> >
> > --Noah
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to