You are here: Re: Error accessing class files in php « PHP Programming Language « IT news, forums, messages
Re: Error accessing class files in php

Posted by eholz1 on 04/29/07 20:00

On Apr 29, 12:12 pm, Rami Elomaa <rami.elo...@gmail.com> wrote:
> 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.Elo...@gmail.com
>
> "Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
> usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

Hello all,

Hmmm, a good point! also I am using mysqli (for stored procedures).
I am in trouble now!
Thanks,
eholz

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация