By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,287 Members | 1,668 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,287 IT Pros & Developers. It's quick & easy.

invalid flag after regular expression

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.