Hi I'm a newbie in php, in fact im so new i ain't sure how im supposed to do this, most of my studies have focused on javascript and c++ and i didn't really touched HTML interactions.
Now I'm on my OJT (On the Job Training) and have been given a project I'm not really sure how to code.
I've been tasked with the creation of a web spider, this spider should be able to open a specific website and grab all the hyperlinks found there, then it should add said links to a database, i have some ideas regarding the database part so im not really concerned there, the problem is im not sure how to script the crawler itself, could anybody please give me a sample code that would allow the script to access a site and read its contents?
I know for senior programmers this job is a 30 minute code but for me I dont really know where to start, and help would be appreciated.
Thanks.