Using windows ?.

On 9/21/10, JeevZ <[email protected]> wrote:
> I want to use pear.It is already on xampp.I had written a php script
> like below.........
>
> <?php
> // Include the appropriate PEAR classes
> require_once("DB.php");
>
> $dsn = array(
>  'phptype'  => 'mysql',
>  'hostspec' => 'localhost',
>  'database' => 'emp',
>  'username' => 'root',
>  'password' => 'mysql'
> );
> $dbh = DB::connect($dsn);
>
> $stmt = "SELECT id, name FROM examples ORDER BY id";
> $result = $dbh->simpleQuery($stmt, DB_FETCHMODE_ASSOC);
> if ($dbh->numRows($result) > 0) {
>  $data = (object) $dbh->fetchRow($result, DB_FETCHMODE_ASSOC);
>  echo "id   => $data->id<br>\n";
>  echo "name => $data->name<br>\n";
> }
> ?>
>
>
> After executing the script on localhost it shows an error message like
> following..
>
>
> Warning: require_once(DB.php) [function.require-once]: failed to open
> stream: No such file or directory in
> C:\xampp\htdocs\divya\Pear-examples\dbconnect.php on line 3
>
> Fatal error: require_once() [function.require]: Failed opening
> required 'DB.php' (include_path='.;c\xampp\php\PEAR') in
> C:\xampp\htdocs\divya\Pear-examples\dbconnect.php on line 3
>
>
> I had checked the php.ini file..The pear path is already included there like
>
>
> include_path = ".;c\xampp\php\PEAR"
>
> want should I do?Shall install the pear package separately...
>
> --
> *ησямαℓιту ιѕ тнє υηινєяѕαℓ α¢¢єρтє∂ кιηк*
>
>   Jeevachaithanyan Sivanandan
>   CyberBeamS Technologies
>   http://www.cyberbeams.com
>   http://www.jeevanism.wordpress.com
>   ph: +919995319639
>
> --
> "Freedom is the only law".
> "Freedom Unplugged"
> http://www.ilug-tvm.org
>
> You received this message because you are subscribed to the Google
> Groups "ilug-tvm" group.
> To control your subscription visit
> http://groups.google.co.in/group/ilug-tvm/subscribe
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
>
>
> For details visit the google group page:
> http://groups.google.com/group/ilug-tvm?hl=en
>

-- 
Sent from my mobile device

-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to