Jump to content

How to access files from a different server


akurtula

Recommended Posts

Hi,

 

I have a php file on my web server which would generate xml code so that I can use in in my tumblr blog.

 

this is the code I have

 

<?php
   header("Content-Type: text/xml; charset=ISO-8859-1");
   $rssfeed = '<?xml version="1.0" encoding="ISO-8859-1"?>';
   $rssfeed .= '<library>
		<book isbn10="1234567890" isbn13="1234567890123">
			<title>PHP and MySQL</title>
			<author fname="miguel" lname="alvarez">Miguel Alvarez</author>
			<publisher>WebHole</publisher>
			<price>1.99</price>
		</book>
		<book isbn10="8957468873" isbn13="0984837828189">
			<title>JAVA 123</title>
			<author fname="william" lname="vega">WIlliam Vega</author>
			<publisher>WebHole</publisher>
			<price>2.99</price>
		</book>
	</library>';

   echo $rssfeed;
?>

 

 

I then want to access this with js. The problem is that I can not access this from another server. is there a way to make this php files accessible by another server?

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...