ADVANCED COMPUTER PROGRAMMER PLEASE READ AND ANSWER!?
Hi, ok so I am trying to learn a programming language (PHP) which would also be my first one, so that I can write some dynamic web development applications with it. Some may argue and say that it is a scripting language, well it is but then some may also say that it can also be categorized as a programming language… I have been looking at some online resources and have been trying to learn it by reading things up about variables, strings etc but I just cannot get my head around it, what should I do? I really want to be able to code well and use PHP… I read a page before and another guy had the same problem and another person answered by saying that “you need to know how computer programming works, not a specific language but just computer programming in general” Would I be able to grasp the concept of PHP by learning computer programming? I know XHTML and CSS but they are mark-up languages and I can understand and use them quite easily but I just don’t understand how PHP works…. Advice here would be great thanks, have a nice day btw.
To Zanzizi, Yes i do have a server setup, I installed WAMP about a month ago, you would most likely know what that is. I do understand that it is a big learning curve when it comes to programming, i’m just gonna have to absorb all the info on it and practice i suppose. Big thanks to all people who answered. ![]()
To Zanzizi, Yes i do have a server setup, I installed WAMP about a month ago, you would most likely know what that is. I do understand that it is a big learning curve when it comes to programming, i’m just gonna have to absorb all the info on it and practice i suppose. Big thanks to all people who answered.
Expect for Sponge, he probably had a brain malfunction or something…
I disagree with Gr1m : "PHP is not dynamic" – yes it is.
It creates HTML ‘on-the-fly’ and hence is dynamic which is what I think the OP meant.
To the OP (Original Poster fwiw): I suspect your main problem is marrying your markup knowledge with a programming language.
It is a messy business.
Try the simple stuff first, like putting a value in a variable and getting it to appear in the browser.
You do know that you need a webserver to write php right?!
It’s the webserver that sends any <?PHP or filenames ending in .php to the parser.
[I hope you'll excuse me if my terminology is incorrect - I'm an asp.net person].
The parser then sends plain text to the user’s browser that requested the page.
If you don’t have a server then you can’t code in php – hm, correction, you can code in php, you just can’t run it to test it.
Much like not having the Java Virtual Machine and trying to run a Java based application.
Checkout: Installing PHP under Windows:
http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/
Alternatively, if you have Windows XP Pro then you can install Internet Information Services (aka IIS).
I have not installed PHP on a windows machine before and can help you no further with that.
Good Luck and Have Fun!!
good god
References :
First off: PHP is not dynamic, and dynamic web development applications are not possible using JUST PHP. Regardless, PHP is very useful for web pages and writing scripts.
After learning any programming languages, the rest are consecutively easier to learn, because the concepts are the same. HTML and CSS isn’t real helpful as they don’t work with variables, and can’t process functions etc.
Read some tutorials on PHP, keep at it, and eventually things will fall into place. If you’re able to take an introduction to programming class anywhere, take it. If you have any specific questions, feel free to contact me, and i’ll get you answers.
References :
I disagree with Gr1m : "PHP is not dynamic" – yes it is.
It creates HTML ‘on-the-fly’ and hence is dynamic which is what I think the OP meant.
To the OP (Original Poster fwiw): I suspect your main problem is marrying your markup knowledge with a programming language.
It is a messy business.
Try the simple stuff first, like putting a value in a variable and getting it to appear in the browser.
You do know that you need a webserver to write php right?!
It’s the webserver that sends any <?PHP or filenames ending in .php to the parser.
[I hope you'll excuse me if my terminology is incorrect - I'm an asp.net person].
The parser then sends plain text to the user’s browser that requested the page.
If you don’t have a server then you can’t code in php – hm, correction, you can code in php, you just can’t run it to test it.
Much like not having the Java Virtual Machine and trying to run a Java based application.
Checkout: Installing PHP under Windows:
http://www.devarticles.com/c/a/Apache/Installing-PHP-under-Windows/
Alternatively, if you have Windows XP Pro then you can install Internet Information Services (aka IIS).
I have not installed PHP on a windows machine before and can help you no further with that.
Good Luck and Have Fun!!
References :
Apache