472,351 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

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 3868
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anthony Liu | last post by:
I am trying to split a string like so: re.split(',|。|、|!|:|,|?|“|”|)|(|;', my_string) Python complains like so: Traceback (most recent call...
4
by: Buddy | last post by:
Can someone please show me how to create a regular expression to do the following My text is set to MyColumn{1, 100} Test I want a...
7
by: Billa | last post by:
Hi, I am replaceing a big string using different regular expressions (see some example at the end of the message). The problem is whenever I apply...
5
by: Mark A. Sam | last post by:
Hello, I know this issue has been raised many times in the past, but I couldn't find a solution from reading many posts from a google search, so...
3
by: Bertrand | last post by:
Hi, I am using a regular expression to read records from a text file. But when reading files with invalid formats it takes ages before the...
25
by: Mike | last post by:
I have a regular expression (^(.+)(?=\s*).*\1 ) that results in matches. I would like to get what the actual regular expression is. In other...
0
by: Jason Tishler | last post by:
On Sat, Jun 07, 2008 at 05:34:21PM -0700, newbie73 wrote: The above is a known issue: http://bugs.python.org/issue2234 Unfortunately,...
4
by: Matt | last post by:
Hello all, I have just discovered (the long way) that using a RegExp object with the 'global' flag set produces inconsistent results when its...
4
by: sheldonlg | last post by:
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...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.