JavaScript to PHP

CaviB

Google Hammered 24/7
Jul 11, 2009
520
3
0
Canada
:party-smiley-004:I've been doing JavaScript hardcore for about 8 months so I know the language quite well, Just wondering how the transition will be to learn PHP and MySql?
 


Lots of languages these days are very similar in concept. You'll see a lot of overlap but it's still a whole new world.
 
You'll be saddened by PHP's inability to dynamically change your page. Once it renders, it's rendered. You have to rely on JS to change stuff without a refresh.

You'll be excited by PHP's power to do stuff in the background with databases and graphics and such (MySQL, GD, etc).

They're different beasts. Both useful.
 
You'll be saddened by PHP's inability to dynamically change your page. Once it renders, it's rendered. You have to rely on JS to change stuff without a refresh.

You'll be excited by PHP's power to do stuff in the background with databases and graphics and such (MySQL, GD, etc).

They're different beasts. Both useful.


Well least he's got the first part down, combine a JS framework such as JQuery with PHP and you got yourself a pretty powerful combination, especially with JQuery's support of JSON and PHP5's native support for the same.
 
Well *SQL is a functional language so that might make you think differently.

PHP will make you think similarly to javascript, but you will find it bothersome how little love functions get in PHP5. You will miss the JSON name parameters. And you will thump your wang on the table in glorious delight at the ability to store info about your users indefinately.
 
You'll be saddened by PHP's inability to dynamically change your page. Once it renders, it's rendered. You have to rely on JS to change stuff without a refresh.

You'll be excited by PHP's power to do stuff in the background with databases and graphics and such (MySQL, GD, etc).

They're different beasts. Both useful.

well php is a server side language...once it's rendered php has completed its task, after that it's all up to code executable client side ( js )

you'll love how easy and powerful php is, if you can use javascript you shouldn't have problems with php as far as it regards syntax, javascript won't work if you write ' in place of " and other gay stuff like this, and it doesn't even tell you why...php has pretty good error messages to help you understand where the problem is

if you have never used databases to organize data then that will probably be the hardest concept to understand, but it's nothing impossible
php and mysql are far easier ( at least for me ) than asp with any db engine
 
Hi CaviB,
PHP and Javascript dont have that kind of control. Even C++ and Java don't have that control, unless you want to reverse engineer a driver yourself, but there's no point. Thats why the manufacturer of the webcam supplies their own driver, which you need to even get access to the image data.
 
Hi CaviB,
PHP and Javascript dont have that kind of control. Even C++ and Java don't have that control, unless you want to reverse engineer a driver yourself, but there's no point. Thats why the manufacturer of the webcam supplies their own driver, which you need to even get access to the image data.

What are you talking bout? (and yes C++ has that kind of control) I didn't see him mention anything bout webcams and such in his original post.
 
What are you talking bout? (and yes C++ has that kind of control) I didn't see him mention anything bout webcams and such in his original post.

Ditto. What the fuck is he talking about?

Victory said:
but you will find it bothersome how little love functions get in PHP

PHP is a crappy language(but it doesn't matter). It just happens to be a crappy language which is the core of a very useful toolkit that people refer to in total as PHP.