Re: [PHP] transfer file
Hi Richard.. On 15/06/06, Richard Lynch [EMAIL PROTECTED] wrote: HTTP just plain ain't gonna let you open a file up for writing -- thank god. I think it does in form of PUT requests.. http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html (apparently not supported by PHP streams(?)) Security restrictions to keep away black hats might be enforced through HTTP authentication. /ahmed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] transfer file
On Tue, June 13, 2006 9:55 pm, kristianto adi widiatmoko wrote: $remote = fopen(http://B/file.txt,w+); HTTP just plain ain't gonna let you open a file up for writing -- thank god. Can you imagine the number of websites that would get hacked? [shudder] But if you have FTP access to B, you can use http://php.net/ftp -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] transfer file
i try to transfer file from one server to another server, lets call it server A to server B. My Idea is like this I place my script in server A ?php $local = fopen(file.txt,r); $remote = fopen(http://B/file.txt,w+); while(!feof($local)) { $buff = fread($local,1024); fwrite($remote, $buff); } fclose($local); fclose($remote); ? Is Any one has sugestion about it, or another method ?? Send instant messages to your online friends http://uk.messenger.yahoo.com
Re: [PHP] transfer file
kristianto adi widiatmoko wrote: i try to transfer file from one server to another server, lets call it server A to server B. My Idea is like this I place my script in server A ?php $local = fopen(file.txt,r); $remote = fopen(http://B/file.txt,w+); while(!feof($local)) { $buff = fread($local,1024); fwrite($remote, $buff); } fclose($local); fclose($remote); ? Is Any one has sugestion about it, or another method ?? You can't write files to a remote server through a web server like this. The php page (http://php.net/fopen) has an example of what you want: $handle = fopen(ftp://user:[EMAIL PROTECTED]/somefile.txt, w); -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] transfer file
On Thu, June 8, 2006 10:16 pm, kristianto adi widiatmoko wrote: can php do transfer file betwen 2 server without using ftp function socket that use ftp port If you want to re-write all the FTP stuff in PHP, with http://php.net/fsockopen and fgets and fputs, sure, you could do that... Kinda silly to re-invent the wheel, but you could. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] transfer file
can php do transfer file betwen 2 server without using ftp function socket that use ftp port Send instant messages to your online friends http://uk.messenger.yahoo.com
[PHP] transfer file
How to transfer text file from one machine to another using php Please give the code if possible akshay -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] transfer file
How to transfer text file from one machine to another using php Please give the code if possible akshay -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] transfer file
Akshay wrote: How to transfer text file from one machine to another using php Please give the code if possible It depends on what protocol you want to use. Please pick from FTP, HTTP, NFS etc and let us know. akshay -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php