Sending a file via HTTP from the command line Windows.

Affiliates: 0,05 $how to earn
Pay with:
i agree with "Terms for Customers"
Sold: 0
Uploaded: 14.05.2010
Content: 6,74 kB

Product description

SendFileOverHTTP script to automatically send files via HTTP to a specified URL. Similar to sending a file via the browser. Command prompt Windows (cmd.exe), has a built-in instructions in Russian, Russian correctly handles filenames (giving names to the server in UTF-8). It is useful, for example, for automatic feeding xml file with the prices of the script online store, using the task scheduler Windows. Generally used only to send the file via HTTP. Perhaps the use of * .bat files. Requires installation of PHP5 module cURL, which is available free for download on the official website of PHP:

Examples of the use of the script to send the file to the address

php sendfileoverhttp.php (call reference)
php sendfileoverhttp.php "c: \\ file.txt"
php sendfileoverhttp.php "c: \\ file.txt" "name"

As can be seen from the examples, the first parameter is passed URL, in the second - path to the file. In addition, there is a third optional parameter, which can be passed to the host file name of the script. The default is the line "sendfileoverhttp_file" (ie PHP-script file will be available in the array $ _FILES ['sendfileoverhttp_file']). It is recommended to put quotation marks when passing parameters (as an example) to avoid confusion with spaces in file names.

As a result of its activities the script displays html-code received from the server when prompted. The names of the files transferred to the server is encoded in UTF-8, use iconv server side, if necessary.

Additional information

The script is in proper operating condition as a file with the name sendfileoverhttp.php. Obfuscated.
The original source is sold separately here

See. Also:


No feedback yet.
In order to counter copyright infringement and property rights, we ask you to immediately inform us at the fact of such violations and to provide us with reliable information confirming your copyrights or rights of ownership. Email must contain your contact information (name, phone number, etc.)