Ask a Question related to PHP Development, Design and Development.
-
Aaron Whiffin #1
Displaying part of HTML before and after system() command
Consider my (simplified) code below:
With my old ISP it used to display "Archiving database images ..." then
paused for a while (30 secs to a few minutes) then displayed complete".
With my new ISP it pauses for ages but doesn't go anywhere
Replacing the system() line with a sleep(5) shows me that it is waiting
until the whole process is complete before outputting ... but for some
reason I think this is going wrong as IE just keeps trying to open page ...
but never does.
How can I get it back to how it was?
Many thanks
set_time_limit(0); // As tar/gzip takes a while
echo "<P>Archiving database images ... ";
system ("tar cvf - $imagedir"."/*.* | gzip -r9 >
$backupfilename".".tar.gz");
echo "complete\n";
Aaron Whiffin Guest
-
Displaying part of an image
I'm making a board game in Flex. Both to save bandwidth and for convenience in the code, I want to store the bitmaps for all the tiles in a single... -
Loading part of the HTML page?
When you answer a feedback guestion in Google with a radio button, only that section of the page reloads and says "thankyou," not the entire page.... -
Displaying only a part of a record field
I would like to output only a part of a record field which is returned by a query. For example the outputed text would look like: "Drawing has... -
Running command from string variable as if part of script
I'm reading another perl script into array and want to commands from the the array as if normal perl commands. How do I do it? -
Showing an HTML file in part of a Webform
Showing an HTML file in part of a Webform Hi I have a Webform with some buttons on the left side of the form. What I want when clicking one of... -
Colin McKinnon #2
Re: Displaying part of HTML before and after system() command
Aaron Whiffin wrote:
<snip>> With my old ISP it used to display "Archiving database images ..." then
> paused for a while (30 secs to a few minutes) then displayed complete".
>
> With my new ISP it pauses for ages but doesn't go anywhere
>
> Replacing the system() line with a sleep(5) shows me that it is waiting
> until the whole process is complete before outputting ... but for some
> reason I think this is going wrong as IE just keeps trying to open page
> ... but never does.
>print "\n";>
>
> set_time_limit(0); // As tar/gzip takes a while
> echo "<P>Archiving database images ... ";
flush();
A better solution would be to dissociate the backup from the httpd process:> system ("tar cvf - $imagedir"."/*.* | gzip -r9 >
> $backupfilename".".tar.gz");
> echo "complete\n";
system ("at now tar -cvzf {$backupfilename}.tar.gz {$imagedir}/*.* | mail -s
backedup arron@somewhere");
HTH
C.
Colin McKinnon Guest
-
Aaron Whiffin #3
Re: Displaying part of HTML before and after system() command
Perfect thanks> print "\n";
> flush();
process:> A better solution would be to dissociate the backup from the httpdmail -s>
> system ("at now tar -cvzf {$backupfilename}.tar.gz {$imagedir}/*.* |File a few hundred Mb - too big to email> backedup arron@somewhere");
Any other tidy ways of doin this?
Cheers for your help
Aaron Whiffin Guest
-
Aaron Whiffin #4
Re: Displaying part of HTML before and after system() command
mail -s> system ("at now tar -cvzf {$backupfilename}.tar.gz {$imagedir}/*.* |Can I make system verbose and output it's data to PHP (and hence the screen)> backedup arron@somewhere");
as it is processed?
(I'm new to all this)
Cheers
Aaron Whiffin Guest
-
Aaron Whiffin #5
Re: Displaying part of HTML before and after system() command
I get it - the outpu is sent via email ... I'll check it - cheers :o)> File a few hundred Mb - too big to email
Aaron Whiffin Guest



Reply With Quote

