469,282 Members | 2,025 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

invalid flag after regular expression

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?
Nov 12 '08 #1
4 3778
sheldonlg wrote:
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.
js*******@attglobal.net
==================
Nov 12 '08 #2
On 11月13日, 上午2时46分, sheldonlg <sheldonlgwrote:
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
Nov 13 '08 #3
sskaje wrote:
On 11月13日, 上午2时46分, sheldonlg <sheldonlgwrote:
>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);
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.
Nov 13 '08 #4
sheldonlg wrote:
sskaje wrote:
>On 11月13日, 上午2时46分, sheldonlg <sheldonlgwrote:
>>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);
>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.
js*******@attglobal.net
==================
Nov 13 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Anthony Liu | last post: by
4 posts views Thread by Buddy | last post: by
7 posts views Thread by Billa | last post: by
5 posts views Thread by Mark A. Sam | last post: by
25 posts views Thread by Mike | last post: by
reply views Thread by Jason Tishler | last post: by
4 posts views Thread by Matt | last post: by
4 posts views Thread by sheldonlg | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.