RE: [PHP] Problem about PHP
| From: | Mark Roedel | Date: | Tue, 17 Jul 2001 14:33:26 +0000 |
| Subject: | RE: [PHP] Problem about PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58268@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: ChengWen_Yu [mailto:ChengWen_Yu@pchome.com.tw]
> Sent: Monday, July 16, 2001 10:54 PM
> To: php-general@lists.php.net
> Subject: [PHP] Problem about PHP
>
>
> I want to write a library for the PHP on Solaris. But I
> don't know how to do and where I should put this library
> than PHP could reach it.
That's going to depend on what you mean by a "library":
If you want to write some functions in PHP and make them available to
other scripts, then it's just a matter of placing that file somewhere in
your include_path and calling it into your other scripts with include(),
require(), auto_prepend_file, etc. You can find some information in the
manual on defining functions in PHP at
http://php.net/manual/en/functions.php
If you want to actually extend the capabilities of PHP by adding new
functions to the language, you'll want to start by reading
README.EXT_SKEL in the directory where PHP is installed. That should, I
think, give you most of the information you need to get started.
---
Mark Roedel (roedelm@letu.edu) | "There cannot be a crisis next week.
Systems Programmer / WebMaster | My schedule is already full."
LeTourneau University | -- Henry Kissinger