How to handle Basic PHP Sessions?

Posted by Jay     Tags: , , 15 October, 2009    1,291 views    (1) Comment

A session is a way to store information (in the form of variables) to be used across multiple pages. Unlike a cookie, specific variable information is not stored on the user computer. It is also unlike other variables in the sense that we are not passing them individually to each new page, but instead retrieving them from the session we open at beginning of each page. Call this code test_session_page1.php <?php // this starts the session session_start(); // this sets variables Read Full Article (Click here)...

Categories : Web & Scripts Tags : , ,

Apache/PHP: $_FILES Array is returning empty. How to resolve?

Posted by Jay     Tags: , , 16 September, 2009    4,630 views    (3) Comment

I came across the frustrating issue of the day: A file upload form that’s been working for a long time, suddenly fails. No file uploads work on the entire apache installation. Checking the drive space in the /tmp folder, even though GB is left, freeing up space reveals that if there isn’t a lot of free space left for /tmp, the $_FILES array just goes empty without further explanation. No useful error messages or anything. $ _ FILES[”$Varname”][”tmp _ name”]; What are the possible Read Full Article (Click here)...

Categories : Web & Scripts, Web Blog! Tags : , ,

The Importance Of The PHP Configuration File – Apache, Wordpress and Firestats.

Posted by Jiltin     Tags: 24 July, 2009    6,946 views    (1) Comment

One of the most powerful features of PHP is the ability to customize its behavior through a configuration file. In this first article, we’re going to cover some of the ways the php.ini file can be used and how it might help you. The second article will outline in detail many of the more frequently used directives of the php.ini file. Using the PHP configuration file can make administration of PHP as simple as administration of Apache! Depending on your web server preferences, that could Read Full Article (Click here)...

Categories : Web & Scripts, wordpress Tags :

PHP’s Scalability and Performance comparison over Java – Digg model

Posted by Jiltin     Tags: , , 17 July, 2009    2,054 views    (1) Comment

Both Java and PHP run in virtual machines, which means that neither perform as well as compiled C or C++. In the great language shootout, Java beat PHP on most of the performance benchmarks, even substantially on some. However, overall the two languages were not an order of magnitude different. In addition, many versions of PHP was used in the test, and substantial performance improvements have been made since and are continuing to be made. Here is the article from oreillynet: PHP scales! The Read Full Article (Click here)...

Categories : Technology Tags : , ,

php – reference

Posted by Jiltin     Tags: 7 July, 2009    438 views    (0) Comment

This Post will be continuously updated with comments, help text about php and the usage: Question: What the difference between include() and include_once() was. php.net says include_once only includes a file once. Does this mean if I use include() I can access variables from the included file anywhere in my script? Answer:include_once() will not include a file that has already been included. include() will include a file every time. include_once() is useful if you have php scripts which Read Full Article (Click here)...

Categories : Web & Scripts Tags :