Upload File(image) to PHP Server Using WebRequest

MQL4 Experts Scripts

Spécifications

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, 

 

 

Répondu

1
Développeur 1
Évaluation
(137)
Projets
220
52%
Arbitrage
22
23% / 55%
En retard
64
29%
Gratuit
Publié : 3 codes
2
Développeur 2
Évaluation
(90)
Projets
159
61%
Arbitrage
40
18% / 63%
En retard
70
44%
Gratuit

Informations sur le projet

Budget
10 - 20 USD
Délais
de 1 à 3 jour(s)