execute string

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

    execute string

    Hello,

    I would like to load a string with PHP code and execute it. Is there a command that will let me do that? Maybe something like
    php_exec(). I suppose I could always use some sort of shell_exec("php .exe...") trickery but would prefer something more graceful.

    -CF


  • Andy Hassall

    #2
    Re: execute string

    On Tue, 13 Jan 2004 19:50:33 -0500, "ChronoFish " <deja@chronofis h.com> wrote:
    [color=blue]
    >I would like to load a string with PHP code and execute it. Is there a command that will let me do that? Maybe something like
    >php_exec(). I suppose I could always use some sort of shell_exec("php .exe...") trickery but would prefer something more graceful.[/color]



    Be __very__ careful what you pass to it.

    --
    Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
    <http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>

    Comment

    • ChronoFish

      #3
      Re: execute string


      "Andy Hassall" <andy@andyh.co. uk> wrote in message news:2f5900574p ovr9j1o65fvgvvt a55ujmf13@4ax.c om...[color=blue]
      > On Tue, 13 Jan 2004 19:50:33 -0500, "ChronoFish " <deja@chronofis h.com> wrote:
      >[color=green]
      > >I would like to load a string with PHP code and execute it. Is there a command that will let me do that? Maybe something like
      > >php_exec(). I suppose I could always use some sort of shell_exec("php .exe...") trickery but would prefer something more[/color][/color]
      graceful.[color=blue]
      >
      > http://uk2.php.net/manual/en/function.eval.php
      >
      > Be __very__ careful what you pass to it.
      >
      > --
      > Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
      > <http://www.andyh.co.uk > / <http://www.andyhsoftwa re.co.uk/space>[/color]

      Thanks!

      This was exactly what I was looking for. I missed it on the function list.

      -CF


      Comment

      Working...