Some additional Notes
This script will not work in some earlier versions of Netscape 6 (along with a lot of other scripts) - Netscape fixed this problem in later releases 6.1, 6.2.
On NT/2000 servers their will be a few small changes you will need to make for this to run properly. Also it is more difficult to change the permissions of a file on an NT server if you are not the administrator. Sometimes online hosting services will let you do this yourself through a web management application, or you will have to request that they do it for you.
With the Release of PHP 4.1.0 Their have been some additional updates that
should be taken into consideration for future use of PHP. In previous versions all PHP variables where available in whatever form they came to the script in, and where
automatically declared in the script. For example if you sent the script the variable 'Name' from Posting the
contents of a form, attached to the end of a URL string, from a cookie, as a session variable, etc that variable
is/was automatically available for use in the script (as long as
register_globals was turned on). With the release of PHP 4.1.0 you will now have to
grab the value from a special array variable:
$_GET - contains form variables sent through GET
$_POST - contains form variables sent through POST
$_COOKIE - contains HTTP cookie variables
$_SERVER - contains server variables (e.g., REMOTE_ADDR)
$_ENV - contains the environment variables
$_REQUEST - a merge of the GET variables, POST variables and Cookie variables.
$_SESSION - contains HTTP variables registered by the session module
For example in the above script. Instead of being able to just use the variable 'Name' from the Flash form - we
would have to use something like - $Name = $_POST["Name"]; ... .. ?> - Fortunately
the above script used in this tutorial still
work for now. But it might be a good idea to get into the practice of using the new method. It is also a more
secure method of programming with PHP. To learn more visit www.php.net.
(Just thought I would mention this, as I recently completed a project on a
NT server that had register_globals turned off and had just installed PHP 4.1.0,
that and other reasons caused me to pay special attention to this new method). Sorry if I botched the explanation.
» Level Advanced |
Added: 2001-12-21 Rating: 8.92 Votes: 200 |
» Author |
Jeffrey Hill is a freelance web developer from Boulder, Colorado. He specializes in creating and developing dynamic database driven Flash content and applications. Specialty's include SQL, PHP, Perl, and XML. |
» Download |
Download the files used in this tutorial. |
Download (55 kb) |
» Forums |
More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.
Comments
There are no comments yet. Be the first to comment!