luis.sg Posted August 4, 2006 Share Posted August 4, 2006 Hi there.I am trying to retrieve a document hosted in a different domain. I ownboth of them:http://www.ls-art.co.uk/andhttp://www.syndicarts.com/Since the first one doesn't allow me to do XML/XSL transformations, Iuse the second one for that. I wanted to use Readfile to retrieve theresults of a transformation I do in "syndicarts" and then show them ina page hosted in "ls-art".This is the scenario:---LS-Art domain:http://www.ls-art.co.uk/xslt/readfile.php attempts to open"http://www.syndicarts.com/xsl/test.php"It returns this:Warning: readfile(http://www.syndicarts.com/xsl/test.php): failed toopen stream: HTTP request failed! HTTP/1.1 404 Not Found in/vhost/vhost1/l/s/-/ls-art.co.uk/www/xslt/readfile.php on line 11This is the code I use (readfile.php):ini_set('allow_url_fopen', 'on');readfile ("http://www.syndicarts.com/xsl/test.php");---Syndicarts domain:I have this file http://www.syndicarts.com/xsl/test.php, which performsa transformation and shows the results. I've tried to retrieve a staticpage, called results.html in the same folder with the same results.---THINGS THAT I'VE TRIED:* Changing permissions to the target file. It has read permission.* I've tried to retrieve the contents of http://www.syndicarts.com/ (itis index.php). It works fine... so it is not that this domain doesn'tallow remote access. I have tried to move test.php to the root folder,since there was no problem retrieving the default page. It didn't work.I have created a subdomain pointing to "xsl" folder, and changingtest.php to index.php. It doesn't work.* I have tried to open a stream from another website:http://www.rss-info.com/rss2.php?integration=php&rss=http%3A%2F%2Fstayeat.com%2Ffeed%2F&number=50&width=320&ifbgcol=FFFFFF&bordercol=D0D0D0&textbgcol=F0F0F0&rssbgcol=F0F0F0&showrsstitle=1&showtext=1It WORKS!!!--------------------I have tried to find an answer for this and I've seen many people withthe same problem. What I don't get is, why can I open some documentsbut I can't open this one? Does the target file need to have some kindod special code or return the data in a special way?Please, any help with this would be much appreciated. The last optioncould be to host the documents that need transformation in"Syndicarts", but I would like to keep everything on its place.Thank you very much,Luis SerranoWeb DeveloperLs-Art.com / Ls-Art.co.uk / Syndicarts.com / WTraveller.com Quote Link to comment https://forums.phpfreaks.com/topic/16530-readfile-returns-http11-404-with-some-existing-urls/ Share on other sites More sharing options...
Ninjakreborn Posted August 4, 2006 Share Posted August 4, 2006 1. contact your host and ask them.2. contact the company of the third party and try there support.3. The best advice could be to rebuild it yourself4. sessions?? Quote Link to comment https://forums.phpfreaks.com/topic/16530-readfile-returns-http11-404-with-some-existing-urls/#findComment-69098 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.