[PHP] Re: How do I use fopen() to overwrite a remote file via ftp?

2002-04-08 Thread Dalton Hunter
P functions and use those. "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Dalton Hunter) wrote: > > > Hi, I want to use fopen to connect to a remote server

[PHP] How do I use fopen() to overwrite a remote file via ftp?

2002-04-08 Thread Dalton Hunter
Hi, I want to use fopen to connect to a remote server via ftp and overwrite a file like ... fopen("ftp://username:[EMAIL PROTECTED]/system/path/to/file.php";, "w") ... but after connecting I get the "Warning: File already exists" error message and it fails. What is the proper way to overwrite it

Re: [PHP] Can I fopen() files in .htaccess protected directories?

2002-04-08 Thread Dalton Hunter
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sat, 6 Apr 2002, Dalton Hunter wrote: > > Hi, does fopen() support the opening and reading of remote files in > > directories protected with .htaccess files like ... > > > > fopen("http://user:[EMAIL PROTECTED

[PHP] Can I fopen() files in .htaccess protected directories?

2002-04-06 Thread Dalton Hunter
Hi, does fopen() support the opening and reading of remote files in directories protected with .htaccess files like ... fopen("http://user:[EMAIL PROTECTED]/directory/file.php","r";); If not, is there an alternative way to do this? Thanks! -- PHP General Mailing List (http://www.php.net/) To

[PHP] What PHP commands could do this?

2002-04-01 Thread Dalton Hunter
Hi, I would like to include a version checker/update utility with a php program I am writting. Can someone tell me what php commands would be needed to write a script that would compare the versions or dates of a customers php files against those from a remote server and provide a way for the cust

Re: [PHP] Can I search for a partial match in an array ?

2002-03-28 Thread Dalton Hunter
Thanks, worked great! "Bvr" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > preg_grep("/^file/", $arr) > > bvr. > > Dalton Hunter wrote: > > >Hi, I want to search for a partial match in an ar

[PHP] Can I search for a partial match in an array ?

2002-03-28 Thread Dalton Hunter
Hi, I want to search for a partial match in an array? Does in_array() or search_array() support this or is there another way? For example if I have 30 file names in an array in the format ... file1.txt file2.txt pic1.gif pic2.gif ... how can I check to see if any values in the array start with t

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 28 Mar 2002, Miguel Cruz wrote: > > Right. I think the "No such file or directory" message is because it's > > failing to find an interpreter called "/bin/bash\r". > > Sorry, I mean "/bin/sh\r

Re: [PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 27 Mar 2002, Dalton Hunter wrote: > > Hi, I am trying to write a file that contains a shell script. The file > > writes to the server but when I try to

[PHP] How to write file containing shell script?

2002-03-27 Thread Dalton Hunter
Hi, I am trying to write a file that contains a shell script. The file writes to the server but when I try to execute it it fails with a command not found error. But if I copy and paste the files contents into a new text file using Textpad on my PC and upload it to the same directory it works?! It