answersLogoWhite

0

What are the advantages of PHP over C?

Updated: 9/28/2021
User Avatar

Wiki User

βˆ™ 13y ago

Best Answer

PHP was built for the web from the beginning, so it has a variety of built-in features helpful to web development that C does not (for example, built-in database support).

User Avatar

Wiki User

βˆ™ 13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages of PHP over C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the advantages of php file system?

PHP is a scripting side language and has more key points than other development languages. The speed of PHP is fast relative to other languages because it uses many system resources. It is an open-source language that’s why it is maintained by a large group of PHP developers and the support community is more than other languages. It is easy to use because it follows the syntax of β€œC”. Those who familiar with C language can easily understand PHP. It has powerful library support you can easily find functional modules. It has built-in database functionality. These are some points that consider as core advantages of PHP.


How do you convert fibonicco series into php coding from c?

Get the code from c. Instead of c convetions insert php conventions.


How do you embed PHP code in C code?

PHP and C are two different programming languages that cannot directly interact with eachother. You can have a program made with C call a PHP script, using its output (an indirect interaction), but there's no way to "embed" PHP into C code.


What are the limitations of PHP?

Everything has limitations or disadvantages and PHP is no exception. The following are the limitations of PHP (so be WARNED !!) # PHP is NOT 100 % pure Object Oriented scripting language. But in near future PHP may support 100% object oriented scripting (PHP may imitate most of the syntax of Java language). PHP already imitates some features of Java language. (In future PHP language will imitate most features of Java language and Java programmers will love PHP. And PHP will have java keywords like class, extends, interface, implements, public, protected, private etc..). # PHP will NOT give the performance of "C" or "C++" language. Because it is scripting language and is interpreted it will be a bit slower than the optimized "C++" programs. For top performance, you should use "C++" and fast-CGI with database/webserver connection pooling and use C++ compiler optimizer "-O3" options. Zend optimizer in PHP 4 will speed up the performance of PHP and bring it very close to optimized "C" code . # But note a point that PHP was designed for very Rapid Web-Application Development tool. If it takes about 3 months to code a web application in C++, then using PHP you can develop the same web application in just 4 days!! And with zend optimizer, the speed of execution of PHP will be very close to that of equivalent C++ program!! Hence, there is really no advantage in using C/C++ for web development. PHP itself is written in 100% "C" language. On the other hand, PHP has lot of advantages and it's advantages outweigh it's limitations - # You can very rapidly develop web applications in PHP as compile and link is eliminated in PHP scripting language. # PHP applications are very stable and do not depend on the browser technologies unlike Javascript applications which depend on browsers. PHP will give you the freedom to select any server platform. The browser does not know that the HTML page is generated by PHP !! # PHP has excellent database conectivity to all SQL database servers. # PHP has partial support for Object oriented features # PHP has C++, Perl, Javascript like syntax features and has programs like 'ptags/ctags' to navigate the source code # PHP has Zend optimizer which speeds up the performance # PHP runs on all unixes, linux, Windows 95/NT/2000 and is more powerful than ASP, JSP and others. # PHP has a very large user base and developer base.Ref:http://www.linuxdocs.org/HOWTOs/PHP-HOWTO-14.html


What programming language is PHP made with?

PHP is written in the C programming language.


The PHP syntax is similar to which languages?

Its similar to a number of languages such as C, C++, Java and Perl.


The PHP syntax is most similar to?

Perl and C


What is meaning of PHP is an open source software?

It means that the source code of PHP (not PHP code, but the C/C++ code used to build the PHP binary) is published and available to anyone. It also means that anyone can contribute fixes and improvements to the source code.Read more here: open-source


What are the advantages and disadvantages of PHP with mysql?

Ultimately PHP is a programming language and MySQL is a database language. Using PHP with MySQL is a nice combination with built-in support and the simplicity of it all. However, there aren't a lot of disadvantages of using PHP with a database, it just allows for better data organization and whatnot. There are definitely advantages and disadvantages to using a database other than MySQL (such as MongoDB or PostgreSQL).


How can you run PHP files?

Use the 'include()' in your pages. Eg. include(link.php); ?> Normally PHP files are meant to be run through a web server which serves on a browser. What is outputted is the HTML of the page along with any information that is generated by php depending on the code inside the page. If you would like to run the PHP code from the command line you can using the php executable. If you are on a windows machine you can do the following: c:\php>php c:\websites\webroot\filename.php This will output the HTML that the PHP generates after being parse by PHP. You can also do this on Linux as follows: $->php /path/to/file.php


What are the Advantages of c over c plus plus?

There are no advantages of C over C++ as such. Everything you can do in C you can also do in C++. However, by taking advantage of C++ object oriented programming, generic programming and template meta programming as well as C-style coding, you can produce more efficient machine code far more easily and more quickly than with C alone.


How do you write to the registry in PHP?

Impossible, php is not designed for such things, maybe with php-gtk (but i don't think so), learn C/C++ or vb.net (i don't advise you to) or learn a scripting language like python or if you want it easy learn autoit3