Create a new test.php
Then visit test.php, the result error is as follows:
Warning:file_get_contents (http://test1.xiaoci.com/create.php) [function.file-get-contents]: failed to open stream: HTTP Request failed! http/1.1 404 Not Found in J:\wamp\www\long\wwwroot\mytools\test\test1.php on line 3
Note: http://test1.xiaoci.com
a virtual host that I built locally
A virtual host is built locally with the following configuration information:
Http-vhost.conf
DocumentRoot "d:/wamp/www/" ServerName test1.xiaoci.com
Hosts
127.0.0.1 test1.com127.0.0.1 test1.xiaoci.com
and set 404 to return to index.php, so when http://test1.xiaoci.com/create.php
the URL is manually opened from the browser, because create.php is a page that does not exist, it will go to index.php and then be processed in index.php.
Manual open ("http://test1.xiaoci.com/create.php") Condition: can be accessed normally
Usage file_get_contents("http://test1.xiaoci.com/create.php")
: reported 404 error
Reply content:
Create a new test.php
Then visit test.php, the result error is as follows:
Warning:file_get_contents (http://test1.xiaoci.com/create.php) [function.file-get-contents]: failed to open stream: HTTP Request failed! http/1.1 404 Not Found in J:\wamp\www\long\wwwroot\mytools\test\test1.php on line 3
Note: http://test1.xiaoci.com
a virtual host that I built locally
A virtual host is built locally with the following configuration information:
Http-vhost.conf
DocumentRoot "d:/wamp/www/" ServerName test1.xiaoci.com
Hosts
127.0.0.1 test1.com127.0.0.1 test1.xiaoci.com
and set 404 to return to index.php, so when http://test1.xiaoci.com/create.php
the URL is manually opened from the browser, because create.php is a page that does not exist, it will go to index.php and then be processed in index.php.
Manual open ("http://test1.xiaoci.com/create.php") Condition: can be accessed normally
Usage file_get_contents("http://test1.xiaoci.com/create.php")
: reported 404 error
Is host not supposed to be
127.0.0.1 Test1. Xiaoci. Com
, I looked at the network of the Web site is really 404, visual inspection is you poke to the outside network, host did not pocket