PHP Remote File Upload * Direct Server to Server Transfer *

This is a discussion on PHP Remote File Upload * Direct Server to Server Transfer * within the PHP forums, part of the Web Development category; PHP Remote File Upload * Direct Server to Server Transfer * Create a new html file with the following source HTML Code: &...
 
Members Login.
 

Please register HERE to be part of our Community

PHP » Current Topics
 

Popular Social Groups.
 
The active BRL users
cwp (web development)
Malaysia Member
Richest Members

Contest of the Day.
 
Contest # 8 (Longest Thread Contest)

Invite Your Friends...
 

Invite your contacts from social groups / email address book to Join BRL.
Information is transmitted over secure channel.
We don't store any information.


Sponsors.
 



BRL Webmaster Forum » Programming & Web Development » Web Development » PHP » PHP Remote File Upload * Direct Server to Server Transfer *

PHP Discussion related to PHP web development, PHP coding. Tutorials, source code, tips and tricks related to PHP programming.

Reply
  #1 (permalink)  
Old August 12th, 2008, 12:55 PM
New Foot Prints

Join Date: Aug 2008
Posts: 37
BRL$: 133.01
Thanks: 0
Thanked 8 Times in 6 Posts
Rep Power: 0
vikassaini01 is on a distinguished road
Cool PHP Remote File Upload * Direct Server to Server Transfer *

PHP Remote File Upload * Direct Server to Server Transfer *


Create a new html file with the following source

HTML Code:
 <form action="dl.php" method="post"><br> <tr><td>URL:</td><td><input type="text" name="url"><br> </td></tr><tr><td>Path:</td><td><input type="text" name="path"></td></tr><br> <tr><td colspan="2" align="center"><br><input type="submit"/></td></tr></table></form></p><br> </form>
Create a PHP file with the following source and name it as dl.php

PHP Code:
 <?php 
$_POST
["url"]; 
$_POST["path"]; 
$readf fopen($_POST["url"], "r"); 
$writef fopen($_POST["path"] . basename($file), "w"); 
while(!
feof($file)) fwrite($writeffread($readf1), 1); 
fclose($readf); 
fclose($writef); 
?>
run the html file u created and now you will be able to remote upload

(Don't remember the exact source as i got it from my old backup files)
but will work OK !!!
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Don't Forget to Press THANKS Button if you like my Post.
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.


Jobs In !!! - Post Jobs, Hire Employees, Create Blogs and Earn Money.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
direct, file, php, remote, server, transfer, upload


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sago Networks - weekly i-Pod Giveaway Contest for any New server orders dspkable Dedicated Server Offers 0 November 6th, 2007 11:18 AM
Best Deals for “All Managed – All the time.” Rss_Feeds Dedicated Server Offers 0 September 22nd, 2007 01:51 AM
All Managed – All the time. Great Deals! Rss_Feeds Dedicated Server Offers 0 September 14th, 2007 21:43 PM
How do upload a file from one PC to another PC using PHP? Rss_Feeds PHP 0 September 7th, 2007 00:10 AM
* $99 Dual Xeon Servers * $49 Servers * Dual & Quad Cores Too * All $0 Setup * Rss_Feeds Dedicated Server Offers 0 July 20th, 2007 20:50 PM


 
Terms Of Usage

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107