Mastering PHP: From Errors to Yielding Results Introduction: Are you ready to dive deep into the world of PHP? From handling errors to utilizing advanced concepts like closures and generators, this blog will take you on an insightful journey through the intricacies of PHP development. Types of Errors in PHP …
Read More »Is Learning PHP in 2023 or 2024 Worth it? Pros, Cons & Career Insights
Should You Learn PHP in 2023 or 2024? Introduction: Considering the dynamics of the programming world, it’s crucial to weigh the relevance and prospects of learning PHP in 2023 or 2024. In this blog, we’ll explore the evolving landscape of PHP and its implications for your career path. Pros and …
Read More »Drupal and Varnish a short introduction
Varnish is a HTTP accelerator (or reverse proxy). Its very much capable of processing 100,000 requests in a sec. Most likely quicker then Drupal, even with page caching on. Want to see how it works? Cache hit User requests a URL Varnish checks it’s cache Varnish retrieves the data …
Read More »Drupal Profiling & Performance Analysis for Optimization: Finding Bottlenecks in Your Application
This is the age of information technology. There are two most crucial & critical factors which could make or break any online business are availability and super faster loading of web pages. Hence, as a webmaster, you must need to ensure that the end-user experience of your website is robust, …
Read More »Bad Request Your browser sent a request that this server could not understand
I faced the problem when I was configuring the Drupal for Facebook module to add a Facebook registration form. I tried couple of things but none of them worked. So after banging my head I found out that this is due to “GET request limit” set in your server …
Read More »Adding dynamic form elements using AHAH in Apply for for role Module
In Drupal AHAH is the best practice for adding removing from elements dynamically I am not going to explain the basics if anyone want to learn what is AHAH go to http://drupal.org/node/331941. I have been using apply for role module in the registration form. I got a task form my client …
Read More »Increase Drupal Performance by using Memcache
When site starting to get bigger with thousands of users and millions of records in database and lots of traffic performance becomes a major issue. Drupal is very powerful tool but it requires some fine tuning. I have built sites with thousands of users and hundreds of modules. What is …
Read More »How to automatically get the contents of a website using the PHP cURL library
We needed to get the description of a site automatically from its url after parsing the HTML markup, for one of the Drupal sites we were working on. This is a task that can be easily accomplished by using the PHP curl library. Read on to know how to use …
Read More »Six Ways of Retrieving Webpage Content In PHP
There are so far 6 ways of Getting webpage content (full HTML) in PHP are most commonly used. The methods are using file() fuction using file_get_contents() function using fopen()->fread()->fclose() functions using curl using fsockopen() socket mode using Third party library (Such as “snoopy”) 1. file() <?php $url='http://blog.oscarliang.net'; // using file() function to …
Read More »How to crawl a website
The word “crawling” has become synonymous with any way of getting data from the web programmatically. But true crawling is actually a very specific method of finding URLs, and the term has become somewhat confusing. Before we go into too much detail, let me just say that this post assumes …
Read More »