Webdesign With PHP besides HTML CSS

Discussion in 'HTML & Website Design' started by Tanjila, Nov 27, 2013.

?

I want to know details about Raw PHP

Poll closed Dec 4, 2013.
  1. PHP

    0 vote(s)
    0.0%
  2. PHP My Sql

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. #1
    Hello, I am new in the forum. Want to make a site by using PHP. I have few experience about HTML CSS Now I want to make a site with php. Some design will have with html css. How can I make it more attractive please suggest me... Thanks
     
    Tanjila, Nov 27, 2013 IP
  2. croatoos

    croatoos Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    If you want more attractive website u can use JavaScript and jQuery.
    PHP is for back-end (working with data, connect to database...)

    You can learn all of that on www.codecademy.com...
    good luck ;)
     
    croatoos, Dec 3, 2013 IP
  3. jamjar919

    jamjar919 Well-Known Member

    Messages:
    332
    Likes Received:
    7
    Best Answers:
    5
    Trophy Points:
    180
    #3
    PHP is not a presentation language - It is not designed to make your site LOOK better, rather FUNCTION better. PHP can help you add dynamic pages and preprocessed data into your HTML code - PHP does stand for PHP: Hypertext Processor. This of course indicates it's function is to process hypertext, there are no design features built into the language.

    If you want to improve the way your page looks, you should take a look at jQuery and possibly JavaScript as they can help you add more presentation-y elements on your page, although try to steer clear of bloat.
     
    jamjar919, Dec 4, 2013 IP
  4. matt_62

    matt_62 Prominent Member

    Messages:
    1,827
    Likes Received:
    515
    Best Answers:
    14
    Trophy Points:
    350
    #4
    in a way, to make a simple php site, you take a html file, and rename it to be filename.php
    now that it has the extension of .php, you can put in a little php code.

    i am not an expert, but here is something that i found useful.
    in your html files, sometimes you have footer links, or navigation links, or even ad spots that you want to be synchronized across many pages of your site.
    what you can do is take your completed html file, cut out the html code for say the footer links and paste into a file called "footer.php"
    now to pull that into your html file, use:
     <?php include 'footer.php'; ?>
    Code (markup):
    (you paste this for where you want the footer code to appear.)
    now on your webserver, it will display as a normal html file.
    to find out more, view: http://www.w3schools.com/php/php_includes.asp

    to view php code locally, you will need to install xampp, dont worry its free and works on windows and linux.

    This little trick is hardly special, but i figured that it is something that you can use now. I have a 50 page "html" site, and I use coding such as this to simplify updating navigation areas, or even a notice box / sidebox, or even for maintaining advertising code.

    Hope this helps!
     
    matt_62, Dec 4, 2013 IP
  5. creativewebmaster

    creativewebmaster Active Member

    Messages:
    654
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    78
    #5
    Is your website is static website? If, yes then Why you looking PHP? Or do you want to add some dynamic functionality into your website?
     
    creativewebmaster, Dec 4, 2013 IP
  6. jonrod

    jonrod Member

    Messages:
    195
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #6
    PHP is not for design, it's more of programming the back-end of the website.
    You can use Javascript/JQuery if you want to make your site look better.
     
    jonrod, Dec 5, 2013 IP