Вниз
Скачать: CL | DM;

PHP   Найти похожие ветки 

 
php   (2008-04-03 08:45) [0]

Интернет работает через прокси. IP:PORT
На компьютере стоит Денвер.
Глобального хоста нет...
Кусок кода скрипта

<?php

// Define a context for HTTP.
$aContext = array(
   "http" => array(
       "proxy" => "tcp://127.0.0.1:8080", // This needs to be the server and the port of the NTLM Authentication Proxy Server.
       "request_fulluri" => True,
       ),
   );
$cxContext = stream_context_create($aContext);

// Now all file stream functions can use this context.

$sFile = file_get_contents("http://www.php.net/", False, $cxContext);

echo $sFile;
?>

Заместо 127.0.0.1:8080" ественно мой прокси...
При выполнении скрипта выдает ошибку:

Warning: file_get_contents(http://www.php.net/) [function.file-get-contents]: failed to open stream: HTTP request failed! in h:\home\localhost\www\111\index.php on line 14


Что не так ? Почему не работает ?


 
nnn   (2008-04-03 09:24) [1]

Сори вопрос снят ошибка в адресе



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
2-1208768164
umbra
2008-04-21 12:56
2008.05.18
как из TAction.Execute узнать, на какой форме кликнули меню


3-1197027738
AlexeyMir
2007-12-07 14:42
2008.05.18
DBGridEh Combobox->Items


2-1208271421
webpauk
2008-04-15 18:57
2008.05.18
PageControl, Hint


11-1189432628
vampir_infernal
2007-09-10 17:57
2008.05.18
Int2Str и UNICODE_CTRLS


6-1186750392
Любитель
2007-08-10 16:53
2008.05.18
"Кто" куда лазает?




   Наверх