PHP download script for big files

Today i had a task at one customer where a directory of files needed to be downloaded using a PHP script. For one strange reason the script failed and the browser displayed a File not found error. I couldn’t for a while figure out what was happening. But after some test it was obvious that [...]

Share

Why the internet isn’t a safe source of information

Because there are people out there writing articles like this.  Lacking any kind of logic and mixing apples with oranges, the autor does a very poor job of showing the public why Ruby may be better then PHP.  Let’s see my ideas about his rants 1) Human-readable code – this mostly depends on developers, as [...]

Share

Enabling PHP file uploads in TYPO3 Backend

At one project i’m working on i had to upload php files in a TYPO3 backend form. But the form was just throwing me the message that php files are not allowed as uploads. After some digging i found the solution to this problem. Actually it’s quite easy to fix. The only thing you need [...]

Share

Weekly article batch 3

From this week i will try to resuscitate my weekly article batches. Here is the most interesting articles from the last week: Drupal 7 Vs. WordPress 3: Battle Of The New Features : an interesting read about the two highly anticipated open-source CMS releases of the year. You guessed correctly. Its about Drupal 7 and [...]

Share

Importing large files into a MySQL database

From time to time i have to insert really large files into MySQL. And sometimes there are problems because you don’t have access to the mysql command line utility from the server to issue the source command (this lets you import dumps or sql files). So you have to use phpMyAdmin or some other web [...]

Share

Weekly article batch 2

Here is the second edition of my weekly “press review” Interesting articles last week: Gartner report on PHP – published by Danne Lundqvist on dotvoid.com – writes about a report by Gartner (here) that makes it clear that more and more companies discover the benefits of PHP and adoption is increasing among major companies. A [...]

Share

Weekly article batch. Edition 1

I read many articles and most times i don’t bookmark them even if they are fairly good articles and can be useful in some situations. I thought i should save them somewhere, but they are not so important to be added to bookmarks. So starting with this year i will publish a post with these [...]

Share

10 Principles of the PHP Masters

A great post published by Internet Resources explains 10  principles of some of the most popular PHP programmers. In short here are the 1o principles of the PHP Masters and the name of the programmer bolded. I will only list them. For more details head over to the original post. Use PHP Only When You [...]

Share

PHP 5.3 is here!

The PHP team announced the immediate release of the much anticipated  PHP 5.3 This version is a major step forward for PHP which introduces namespaces,native closures, late static bindings and optional garbage collection for cyclic references, jump label (g0to). Also a handful of new extensions have been introduced (ext/phar, ext/intl and ext/fileinfo) and Windows support has [...]

Share

How to make a permanent (301) redirect with PHP

Often we need to redirect permanently a page to a new location and this can be accomplished in many ways. I will discuss today the PHP method because this is the one i most often run into. So you can make a header redirect with php in the following manner: <?php header(“Location: /example.php”); ?> But [...]

Share

You can run PHP on Google App Engine

It seems that some people figured out how to run PHP on Google App Engine.  You may be wondering how this is possible as Google doesn’t support PHP on App Engine. Well its possible because recently Google announced Java as the newest programming language supported by the App Engine.  And this made possible to run Quercus [...]

Share

How to build a clickmap using PHP and jQuery

I’ve found a great article on the topic of tracking clicks and creating a clickmap using PHP and jQuery. The article explains how to Record the X and Y coordinates of the mouse cursor when it is clicked on a web page. Save those coordinates to a database When called, display a “clickmap” on top [...]

Share

Interest for PHP is declining ?

Google Insights for Search is an interesting tool, it allows you to take a look at what people are serching for in different parts of the world and how is the volume of search evolving for a keyword in a specific part of the world or worldwide. I played a bit with Google Insights and [...]

Share

How to create SVG images with PHP

I’ve just found a nice tutorial on how to create SVG images with PHP.  This is a great example, explained step by step on how to generate all kinds of images. And after you read it, you will see that this is not so hard as you might have tought.

Share

How to scrape webpages using PHP and XPath

If you need to extract information from remote webpages you can read this article about how to do it with PHP and XPath. The autor explains how extracting information can be very easy and it can be done in no time (less then 5 minutes) with the mentioned tools and without the use of regular expressions.

Share
Get Adobe Flash playerPlugin by wpburn.com wordpress themes