Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Starting PHP

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #36969
    Odd_E
    Member

    So I’m interested in starting PHP. I want a base index.php with references on how to link to a header.php file ans so on. I also want to know the markup for a linked PHP file. Does it need a whole head and body tag, or does it just need the div element with or whatever it is.

    Thank you.

    #98088
    nlfatkid
    Member

    Have you checked out WordPress?

    #98091
    nlfatkid
    Member

    I gotchya… I’m still kinda figuring out PHP myself… I don’t have a good grasp on it either. It feels a lot like high school algebra to me. “If, then” statements still don’t always make sense to me and it seems like the verbage of PHP doesn’t always make sense.
    The thing that helped me understand PHP the most was WP. Have you looked at how a theme works?
    The construction of it?
    PHP works pretty damn close to it. I’ve always understand that the WP codex is a copy cat version of PHP. I just went through a huge battle with a guy on StackExchange, all over semantics of a PHP “loop” and the WP “Loop”.

    #98093
    Senff
    Participant

    I agree with @kgscott284 — you’ll be better off learning things yourself than when people give you ready-to-use code. If you want to learn a new language, learn to walk before you jog.

    But right.

    To link a header in your index.php file:

    The contents of header.php will simply be placed where you call the include, so no additional header/footer/etc. needed.

    More info: http://php.net/manual/en/function.include.php

    Go get ’em!

    #98182
    Senff
    Participant

    @knittingfrenzy18 — I respectfully disagree. See http://www.w3fools.com :)

    #98359
    Senff
    Participant

    @knittingfrenzy18 You’re right, it can be helpful when it comes to the super bare basics. If I need something fairly simple (things like the basic syntax of a CASE statement in whatever language) and I google it, I often end up on W3Schools. So yea, I use it for quick reference every now and then, but I wouldn’t recommend it to anyone as a starting course.

    #99407
    Anujak
    Participant

    If You Want Start PHP With Basic To Advance then Visit This Site

    http://webdevelopplus.com/php-tutorial-introduction

    #99444
    mailmevenkat
    Member

    hmmm! What exactly do you need . I am not professional in php but i’m intermediate and i learn a lot. Php is great to work with. If you are a beginner i recommend you to buy a complete reference php book or try w3schools.com to learn php .

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘Back End’ is closed to new topics and replies.