Upload File(image) to PHP Server Using WebRequest

İş Gereklilikleri

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, 

 

 

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(137)
Projeler
220
52%
Arabuluculuk
22
23% / 55%
Süresi dolmuş
64
29%
Serbest
Yayınlandı: 3 kod
2
Geliştirici 2
Derecelendirme
(90)
Projeler
159
61%
Arabuluculuk
40
18% / 63%
Süresi dolmuş
70
44%
Serbest

Proje bilgisi

Bütçe
10 - 20 USD
Son teslim tarihi
from 1 to 3 gün