Upload File(image) to PHP Server Using WebRequest

MQL4 Experts Scripts

Specification

Hello,

I want upload file/files(image for example gif file from Files folder in MT4) to one php server with POST method.

My php server code is :

<?php

$uploads_dir = '/home/.../public_html/wp/signal/image';

if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) {

$tmp_name = $_FILES["file"]["tmp_name"];

$name = $_FILES["file"]["name"];

move_uploaded_file($tmp_name, "$uploads_dir/$name");

}

?> 

 

URL links  for upload is for example: www.....com/wp/signal/upload.php

upload.php file is includes above code.

You can use WebRequest function or other internal functions for MT4 without any external dll.

My server for uploading file not asking for any authorizing.

 

Regards, 

 

 

Responded

1
Developer 1
Rating
(137)
Projects
220
52%
Arbitration
22
23% / 55%
Overdue
64
29%
Free
Published: 3 codes
2
Developer 2
Rating
(90)
Projects
159
61%
Arbitration
40
18% / 63%
Overdue
70
44%
Free

Project information

Budget
10 - 20 USD
Deadline
from 1 to 3 day(s)