The outline of PHP is rather simple to understand; developing projects in PHP is more difficult.
PHP, in a nutshell, is a language meant to output other languages, or plain text, depending on specific factors. PHP itself does not "display pictures" or anything of the sort -- it sends different languages (like HTML) to "display pictures."
The beauty of PHP is that everything it makes is what we call "dynamic;" meaning by visiting the same web page ran by PHP, it's possible to get something different every time (of course, that's set up by you).
For example, imagine you are on a website that incorporates PHP. This website asks you to log into an account you made earlier today.
Some understand PHP better than others, due to prior math and technology knowledge, and mere fate. Don't be discouraged if you cannot understand it at first - concept or syntax - as it isa difficult thing to grasp.
If you're still confused (which is perfectly reasonable!), visit the related links below. They have some excellent examples explaining the power of PHP and on writing your own PHP scripts.
You can use PHP for create various user friendly and search engine friendly web applications.
Its done exactly the same as when you create one in HTML except you put it in PHP. I have created an example below to show you how it is done! The example also shows you how to use the form data in PHP.
<?php
// your form
echo "<form method='POST'>
<input type='text' name='my_field'>
<input type='submit' name='submit_form'>
</form>
<br /><br />";
// output what you type in the field when you submit it
if ($_POST['submit_form']) {
echo "This is what you typed in my_field: ".$_POST['my_field'];
}
?>
You can use Cascading Style Sheets (CSS) to create website themes for your PHP website.
Yes php 4.4.7 server support php 5 files. But most of the php 5 features are not supported by php 4.4.7 version
Yep. We do it all the time. One way is to simply tell PHP that you want the tags echoed. Like so: <?php echo('<b>Hi</b> Nice to meet you!'); ?> Sometimes you want instead to simply use the PHP in parts of a page and leave the rest. You can do this, too. <body> <div class="login"> <?php if($user->loggedIn()){ ?> <b>Hi!</b> <?php }else{ ?> <!-- HTML FORM HERE --> <?php } ?> </div> </body>
Yes, by using the preg_match() function
PHP code blocks start with <?php and end with ?>.
It is used to tell the sever to use the PHP parser. To begin php you must use <?php, and to end it, it is ?>.
You can't use PHP in an HTML document, but you can use HTML in PHP script.
PHP files extension is .php
Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?
PHP 5 has a XML parser called SimpleXML that you could use.
You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.
PHP certification is received after doing some sort of PHP course, there are many out there to do. You can use them in your CV to help you get a job in PHP.
Facebook uses PHP 5.
There are no PHP tags. Unlike HTML, PHP is not Markup language. They use scripts. An example would be <?php echo "Hello, World!"; ?>
That's PHP Engine.. Allow you to develop PHP Scripts.. you can use it to develop PHP Scripts and test it on your local machine before you send it to server.. (your website)
PHP itself is a scripting language, and uses it's own PHP interpreter (engine).
PHP is an Open Source Scripting Language. We can create Web Pages and Web Applications using PHP.