PHP v/s JSP (on the basis of security) [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm a beginner web developer knows both PHP and JSP coding formats
I found lots pages on internet the all told that PHP is less secure than JSP.
but they all almost are old pages may be updated 2-3 years ago. Here I'm referring some forum links
Is JSP a good alternative to PHP [closed]
ASP - PHP - JSP ... which is better?
Now as every year new version PHP are releasing with lots of new features Like OOP, PHP Filters etc.
My question is that is PHP still less secure than JSP? if yes, than i want to know that what facts that makes PHP less secure than JSP. Please explain with examples if possible.
According to my opinion, It's the developer(means developer's code) who's responsible for security.
But i still want to know other programmers opinions
Any Help is appreciated

"According to my opinion, It's the developer(means developer's code) who's responsible for security"
Smart programming languages add up more layers which most of the time is in price of performance. Much of security on web applications is checking client input (uploaded file, form entries, URL...) to be same as expected. Smart languages do much of the work automatically. Also they have built-in security schemes which are prone to bug if you write them yourself.
I believe security is not the main concern for selecting the platform but should be considered besides performance, budget, maintenance...
Note: Security is not just about web application programming, you may get hacked from upper layers like other applications on the same web server, at operating system level...

Related

Is a compare between PHP and NodeJS worth? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I start this topic saying that I use PHP since 2014 and I'm experienced with it, but recently (yesterday) I started to give a look to NodeJS.
Node is growing fast and it's been used by a lot of web-services.
I started using it yesterday, but I found it less "beginner-user friendly" than PHP.
I'm not saying this as a beginner in computer programming, but as a Node-beginner.
What is your opinion?
Is it worth knowing both languages?
Is it worth knowing both languages ?
If you come from php development, learning node is a great idea.
It ll teach you in a soft way the concurrent programming pattern, and also event/stream programming,
it will lead you to face problems regarding the underlying OS in a soft way.
All sort of stuff that PHP greatly solves for you right out of the box and which you never think about.
Node will also give you the impression of a bigger playground to explore.
But, if you want to be productive when it s about building website, i believe PHP is better.
On the other hand, if you are looking for performance, node may be better, but true performance comes with compiled languages like GO, not scripted languages.
Finally, if php was not plumbed by all those damn heavy javaesque framework, it would be a really nice environment with a good trade off between speed and complexity.
Node gives you speed, but it comes with a price about the complexity which can be very costly.
As a beginner of both language i noted the following advantages of both languages
PHP
Mixing code with content
Deep code base
No client app needed
SQL
Speed of coding
NodeJs
Separating concerns
Newer code means more modern features
Service calls are thinner than HTML-fat PHP calls
JSON
Raw speed
You can read full article Here

PHP vs NodeJS - text based RPG [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I know this isn't a very good question to ask because people may give bias answers, but was wondering if someone could list the pros and cons of using PHP vs NodeJS as a backend language in developing the average text-based online RPG.
The RPG will store its data in a MySQL database and will have typically 10-20 players online simultaneously.
For the long-run, which language would you think is more suitable?
I have several years of experience in PHP and barely any experience in NodeJS. It seems PHP has really good synergy with MySQL but I've been really hearing good things about NodeJS. Also, what design approach should I take (i.e. MVC).
Would be great to hear from someone who has a lot of experience in both languages.
Node.js is not a language. The language is Javascript.
Both are perfectly good choices, the main difference is the asynchronous approach of everything nodejs related. This increases the performance and scalability, but it's harder to debug and uglier to write and read (Learn about the callback hell). You need to get the asynchronous concept very well if you want to have the advantages people usually credits nodejs with.
This being said, you can program asynchronously with PHP, but it's far less common.
So if you are confident with PHP, you need the results fast or don't want to experiment go with it. If you want to learn or experiment, go with Node.
If the limit is 10-20 simultaneous players the performance shouldn't be such a a problem.
About the design approach, I would leave the details for last. MVC is very common and you will probably use something like that to organize your code but the choice depends on lots of factors and you should probably think about this after having the use cases / stories of your application defined and limited.

MVC : PHP Laravel Vs Asp.NET [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am starting to build an E learning platform, Application will be expected to cater whole amount of user , there would be some automated jobs, and the vast range of learning material to be stored on server. moreover i will also be dealing with APIs & third party Library.
I am a bit confuse in selection of framework, to build, with having two different Options i.e. PHP Laravel & ASP.NET MVC. I also had research on internet regarding the pros and cons of Both but the major Criteria are :
Performance
License. (Open Source or PAID)
flexibility (easily maintainable)
-
Would Laravel make a better choice given the nature of our workflow in the circumstances?
Thanks in Advance
I think that this is not the correct question. PHP and ASP.NET provide good performance and can be flexible. It is depend on you when selecting. Good code can cover any issue. Focus on your programing techniques and developing your code will result in good outcome regardless of the framework you use.

Can a website switch from wordpress cms to ruby on rails or any other framework? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I am almost finished with a website build with wordpress. My main concern is can a wordpress website be switched to ruby on rails for example without losing database, passwords, users, products etc etc?
I know that mashable did that too.
Is this a super hard thing to manage? Please explain with an ease of words because i m not that hardcore and i will probably hire developers to do this job in the near future. This is just so i know what my next moves are going to be. Thanks a lot.
Can a website switch from wordpress cms to ruby on rails or any other framework?
This isn't really a meaningful question.
Yes, of course you can rewrite a website from one language to any other language. You can port your data from one format to another. Nothing (except for time and expense) will prevent you from picking a new language and starting over.
But you cannot "switch" from a PHP-based CMS to Ruby on Rails. It's a complete, from-scratch rewrite. PHP and Ruby are completely different languages, and WordPress and Rails are completely different frameworks. You cannot freely "switch" between them. You're starting over.
Ruby on Rails is fundamentally different from Wordpress in that it does not give you a functional website to begin with. A RoR app can offer more functionality than Wordpress probably ever will but you need to code it all alone.
Of course you can write a program that is able to transfer your WP database into a RoR database. For that to happen, you will have to have a schema in your app that resembles the WP database structure. And you may especially run into trouble with the passwords because they are never stored in an unencrypted format so that your developers will have to somehow integrate the WP password encryption functions into your RoR system.
And, of course, RoR is not a CMS as WP is. If you do not want to store and manage data semantically different from WP's, I will strongly discourage you from having a complete new app developed, considering how much it is that needs to be re-implemented and how large the cost of migration might grow.

How to make web applications look exactly like desktop applications? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was wondering if there is a definitive solution for building web applications that looks like desktop applications, for corporative users that are used to windows. I MEAN THE GUI DESKTOP PERSPECTIVE.
Can anyone help me with that? I use PHP.
I am in a group developing an application that will work for a bank, and that must look exactly like an application so the users do not even notice it is a web based one for security reasons (informed by the bank holder).
We have tried to use Java Applet, but it took just too much time to load, as the application is very big.
you can use ExtJs for your front end and php as back-end.ExtJs is a javascript framework for web-application.
http://www.sencha.com/products/extjs/
I can't recommend PHP for anything personally, so here are some others...
Silverlight is a pretty good start. Does that even count as a web app?
http://en.wikipedia.org/wiki/Microsoft_Silverlight
SharePoint is a better alternative, being a Microsoft product.
http://en.wikipedia.org/wiki/Microsoft_SharePoint
On a subjective note, the internet is so pervasive now that just writing a friendly web page should be enough. Everyone uses the internet and can usually figure things out that present the format nicely.
What data will your application be serving? That has a big part in what framework you pick.

Categories