invalid flag after regular expression

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sheldonlg

    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?
  • Jerry Stuckle

    #2
    Re: invalid flag after regular expression

    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.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • sskaje

      #3
      Re: invalid flag after regular expression

      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

      Comment

      • sheldonlg

        #4
        Re: invalid flag after regular expression

        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.

        Comment

        • Jerry Stuckle

          #5
          Re: invalid flag after regular expression

          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.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          Working...