| |
|
|
| |
|
| USD/RUB | 89.2589 | | BTC/USD | 69035.8145 |
|
|
|
24.09.2008, 14:40
|
#1
|
|
white powder
|
php - .
, .
jpeg . /php .
PHP :
$im=imagecreatefromjpeg('http://www.google.com/adsense/static/en_US/images/logo_main.gif');
PHP :
$im=file_get_contents('http://www.google.com/adsense/static/en_US/images/logo_main.gif');
:
|
URL file-access is disabled in the server configuration in /home/domains/...
|
- ? Curl .
|
|
|
24.09.2008, 14:48
|
#2
|
|
Senior Member
|
,
:
:
$data = ""; // tyt budet JPEG
$fp = fsockopen("www.example.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br />\n";
} else {
$out = "GET /picture.jpg HTTP/1.1\r\n";
$out .= "Host: www.example.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
$data.= fgets($fp, 128);
}
fclose($fp);
}
php.ini
allow_url_access = 1
( )
|
|
|
24.09.2008, 14:50
|
#3
|
|
white powder
|
-! -..
|
|
|
24.09.2008, 15:07
|
#4
|
|
white powder
|
, , .
echo $data,
:
|
HTTP/1.1 200 OK Date: Wed, 24 Sep 2008 11:03:40 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Fri, 05 Sep 2008 20:51:01 GMT ETag: "21ce19-cfc5-3a269740" Accept-Ranges: bytes Content-Length: 53189 Connection: close Content-Type: image/jpeg JFIF``C $.' ",#
|
- ?
PHP :
header('Content-type: image/jpeg');
imagejpeg($data);
.
|
|
|
24.09.2008, 15:21
|
#5
|
|
|
)
exec("c:/curl/curl.exe http://url/captcha.php -b c:/cookie.txt -c c:/cookie.txt -k -o c:/home/domain/captcha1.png",$results,$return);
url/captcha.php - -
|
|
|
24.09.2008, 15:23
|
#6
|
|
|
-x host  ort
|
|
|
24.09.2008, 15:27
|
#7
|
|
white powder
|
php ?
, - GD.
|
|
|
24.09.2008, 15:28
|
#8
|
|
Senior Member
|
:
$fp = @fopen($SAVE_IMAGE_FILE, "wb");
if ($fp) {
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $IMAGE_URL);
curl_setopt($c, CURLOPT_FILE, $fp);
curl_setopt($c, CURLOPT_HEADER, FALSE);
curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE);
$response = curl_exec($c);
curl_close($c);
}
@fclose($fp);
|
|
|
24.09.2008, 15:29
|
#9
|
|
Senior Member
|
:
:
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $IMAGE_URL);
curl_setopt($c, CURLOPT_FILE, $fp);
curl_setopt($c, CURLOPT_HEADER, FALSE);
curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE);
$image = curl_exec($c);
curl_close($c);
$image.
|
|
|
24.09.2008, 16:30
|
#10
|
|
white powder
|
, , , ?  .. ...
PHP :
<?php
$c = curl_init();
curl_setopt($c, CURLOPT_URL, 'http://gofuckbiz.info/spb/forsale2.jpg');
curl_setopt($c, CURLOPT_HEADER, FALSE);
curl_setopt($c, CURLOPT_RETURNTRANSFER, TRUE);
$image = curl_exec($c);
curl_close($c);
//echo $image;
// Set the content type header - in this case image/jpeg
header('Content-type: image/jpeg');
// Output the image
imagejpeg($image);
// Free up memory
imagedestroy($image);
?>
|
|
|
|
|
|