> Okay - I apologize but I'm a systems admin - not a programmer - would I
> even need those classes now?
>
> -----Original Message-----
> From: Matthew Sims [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 17, 2004 3:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] FW: Help with PHP 5 - code not working since upgrade
>
>> Greetings,
>>
>> I've had to move an application from a Rehat Linux 6 apache server
>> running
>> PHP 3.x to a MAC OS X apache 1.3 running PHP 5 and the code listed below
>> bombs out..i have commented it out for now and it works but the code
>> listed
>> below doesn't work on the new server - do any of you see an obvious
>> reason
>> this wouldn't work with PHP 5 ?????
>>
>>
>> <?php session_start();
>>
>>
>>
>> include_once("client_detector_class.php");
>>
>> // to use current HTTP_USER_AGENT string
>>
>> $is = new sniffer();
>
> I didn't have to look much further than this. You have a class that was
> designed in PHP3 and suddenly you're wondering why it work in PHP5?
>
> The OO model in PHP has been vastly revamped. It's closer to what OO is
> suppose to be. So my guess is that all your classes are now invalid.
>
> You'll have to re-write your classes most likely.
>
You should always reply back to the list to maintain this thread for
future reference by others.
You asked if you need this class? I would say hell yeah, it's included in
the code:
include_once("client_detector_class.php");
Your include statement grabs the class code followed by the next line that
makes a call to that class:
$is = new sniffer();
I'm assuming Class sniffer is defined in client_detector_class.php.
Since you're not a programmer like you said, maybe downgrading to PHP4
would fix the problem.
Off topic, you're a sys admin just like me. Learning how to script will
increase your status as a Superstar Admin farther than you can ever
imagine. You don't have to be a programmer to learn PHP or perl or ksh or
whatever. :)
--
--Matthew Sims
--<http://killermookie.org>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php