Re: passing a url to a page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/15/07, ross@xxxxxxxxxxxxx <ross@xxxxxxxxxxxxx> wrote:
Nothing happens no errors or anything I tried to debug using
include('display_image.php?img_url=$image_url') I got a parse error.

   You can't include a file with a query string attached.  However,
you /can/ do:

<?
   $image_url = 'http://www.pr0nsite.com/gallery/big-boobs.jpg'; //
Your favorite!
   include('display_image.php');
?>

   However, it won't work if display_image.php expects $image_url to
specifically be passed as a $_GET[] variable --- which, on a
production site, it sure should, rather than accepting globals.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux