www.webdeveloper.com
Results 1 to 4 of 4

Thread: execute php command

  1. #1
    Join Date
    May 2003
    Posts
    225

    execute php command

    I wish to execute a (internal) php command. Somthing like the exec function, but it runs php commands, like the exec in javascript. somthing like this:
    PHP Code:
    $var_1='ecec';
    $var_2='command';
    ecec($var_1.$var_2."_();"
    would run:
    ececcommand_();

    Is there a function in PHP that does this?

  2. #2
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Not sure what you need, but perhaps eval()?

  3. #3
    Join Date
    May 2003
    Posts
    225
    sorry if you didn't understtand me...
    And, yes it is what I needeed!

  4. #4
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    hehe... Guess I must have understood you well enough then.

    Cheers!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles