- This topic is empty.
March 3, 2012 at 11:01 pm #36969Odd_EMember
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.March 4, 2012 at 12:05 am #98088nlfatkidMember
Have you checked out WordPress?March 4, 2012 at 1:04 am #98091nlfatkidMember
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”.March 4, 2012 at 3:16 am #98093
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.
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.
Go get ’em!March 5, 2012 at 11:10 am #98182March 7, 2012 at 10:02 am #98359
@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.March 19, 2012 at 10:34 am #99407AnujakParticipant
If You Want Start PHP With Basic To Advance then Visit This SiteMarch 19, 2012 at 5:48 pm #99444mailmevenkatMember
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 .
- The forum ‘Back End’ is closed to new topics and replies.