|
Posted by Rami Elomaa on 04/29/07 19:12
eholz1 kirjoitti:
> Hello php group,
>
> I have a dev server running php 5.0 and apache 2.2, I have created
> some php files that create classes, etc All works well with this.
>
> But when I copy the files to my hosting service's server - I get the
>
> The error occurs at the first line in the class definition: it gives
> me the error where I have the word "abstract"
> <?php
> abstract class Portfolio
> {
> public static $db;
> public static $queries;
abstract was introduced in php 5. You can't get this code working on php
4 server without modifications. Contact your current host and ask if
they're offering php 5. If not, find another host. That is, unless you
want to rewrite the code to php 4 compatible.
FYI: OOP support in older php versions sucked until php 5.
--
Rami.Elomaa@gmail.com
"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze
[Back to original message]
|