Best way to learn PHP and Javascript. |
Best way to learn PHP and Javascript. |
Aug 11 2009, 09:56 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
Would you still suggest http://www.w3schools.com/?
Or should I go buy some books? I need to really master php but I just need to learn the basics of java script first. And someone explain to me, the idea behind java script. |
|
|
|
![]() |
Aug 11 2009, 10:22 AM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
The Idea Behind JavaScript
JavaScript provides a way to enable client-side interaction with a web page. Web pages are marked up using HTML, and served over HTTP. To get a web page, your computer requests a page from a web server, which fetches the page (stored on the server) and returns the HTML markup to your computer via HTTP. Your computer then renders the page. This means that every page interaction requires communication with the server, which is relatively slow compared to communication with the local machine. JavaScript removes this limitation by enabling some interaction with web pages without requiring communication with the server. Learning PHP Don't. It's a horrible language and not much fun for doing web development anyway. Learn something more useful, like Python or Ruby, which are both (a) better for web development anyway, and (b) also useful outside of web development. |
|
|
|
Aug 11 2009, 10:43 AM
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
Thank you.
I started browsing through the w3schools javascript section. Im not sure if it is in depth enough but I am getting the idea. http://www.w3schools.com/JS/js_comparisons.asp And my "boss" at my internship suggested that I learn it. It is what all his programmers use. Sorry. haha. |
|
|
|
Aug 11 2009, 10:46 AM
Post
#4
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
That's a shame. Your boss probably just uses it because everyone else does.
|
|
|
|
Aug 11 2009, 10:49 AM
Post
#5
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
Whatever he is doing, he is doing it right. What is used to write iphone apps?
|
|
|
|
Aug 11 2009, 10:56 AM
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
Whatever he is doing, he is doing it right. What is used to write iphone apps? Not PHP! Objective-C is typically used to write an iPhone app. (Incidentally, Objective-C is typically used to write Mac apps, too.) Unlike PHP, Objective-C is totally awesome, but they're starkly different and comparing them is like comparing apples and oranges anyway. |
|
|
|
Aug 11 2009, 10:57 AM
Post
#7
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
Oic! Well im still gona learn php. But w3schools suggested I learn, Javascript first.
|
|
|
|
Aug 11 2009, 10:59 AM
Post
#8
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
|
|
|
|
Aug 11 2009, 11:30 AM
Post
#9
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
I was gonna buy a python book the other day. Till i realized it was 50 bucks. And besides php seems a lot more versatile and easier to learn.
|
|
|
|
Aug 11 2009, 11:32 AM
Post
#10
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Administrator Posts: 2,648 Joined: Apr 2008 Member No: 639,265 |
I was gonna buy a python book the other day. Till i realized it was 50 bucks. And besides php seems a lot more versatile and easier to learn. Easier to learn, probably. Not "easy" isn't always the "best" way. Versatile? Like I said, PHP is hardly used outside of web development; Python is widely used to write desktop applications as well as web apps. Python has better library support, too. (Those last two things also go for Ruby.) I think both Python and Ruby win on the versatility front, hands-down. |
|
|
|
Aug 11 2009, 11:33 AM
Post
#11
|
|
![]() AIDS at RAVES. ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 2,386 Joined: Dec 2007 Member No: 598,878 |
if you want iphone apps tutorial visit
http://www.smashingmagazine.com/2009/08/11...ne-application/ |
|
|
|
Aug 23 2009, 09:29 PM
Post
#12
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
Ok, im having an odd problem. In all the php tutorials I have read they dont teach the basic useful Stuff, what is this called and how do i do it...
I have like a variable and then I want it to show up on another page. Im using it so I can have separate keywords and stuff on each page. CODE <php $title = "Page title here"; $description = "description here"; $keywords = "keywords go here each seperated by commas"; ?> this is on the index of a page. And then in my header include I have, CODE <title><?php echo '$title' ?></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="description" content="<?php echo $description ?>" /> <meta name="keywords" content="<?php echo $keywords ?>" /> Am I doing it right? Cause it doesnt seem to be working. |
|
|
|
Aug 23 2009, 09:38 PM
Post
#13
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
Are you including the variables in the same page as where you want them to show up, and before the HTML?
|
|
|
|
Aug 23 2009, 09:48 PM
Post
#14
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
No.
I have an include called header.php that is in a folder called includes that I put on all my pages. Instead of having the keywords in header.php I want to give each page its own keywords. So I put the second code in header.php and in index.php I put CODE <php $keywords = "keywords go here each seperated by commas"; ?> hoping that it would put the text keywords go here each seperated by commas in the keywords section. I probably worded that really badly. But it isnt working. And im doing the same thing with the title and the description meta tag. |
|
|
|
Aug 23 2009, 09:54 PM
Post
#15
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
Ahh...if you're printing a variable, that variable's definition needs to occur before the spot where you print it.
So it would be something like this: CODE <?php include('seo.php'); include('header.php'); ?> You'd just have to specify which definition you want to show up for which page. |
|
|
|
Aug 23 2009, 10:31 PM
Post
#16
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
huh/ I have my includes working already. I need to get my variables working.
|
|
|
|
Aug 23 2009, 11:05 PM
Post
#17
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 |
Right...but the variables need to be defined before you print them. Btw, the <?php echo '$title' ?> won't work at all. I just noticed that. It'll show up as <title>$title</title>. It should be <?php echo $title; ?>
|
|
|
|
Aug 23 2009, 11:17 PM
Post
#18
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
Ok i figured out the problem. I put the <?php $title = "Page title here"; ?> after the include. I guess I wasnt thinking.
|
|
|
|
Sep 15 2009, 02:30 PM
Post
#19
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 5,880 Joined: Nov 2007 Member No: 593,382 |
you know best way to learn enrish? read books! good PROFFESSIONAl books! becauseing learning from the sources on the internet is liker learning zoo farm treat farm swine!
|
|
|
|
![]() ![]() |