Run comand line php over the web using php

Discussion in 'PHP' started by Broun, Feb 1, 2008.

  1. #1
    I have a command line php (not mine, from cartocamp) which i can run on command line by issuing the following commands:
    cd C:\ms4w\apps\cartoweb3

    php cw3setup.php --clean

    php cw3setup.php --install --config-from-file path_conf_file/conf_file.properties
    What it does is clean the folder system and setup a map application again.
    I wrote php code that creates this map application, creates the config_file and a batch file. I then wrote the following php command to run this application but it doesnt work and i have no idea why.

    $run = pclose(popen('start /b '.$batchbase.'\\'.$dir.'.bat', 'r'));
    PHP:
    thank you
     
    Broun, Feb 1, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    jayshah, Feb 1, 2008 IP