Forum Moderators: coopster

Message Too Old, No Replies

a DB.php PEAR question

script do not find the DB.PHP class

         

henry0

8:48 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello
I am preparing a few PHP scripts conversion to registerglobals=Off
And presently testing a new login script that requires PEAR
I tested it on my local RH and it works fine in both configurations (with registerglobals On or Off)

But on a production server that I do not manage it does not work;
And does not display anything (Blank screen)
In order to narrow down the problems I used
<? Error_reporting (E_ALL) ;?>
Which shows that my “require” for DB.PHP class does not find it

How can I find if PEAR is made available?
And if it is:
Is the directory that contains the PEAR files included in my include_path in my php.ini.
And if so do I have to provide a path?

In other setup I did not have too

Thanks

Henry

coopster

9:16 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Run the phpinfo() [php.net] function and look at the Configure Command to see if
'--with-pear'
is present.

If the site you are referring to is running on a Windows server, I believe PEAR is compiled by default in the Windows binary.

More info:
[pear.php.net...]

henry0

9:38 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well Coopster no good news
I did it
<<
Run the phpinfo() function and look at the Configure Command to see if '--with-pear' is present.
>>
and NO it is not present

(I run that one a Linux box, no MS involved)
so I have to ask for or move away which I really hate envisioning.

thank you

Henry

<< edit
or I can ask if I will be allowed to install my own
as per your link
>>

coopster

9:59 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



My hosting provider allows me to install and compile in my own user space, but most will do it if you simply request it of them. It's odd that they didn't in the first place, especially if it is a shared hosting provider.

Ask. And maybe you shall receive! Best of luck ;)

henry0

7:03 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hmmm I don't know about that one
at first glance my ISP agreed on installing PEAR

now they are telling me they they have to turn safemode off in order to install PEAR
and that of course they won't

what do you think?
thank
Henry

coopster

7:45 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Can you install your own local copy?
[pear.php.net...]

I don't get the safe mode part of their response...? Anyone else shed light on what this ISP is referring to?

henry0

8:05 pm on Feb 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes I can do it and will later (will post results)

I am glad that the second part (Safe Mode)puzzled you too

this is confirmed by a direct call with the CO.president.
however I did not want to argue for I always try to have excellent business relationship with all my contacts