-
Posts
146 -
Joined
-
Last visited
Posts posted by ShivaGupta
-
-
i use this to get current hour info.
$now = Date("h");
but here is a prov .i get result as am pm eg 08 pm.but i want as 24hours eg 20.
can u help me out plz.
-
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" />
-
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:
i dont want to getting the output back and echoing.i want to
php execute as background process @same time..plz help me out.
-
post ur code in code aria.use this <> for code posting.
-
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.
-
how to save php output as log.txt?
plz give any example .tryed myselfe but no luck.
-
-
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\u\sign.php on line 138
i have this error at my xmpp windos .
i tryed
set_time_limit(0);
but no luck.
$next = "can u help me out plz" ;
-
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.
-
flush(); ob_flush();
code not give any live output on godaddy hosting.
plz help me for get liveoutput php output on the godaddy hosting.
-
<?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
-
First, do not double post.
Second...what? Your question makes no sense.
just want a examle to send this post data.
-
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.
-
i am working with a project that need Audio to Text Conversion .possible with php plz help.
-
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.
-
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
-
$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
-
i want to redirecting output(string) to result.txt.plz help again thank u
-
<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> -
STEEL NO REPLY FROM ANYONE I THINK SOMETHING WRONG WITH MY QUECTION. .ALL DONT HAVE ANY ANSWERS OR I HAVE BAD ENLISH TO PUBLISH MY QUECTION .ANY WAY. Q CLOSED.
-
@
boompa this is not a nice reply ...at the search we will find all answers but we want quik reply.........so if u able post here otherwise ................. -
your text looks a little big, try decreasing the size.
-
i am using this code for cookies.
$cookie = tempnam("/coki", "CURLCOOKIE"); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
steel geting Your Account Session Expired! Please Login Again.
is their any better example to manage Session?
plz help me out.
-
<?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];
?>
need help with time.
in PHP Coding Help
Posted
Thank You Sir.