You are here: Re: Two PHP Scripts on same page? « PHP Programming Language « IT news, forums, messages
Re: Two PHP Scripts on same page?

Posted by ergobob on 10/28/29 11:22

"luke" <lduncalfe@eml.nope> wrote in message
news:f_TFe.4002$PL5.374342@news.xtra.co.nz...
>
> Odd :).
>
> I'm wondering whether the rssfeeder site's script is identifying your site
> once with the URL of the first include
>
> $HTTP_SERVER_VARS['SERVER_NAME'].$HTTP_SERVER_VARS['PHP_SELF']
>
> and is then refusing to serve you any more with the second include, as a
> security measure.
>
> Could be a good question to ask the rssfeeder site's owner.
>
> Luke
>
>
>
> "ergobob" <ergobob@sonic[REMOVE].net> wrote in message
> news:r7MFe.5774$p%3.31809@typhoon.sonic.net...
>> Hi Guys,
>>
>> Thanks for the reply. I thought I would give you more information in the
>> hopes that it will help.
>>
>> Both scripts are supposed to pull in 10 news articles. There is an ad at
> the
>> very bottom of the news articles from RSS Feed Reader. The first script
>> shows the 10 articles but the second script only shows the ad. It does
>> not
>> bring in the 10 articles.
>>
>> If I reverse the order of the feeds, it shows that both work but on the
>> first one renders the 10 articles. Also, the PHP was automatically
> generated
>> by RSS Feed Reader so I think they both work fine. It is the second of
>> the
>> sequence that is the problem.
>>
>> The PHP scripts are very similar but they bring in articles from two
>> different feeds. The host is the same for both though.
>>
>> Below are the PHP scripts.
>>
>> Does this give you any ideas? Several people have looked at
>> this with no solution.
>>
>> Thanks a lot,
>>


The answer to the problem is to put <?php unset($arnews);?>
before each include.

Bob

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация