
April 26th, 2004, 02:12 PM
|
 |
Moderator
|
|
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,937

Time spent in forums: 4 Days 1 h 57 m 37 sec
Reputation Power: 3
|
|
|
pear path help
hi does anyone know how to detect their pear install path im on shared hosting at the moment and they said the include path was /usr/bin/perl/ ive tried everything to connect to this. the root directory of my account is home/andrew/public_html how do i access pear or is it possible to find out what the full path to pear is???? by the way ive tried the following
php Code:
Original
- php Code |
|
|
|
<?php require_once '......usrbinperlpear'; $user = 'andrew'; $pass = 'xk51pd23'; $host = 'localhost'; $db_name = 'andrew_site'; $dsn = "mysql://$user:$pass@$host/$db_name"; $db = DB::connect($dsn, false); $sql="select * from users"; $result = $db->query($sql); $rownum="5"; $row = $result->fetchrow(DB_FETCHMODE_ASSOC, $rownum); ?>
and alls i get is an file cannot be found error when my host has assured me that the php pear package is in that directory. Any help would be appreciated.
|