Re: [PHP-WIN] Include Question!

2008-05-09 Thread Bradley Stahl
Your code would essentially be inserted in the place where your include statement is called. Let's say that your in 'page.php' you had the following code: echo I AM IN PAGE.PHP!; and then in your script you have your code: if (some variable) { include('page.php'); } This would

Re: [PHP-WIN] Get referer with PHP

2007-06-12 Thread Bradley Stahl
Luis, Try using the $_SERVER['HTTP_REFERER'] server variable to get the URL of the page that referred the current user to your page. Let me know if this helps. --Brad On 6/12/07, Luis Moreira (ESI-GSQP) [EMAIL PROTECTED] wrote: Hi This is possibly way too simple, but let me ask

Re: [PHP-WIN] Get referer with PHP

2007-06-12 Thread Bradley Stahl
Stut, I did not know that. Do you have any documentation on this? I would really like to read more about this issue. Thanks for the heads up. -Brad On 6/12/07, Stut [EMAIL PROTECTED] wrote: Bradley Stahl wrote: Try using the $_SERVER['HTTP_REFERER'] server variable to get the URL

Re: [PHP-WIN] Get referer with PHP

2007-06-12 Thread Bradley Stahl
No problem. Thanks. On 6/12/07, Stut [EMAIL PROTECTED] wrote: Bradley Stahl wrote: I did not know that. Do you have any documentation on this? I would really like to read more about this issue. Thanks for the heads up. There is no documentation on this beyond the HTTP spec not requiring