#1
  1. No Profile Picture
    `tantrum
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi, I'm a newbie to php coding and i would really like to know if and how the following can be done...
    Just say...your site is devshed.com and u have a search which looks through a certain database (the search throught the database is no problem).
    But...you want the database to be automatically updated with information from an external site...For example, nightly, an online script/program checks microsoft.com/index.html for all blue links of font size +2 and adds them to the database.
    Can this be done and if so could someone point me in the right direction?
  2. #2
  3. No Profile Picture
    gash
    Guest
    Devshed Newbie (0 - 499 posts)
    Try reading up on your fopen(); function.
    In this case you could use it to:

    $filepointer = fopen("http://www.microsoft.com/", "r");

    setting the filepointer to the beginning of the returned file using "read only". Now all you have to do is search for your desired string.

    Try and experiment with it and tell me how it works out.
    /Gash
  4. #3
  5. No Profile Picture
    `tantrum
    Guest
    Devshed Newbie (0 - 499 posts)
    Thanks! I'll do a bit of reading then tell you how it goes...if it goes.

Similar Threads

  1. How to write a PHP script to remove a file?
    By xmxpcom in forum PHP Development
    Replies: 2
    Last Post: February 16th, 2004, 06:58 PM
  2. How to see the Memory used by a PHP script?
    By Pardall in forum PHP Development
    Replies: 4
    Last Post: February 13th, 2004, 04:54 PM
  3. shedule php script
    By almedo in forum PHP Development
    Replies: 5
    Last Post: February 11th, 2004, 02:54 PM
  4. Change this PHP script to use NETPBM instead of GD
    By hknight in forum Project Help Wanted
    Replies: 1
    Last Post: February 10th, 2004, 12:46 PM
  5. Replies: 1
    Last Post: February 4th, 2004, 02:39 PM

IMN logo majestic logo threadwatch logo seochat tools logo