Re: passing a url to a page
| From: | Daniel Brown | Date: | Fri, 15 Jun 2007 14:46:14 +0000 |
| Subject: | Re: passing a url to a page | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-257079@lists.php.net to get a copy of this message | ||
On 6/15/07, ross@aztechost.com <ross@aztechost.com> 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