Datapod-for-C#   Install PHP 5 on Windows  PHP5 Hosting   Datapod-for-C# Workshop   Datapod Theory   Book Reviews   Linux Journal  
   

Be informed when new content is posted to this site 
PHP5 Hosting
 by Edward Tanguay
My goal for this page is to find the web hoster that providers the best PHP 5 hosting service so that I can host my future PHP 5 sites there.
 Design: Morning Sun 
JULY 2007: THIS WORKSHOP HAS BEEN UPDATED HERE: Setup a PHP Development Environment on Windows XP With Apache, PHP 5, MySQL 5, SQLite, Eclipse, Subversion, PHPMyAdmin, and Datapod
This tutorial is hosted at A2Hosting. They constantly install the newest PHP5, have SQLite and XSLT, Python, Ruby on Rails, and excellent support. Use them if you need a site.

PHP 5:
PHP 5 web hosting:

www.domainfactory.de (visit site)
Although DomainFactory does not have SQLite, phpxsl.dll or MySQL4 installed, it is the best you'll find for the price so far.
 
They don't support SQLite

This was a real disappointment for me since SQLite is one of the reasons I wanted to switch to PHP 5. They repeat in the forum and in the support mails that they cannot say when SQLite will be supported.
 
 
Can't get XML/XSL parsing to work

This PHP5 code:


which I copied from the PHP5 documentation site works on my local PHP5/Apache2/Windows site but at DomainFactory it gets this error: Class 'xsltprocessor' not found (try it out).



So I tried some old code I had for the Sablotron parser and it worked but only as a .php file (PHP 4) but not as a PHP 5 file. Here is the code:


The only problem with this is that the encoding doesn't work, e.g. umlauted characters render like this (should be "Müller" below):


view the above in your browser here

The PHP 5 code above correctly parses the same files that the Sablotron parser improperly encodes. (I use <?xml version="1.0" encoding="ISO-8859-1"?>). The PHP 5 code can render correctly all umlauts, &#160; characters, and euro signs).

Anyway, I don't want to hassle with the Sablotron parser anymore, so I am going to wait for Domain)Factory to fix this, so that I can just use the PHP5 parser which obviously is better. If they can't fix it, I'm going to be parsing my files locally to HTML files and uploading them to the server as a pure .htm site, at least it will be fast!

See the discussion about this topic here.
 
 
Cannot use the new PHP5 functions for MySQL

I tried to use this code to access my MySQL database:


and it got the error Class 'mysqli' not found, you can see for yourself here. Support told me that the reason is that Domain)Factory only has MySQL 3 and these new functions are for MySQL 4.1 and higher.
 
 
Online Forum is useful

Domain)Factory has one of the best online forums that I have seen at a web hoster. You automatically get an e-mail whenever someone replies to your posts which makes it worth posting: I think I received an answer (helpful or not) to all 5 or 6 posts so far, usually within 30 minutes or so. You can also find other posts with a very simple search, e.g. I searched for SQLite and found lots of people asking when it would be supported and the answers. In all, the interface is a bit clunky but you get answers to your questions and it's alive with people, which is what counts. It is also easy to post code snippets in your messages.
 
 
SimpleXML works

SimpleXML is one of the reasons that you would want to switch to PHP5. This code:


produces this result. You cannot save BACK to the file with SimpleXML (which is too bad) but at least reading from XML is like reading from arrays now, and this works well at Domain)Factory.
 
 
DomDocument() works

If you keep clicking here you will see that each time you click, you add a node to this xml file (FireFox won't display this XML correctly, use Internet Explorer). Notice also that the id is being automatically incremented based on the highest id.That is proof that the DomDocument works and here is the code:


This means that I can now write some easy to use wrappers for SimpleXML and DomDocument so that XML can be used as a light, installationless way to store data on providers which don't support SQLite yet.
 
 
Decent Web FTP

If you just need to make a quick change to your website and you do not have FTP access (which is often the case at companies since they restrict port 21 in their firewall), then you can use the web ftp. The access to it is a bit clicky and you can only upload one file at a time (not like brinkster which allows five, useful sometimes). You can only download one file at a time (click and save). Here are the steps to use WebFTP:
  • go to site
  • log in to Kundenmenue
  • click on WebFTP
  • click on your site number
  • click on "webseiten"
  • upload file
So, this feature is useful, and if you want more, you can easily make one yourself.
 

azc.com (visit site)
AZC offers SQLite but it's way to expensive.
 
offer SQLite 'unlimited'

This provider is the only one where it states in their offer that they offer SQLite, but for quite a price. I wonder if SQLite is expensive to host for some reason (resource intensive? can't be).
 
 
WAY too expensive

These guys are about 4x more expensive than the others I have found for PHP 5.
 

Strato.de (visit site)
Not sure I would want to have a website at Strato. My experience is that they have hidden costs and they are difficult to contact (try to find an e-mail address on their web site -- you CAN however call them for $2 per minute).

Iniquinet.com (visit site)
Need to ask about their details...

www.magicalworks.de (visit site)

www.monsterhosting.ca (visit site)

Todo on this page: