![]() | ![]() | ||||||||
| | #51 |
| Warrior Member Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
php is hypertext preprocessor language.it is a server side html embedded scripting language mainly build to t provides web developers with a full suite of tools for building dynamic websites whereas c++ is mainly used for buliding desktop applications.
|
| | |
| | #52 |
| HyperActive Warrior Join Date: Dec 2011 Location: Unknown
Posts: 162
Thanks: 28
Thanked 12 Times in 9 Posts
|
There is not lot more difference in C++ and PHP both have almost same syntax... please try to learn programming not Programming Language.. If you learn C++ you just need to learn the sytax of PHP..
|
| | |
| | |
| | #53 |
| Warrior Member Join Date: Sep 2011
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
|
The fact that PHP is more popular, C + + is a great language, use what you like best !
|
| | |
| | #54 |
| Active Warrior Join Date: Jun 2012
Posts: 40
Thanks: 0
Thanked 4 Times in 4 Posts
|
Both are totally different generally c++ and vc++ both are for the windows application development and php is for web development so i dont think its good to compare both of them
|
| | |
| | #55 |
| Warrior Member Join Date: Oct 2012 Location: miami
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
PHP focuses mainly on web and C++ is for desktop application so you decide what you want to do?
|
| | |
| | #56 |
| Warrior Member Join Date: Apr 2006 Location: , , USA.
Posts: 17
Thanks: 0
Thanked 1 Time in 1 Post
|
You shouldn't program in C++ unless you are writing code for the Arduino or a laser guided missile. You will spend a lot of your time debugging stupid stuff that you shouldn't have to think about in C++. You are better off with Python and Javascript. PHP is ok, but the trend is moving away from that and more towards Python. You can program server-side in Javascript using NodeJS. |
| | |
| | #57 |
| Advanced Warrior Join Date: Aug 2012
Posts: 511
Thanks: 0
Thanked 29 Times in 27 Posts
|
I know that c++ is such a language by which all types of works can be done. But PHP is more easy for web app.
|
| | |
| | |
| | #58 |
| Warrior Member Join Date: Oct 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
PHP is probably the most popular programming language on the web. Used to improve the website. With PHP, you can do things like create username and password pages, check details of a form, create forums, photo galleries, polls, and more. If you come across a website that ends in PHP, then the author has written some programming code to encourage plain, old HTML.
|
| | |
| | |
| | #59 |
| The Unbreakable Warrior War Room Member |
There is a lot of confusion here. Both C++ and PHP are just programming languages. Both can be used to program everything on every operating system. C++ is Objected Oriented prograrmming language, strong-typed, this means you must declare any variable or object used by the program. PHP is also an objected oriented programming language but soft-typed it does not require variable declaration as with C/C++. As a matter fact PHP has the same structure as C++. In other words, PHP is sort of a clone of C. Normally, the C/C++ language is compiled. These compilers are designed to generate machine code which instructions would be executed directly by the CPU. These type of programs are widely used to optimize time consuming tasks such as compressing data, device drivers, web servers, but not limited to just that. Therefore, programming on C++ requires certain skill because you have total control of the program memory and you have to check boundaries and memory addresses. Is it possible creating web applications with C/C++? Sure, it is possible just, think of this: the webserver where your page is hosted was probably programmed with C/C++. On the other hand, PHP is commonly an interpreted language, this means, the PHP parser executes the script and translates it on to server commands, it does not generate machine code or executable file to run the program. For this the server must have installed the PHP extension to run PHP scripts. With PHP you do not have to worry about memory boundaries or heap management. However, PHP scripts are a slower than C/C++ compiled files because the server must interpret each code line of the script while the C compiled program is directly sent to the CPU. Is it possible creating desktop applications with PHP? YES. How? Well there are tools that compile the PHP script into machine code. As it should be tools capable of interpreting C++ code as a server side script. However, never heard of one so far. So which is better? A: BOTH but depends the application To create simple web applications such as shopping carts, content management systems, or simple database management, I would go for PHP. You only need a webhosting with PHP enabled to use it. To create advanced optimized applications such a search engine (like Google), 3D rendering machine I would go for C++. They can run on servers if you have such privilege of installing on them. Can I merge both? Yes, you can write an extension for PHP with C++ to later use it into your PHP scripts. So what to learn first? I defnitely would go for C/C++ first. Once you have learned C/C++, PHP would be a piece of cake. Personal experience of this. As a matter fact for your information the PHP library used to run PHP scripts was built with C. I hope you this helps to give you the idea. |
| | |
| | #60 | |
| Active Warrior Join Date: Oct 2012
Posts: 98
Thanks: 5
Thanked 0 Times in 0 Posts
| Quote:
| |
| | |
| | #61 |
| Banned Join Date: Dec 2010
Posts: 898
Thanks: 16
Thanked 67 Times in 66 Posts
|
Both are different similarity they are both object oriented , PHP is better for web development and c++ is better for device level programming. |
| | |
| | #62 |
| Warrior Member Join Date: Oct 2012 Location: Sherbrooke, QC
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
|
C++, i saw lots of responses like that : PHP : Web apps C++ : Desktop Apps Yes you can use C++ to generate web pages, but why you want to make your life impossible, you have PHP and lots of frameworks ??? If you still want to use C++, and you worry about the design, use MVC, so you can focus on each part of your application. |
| | |
| | #63 |
| Web Developer Join Date: Oct 2012 Location: Richmond CA
Posts: 50
Thanks: 1
Thanked 3 Times in 3 Posts
|
Give PHP a shot, it should work for you and save you time.
|
| | |
![]() |
|
| Bookmarks |
| Tags |
| php |
| Thread Tools | |
| |
![]() |