Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

Tuesday, 11 February 2014

Echo Statement in php


Echo statement
Echo Statement
Echo Statement php programming Languages. This is a tutorial about Echo Statement. Echo Statement is not function. In php the two basic constructs to get output are echo and print. print statement will see in next tutorial. Echo is language constructs within php that allows us to output data string to the user browser. Its allows us to output basically on the screen.

Echo Statement code (Screenshot) :-


echo statement
Echo Statement
<?php

echo 'Hello world';

?>
In screenshot is the example for how we can use echo statement and the output screenshot. Now we can also use html tags in php for example

Output (screenshot):-

Echo Statement
Output Echo Statement



In example of code we had echo statement after echo we can use single quotation mark(‘) or double quotation mark(”) and you will learn about this when, why and where you should use quotation marks. Basically Double quotation mark allows you to output variables inside program before that you should know what are variables are. But this tutorial is about echo i am not going in so detail later on this will explain in detail. and semi colon (;) is used to end of the line in echo statement and also separator for two echo statements used one by another otherwise we can get some errors for example see Screenshot1 and Screenshot2.

echo statement
Screenshot1

echo statement
Screenshot2


html tags in php code (screenshot 5) :-

html tags in php
Screenshot5



<?php

echo "<strong>Hello world.</strong>";

?>
output screenshot 6:-

Echo Statement
Screenshot6
In this example you had idea how we can use html tags in php. And also Echo statement uses for echoing output to the browser.
Read More

Sunday, 9 February 2014

Installing Xampp Part -1

This is Php Tutorial of Tutorials JackPot. If you want to start as php developer, Then firstly you need to have a platform to test your codes. You must have already purchased your paid hosting check whether they allow php extensions or not ! 99% paid or free hosting allows you to run php on the server. Its pretty much obvious that in most cases most of the hosting companies gives this service to its customer.


Hosting
Hosting

What happens when you want to test everything locally on your computer.So firstly, create a php file and upload it to the server as above ,but we want to quickly and easily obtain its result on the local machine. So what we can do is that we can turn over our computer into a web server. Now, its highly not recommended to allow access to the web server and the files if its not properly configured, Otherwise you can have some security issues there. Let me show you a screenshot of how you can access an another portion your computer. Opening a port 80 on your computer which allow people to access everything you save into your htdoc folder. As going ahead, Ill explain you about how to create or install a mini web server on to your computer. As I am personally using “Xampp” I would advice you to download and install “Apache” as a web-server for php. Apache web-server allows you to compile in the background server, Since php is a server side language.It allows you to compile php files, run them and display the content of your programs in the browsers.

Localhost
LocalHost
So, basically you need something like xampp or wamp. I am showing you wamp so its available however i am going to be dealing with xampp and xampp by default directory things like that. So, if you are following this tutorial i am using xampp or otherwise you can take wamp and see you can get idea from this tutorial.

Xampp
Xampp
However you can also use “Wamp” for php which works on “IIS” server that can be easily installed on “Windows OS”.Working of both Xampp and Wamp are almost same,just the difference is about the folder where the file is saved.


Redirecting to Xampp, Firstly friends you need to visit Appache Friends.There you will find Xampp for Linux, Xampp for Windows, Xampp for Mac os x, Xampp for Solaris. Php can easily work on any of this operating system and its also free of cost.For support on how to install Xampp here are some screenshots.Download Xampp by clicking it on Xampp s Xampp Installation page

or
Method B : “Installation” without the installer   ( I highly recommend you to go with the installer method A.)




Read More

About Me

Welcome to Extra Tutorials! My name is Mohammed and I am the 22 year writer, website developer, and photographer behind the blog. Thanks for visiting! Tutorials Jackpot… In addition to Developer, I love to develop websites and I love to write. Starting a php Blog was inevitable for me. What began as a simple way to share all of my Tutorials with friends and family has developed into my Part time job.

Mohammed Padela

WHAT IS PHP PROGRAMMING

WHAT IS PHP PROGRAMMING
WHAT IS PHP PROGRAMMING

Follow Us

Popular Posts

Designed ByBlogger Templates