>>
Site Map
>>
Forums
>>
General 6x
Forum module - topics in forum:
General 6x - Discussions reagarding any other PHP-Nuke Problems.
Question on PHP
Why is PHP so hard? - I have read PHP for Beginners, PHP for absolute Beginners, PHP & MySQL for Dummies and Teach Yourself PHP in 24 Hours and I still don't get it. So far all I have learned is the opening and closing tags and well, maybe I can write "Hello World". Is there a trick to learning PHP. I just can't seem to grasp it at all. I am hoping someone can shed some light on it for me. I don't know how you guys do it or how you learned it. Maybe I am dumb because I usually catch on so quickly but this one has stumped me totally. Well, I figured I would share my frustration in this forum, maybe there are others out there lost like I am.
Thanks for any help or secrets of learning PHP
Cheers!
Shedrock
The way i learned it was by looking at a piece of code that someone has wrote, say a piece from PHP-Nuke, i then find out whay all the bits and functions mean and do by loking them up on
www.php.net, another resource woulde be
www.phpbuilder.net.
After a while it all starts to make sence and plug together

Well, I will give that a shot. Hopefully I may pick up something along the way. Anyway, thank you very much for your help.
Cheers!
Shedrock

Re: Question on PHP
| shedrock Wrote: : |
I can write "Hello World". |
That's more then me then. 
I think the trick is to know html first.
he br
PHP just sends html to the browser
i.e.
<?php echo "<b>Hello World</b>"; ?>
Once you know html, using simple if...then and loops mean that you can send content. Then work on database access and you have it cracked.
See simple 
I think my problem is that I don't know when to use what, if that makes any sense. Every now and then I look at a bit of the nuke php files, eg: mainfile.php and it is totally overwhelming. I sometimes try to figure out why there are so many curly brackets in an array if that's the right term but it just seems confusing. I am quite sure that many people who know PHP or catch on to it easier that others have some sort of programming background already. I could be wrong but it makes me feel better believing that
- I guess I have to stick with it and keep reading the books or maybe I am just the type that needs to sit down in a classroom and have someone teach me hands on. As for HTML. Well, I know a bit but Frontpage makes it so easy so I never really had to learn it from the basics and up. Anyway, I am determined to learn PHP & MySQL even if it takes me longer than most.
Cheers!
Shedrock
Just my opinion but thise WYSIWYG Programes like Frontpage and so on are horrible, if you use them rather then code HTML or any language they do the work for you and you have that bit less of an understanding of how the language works, which might be a factor when oyu try to learn a new language like PHP.
I use dreamweaver cause its a nice program but neve use anything other thant the codeing page, I never use the WYSIWYG part.
Try to code HTML and once your proficient in that (without using WYSIWYG) then oyu might find it esaier to beance off into Visual Basci, Javascript, PHP, DHTML or any language