Apr 07, 2011 — 3 comments
In this tutorial you will learn how to build a PHP script that scrapes links from any web page. The lesson covers extracting content from a site using cURL, parsing the content with PHP's Dom functions, finding links using XPath queries, and storing the links in a MySQL database. Legal issues associated with scraping content is discussed at the end of the tutorial.
If you want to impose restrictions on age when people visit your website, or sign up, you'll need to calculate a user's age through a form - since web servers aren't psychic - yet.
Forums are a very hard aspect of a website to monetize. Often, it’s where most of the action takes place and it’s another powerful tool in generating organic traffic through the vast amounts of user generated information that is churned out on a daily, weekly and monthly basis. Quite a few sites out there think its fine to place annoying double underlined link scripts all over the forums. I guess that’s fine – whatever rocks your world, even though the majority of users prefer otherwise
Most of us webmasters use adsense for our websites. Havent you just like me wanted to get the stats via PHP directly into your own script? Here is how to get channel data with a script ready to use.
Create a copy of an image as a thumbnail. You get a great function that use the GD library to create the new thumbnail file.
ilesystem access is used to create, delete, open and close files. Most importantly it can be used to store data in a file and to retrieve data from a file. If used creatively it can be used in place of mySQL.
In the previous part of this tutorial we have learned how to define a new project in Dreamweaver CS3, how to design a database, how to connect to the database using Dreamweaver's build in tools and how to create a template and apply it to our pages. In this part of the tutorial we have a look at how to create a control panel to manage our links.
Making use of MySQL and its databases will enable you to more fully enjoy the potential of PHP. Here is a look at creating a table in your MySQL database.
Learn quick PHP functions which allow for the selection of pseudo-random numbers out of the generator. See how to implement different options based upon the results of the number, and view a table with descriptions and usage examples of the functions involved.
Test your server's ability to use GD image manipulation through this script. If installed and supported, the GD library allows you to use CAPTCHA image verification and other forms of dynamic images.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?