How to Get the Current Page URL
In some cases, you might want to get the current URL of the script that is being executed. I haven’t yet found a convenient one-line function that is built-in into PHP and thus I’ve wrote the following function to do it: /** * Returns the current URL of the script. * Usage: $url = cur_page_url(); ...
Installing eAccelerator on Ubuntu
If you have a small server for your own use (such as your personal page) or have a busy server servicing a lot of php requests you might find it a good idea to install some goodies in order to optimize the performance of your machine. A really good start might be installing the eAccelerator. The eAccelerator...
Apache with multiple PHP Versions
This is the third part of our Gentoo tutorials. In the first two parts we have installed Gentoo from the minimal installation disc and added some interesting applications and utilities. In this third part we will install an apache webserver with several different php versions. I will use php4 and php5,...
PHP Checkbox values
This one puzzled me for some time… may be I’ve overlooked the php documentation, but I couldn’t find how to make use of the standard checkbox and return the selected values as an array from a simple form. In the end, it turned to be easy. Consider that we have the following form: <html> <form...
Setup your own server with Ubuntu 7.10 server edition
In this article we will guide you through the Ubuntu 7.10 server edition installation process. If you have an old piece of hardware and would like to make it a server or you need a LAMP server where you can host your website you can easily setup the Ubuntu server edition and take advantage of one of...