Re: [PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
the 'old' binary. I should have created a symbolic link to the /usr/local/apache/php/bin/php file and this wouldn't have happened. Thanks for the quick repsonse. Marek Kilimajer wrote: Cory D. Wiles wrote: I am writing some backup scripts that will ftp my *.gz files to my ftp

Re: [PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
Michal Migurski wrote: #!/usr/local/bin/php output when ran: 'Damn' During the make I didn't see any errors. When I ran phpinfo() [http://www.randomthoughtprocess.com/info.php] it shows that I have FTP support. Is there something that I am missing? The version of PHP you're running on the comm

Re: [PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
Marek Kilimajer wrote: Cory D. Wiles wrote: I am writing some backup scripts that will ftp my *.gz files to my ftp server. Unfortunately I didn't originally install php with ftp support (oversight on my part). I reconfigured/installed PHP with --enable-ftp and restarted everything, bu

[PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
I am writing some backup scripts that will ftp my *.gz files to my ftp server. Unfortunately I didn't originally install php with ftp support (oversight on my part). I reconfigured/installed PHP with --enable-ftp and restarted everything, but the functions still don't work. #!/usr/local/bin/php

[PHP] Re: [PHP-WIN] i need help

2004-05-18 Thread Cory D. Wiles
Assuming you are doing just one string at a time: $regex = "/(\[i:)(\w+)(\])/i"; preg_match($regex, $str, $matches); print $str;//original string print substr($matches[2], 1, 3);//trimmed string ?> Gryffyn, Trevor wrote: If the format is consistantly the same, try this: $somedata = "[i:aslkdfj]";