this is Raghu from tutorial drive calm and welcome to PHP video series so now we created a PHP folder let’s open that folder in any of your favorite text editor so in my case I’m using sublime text so I open this PHP folder in sublime text now if you see I don’t have any files so let’s create a new file and let’s save it with named index dot PHP so all your PHP files should end with dot PHP okay saved so now you have to follow a syntax by writing PHP code that is less than symbol followed by question mark then PHP so this is the starting pad for the PHP and then you can write anything like hello world and then end it with question mark then eager to than symbol then save it and go to your browser and open localhost so if you open localhost you can see it’s still the old page because our directories are our file is inside PHP folder so call localhost / PHP and then enter as you can also give index dot PHP at the end but in a way it is giving an error okay the reason is in PHP every line should or every statement should end with a semicolon okay now let’s save and reload okay here also still terror so what we will do because we just wrote hello world which doesn’t make since okay so let’s give something like this echo hello world echo is used in PHP to print output see now I can see hello world so if I want to use any HTML code inside PHP then what can I do I can simply type something like and at the end so this is the HTML code I just put inside the double quotes with a keyword echo so I’m saving it and let’s reload our page hello world and this has heading so this is how we can use HTML inside page and not only this syntax we don’t need to use PHP actually we can use something like format so we should see both right so this is the simple example in the next lectures we will see more concepts

Tags:






Youtube
Facebook
Google Plus
Twitter
TutorialDrive


Apache Zookeeper Tutorial

Apache Kafka Tutorial

Apache Kafka Security

Elasticserarch n Kibana

Java 8 Tutorial

Log4J Tutorial

Apache Storm Tutorial

SQLite Tutorial

Apache Ant Tutorial

Related Posts

blog

Apache Kafka Commands Cheat sheet

Spread the loveKafka Topics List existing topics bin/kafka-topics.sh –zookeeper localhost:2181 –list Purge a topic bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –config retention.ms=1000 … wait a minute … bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –delete-config retention.ms
Read more…

blog

What is Apache Maven | Apache Maven complete tutorial from scratch pdf

Spread the love In this post you will learn the complete tutorial of Apache Maven build tool What is Maven ? Apache Maven is a software project management and comprehension tool. Based on the concept
Read more…

blog

Practical Guide for Web Development in 2018

Spread the loveWelcome to my practical guide  for web development in 2018 in terms of  technology and career. Before we start I just want to  mention a few things, you don’t need to learn  everything that
Read more…