PHP TUTORIAL
 Forum   A php basic website 

Although this tutorial will surely help newbies to start with PHP programming, I would like to point out that the real interesting scripts like Syntax Examples - PhpMAILER (USAGE) - webmail - login - textshout - automatic registrations ...etc, are beyond Membership's Areas ...so buy the access to them and shortcut your php-learning path ...some of those scripts took months for me to develop and refine from scratch and mostly TESTED ONLINE nearby the code layout, at the end you will really save a lot of your valuable time, if that is worthy to you. Check my sales' page :-)
This is a basic tutorial and a guidance to scripts and resources to PHP topics, that have been started in the Forum , such as this redirect example, tips etc...
...some more will hopefully follow up occasionally to compound and comment forum topics.
Many links from here are intended to be a guidance for our MEMBERS and therefore please authenticate your session before surfing them, other links are strictly referring to forum topics and do not require any authentication.
Here is the classic hello-PHP file for testing the server configuration :
Use your browser to access the file with your web server's URL, ending with the "/hello.php" file reference. When developing locally this URL will be something like http://localhost/hello.php or http://127.0.0.1/hello.php but this depends on the web server's configuration. If everything is configured correctly, this file will be parsed by PHP and the following HTML-output will be sent to your browser.
... and by opening the page hello.php you will simply read : Hello World
<?# - hello.php
$_var="<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <p>Hello World</p>
 </body>
</html>";
echo"$_var";
?>      [hello.php]
Basic Know How : PHP Html & JavaScript   Test your copy-paste skill  A JavaScript SUITE   ITALIAN
HELP   PHP-TESTS   $_SERVER['HTTP_USER_AGENT'];   WATERMARK
PHP CODE [MEMBERS] :   WATERMARK   Easy Cookie [by ICS]



Watermark

A watermark is a sort of a signature to mark an image as yours, it consists of a shot that merges with your image, in this example the shot is the image that shows the following line "www.pr.c-php.com" and merges on the fly with the image to mark. Following HTML syntax code calls the file watermark.php as image source <img src=watermark.php border=0> and this would discourage to just qickly-copy/steal and paste your image.
source.gif


<img src=source.gif border=1>
+ watermark.gif

<img src=watermark.gif border=1>
= watermark.php


<img src=watermark.php border=1>
 
...not for animated gifs
   Watermark script is not for animated gifs, as it would stop the animation on the first photogram as it is shown here at left :-(
This script is suitable for single fotograms GIF, JPG or PNG IMAGES
...At next link you will find the same watermark gif successfully applied to a JPG-IMAGE to which this script best fits :-)
  TOP