Connecting Tech Pros Worldwide Forums | Help | Site Map

invalid flag after regular expression

sheldonlg
Guest
 
Posts: n/a
#1: Nov 12 '08
I am running in an environment making heavy use of AJAX. I get the
error message "invalid flag after regular expression" after doing the
php command:

exec($command);

where

$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';

The error message shows up when I look in firebug.

I have googled for this and have search the AJAX code (and other code)
to find the source of this message with no success. Can someone point
me in the right direction?

Could this possibly be coming from the fop.sh?

Jerry Stuckle
Guest
 
Posts: n/a
#2: Nov 12 '08

re: invalid flag after regular expression


sheldonlg wrote:
Quote:
I am running in an environment making heavy use of AJAX. I get the
error message "invalid flag after regular expression" after doing the
php command:
>
exec($command);
>
where
>
$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
>
The error message shows up when I look in firebug.
>
I have googled for this and have search the AJAX code (and other code)
to find the source of this message with no success. Can someone point
me in the right direction?
>
Could this possibly be coming from the fop.sh?
Probably.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
sskaje
Guest
 
Posts: n/a
#3: Nov 13 '08

re: invalid flag after regular expression


On 11月13日, 上午2时46分, sheldonlg <sheldonlgwrote:
Quote:
I am running in an environment making heavy use of AJAX. I get the
error message "invalid flag after regular expression" after doing the
php command:
>
exec($command);
>
where
>
$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
>
The error message shows up when I look in firebug.
>
I have googled for this and have search the AJAX code (and other code)
to find the source of this message with no success. Can someone point
me in the right direction?
>
Could this possibly be coming from the fop.sh?
that must be
cos you only have a string not regex executed in exec();

maybe you can access the file directly or debug just to check where
error messages printed
sheldonlg
Guest
 
Posts: n/a
#4: Nov 13 '08

re: invalid flag after regular expression


sskaje wrote:
Quote:
On 11月13日, 上午2时46分, sheldonlg <sheldonlgwrote:
Quote:
>I am running in an environment making heavy use of AJAX. I get the
>error message "invalid flag after regular expression" after doing the
>php command:
>>
>exec($command);
>>
>where
>>
>$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
>>
>The error message shows up when I look in firebug.
>>
>I have googled for this and have search the AJAX code (and other code)
>to find the source of this message with no success. Can someone point
>me in the right direction?
>>
>Could this possibly be coming from the fop.sh?
>
that must be
cos you only have a string not regex executed in exec();
????

$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
exec($command);
Quote:
maybe you can access the file directly or debug just to check where
error messages printed
The xsl and xml generate the pdf properly when doing the fop by hand.
Jerry Stuckle
Guest
 
Posts: n/a
#5: Nov 13 '08

re: invalid flag after regular expression


sheldonlg wrote:
Quote:
sskaje wrote:
Quote:
>On 11月13日, 上午2时46分, sheldonlg <sheldonlgwrote:
Quote:
>>I am running in an environment making heavy use of AJAX. I get the
>>error message "invalid flag after regular expression" after doing the
>>php command:
>>>
>>exec($command);
>>>
>>where
>>>
>>$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
>>>
>>The error message shows up when I look in firebug.
>>>
>>I have googled for this and have search the AJAX code (and other code)
>>to find the source of this message with no success. Can someone point
>>me in the right direction?
>>>
>>Could this possibly be coming from the fop.sh?
>that must be
>cos you only have a string not regex executed in exec();
>
????
>
$command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
exec($command);
>
Quote:
>maybe you can access the file directly or debug just to check where
>error messages printed
>
The xsl and xml generate the pdf properly when doing the fop by hand.
Shelly,

When you are running it by hand, are you doing it from the same
directory and with the same userid as the PHP script is running?

IOW, are you duplicating the exact environment of PHP?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Closed Thread