You are here

Is PHP the best scripts language or is not?

14 posts / 0 new
Last post
Paul Weinstock
Offline
Last seen: 16 years 1 month ago
Joined: 2008-11-13 11:01
Is PHP the best scripts language or is not?

Hi, What is the best one?
Paul Weinstock

[Moved to Off-Topic forum - moderator RM]

usbhacker
usbhacker's picture
Offline
Last seen: 16 years 1 month ago
Joined: 2008-11-06 19:25
php or other?

it really depends on what you need to accomplish.

php as a language is nice because:

1. it is open source
2. free to use
3. widely supported by various programming communities
4. pre-made scripts freely and widely available

etc. etc.

Personally i prefer PHP over other languages, but that doesn't mean other languages aren't as good.

reepicheep
Offline
Last seen: 12 years 5 months ago
Joined: 2008-04-29 11:32
So's ...

1. it is open source
2. free to use
3. widely supported by various programming communities
4. pre-made scripts freely and widely available

Exactly the same things can be said of perl, python, ruby.

It really does depend upon what the target application is. php could be a good choice if (and maybe only if) the intention is to provide web server-based processing. If you're doing text-oriented processing then perl's your best bet. If you're doing general programming tasks then either python, ruby or perl are your chices (sic). If you're looking at scripting tasks then maybe bash (one of the UNIX shell script languages) could be your thing. For me, as a Mac user, there's AppleScript and Automator.

Bruce Pascoe
Offline
Last seen: 12 years 11 months ago
Joined: 2006-01-15 16:14
What does "chices" mean?

What does "chices" mean? Judging by sic, it's not a typo...

reepicheep
Offline
Last seen: 12 years 5 months ago
Joined: 2008-04-29 11:32
dylsexia

Oops that was indeed a typo; should have been choices. The sic is to emphasis that there is more than one way to skin a cat and that php is not the the be all and end all of scripting.

Bruce Pascoe
Offline
Last seen: 12 years 11 months ago
Joined: 2006-01-15 16:14
Misuse of sic.

I think that's a misuse of sic, then. I'm not usually a language nazi, but in this case it ended up being really confusing because the sic happened to follow an actual typo. Sic is usually used to indicate that the previous seemingly-misspelled word is not actually misspelled.

I've never seen it used in the context you just did...

reepicheep
Offline
Last seen: 12 years 5 months ago
Joined: 2008-04-29 11:32
Making people sick of sic

I used sic in the normal way --- just happens that my dyslexia erupted and I failed to notice that the word I was sicing was itself misspelled. (As a linguist I hold no truck with prescriptive grammars and punctuation instead I'm firmly wedded to descriptive grammars and punctuation.)

Darkbee
Darkbee's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-04-14 09:41
sick

I always thought that you used "sic" when quoting something that contained a misspelling, and the sic is to indicate that you are aware of the misspelling and have intentionally kept it to maintain the accuracy of the quote.

Perhaps my belief has been wrong for all these years... rock my world fellow portable appers...

computerfreaker
computerfreaker's picture
Offline
Last seen: 13 years 3 months ago
Developer
Joined: 2009-08-11 11:24
Re:

DarkbeeI always thought that you used "sic" when quoting something that contained a misspelling, and the sic is to indicate that you are aware of the misspelling and have intentionally kept it to maintain the accuracy of the quote.

You're right.

"The question I would like to know, is the Ultimate Question of Life, the Universe and Everything. All we know about it is that the Answer is Forty-two, which is a little aggravating."

pmlabrier
Offline
Last seen: 13 years 7 months ago
Joined: 2008-04-08 13:01
Sort of like asking...

Is a hammer the best tool. It is if you need to drive a nail but its not if you need to turn a screw.

Paul

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 5 months 3 weeks ago
Joined: 2006-11-18 10:26
Yep. This is a highly

Yep. This is a highly subjective question.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

Darkbee
Darkbee's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-04-14 09:41
Yes...

A hammer is one tool that you can use but there are others. I think, and this is probably the point you're trying to make, it all depends on what you're trying to do and how you hope to achieve it.

Klausto
Offline
Last seen: 14 years 10 months ago
Joined: 2010-02-19 12:08
Yea

PHP is a scripting language. It was designed for producing dynamic web pages. Now it can include a command line interface capability and can be used in standalone graphical applications. It is similar to other server-side scripts that provide dynamic content from a web server to a client, such as Microsoft's Active Server Pages, Sun Microsystems' JavaServer Pages, and mod_perl. PHP executes hundreds of base functions and thousands more via extensions.
The PHP Group produces the main implementation of PHP which serves as the de facto standard for PHP, because there is no formal specification now. PHP Group provides the complete source code for users to build, customize and extend for their own use. It is considered a free software released under the PHP License. But it is incompatible with the GNU General Public License (GPL) as there are restrictions on the usage of the term PHP.
PHP is a widely-used general-purpose scripting language that can be embedded into HTML. It generally runs on a web server and creates web pages taking PHP code. It is also used for command-line scripting and client-side GUI applications. It works on most web servers, operating systems and platforms free of charge. PHP can be used with many relational database management systems. Now, according to php tutorials, it functions on more than 20 million websites and 1 million web servers.
PHP can be compared to a filter as it takes input from a file or stream containing text and/or PHP instructions and outputs another data; HTML is the most common output. It can automatically identify the language of the user.
What other is needed no be the best? My answer - YES

Darkbee
Darkbee's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-04-14 09:41
Secure?

The only complaint that I've seen against PHP is that is has some questionable security features/flaws, which leads some developers to say that you should avoid it like the plague. In my limited experience though, it seems to be very widely accepted and accessible, and a relatively easy language to work with, so I don't see any major problems unless you're writing web apps for Secret Services.

Log in or register to post comments