PDA

View Full Version : Help with PHP please



quizicul
03-10-2006, 02:07 AM
I recently began getting actually interested in learning PHP, a much easier way of editing my site, but I'm at a lost on how to start.:frusty:

:stars: Of course all the codes that major computer programming sites provide are much too confusing for me to try and figure out what exactly is this and that.

If any one could help me, even if it is just a site, that'd be awesome. :happy:

Tazzy
06-07-2006, 07:23 PM
What exactly did you need help with?

tesco
06-08-2006, 01:13 AM
What do you want to start with?

Basics:
Start code with <?php and end with ?>.
End a line or function with ;
ECHO is to print text and variables to screen example:

<?php
echo "My name is " . $variable . ".";
?> A variable start with $ sign, example:

<?php
$variable = 'rossco';
?>
A conditional (if) makes code between curly brackets ({ }) only run if a condition is meant, example:

<?php
if ($variable=='rossco')
{
echo "Variable is rossco";
}
else
{
echo "Variable is not rossco";
}?>
That is a few basics to get you started, or you can tell me what you want and I will start it for you. :)

VagabondX
06-15-2006, 12:24 AM
You need to get more specific, but some sites that come to mind atm:

Getting started
Php.net (http://www.php.net) -binaries, documentation, manuals, etc
Phpbuilder.com (http://www.phpbuilder.com) - decent PHP community site. Articles, code snippets, forums, etc.
Sitepoint.com (http://www.sitepoint.com) - more of a general web development site with heavy focus on PHP. Nice forums.

More advanced
PEAR (http://pear.php.net) - extensions, mmm
Hardened PHP (http://www.hardened-php.net/home.8.html) - for the security nazis
Smarty (http://smarty.php.net/whyuse.php) - template engine

PHP based packages
PostNuke (http://www.postnuke.com/index.html)
WordPress (http://wordpress.org)