Hai,
I am having some php script to get rss feeds in my webpage. The problem is, it is not working in all the systems which has wamp server. I tested that code with few machines using the same local server. But I'm getting the error XML error: Invalid document end at line1 in few systems. I don't know why? If anybody know the reason, pls guide me.
If u want I can give the code.
Thanks in advance,
Anusha.
Problem with RSS feed php code
Moderator: General Moderators
-
anushakingsly
- Forum Newbie
- Posts: 2
- Joined: Wed Jan 21, 2009 6:27 am
Re: Problem with RSS feed php code
if it works on some machines but not others, check the configuration differences between the environments. There's bound to be something different between them...
-
anushakingsly
- Forum Newbie
- Posts: 2
- Joined: Wed Jan 21, 2009 6:27 am
Re: Problem with RSS feed php code
Hi Friend,
Thanku for u r reply.
Basically I'm a dotnet programmer. I don't know much about PHP. I created a product using dotnet which will create php website dynamically.
Using my app. I created the php site and it works fine. Now I want rss feed to be there in the generated website.
The rss code includes the curl function
Now I included the curl ini file and its working fine if I run that file separately in my local wamp server.
But it's not working if I include that file in my php page where I want the script
Can u tell me why?
Thanks
Anusha.
Thanku for u r reply.
Basically I'm a dotnet programmer. I don't know much about PHP. I created a product using dotnet which will create php website dynamically.
Using my app. I created the php site and it works fine. Now I want rss feed to be there in the generated website.
The rss code includes the curl function
Code: Select all
function getFeed(){
// if we have a URL
if ($this->url){
if (extension_loaded('curl')) {
$this->xml=$this->getRemoteFile($this->url);
}
}
}But it's not working if I include that file in my php page where I want the script
Code: Select all
<?php include('RSS_FEEDS/index.php'); ?>Thanks
Anusha.