Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Sedo - Buy and Sell Domain Names and Websites project info: programmershelp.co.uk Statistics for project programmershelp.co.uk etracker® web controlling instead of log file analysis

   Misc

   Amazon

   Links

    


Pear and PHP an example

 

  PEAR is a collection of packages . If you wish to know more abot PEAR click here

On to the installation

This is the method we used

Download the package you require from the list of packages.
Create a folder called includes in your main directory. This is usually called something like public_html.
Create a folder for the package you have downloaded. In this case we have chosen the File package.
Unzip all of the files and upload them to your File folder that you have created.

The next important part is in the script listed below , you have to set up the path to your include file.

We created a folder called include and then another folder inside this called file and uploaded the package in there.

 

 

Code

<?php
//set this to the path of your include folder and the folder you created for the downloaded package
ini_set("include_path", '/home/www.mywebsite.com/public/include/file/' . PATH_SEPARATOR . ini_get("include_path"));
require_once 'File.php';
//enter the name of the text file to open
//this is in the same folder as the script in this example
$file = "files1.txt";
//echo the whole file
echo File::readAll($file);
?>


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
swap mouse buttons(VB)
Shutdown Windows(VB)
FPrintf(C)
display serial port configuration(VBScript)
AOL supported(ASP.net)
Create a file(C Sharp)
Play a wav file(VB.net)
updating clock(PHP)

    




Copyright © 2004 by programmershelp.co.uk