Web Server Manual | Frames
Format
Links to PHP: Hypertext Preprocessor and
FAQs
PHP
is a server-side scripting language for creating dynamic Web pages.
You create pages with PHP and HTML. When a visitor opens the page,
the server processes the PHP commands and then sends the results to
the visitor's browser, just as with ASP or ColdFusion. Unlike ASP or
ColdFusion, however, PHP is Open Source and cross-platform.

The following links are geared toward new PHP
users. Please suggest links or changes by sending email to the text
address at bottom
of this page.
Miscellaneous Articles on Scripting:
PHP 10 Minute Wonders:
- hello.php3
- Include the "Today's Travel Feature" features
into a web page
- example1.php3
- News Lister - Lists files in a
directory and sorts by Month.
- newslister
- PHP Guestbook
- guestbook.php3
- PHP Notes - see example bottom of this
page. Drag and drop installation- almost.
- notes.php3
- PHP Counter
- textcounter.html
- TreeMenu - Windows Explorer menu list.
PHP and Javascript.
- treemenu
- Recommend It - Let's your visitors
recommend your site.
- recommend
- HTML Editor - Allows you to make
changes to web pages from a web browser. Enjoy living dangerously?
...this script is for you.
[password
protection?]
- editpage
- ICFormGen- This script should help you
to create database driven forms. Not tested. External
link to page
- PhpHoo2- A speedy "Yahoo-like"
directory using MySQL and PHP. An excellent way to start learning
SQL and PHP integration. Very limited script however with no
admin. interface. External
link to page | more
links
- WAP - WML - HAWHAW- Create dual
HTML/WAP pages for your cell phone with PHP in minutes.
External
link to page | WAP
/ HAWHAW (see "ReadMe"
file)
Server specific notes:
- Allow PHP in web pages with .html suffix?
- Create .htaccess file in public_html and add text:
- AddType application/x-httpd-php
.html .htm
- You'll see PHP frequently presented in:
- Standard format:
- <?
- include("file.html");
- ?>
- or format for HTML editors
- <script language="php">
- include("file.html");
- </script>
- Above format is recommended.
- Using Server Side Includes with PHP?
- Both SSI and PHP are HTML-embedded
scripting languages, so both cannot be used on the same page.
(see exception
below)
- Since you cannot have both SSI and PHP code
on the same page, change all SSI calls from:
- <!-- #exec cmd="/cgi-bin/file.pl"
-->
-
- to PHP:
- <script language="php">
virtual("/cgi-bin/file.pl");
- </script>
- And, use the include() command to include
files.
- Change from SSI code:
- <!-- #include file="file.txt" -->
- to PHP:
- <script
language="php">
- include("file.txt")
- </script>
- SSI Exception. Using
DreamWeaver or other HTML editor without full PHP include
interaction?
- The secret: Call PHP pages with
SSI!
- Try this: <!-- #include file="file.php3"
-->
- FrontPage with
PHP?
- The <? and ?> tags do not work well with Front Page.
Use the script tag instead:
- <script
language="php">
- include("file.txt")
- </script>
- PHP paths have you confused?
- Define variable at the top of your script, example:
- $includepath ="/home/vs#####/public_html/phpdirectory";
- Simplify the use of variables by using the built in
variable DOCUMENT_ROOT
- example: $includepath ="DOCUMENT_ROOT/phpdirectory";
- Wish to add more security by placing your senstive configuration
files above the document root, at for example: /home/vs#####/phpdirectory
- use DOCUMENT_ROOT as well, but with one addition,
example:
- $includepath = ($DOCUMENT_ROOT . "/../phpdirectory");
- Tip: find a path of a directory or file use the command
"pwd" at the shell prompt.
-
- The file upload capability built into PHP may have been
disabled on accounts running PHP. Looking for an easy way to manage files
in a web browser? Try: SiteMgr
| FileMan
| WebExplorer
Powered by ODTrack v1.0 - Copyright ©2000 byRini Setiadarma. All rights reserved. |
author: Jim Walker,
php@tvsecure.net
Top
Index