Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, Here is my problem, i have to upload a zip file and process it... i want to do it as background process in php. Once the file is uploaded(and ...
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile php and multitasking

    Hi,
    Here is my problem,
    i have to upload a zip file and process it...
    i want to do it as background process in php.
    Once the file is uploaded(and after clicking upload button) it invokes say,fun1()

    /* some php codes */

    fun1()
    $f=popen("/root/Desktop/dbstuff.php","r");
    pclose($f);
    ------------------------
    dbstuff.php is the separate program accessing database which should run as background
    process
    when i run the program in standalone its working but it's working using broser
    popen() is not seems to be working...how to establish this ....
    --------------
    I guess this is similar to fork() and exec() in unix system calls.
    but i don't have any idea to do similar in php...
    Thx.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    ...it's sloved ...we forgot to provide access to our group in /etc/sudoers file
    and now exec() works fine with php
    Thanks.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...