Reply to Re: help with PHP include problem

Your name:

Reply:


Posted by igorp on 04/21/07 19:49

On Apr 10, 5:22 am, l...@portcommodore.com wrote:
> Given your semicolons and quotes I would start by cleaning to:
>
> <?php
> echo "Hello this is a test file on my server Seen: $_POST[seen] </
> br>";
> if(!isset($_POST['seen']) )
> {
> echo "HERE...";
> $_POST['seen'] = 'yes';
> require $_SERVER['SCRIPT_FILENAME'];} else {
>
> echo "Not here...";}
>
> echo "At the end of script ";
>
> ?>
>
> Normally I would load-in my POSTs through a filter before doing
> anything with them
>
> $seen = filterPost('seen');
>
> Of course filterPost woud be something that strips bad data coming in
> unexpectedly.
>
> >From there I would be messing with $seen then the $_POST['seen']
>
> element.
>
> Also the echo before the isset() check may result in an error if
> theere was no $_POST['seen'] data.
>
> Larry

Update: I found the problem to be directly connected to the fact that
the PHP v. 5 has been run as CGI at my hosting provider servers .
Otherwise, if I use PHP 4 it works just fine. Still, if you know how
to cause it working with CGI-PHP it would be very helpful to me.

[Back to original 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

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