Need to copy php libraries to the php include_path

Status
Not open for further replies.

shankarg36

New Member
Messages
2
Reaction score
0
Points
1
Hi, I need to copy 2 php libraries to the php include_path folder, when tested and echo-ed the include path i get the following .:/usr/lib/php:/usr/local/lib/php
but how do we navigate to that particular path, as it is now visible from FTP or the file manager.
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
You have to either:
1. Place the libraries in the directory where your script is located
2. Adjust your include path at the top of your script:
PHP:
<?php
$path = '/home/yourCpanelUsername/pathToWhereYouStoredYourLibraries';
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
?>
 

shankarg36

New Member
Messages
2
Reaction score
0
Points
1
Thank you Grim, will check and let you know.. Thank you very much for the reply.:)
 
Status
Not open for further replies.
Top