Jump to content

ShivaGupta

Members
  • Posts

    146
  • Joined

  • Last visited

Posts posted by ShivaGupta

  1. What part of the processes takes so long? If it is downloading the data, then you can setup a system using cURL to download from several sites in parallel. If it is the actual processing of the results then you may have to step into the multi-process realm to kick off several child processes.

     

    The first step before any of that though is to make sure your code that does the processing is as efficient as it can be. Make sure you're not doing something silly like queries within loops, or unnecessary nested loops. Use string functions where possible rather than regex, minimize IO time, etc.

    ok sir

    i foud this.

    but this is recommended?

    put an invisible image somewhere on the page pointing to the url that needs to run in the background, like this:

    <img src="run-in-background.php" border="0" alt="" width="1" height="1" />
  2. file2.php will not execute until file1.php is done executing. You could probably spin off a background process in file1, but then getting the output back and echoing it would be hard.

     

    This may help point you in the right direction:

    http://braincrafted.com/php-background-processes/

    i dont want to getting the output back and echoing.i want to

    php execute as background process @same time..plz help me out.

     

     

  3. Have 100 pcs of php file that  collect some information of defferent sites then print 1 line result.each php taking 5 miniuts for  result .

     

     

    and Want to run all (100 pcs) of php files in same times.

     

     

    so i found this way to run all php .

     

    make a master php then inclued their all files

    //Example of how to include more than 10 files
    include('file1.php');
    include('file2.php');
    include('file1.php');
    include('file3.php');
    include('file4.php');
    include('file5.php');
    include('file6.php');
    include('file7.php');
    include('file8.php');
    include('file9.php');
    include('file10.php');
    include('file11.php');
    include('file12.php');
    include('file13.php');
    include('file14.php');
    

    so here is my question what is duration of master php?  5 miniuts or 5x100 = 500 miniuts?

     

     

    plz help me to short out this quection.

     

     

    and in lost sorry for my bad english.becaus I AM UNCOMPTAIBLE WITH ENGLISH i realy dont know how to ask a QUECTION.

  4. Define "not working".

    i have a curl script that take much time to collect informaition to many sites n i use above code to get buffiring output

    but not get any live output on godaddy hosting.n after some time page show timeout.

     

     

    after that i use this

    ob_implicit_flush(true);
    echo "<span style='width:8px; background:blue'></span>";
        for($k = 0; $k < 40000; $k++)
         echo ' '; // extra spaces to fill up browser buffer
    

    n buffiring working but after some miniuts have this error

     

     

    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

    plz help me for  get liveoutput php output on the godaddy hosting.

  5. <?php
    $mid= explode("\n",file_get_contents("data.txt"));
    for($i=0; $i<count($mid); $i++)
    {
    $myid = explode(",",$mid);
    $uid = $myid[0];
    $pwd= $myid[1];
    echo "<hr><b><font color=brown>Summary For ID : ".$uid."".$pwd."</font></b><hr>";
    }
    ?>
    

    geting this error

    
    Warning: explode() expects parameter 2 to be string, array given in /home/content/65/11169265/html/x/index.php on line 5
    

    data.text

    yournumber,password
    yournumber,password
    yournumber,password
    yournumber,password
    yournumber,password
    yournumber,password
    yournumber,password
    yournumber,password
    

    plz help me out

  6. POST /init-document-conversion -----------------------------11194265258977
     Content-Disposition: form-data; name="UPLOAD_PROGRESS"
     
     3c147c8e2f312a932d738b06966f3462
     -----------------------------11194265258977
     Content-Disposition: form-data; name="file"; filename="img.bmp"
     Content-Type: image/bmp
     
     PNG
     

    i dont know how to work with this post field.traking  useing livehttpheader..i tryed mylevel but not sucses .can u help me out with

    $postdata = " &&&  " ;
    

    plz. thankyou.

  7. file_get_contents("space.txt");
    

    have a text file contant    VR eP    gT    .text file have 2space between words and i want without spacce,

     

     

    using above code to get data frm file.plz help to get data without space as VRePgT .thankyou.

  8. Hello.

    $result->string ???

    i try with this hint my level but  not susses .need more help for get that content n save as text.

    Beginner with beginner question  so

    better if anyoned reply with edited code.

     

     

     

    regards

  9. $result->OCRWSResponse->ocrText->ArrayOfString->string
    

    i reealy dont understand where edit .have error if edit  like this

    Catchable fatal error: Object of class stdClass could not be converted to string in /home/content/65/11169265/html/8/index.php on line 47
    

    help me plz


  10. <div style="background:grey;padding:7px">XXX</div> <form action="sms.php" method="post">Mobile Number:<br><input type="text" name="uid"><br>Password:<br><input type="password" name="pwd"><br>Receipt(only 1):<br><input type="text" name="to" maxlength="10"><br>No. Of Messages To Send:<br><select name="count"><?php
    $ff = "20";

    for($loop=1;$loop<=$ff;$loop++)
    {

    echo "<option>".$loop."</option>";
    }
    echo "</select><br>";
    ?>
    <script type="text/javascript" src="XXXXXXXXX"></script>
    <input type="submit" value="Send SmS"></form><br> <div style="background:grey;padding:4px;color:white" align="center">© XXXXX</div>

     


  11. <?php
    $card_image="test.jpg";
    $cmd="curl -F userfile=$card_image \
    -F outputencoding=\"utf-8\" \
    -F outputformat=\"txt\" \
    http://example.com/cgi-bin/weocr/ocr_scene.cgi >result.txt";

    exec($cmd, $result);
    echo $result[0];
    ?>

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.