note 92625 added to domdocument.load
| From: | SneakyWho_am_i at osu1 dot php dot net | Date: | Fri, 31 Jul 2009 21:03:41 +0000 |
| Subject: | note 92625 added to domdocument.load | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158972@lists.php.net to get a copy of this message | ||
In reply to
admin at tijnema dot tijnema dot info...
On a shared webserver (which is a very common thing... I have a dedibox but I have several domains
in shared webspace on it), requesting the file from localhost probably won't work since that
will set the Host field in the request to "localhost" and the webserver won't be
serving the file from the correct domain.
However, my DNS stuff is all set up correctly, so by using the actual domain name I can access a
file over the network.
Works:
mygreatdomain.com/myfile.php
Fails miserably since the file isn't served from the shared ip page:
localhost/myfile.php
If you're running a dedibox (which is the most probably case if "localhost" does what
you're saying) and your server doesn't know its own domain name, you may want to revise
your configuration.
..... Not that it's really relevant to DOMDocument->load()
----
Server IP: 209.41.74.194
Probable Submitter: 125.236.211.165
----
Manual Page -- http://www.php.net/manual/en/domdocument.load.php
Edit -- https://master.php.net/note/edit/92625
Del: integrated -- https://master.php.net/note/delete/92625/integrated
Del: useless -- https://master.php.net/note/delete/92625/useless
Del: bad code -- https://master.php.net/note/delete/92625/bad+code
Del: spam -- https://master.php.net/note/delete/92625/spam
Del: non-english -- https://master.php.net/note/delete/92625/non-english
Del: in docs -- https://master.php.net/note/delete/92625/in+docs
Del: other reasons-- https://master.php.net/note/delete/92625
Reject -- https://master.php.net/note/reject/92625
Search -- https://master.php.net/manage/user-notes.php