Tag Archives: php

Javascript and PHP Size Based Styles

Javascript and PHP Size Based Styles So you want to support different screen resolutions do you? Well, it is possible too much difficulty by creating a multiplexer for CSS files. This solution I am speaking about involves creating several style … Continue reading

Posted in Javascript Development, php development, Web Development | Tagged , , , , | 1 Comment

MySQL Singleton Class to allow easy and clean access to common mysql commands

The MySQL Database class is implemented using the singleton design pattern. This design pattern allows for only one single instance of the object. This one instance can then be obtained through a static method. This provides a convenience in that … Continue reading

Posted in MYSQL, php development | Tagged , , , | 3 Comments

Database PHP Session Handling

Database PHP Session Handling As you should be aware the HTTP protocol, as used for serving web pages, is completely stateless. This means that after the server has received a request, processed it and sent a response, the process which … Continue reading

Posted in MYSQL, php development, Uncategorized | Tagged , , , | Leave a comment

Plesk RHEL 5.2 500 Error Virtualhosted Sites

Upon receiving a 500 error on multiple sites due to what appears to be an update to Plex followed by an update to RHEL5, we have found a way to track the issue early and resolve quickly. There is a … Continue reading

Posted in Server Development, Uncategorized | Tagged , , , , , , | Leave a comment

How to ZIP files with PHP

Most web servers these days run on a LAMP configuration (Linux, Apache, MySQL, PHP). Because the Operating System is Linux, the default archival and compression utilities are TAR and GZIP resulting in files like “filename.tar.gz”. There is nothing wrong with … Continue reading

Posted in php development, Web Development | Tagged , , , | Leave a comment

Restoring MySQL Dump with PHP

As web developers, we are usually tasked with deploying a project to a production server that we don&squo;t always have access to. And in most cases the projects require a database. The usual plan of action consists of running a … Continue reading

Posted in php development, Web Development | Tagged , , , , | 1 Comment

Gzip Headers in Php Output

Gzip Headers in Php Output I have noticed wierd binary characters being generated after var_dump of ( $_POST, $HTTP_POST_VARS, and $_REQUEST ) when debugging CMS code. Before these characters there were empty array(0){} statements in the output.

Posted in C Programming | Tagged , , , | Leave a comment