PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
How to call PEAR classes in php

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
vish123



Joined: 10 Jun 2008
Posts: 3

PostPosted: Tue Jun 10, 2008 11:19 am    Post subject: How to call PEAR classes in php Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Tue Jun 10, 2008 8:42 pm    Post subject: Re: How to call PEAR classes in php Reply with quote

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
View user's profile Send private message
vish123



Joined: 10 Jun 2008
Posts: 3

PostPosted: Tue Jun 17, 2008 6:05 am    Post subject: Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Tue Jun 17, 2008 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
vish123



Joined: 10 Jun 2008
Posts: 3

PostPosted: Thu Jun 19, 2008 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Thu Jun 19, 2008 11:52 am    Post subject: Reply with quote

Help yourself please:
http://pear.php.net/manual/en/package.mail.mail.php
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software