| View previous topic :: View next topic |
| Author |
Message |
vish123
Joined: 10 Jun 2008 Posts: 3
|
Posted: Tue Jun 10, 2008 11:19 am Post subject: How to call PEAR classes in php |
|
|
Hello Everybody,
I have installed PEAR by excuting batch file gopear.and i have WAMP 5.2 installed in my system.
Now i want to use PEAR classes in my project
so any one tell me what r the appropriate step to call PEAR classes in my script.
Thanks _________________ Regards
Vish |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Tue Jun 10, 2008 8:42 pm Post subject: Re: How to call PEAR classes in php |
|
|
| vish123 wrote: | | so any one tell me what r the appropriate step to call PEAR classes in my script. |
Well, this depends on the classes that you want to use. Almost every package has bundled example files, and many packages have examples in the PEAR manual. Therefore, there is no general rule.
If you have more specific question, about the installation of packages or the usage of one or more packages, don't hesitate to ask (in the appropriate subforum). |
|
| Back to top |
|
 |
vish123
Joined: 10 Jun 2008 Posts: 3
|
Posted: Tue Jun 17, 2008 6:05 am Post subject: |
|
|
I have specific question .
How to install DB Package and mail package .
i have tried to installed these package using window prompt and typed
like pear install -a mail
but window prompt shows me error like invalid command.
so now please guide me why these errors are coming and how to install these package using window prompt.
Thanks. _________________ Regards
Vish |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Tue Jun 17, 2008 2:52 pm Post subject: |
|
|
| vish123 wrote: | i have tried to installed these package using window prompt and typed
like pear install -a mail
but window prompt shows me error like invalid command. |
Actually the PEAR installer should have added the PEAR directory to your PATH setting. If it hasn't you can add the directory that contains pear.bat via Windows' control panel / system / environment variables.
Or, as a very quick fix that isn't that comfortable, you can prepend the path of pear.bat to "pear", e.g.:
c:\path\to\the\directory\that\contains\pear.bat\pear install -a mail |
|
| Back to top |
|
 |
vish123
Joined: 10 Jun 2008 Posts: 3
|
Posted: Thu Jun 19, 2008 9:48 am Post subject: |
|
|
Thanks Mark.
I have successfully installed mail package on my machine.
Now can you please provide me some sample example for calling this class.
and also guide me how can i use these classes in other script. _________________ Regards
Vish |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
|
| Back to top |
|
 |
|