Regex in PHP
If you want to use regular expressions in your PHP program the best way is to use so called preg-functions (they wrap Perl-Compatible Regular Expressions library so sometimes they are called PCRE...
View ArticleScraping in PHP with cURL
In this post, I’ll explain how to do a simple web page extraction in PHP using cURL, the ‘Client URL library’. The curl is a part of libcurl, a library that allows you to connect to servers with many...
View ArticleUsing DOMXPath for parsing page content in PHP
The DOMXPath class is a convenient and popular means to parse HTML content with XPath. After I’ve done a simple PHP/cURL scraper using Regex some have reasonably mentioned a request for a more...
View ArticleException handling in php scrapers
Suppose we want to set only one exception handler function for all exceptions in the scraper program. This exception handler might be working for a multi-level program. Here is how it works in PHP. At...
View ArticleHow to insert and configure reCAPTCHA NO CAPTCHA code in php
We’ve already introduced you to the theory behind the new NO CAPTCHA reCAPTCHA, but now we come to the practical integration part. Here we’ll share how to insert and configure “NO CAPTCHA reCAPTCHA”...
View ArticleAuth in bot-proof login form with PHP Curl and JavaScript
Recently I was challenged to make a script that would authenticate through a bot-proof login from and redirect to a logged in page. Main concept The form is here. Through a web sniffer I’ve found out...
View ArticlePhp Curl download file
We want to show how one can make a Curl download file from a server. See comments in the code as explanations. [crayon-5a05389e9076a133607853/] The post Php Curl download file appeared first on Web...
View ArticlePHPxcel for importing and exporting data in working with Excel
Sometimes when you are developing a project, it might be necessary to do a parsing of xls documents. To give an example: you do a synchronization between xls worksheets and a website database, and you...
View ArticleWeb parsing php tools
Almost all developers have faced a parsing data task. Needs can be different – from a product catalog to parsing stock pricing. Parsing is a very popular direction in back-end development; there are...
View ArticleSQL-injection: how to use them and how to defend against them
SQL (Structured Query Language) is a powerful language for working with relational databases, but quite a few people are in fact ignorant of the dark side of this language, which is called...
View Article
More Pages to Explore .....