Sunday, 6 November 2016
FREE WEB HOSTING
-----------------------------------------------------------------------------------------------------------------
READ MORE:
https://www.000webhost.com/members/website/list
https://files.000webhost.com/
https://fbigadgets.000webhostapp.com/button.html
https://www.000webhost.com/members/website/list
----------------------------------------------------------------------------------------------------------------
DELETE FILE IN public_html FOLDER
0) SELECT FILE + RIGHT MOUSE CLICK
1) CLICK DELETE TAB
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
HOW TO UPLOAD NEW FILES:
https://www.000webhost.com/members/website/fbigadgets/files
----------------------------------------------------------------------------------------------------------------
MUST BE LOG IN ACCOUNT 000WEBHOSTING FOR RUN PHP FILE
HOW TO UPLOAD PHP FILE
COPY AND PASTE CODE AND SAVE AS my.php
http://www.w3schools.com/php/php_variables.asp
https://fbigadgets.000webhostapp.com/my.php
PHP FILE UPLOAD IN 000WEBHOSTING
https://youtu.be/BHj5hmETVdU
-----------------------------------------------------------------------------------------------------------------
CODE:
-----------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<body>
<?php
$txt = "Hello
world!";
$x = 5;
$y = 10.5;
echo $txt;
echo "<br>";
echo $x;
echo "<br>";
echo $y;
?>
</body>
</html>
ReadMore:
https://www.thoughtco.com/php-with-html-2693952
-------------------------------------------------------------------------------------------------------------------
There are two ways to use HTML on your PHP page. The first way is to put the HTML outside of your PHP tags. You can even put it in the middle if you close and reopen the <?php and ?> tags. Here is an example of putting the HTML outside of the tags:
<html>
<title>HTML with PHP</title>
<body>
<h1>My Example</h1>
<?php
//your php code here
?>
<b>Here is some more HTML</b>
<?php
//more php code
?>
</body>
</html>
As you can see you can use any HTML you want without doing anything special or extra in your .php file, as long as it is outside of the PHP tags.
The second way to use HTML with PHP is by using PRINT or ECHO. By using this method you can include the HTML inside of the PHP tags. This is a nice quick method if you only have a line or so to do. Here is an example:
<?php
Echo "<html>";
Echo "<title>HTML with PHP</title>";
Echo "<b>My Example</b>";
//your php code here
Print "<i>Print works too!</i>";
?>
Using one or both of these methods you can easily embed HTML code in your PHP pages, to give them a nicer more formatted look, and make them more user-friendly.
---------------------------------------------------------------------------------------------------------------------IMAGE SRC IN PHP
---------------------------------------------------------------------------------------------------------------------
<?php
/**
* HOW TO
IMAGE SRC SHOW IN PHP
**/
Echo "<html>";
Echo "<title>HOW
TO IMAGE SRC SHOW IN PHP</title>";
Echo '<img
src="https://www.w3schools.com/tags/smiley.gif" alt="Smiley
face" width="42" height="42" border="5">';
?>
---------------------------------------------------------------------------------------------------------------------
IMAGE SRC BORDER IN CSS
READ MORE
http://html.com/attributes/img-border/
---------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<style>
img{
width: 42px;
height: 42px;
border-top-width: 5px;
border-right-width: 5px;
border-bottom-width: 5px;
border-left-width: 5px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
</style>
<body>
<img src="https://www.w3schools.com/tags/smiley.gif">
<p>The border attribute
is not supported in HTML5. Use CSS instead.</p>
</body>
</html>
--------------------------------------------------------------------------------------------------------------CSS CODE IN PHP
--------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
<?php
/**
* HOW TO
IMAGE SRC SHOW IN PHP
**/
Echo "<style>
img{
width: 42px;
height: 42px;
border-top-width: 5px;
border-right-width: 5px;
border-bottom-width: 5px;
border-left-width: 5px;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
</style>";
Echo "<html>";
Echo "<title>HOW
TO IMAGE SRC SHOW IN PHP</title>";
Echo '<img
src="https://www.w3schools.com/tags/smiley.gif">';
Echo '<p>The
border attribute is not supported in HTML5. Use CSS instead.</p>';
?>
Subscribe to:
Post Comments (Atom)
Web Hosting in Pakistan is a Cheap Hosting and Domain provider in Pakistan, We Deal in Web hosting, reseller, Domains and VPS in Pakistan. PkDomain Web Hosting in Pakistan is a Cheap Hosting and Domain provider in Pakistan, We Deal in Web hosting, reseller, Domains and VPS in Pakistan. we are cheapest, best free web hosting & PK domain registration services provider company in Pakistan, get vps and Dedicated hosting in cheap rates. Give your business an online presence with us today at PK Domain. .pk domain provider
ReplyDeleteGood Post. I like your blog. Thanks for Sharing
ReplyDeletePHP Course in Gurgaon
Thanks for sharing your valuable information and time.
ReplyDeletePHP Training in Gurgaon
PHP Course in Gurgaon
PHP Training institute in Gurgaon
Awesome article bro. Very helpful. Thank you very much :).
ReplyDeleteBusiness Web hosting in Pakistan