Search found 4 matches

by 6tr6tr
Tue Jun 09, 2009 11:35 pm
Forum: PHP - Code
Topic: How restrict access to specific PHP page?
Replies: 4
Views: 280

Re: How restrict access to specific PHP page?

tasairis wrote:There is no way.

HTTP_REFERER won't always be set, and when it is you have no way of knowing that it wasn't faked.
What about when they restrict access to certain folders? Does that work the same way?
by 6tr6tr
Tue Jun 09, 2009 11:06 pm
Forum: PHP - Code
Topic: How restrict access to specific PHP page?
Replies: 4
Views: 280

How restrict access to specific PHP page?

Is there a way to restrict access to a PHP page to only other pages from within the same domain? Is HTTP_REFERER the only way?
by 6tr6tr
Tue Jun 09, 2009 8:50 am
Forum: PHP - Code
Topic: How know if the php page was reached by a posted form?
Replies: 6
Views: 199

Re: How know if the php page was reached by a posted form?

mikemike wrote:

Code: Select all

if(!empty($_POST))
works for me
Thanks that one works.

Just out of curiousity, why is _POST better than the previous HTTP_POST_VARS?
by 6tr6tr
Mon Jun 08, 2009 4:51 pm
Forum: PHP - Code
Topic: How know if the php page was reached by a posted form?
Replies: 6
Views: 199

How know if the php page was reached by a posted form?

How can i tell if a POST method is what reached the php page? I tried the code below, but it is always true:

Code: Select all

if ( isset( $HTTP_POST_VARS ) )