www.webdeveloper.com
Results 1 to 3 of 3

Thread: Php pear

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

    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
    19,227
    PHP Code:
    set_include_path('/usr/bin/pear'.PATH_SEPARATOR.get_include_path()); 
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2005
    Location
    faisalabad, punjab, pakistan
    Posts
    241
    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