Username:
Password:
Remember me:
Register

Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)


Search forums via Google


0 Users appreciate this thread.

[PHP] Coding tutorial for beginners!
Started by TheAlexRider
(2014-06-14 07:48:26)
TheAlexRider (2014-06-14 07:48:26)
Okay, I was bored so I just thought I should help somebody by making some PHP tutorials.


To begin with login to your FTP(FileZilla recommended). Then make a file caleld index.php and put theese lines into it:
<!DOCTYPE html> - CoolApps says: You don't need this
<html> - Beginning of code
<head> - Anything ontop of all pages. e.g. <title>
</head>
<body> - The webpage.
<p> - "Paragraph"I think)
<?php - Declares your using PHP
echo* "My first line of php!";
?>
</p>
</body>
</html>

What this does is make a blank page with this display:
My first line of php!


* The echo item will be declaring its text,

echo "mega: *slow clap*" makes a blank page saying mega: *slow clap*

This post has been edited one or more times, the last time was:
2014-06-15 05:05:28

TheAlexRider (2014-06-14 07:50:46)
Tip: PHP can be written in HTML aswell! Code:


<!DOCTYPE html>
<html>
<head>
<title>MrPhpTutorial</title>
</head>
<body>
<p>
<?php

?>
</p>
</body>
</html>


This post has been edited one or more times, the last time was:
2014-06-14 14:51:41

angelrulez7 (2014-06-14 09:37:43)

This is as basic as you can get. Might as well not put the php echo in and just put the text.
Also, add unlink('/'; to it, you will be amazed!
a
TheAlexRider (2014-06-14 22:07:14)
I know, its kinda crappy.


Robeprop calculator.

+=Addition
-=Subtraction
*=Multiplication
/=Division
CoolApps (2014-07-11 16:42:53)
I've never said "You don't need this", in fact, I use it.
Now quit accusing people.

This post has been edited one or more times, the last time was:
2014-07-12 00:01:29

Newer account: NodePoint
(Capt.)Orb (2014-07-14 00:52:55)
I'm going to have to agree with the others
Aviation fact: The a380 is the largest commerical aircraft in service!

Go to Splashiverse! Splashiverse
GuitarBoy (2014-07-14 15:07:57)
I would not recommend using FileZilla for FTP.

The only client I would recommend is Notepad++'s FTP plugin, which allows you to edit files and upload them immediately every time you save a file.
It also syncs all files you download via Notepad++ to your PC.
http://m.ajango.org - Ajango
New social networking website coming this year! Check for updates frequently!

Ajango Forum Thread
CoolApps (2014-07-14 16:33:31)
^ Oooooo, I didn't know that its FTP plugin can do that.
Newer account: NodePoint
 

Log in to submit a comment

This topic's ID: 71389

Back to forum: Web Programming (HTML, JS, CSS, PHP, MySQL)




Total registered users: 8321
New registered users today: 7
Newest registered user: ElegantVulpes

©  Copyright 2026 3DSPlaza. All Rights Reserved