Page 1 of 1

Alternative to Require()

Posted: Sat Jun 02, 2007 4:44 am
by violet
Is there an alternative to require($image) that won't throw an error when I try to attach:

Code: Select all

image.php?Var1=Value1&Var2=Value2&Var3=Value3
via form-to-mail?

Re: Alternative to Require()

Posted: Sat Jun 02, 2007 5:22 am
by timvw
violet wrote:Is there an alternative to require($image) that won't throw an error when I try to attach:

Code: Select all

image.php?Var1=Value1&Var2=Value2&Var3=Value3
You could use include.. But the error is because the argument isn't a valid location... (Include http://example.com/image.php?var=value2 would work)... But if you're not in control of that URL i'd recommend strongly against it as it opens someone to inject code into your script...

Posted: Sat Jun 02, 2007 5:40 am
by violet
Thanks timvw..

Maybe I should first encode the contents of the generated image.php into image2.php so I could require(image2.php) instead... Hmmm Image

Hey malik, no hijacking! :P

Oh I just re-read this:
But the error is because the argument isn't a valid location...
:oops: