Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > ambitious mysql/php project

ambitious mysql/php project
Thread Tools
Junior Member
Join Date: Nov 2001
Status: Offline
Reply With Quote
Feb 11, 2003, 09:55 PM
 
I keep track of my stocks in an excel worksheet, but this involves logging onto the website, getting my numbers, and punching them in manually. In a few weeks, there will be two weeks when I won't be at a computer every day, and I don't want to lose that much data, so I'm trying to figure out a way to have it all done automatically. i want to import all of my data into a mysql database, and have a few webpages that manipulate the data in different ways (I know how to do all that). The part I don't know how to do is how to render the html from the password protected website to grab my daily info, and import that info into the database. Any good tools out there to do all of this? Thanks

Ben Bargagliotti
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Feb 12, 2003, 01:47 AM
 
Originally posted by benbargagliotti:
The part I don't know how to do is how to render the html from the password protected website to grab my daily info, and import that info into the database. Any good tools out there to do all of this? Thanks

Ben Bargagliotti
Curl + the good options + crontab.

Man is your friend.
     
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Feb 12, 2003, 08:27 AM
 
Note that curl-lib is accessible from PHP, if it's compiled in (as it is in the Marc Liyange packages).

Then just go to http://www.php.net/curl to read up on how to set the options. Depending on the method of authentication your website uses, it may be easy or difficult to log in using curl. (Easy == HTTP authentication, or cookies. Harder == CGI POST with a Javascript interaction)

Good luck!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:36 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2