Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Web Design & Development Web Design & Development
Search Search
Search for:
Tech Support Guy > > >

auto save particular text in div


(!)

djpeace's Avatar
djpeace djpeace is offline
Member with 2 posts.
THREAD STARTER
 
Join Date: Jul 2012
18-Jul-2012, 11:11 AM #1
Exclamation auto save particular text in div
http://www.ubid.my/auction/5159-Appl...d-64GB-Wifi-4G

Is there any way I can auto save the text in div=bidderinfo every 20 minutes?
dukevyner's Avatar
dukevyner   (Luke) dukevyner is offline
Computer Specs
Member with 787 posts.
 
Join Date: Nov 2011
Location: Pakenham, VIC, Australia
Experience: Advanced
19-Jul-2012, 08:45 AM #2
welcome to T.S.G if you have a web server with php available to you then you could do this
Quote:
<meta http-equiv="refresh" content="1200"><?php $code = implode(file("http://www.ubid.my/auction/5159-Apple-New-iPad-64GB-Wifi-4G")); $codedelete = substr ($code, 0, (stripos ($code, "<div id=bidderinfo")+30));
$code = str_replace ($codedelete, '', $code); $info = current(explode("</div>
<div id=autobidbox>", $code)); echo $info;?>
Although this won't save anything, but it does get the info...which is the hardest step... I hope this points you in the right direction... if i get a save script working i will update

Hope this helps

-Luke

Last edited by dukevyner; 19-Jul-2012 at 08:51 AM..
djpeace's Avatar
djpeace djpeace is offline
Member with 2 posts.
THREAD STARTER
 
Join Date: Jul 2012
20-Jul-2012, 11:17 PM #3
thx, i hope i can use it in future.
dukevyner's Avatar
dukevyner   (Luke) dukevyner is offline
Computer Specs
Member with 787 posts.
 
Join Date: Nov 2011
Location: Pakenham, VIC, Australia
Experience: Advanced
21-Jul-2012, 02:51 AM #4
Hello again... sorry have been busy... just completed the timed save...
Quote:
<meta http-equiv="refresh" content="1200"><?php $time = date('m.d-H:i:s'); session_start(); if($_SESSION['info'] !=''){$content = $_SESSION['info'];
$fp = fopen(''. $time. '.txt', w);
fwrite($fp, $content);
fclose($fp); unset($_SESSION['info']);} $code = implode(file("http://www.ubid.my/auction/5159-Apple-New-iPad-64GB-Wifi-4G")); $codedelete = substr ($code, 0, (stripos ($code, "<div id=bidderinfo")+30));
$code = str_replace ($codedelete, '', $code); $info = current(explode("</div>
<div id=autobidbox>", $code)); $_SESSION['info'] =$info;?>
Leave this page open... it will refresh every twenty(20) mins to to get the data you requested.... this will create a lot of txt files on your server... bewarned
NOTE: this is in PHP this will create a file with the current month, day, hour, and sec as the name ex. 07.21-02:46:45.txt... this page MUSTbe open in a browser to work
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑

Content Relevant URLs by vBSEO 3.3.2