GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   im using php and crontab.. but ... (https://gfy.com/showthread.php?t=85469)

a1ka1ine 10-30-2002 07:46 AM

im using php and crontab.. but ...
 
hey all you techie porno guys..

im using php for my pages, only get about 11k a day, but i set crontab up with wget to save a copy of the page, but once every twenty minutes if a user goes to the page at the same time as it is being written, then it comes up with a blank page of course...

anyone got any ways around this??

many thanks... :-D

pipp 10-30-2002 08:06 AM

How large is this cronejob since it's a problem should be secounds unless you're rewriting some serious shit. You could make the cron save the new file as new.html then rename old.html to backup_date.html and rename new.html to old.html should go faster if you're rewriting takes a long time

buran 10-30-2002 08:16 AM

what he said, store the wget results in temp.filename.php, then mv temp.filename.php filename.php when it's done

a1ka1ine 10-30-2002 09:13 AM

yeh that makes sense, ill do that, thanks you guys.


All times are GMT -7. The time now is 03:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123