Forum Moderators: coopster
I have two small PHP scripts running on a test page
Both scripts work perfectly when there is one script on a page. However, if I place two on the page (one above the other), the second script will not render. I get no PHP error messages - the script will just not render.
I think the PHP Scripts are OK as they were automatically generated by RSS Feed Burner and both do run separately.
There may be an issue with having separate calls of some kind on the page or my server might not be set right. I did a server test that I think shows that it is OK but I am not sure. The only think I have in my htaccess file for PHP is: "AddType application/x-httpd-php .htm .html" .
I am new to PHP and was wondering if anyone can see why both scripts will not run together?
Thanks a lot,
Bob
[edited by: coopster at 4:40 pm (utc) on July 26, 2005]
[edit reason] removed urls per TOS [webmasterworld.com] [/edit]
Thanks for the response. The code is below.
Someone said that they thought the two </body> for the includes might be a problem with the script stopping at the first one. I have no idea but just mentioned it.
I'd appreciate any help on this.
Thanks,
Bob
---
<!-- RSS Feed Reader Usability In The News -->
<div class="centerall"><a href="http://www.example.com/news/user-interface-design-news.html">Usability In The News</a></div>
<div class="centermedium">Latest Headlines
<div class="scroll">
<?php
include
("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Ffeeds.feedburner.com%2F NewsErgonomicsUserInterfaceDesignComputerHumanInteractionhci&newpage=&chead=&atl=& desc=1&auth=&dts=&width=128&max=10&tlen=0&rnd=&bt=&bs=None&nmb=1&ntb=1&naf=1&nst=1& nwd=0&nht=0&dlen=100&bg=%23FFFFFF&bc=&tc=BLACK& ts=8&tfont=Verdana,+Arial,+Sans-serif&rf=" .$HTTP_SERVER_VARS['SERVER_NAME']. $HTTP_SERVER_VARS['PHP_SELF']. "&phpout=1");
?>
</div>
<div class="centermedium"><a href="http://feeds.feedburner.com/NewsErgonomicsUserInterfaceDesignComputerHumanInteractionhci" title="Usability News Feed"><img src="images/site/rss.gif" alt="Usability In The News RSS Feed"></a></div>
</div>
<!-- /RSS Feed Reader Usability In The News -->
<!-- /RSS Feed Reader Ergonomics In The News -->
<div class="centerall"><a href="http://www.example.com/news/workplace-ergonomics-news.html" title="Ergonomics In The News">Ergonomics In The News</a></div>
<div class="centermedium">Latest Headlines
<div class="scroll">
<?php
include ("http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Ffeeds.feedburner.com%2F WorkplaceErgonomicsSafetyBiometrics&newpage=&chead=&atl=&desc=1&auth=&dts=& width=128&max=10&tlen=0&rnd=&bt=&bs=None&nmb=1&ntb=1&naf=1&nst=1&nwd=0&nht=0&dlen=100& bg=%23FFFFFF&bc=&tc=BLACK&ts=8& tfont=Verdana,+Arial,+Sans-serif&rf=". $HTTP_SERVER_VARS['SERVER_NAME']. $HTTP_SERVER_VARS['PHP_SELF']. "&phpout=1");
?>
</div>
<div class="centermedium"><a href="http://feeds.feedburner.com/UWorkplaceErgonomicsSafetyBiometrics" title="Ergonomics News Feed"><img src="images/site/rss.gif" alt="Ergonomics In The News RSS Feed"></a></div>
</div>
<!-- /RSS Feed Reader Ergonomics In The News -->
</div>
[edited by: jatar_k at 7:02 pm (utc) on July 26, 2005]
[edit reason] added spaces so it would wrap [/edit]
Note that the first script is showing 10 news articles and then an ad from RSS Feed Burner at the end. But the second script is not showing the news articles - only the ad at the end.
Also, I ran a check on the server and have a table of results at <removed> if that is any help.
Thanks so much,
Bob
[edited by: jatar_k at 7:08 pm (utc) on July 26, 2005]
[edit reason] sorry no urls thanks [/edit]