473,903 Members | 4,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3937
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*******@attgl obal.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*******@attgl obal.net
=============== ===
Nov 13 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9527
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 last): File "C:\Python23\codes\regextest.py", line 27, in -toplevel-
4
5190
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 regular expression that sets the text to the following testMyColumn{1, 100}Test Basically I want the regular expression to add the word test infront of the
7
3836
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 a "replace" it makes a new copy of string and I want to avoid that. My question here is if there is a way to pass either a memory stream or array of "find", "replace" expressions or any other way to avoid multiple copies of a string. Any help will be highly appreciated
5
2332
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 I am posting it again. I placed a RegularExpressionvalidator on a webform to test a textbox for a proper email format. I am trying to test for a failure but can't seem to get a value. Here is what I tried:
3
1378
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 program rjects the file. So I want to optimise the expression to reject invalid files faster. The valid files are wellformed and looks something like this: Once upon a time
25
5196
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 words, when I apply ^(.+)(?=\s*).*\1 to " HEART (CONDUCTION DEFECT) 37.33/2 HEART (CONDUCTION DEFECT) WITH CATHETER 37.34/2 " the expression is "HEART (CONDUCTION DEFECT)". How do I gain access to the expression (not the matches) at runtime? Thanks, Mike
0
884
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, resolution of this issue has stalled. Additionally, someone posted a different regular expression to the Cygwin list that is suppose to handle more cases of ld version strings:
4
3916
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 test() method is executed. I realize that 'global' is not an appropriate modifier for the test() function - test() searches the entire string by default. However, I would expect it to degrade gracefully. Instead, I seem to be getting something as follows - using W3Schools handy page at :
4
5174
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 command: exec($command); where $command = 'fop/fop.sh -xml a.xml -xsl a.xsl -pdf z.pdf';
0
10003
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we抣l explore What is ONU, What Is Router, ONU & Router抯 main usage, and What is the difference between ONU and Router. Let抯 take a closer look ! Part I. Meaning of...
1
10988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project梡lanning, coding, testing, and deployment梬ithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6099
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4312
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.