$Id$
This is a list of Frequently Asked Questions about PHP3 and
their answers. If you have suggestions or additions, send them to
php3@php.il.eu.org.
From the manual:
Professional Home Pages Version 3.0 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.
For a complete list of the changes, read the CHANGES file included in the PHP3 distribution. Some highlights:
Of course! To subscribe, send mail to
php3-subscribe@php.il.eu.org. You don't need to include
anything special in the subject or body of the message.
To unsubscribe, send mail to
php3-unsubscribe@php.il.eu.org.
If you have problems subscribing to or unsubscribing from the PHP3
mailng list, it may be because the mailing list software can't figure
out the correct mailing address to use. If your email address was
joeblow@example.com, you can send your subscription request
to php3-subscribe-joeblow=example.com@php.il.eu.org,
or your unsubscription request to
php3-unsubscribe-joeblow=example.com@php.il.eu.org.
Yes, it's located at http://www.tryc.on.ca/php3.html.
You can download PHP3 from any of the members of the PHP3 network of sites. These can be found at http://www.php.net/.
This is so the development team can find out what operating systems and databases that people are using, and how many people are using PHP3 in general. Don't worry, you aren't being added to any mailing lists by registering!
You will need to follow instructions provided with the library.
Yes, as long as you're looking for binaries for Windows 95 or NT. They're available in the same place as the source.
To install PHP3, follow the instructions in the INSTALL file located in the distribution. Windows 95 and NT users should also read the README.WIN32 file.
CFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure
If you're using a csh-variant for your login shell (why?), it would be:
env CFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure
cp *.o functions" and then
re-running 'make' to see if that helps. If it does, you should really
upgrade to a recent version of GNU make.
If you're linking with Apache 1.2.x, did you remember to add the appropriate information to the EXTRA_LIBS line of the Configuration file and re-rerun Apache's Configure script? See the INSTALL file that comes with the distribution for more information.
Some people have reported that they had to add '-ldl' immediately following 'libphp3.a' when linking with Apache.
If your script using the regular expression functions (ereg()
and friends), you should make sure that you compiled PHP3 and
Apache with the same regular expression package. (This should
happen automatically with PHP3 and Apache 1.3.)
global $DOCUMENT_ROOT;", for example) or by using
the global variable array (ie, "$GLOBAL["DOCUMENT_ROOT"]".
You should use the bug-reporting form located on any of the PHP3 network members. For example, try going to http://www.php.net/bug-form.php3.
while
(condition); statement. This will cause PHP3 to spin out of
control because it is simply executing an empty body for your while
loop! Change the semi-colon to a colon and it should work correctly.
function printsum($a, $b) {
echo $a + $b;
}
You can also use old-style function declarations by use the 'old_function' designation, like so:
old_function printsum $a, $b (
echo $a + $b;
);
This FAQ was originally written by Jim Winstead. It is currently maintained by the PHP Development Team.