Thanks for your help :o)
----- Original Message -----
From: "Steve" <[EMAIL PROTECTED]>
To: "Kurtis Harper" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 1:04 PM
Subject: Re: [PHP-WIN] Help, Parse error caused by quotes andapostrophes in
function, How do I fix this?


>
> Try this:
>
>
> exec("convert picture.jpg  -font Arial-Bold -pointsize 20 -fill
red -gravity southeast -draw \"text 10,10 'my text to add to picture'\"
text-overlay.jpg");
>
> That SHOULD work; if it doesn't, put \' isntead of ' as well.
>
> " is more friendly about escaping things than ' is :-)  ' is for litteral
> things and doesn't work very well with stuff inside it.
>
> Also be sure the problem isn't somewhere further up in your code, too.
> It's possible you left a dangler somewhere ;-)
>
>
> Steve
>
> >
>
> >
> >
> > I am positive the it is due to all the "s and 's within the command, I
have
> > tried the specialchars for quotes andapostrophes but I am still missing
> > something:
> >
> >
> >
> > exec('convert picture.jpg  -font Arial-Bold -pointsize 20 -fill
red -gravity
> > southeast -draw &quottext 10,10 \'my text to add to picture\'&quot
> > text-overlay.jpg');
> >
> >
> >
> > If anyone has any ides on how to avoid probles with quotes
andapostrophes
> > inside the exec() I am all ears :o)
> >
> >
> >
> >
> >
> > Thanks
> >
> >
> >
> >
> >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002


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

Reply via email to