associatesnowbot

Top 7 Free Alternatives To Php For Mac

'Are there alternatives to PHP' - Yes '.that perform faster.' - Yes '.the same feature set.' - No - that would make PHP redundant. You're asking a very broad question.

Top

There are lots of languages out there which support all sorts of DBMS, PCRE and other stuff too. 'What about coding websites in C? How does that work out? Is that platform independent and works on each server?' . No it's not platform independent.

Its rather difficult to point you in a specific direction based on such a broad ranging question. You might want to read this: But note that most of the cost of software lies in development - hardware is cheap - so being able to implement something in half the lines of code will be massively more beneficial for most people than doubling the performance.

There are also less obvious constraints and/or advantages in usuing specific languages - e.g. What about coding websites in C? How does that work out? Is that platform independent and works on each server?

Writing platform independent code in C is quite possible. (PHP itself is written in C, and there are is ridiculous number of cross-platform programs and libraries written in C, like PostgreSQL and MySQL, Boost and Poco C).

Writing platform independent web applications, on the other hand, primarily depends on how you integrate with the HTTP server. E.g., if you write a C application that integrates directly with the HTTP server via a compiled module (for Apache or IIS), you're going to end up with less portable code - e.g., writing an IIS module in C or Delphi (which I've seen done, and which eBay originally did) means you are not only locked to Windows but you are also locked to IIS on Windows. The situation is similar when writing Apache modules in C. But if you write a web application in C that integrates via a common standard with the HTTP server, then yes, you can have quite portable code (albeit code that has to be compiled on each platform). For example, you can use CGI to communicate with the HTTP server using environment variables, or you can use the related standards, FastCGI and SCGI.

Again, I've seen this done in practical, commercial applications (both to good effect, and to bad effect). The debate on native web applications (e.g., written in C, C and the like) vs. Interpreted web applications (PHP, Perl, etc) often focus on three areas. Code performance. Unless it is written by a brain-dead monkey who didn't get the job for writing fortune cookies, C code will always outperform PHP. However, the bottleneck in your application may not be with the speed and memory consumption of the code, but rather with the input/output routines.

Developer productivity. Unless you use a good framework (and part of your question was about feature sets of other languages) you're going to be writing a lot of boiler-plate, repetitive code.

E.g., decoding percent-encoded URLs, parsing HTTP POST data, etc. There are frameworks that exist for this in C and C (see CppCMS). Portability, as you have mentioned. If you're dead set on writing a web application in C, I would stick with CGI or SCGI. If your problem is a website or web application that seems too slow, switching languages is probably not worth the effort.

There are much more efficient ways to speed things up. One of them would be code caching to avoid the overhead of a fresh compile of your PHP scripts on every page requests. See for example. I've personally used XCache to great effect. There are many other reasons for websites performing slower than they could, many completely unrelated to the underlying language.

Alternatives

Top 7 Free Alternatives To Php For Mac Free

Shutterfly for mac. YSlow is an indispensable tool to find your bottleneck. To give but one example, combining multiple CSS or JS files included from a HTML page into a single file each can dramatically improve response times. So bottom line: In most cases, the underlying language is not the culprit. Having said all that, yes, there are faster languages.

Top 7 free alternatives to php for mac mac

Top 7 Free Alternatives To Php For Mac Mac

See the other answers above:).