Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Java/JavaScript or PHP?

Featured Replies

If I was going to make a login system with other features which out of Java/JavaScript or PHP or any other would be best to learn?

Which is the most up to date and would still be used in 5-10 years time.

Edited by Vulcan

If I was going to make a login system with other features which out of Java/JavaScript or PHP or any other would be best to learn?

Which is the most up to date and would still be used in 5-10 years time.

Id say all 3 would be around in 5 to 10 years reason i say this is All phone apps are powered by java as for php thats not going anywhere anytime soon lol its one of the most popular web programming languages and id say the same for javascript.

For a login system, you're going to need some server-side programming (to handle the database side of things) so PHP will be good for that, mainly because there's lots of support out there for that type of thing. Like webdesigner said, PHP is one of the most popular web programming languages so there's a good chance you'll find what you're looking for should you run into trouble :)

 

For database connections using PHP, I found this website useful: http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/. It goes through the most recent PHP 5+ methods of database connections, avoiding the deprecated mysql_connect functions, which are no longer recommended.

 

And don't forget about JavaScript. It can be used for some client-side validation before the login is processed. Though don't forget about server-side form-validation, it's important for security! I personally like the jQuery Validate plugin for validating forms as I find it easy to implement and it basically does everything for you: http://bassistance.de/jquery-plugins/jquery-plugin-validation/.

 

Hope this helps,

Lyndsey

Id say all 3 would be around in 5 to 10 years reason i say this is All phone apps are powered by java as for php thats not going anywhere anytime soon lol its one of the most popular web programming languages and id say the same for javascript.

C/C++,C#,Java, Basic, Python etc. = programming languages

PHP, javascript, HTML, CSS = /= Programming language

 

PHP and javascript are both scripting languages

 

if it's scripted and can't be compiled it's not a programming language.

 

For a login system, you're going to need some server-side programming (to handle the database side of things) so PHP will be good for that, mainly because there's lots of support out there for that type of thing. Like webdesigner said, PHP is one of the most popular web programming languages so there's a good chance you'll find what you're looking for should you run into trouble :)

 

For database connections using PHP, I found this website useful: http://net.tutsplus.com/tutorials/php/pdo-vs-mysqli-which-should-you-use/. It goes through the most recent PHP 5+ methods of database connections, avoiding the deprecated mysql_connect functions, which are no longer recommended.

 

And don't forget about JavaScript. It can be used for some client-side validation before the login is processed. Though don't forget about server-side form-validation, it's important for security! I personally like the jQuery Validate plugin for validating forms as I find it easy to implement and it basically does everything for you: http://bassistance.de/jquery-plugins/jquery-plugin-validation/.

 

Hope this helps,

Lyndsey

+1 to all of that and I'd also like to provide you with this, interactive courses are always the best way to learn

http://code.he.net/index.php

C/C++,C#,Java, Basic, Python etc. = programming languages

PHP, javascript, HTML, CSS = /= Programming language

 

PHP and javascript are both scripting languages

 

if it's scripted and can't be compiled it's not a programming language.

 

+1 to all of that and I'd also like to provide you with this, interactive courses are always the best way to learn

http://code.he.net/index.php

haha yea thanks for the insight but imma still refer to it as a programming language ive seen many debates online over rather PHP is a programming language or not but as an example heres a quote from PHP-GTK which is an extension to the php scripting language coming from PHP.net itself

 

"PHP-GTK is an extension for the PHP

programming language

"

 

highlighted the important part in red even tho it is a scripting language its still commonly refered to as a programming language here is also another good quote

which shows php does not have to just be used for web programming

 

"

Writing desktop applications. PHP is probably

not the very best language to create a desktop

application with a graphical user interface, but if

you know PHP very well, and would like to use some

advanced PHP features in your client-side applications

you can also use PHP-GTK to write such programs. You also

have the ability to write cross-platform applications this

way. PHP-GTK is an extension to PHP, not available in

the main distribution. If you are interested

in PHP-GTK

"

 

not to mention there is plenty of PHP compliers as well. And im not here to start a debate as a programmer who has both wrote C++ code and java im just here to give my opinion on the subject.

Edited by webdesigner93

haha yea thanks for the insight but imma still refer to it as a programming language ive seen many debates online over rather PHP is a programming language or not but as an example heres a quote from PHP-GTK which is an extension to the php scripting language coming from PHP.net itself

 

highlighted the important part in red even tho it is a scripting language its still commonly refered to as a programming language here is also another good quote

which shows php does not have to just be used for web programming

 

not to mention there is plenty of PHP compliers as well. And im not here to start a debate as a programmer who has both wrote C++ code and java im just here to give my opinion on the subject.

 

You do what you will, I'm sure some consider it a programming language but untill it can be used to prefor low level operations I personally will not consider it that, not an attack on you, or anyone who considers it a programming language mind you.

 

So let's agree to dissagree on this one.

 

oh yes regarding the last quote, desktop applications does not a programming language make, flash can make desktop applications and AS3.0 is as far away from a programming language as possible, what makes a programming language is the option to speak to the CPU directly, something that PHP can not do.

 

take this more as friendly advice if you're ever at a conference or asked to speak to your peers or at a job interview: don't call it a programming language, but if the employer does, don't correct him either xD

IIRC, scripting languages are, by definition at least, a subset of programming languages - making you both correct :p

IIRC, scripting languages are, by definition at least, a subset of programming languages - making you both correct :p

 

Valid point.

 

Let's end it at that, even though the point of this way to prevent you and any readers of this to ever embarass themselves or score minus points at a job interview.

You do what you will, I'm sure some consider it a programming language but untill it can be used to prefor low level operations I personally will not consider it that, not an attack on you, or anyone who considers it a programming language mind you.

 

So let's agree to dissagree on this one.

 

oh yes regarding the last quote, desktop applications does not a programming language make, flash can make desktop applications and AS3.0 is as far away from a programming language as possible, what makes a programming language is the option to speak to the CPU directly, something that PHP can not do.

 

take this more as friendly advice if you're ever at a conference or asked to speak to your peers or at a job interview: don't call it a programming language, but if the employer does, don't correct him either xD

Oh and good advice lol id never correct the employer if i wanna keep a job :p and i did'nt take it as an attack on myself your actually very correct but if you looking at it this way PHP does communicate with the server as well with databases like mysql etc.. thats why i just refer it as a web programming language instead of a computer programming language. But no harm done :p

Edited by webdesigner93

Oh and good advice lol id never correct the employer if i wanna keep a job :p and i did'nt take it as an attack on myself your actually very correct but if you looking at it this way PHP does communicate with the server as well with databases like mysql etc.. thats why i just refer it as a web programming language instead of a computer programming language. But no harm done :p

 

 

Ooh did not notice that, in that case I'll let this one slide.... <_< for now...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.