dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Php pear

  1. #1
    Join Date
    Jul 2005
    Location
    faisalabad, punjab, pakistan
    Posts
    247

    Php pear

    hi, i want to use some of pear libraries like mail.ph mime.php etc


    but i am unable to include these files for some reasons:

    my include_path in php.ini is .:

    and my server support team said pear installed on /usr/bin/pear and version is 1.9.4

    any body help me to use the pear libraries in my application.

    i have plesk installed on my server.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,430
    PHP Code:
    set_include_path('/usr/bin/pear'.PATH_SEPARATOR.get_include_path()); 
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Jul 2005
    Location
    faisalabad, punjab, pakistan
    Posts
    247
    i am sorry, it's not working, i am using the following code:


    PHP Code:

    set_include_path
    ('/usr/bin/pear' PATH_SEPARATOR get_include_path() );

    if( !include_once(
    'Mail.php') ) {
        die(
    'No MAIL.PHP');
    }
    if( !include_once(
    'Mail/mime.php') ) {
        die(
    'No MIME.PHP');

    and it always says NO MAIL.PHP

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles