Upload PEAR to web host
| From: | Alejandro Crosa | Date: | Thu, 06 Oct 2011 15:32:52 +0000 |
| Subject: | Upload PEAR to web host | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31258@lists.php.net to get a copy of this message | ||
Hello....I am trying upload PEAR to shared host following the steps in
http://pear.php.net/manual/en/installation.shared.php
and is the first time that I upload files to shared host ...so in each part I have doubts.....
I do not speak ingles very well, so...excuse me by the errors please...
I have Microsoft Telnet and I try upload PEAR to my web site by reading ...
Installing a local copy of PEAR through SSH
but I do not understand this lines...
Then, if you add ~/pear/bin to your path as the first entry in .bashrc (or whatever your startup
file is), and run the command:
$ pear install -o PEAR
.
.
.
.
.
because I can not to know wich is the..../pear/bin path and where must be add it or wich is
.bashrc .
Next.....
This will create a directory structure based on a subdirectory of your home directory named pear
that contains all of the packages that you install. You will have a local version of PEAR that
supersedes the system's copy. To use the files you have installed, you should set your PHP
include_path in either the code that uses your PEAR packages like so:
<?php
ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR
. ini_get('include_path'));
// From PHP 4.3.0 onward, you can use the following,
// which especially useful on shared hosts:
set_include_path('~/pear/lib' . PATH_SEPARATOR
. get_include_path());
?>
The PHP include_path is the same in the php.ini file?
Where must be add this php code if I want to use the Image Barcode package, for example?
How I can to connect to my web site by using Telmet?
Now with FTP
I can write in the console prompt
C:\>ftp (enter)
C:\ftp>
but here..how I can to conect me with my web site or web host to upload PEAR? because the user and
password do not are processed. I want to know the full path to my home directory.
Last, with the traditional way
when...
You will need to know the location of the cli version of PHP. To find this, browse to this script
and copy the output:
<?php
echo
which php;
// if this does not work, also try echo PHP_BIN;
?>
I have the output of this file empty....
ok...I hope you can help me to upload PEAR to the web host....Is not very dificult...
Thanks for your attention
Alejandro