|
|
|
| Title : |
Is there any way in which functions can be placed in separate files and included/called when needed as with C? The manual mentions exec() and passthru but as far as I can see this is not what I am looking for! |
| Categories : |
PHP, Filesystem |
 Boaz Yahav |
| Date : |
Jul 13th 1999 |
| Grade : |
5 of 5 (graded 2 times) |
| Viewed : |
3682 |
| File : |
No file for this code example. |
| Images : |
No Images for this code example. |
|
| Search : |
More code by Boaz Yahav |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
You are looking for one of two function :
o include()
o requier()
for example :
<?
include "MyFile.inc";
?> |
|
| Unix Disk Information with graphs Categories : PHP, Shell Scripting, Filesystem | | | include php3 files Categories : Filesystem, PHP, Apache, Web Servers | | | Show Source with Line Numbers Categories : PHP, Regexps, Filesystem | | | How to find the name of the current file? Categories : PHP, Filesystem, Strings | | | grab directory listings into an array the example prints out each
subdirectory in the main dir - further work is to be performed on this one Categories : Filesystem, PHP, Directories, Search, Utilities | | | GuestBook Light - a plug and play application for any website. Categories : PHP, Complete Programs, Filesystem, Sessions | | | Relative Path Categories : PHP, Filesystem | | | Image Browser Categories : Filesystem, GD image library, Content Management, PHP | | | Differences between two files Categories : PHP, Filesystem, Tip | | | Random Image Display Categories : PHP, Filesystem, Graphics, HTML and PHP | | | Link Submition - Allow your visitors to submit links to the site. Categories : PHP, Arrays, Filesystem, Beginner Guides | | | A simple configuration file editor to ease you life in setting up php applications. Reads variables from a given file automatically and displays current value. New value will be written to file after submit. Categories : PHP, Filesystem, Regexps, Java Script | | | Take multiple text files and do simple formatting on them and add them to a webpage Categories : HTML, Filesystem, PHP | | | These 2 functions write and read the contents of a specially designated multi-dimensional array to and from a text file. Categories : Algorithms, PHP, Filesystem | | | Easy upload class Categories : PHP Classes, Filesystem, HTTP, PHP | |
| |
| |
|