Category: PHP

Server to go, apache, php, perl and mysql running from cd rom (server2go)

what a great little project. You can now run apache, php, mysql from a cd rom to create your own web application which you can then distribute on non writeable media.You can get this herehttp://www.server2go-web.de/index.htmlThe software is f… more »

squirelmail not connecting to hmail server - imap error

Squirelmail suddenly stop connecting (imap refused error) to my hmail server (all controlled by the Parallels Helm). The solution was simple. The config file of squirelmail had the imap server as localhost and someone had changed the default domain o… more »

Tikiwiki IIS error Notice: Undefined index

I recently installed Tikiwiki 2.1 in a windows 2000 server machine and a mysql 5.1 database server. Although the installation went fine I could not use the software due to the following error <blockquote>Notice: Undefined index: SCRIPT_FILENAME in… more »

Change the default server timezone to UK and convert to mysql format in PHP

In the php page you want to change the timezone use the following code putenv("TZ=Europe/London"); $mysqldate = date("Y-m-d H:i:s"); if you want to use a different timezone simply select the timezone below Europe/Andorra Asia/Dubai Asia/Kab… more »

Error in my_thread_global_end():1 threads didn't exit

I recently got this strange error message trying to migrate a site from a dedicated server to a shared host server using php 5.2.5, mysql 5, plesk and windows 2003 server: Error in my_thread_global_end():1 threads didn't exit Although a lot of the post… more »

How to use php mcrypt_encrypt with C# chilkat decrypt

I recently came across a situation where I needed to encrypt a string in PHP using blowfish and then decrypt later using C# (please note I use the excellent chilkat .net component for decryption). The PHP encryption bit is below (make sure you use PHP… more »

Navigate to the root folder using php

If you need to include a file that may be in a different folder higher up you need to be able to navigate from the root up... php include($_SERVER['DOCUMENT_ROOT']."/includes/myfile.php"); more »

Efficient way to process large text files in php

//This function assumes you want to open a large text file (for example a csv file) and you need to do some line by line processing. To do this can use this function which only loads the current line you want to process as opposed to loading the entire f… more »