Deluxnetwork
English German French Italian Portuguese Spanish Chinese     
 


  /home
  Deluxnetwork Home
  Exploits Archive
  Linux Home/News
  Contact Form
  Member Forum



  


Penguin

Deluxnetwork Exploit DB:



Available Guides:::::

PHP Guide by ryza
this guide is intended for anyone who wants to see the basics of php.

<?php
1. what is php.
2. a basic php script.
3. using php variables.
4. includes, headers/footers.
?>



section #1
PHP stands for the Hypertext Preprocessor. PHP is embedded in HTML files and is extremely easy to learn and code. PHP is a server side scripting language, that is, the server processes the PHP code and sends the output to you. Thus, it is not possible to view the source of the PHP code. PHP code cannot be run on your computer unless you are running a server with PHP Installed.



section #2
<?php
print "My First PHP Script!\n";
?>
Save the file as 'something.php' and upload it to your webhost and go to the url http://yoursite.com/something.php



section #3
Below is some examples of variables in PHP (same as perl)
<?php
$variable_1="My";
$some_other_variable="Script";

print "$variable_1 First PHP $some_other_variable!\n";
?>
Pretty simple huh?



section #4
Ok Below is an example of using a header in your pages.
ALSO: Below is some examples of variables in PHP (same as perl)
<?php
# Note: this wont work if `header.html` dosnt exists in the same directory!
include("./header.html");
$variable_1="My";
$some_other_variable="Script";

print "$variable_1 First PHP $some_other_variable!\n";
?>



Other Related Sites:
php homepage
phpbuilder

Suggest a link?:
mail us




  Distributions
 arrow  download linux


  Linux/Unix Guides
 arrow  dual booting
 arrow  dialup modems
 arrow  cable modems
 arrow  email guide
 arrow  linux mp3 cd burning
 arrow  compressed files
 arrow  burning cds
 arrow  proftpd server
 arrow  ssh howto
 arrow  ipchains/firewall
 arrow  mysql installation
 arrow  apache installation
 arrow  php installation
 arrow  cron jobs
 arrow  using htaccess
 arrow  bind setup
 arrow  installing fonts
 arrow  chroot/jails
 arrow  mount & format
 arrow  boot loaders
 arrow  mailscanner & spamassassin
 arrow  usb devices
 arrow  wireless
 arrow  postfix & spamassassin


  Programming Guides
 arrow  perl programming
 arrow  php programming
 arrow  learning html