77 replies
Hey folks,I am bit confused as there are many scripting language but generally most web applications are made using PHP why? And if using C++ in place of PHP will it degrades the quality of web apps in terms of designing...Need reviews !!!:confused:
#php
  • Profile picture of the author deejayundoo
    C++ is hosted on Windows and PHP is hosted on Linux. C++ is there mostly for building Desktop Applications and PHP was especially made for web.
    Signature
    {{ DiscussionBoard.errors[5817123].message }}
    • Profile picture of the author orb
      Originally Posted by deejayundoo View Post

      C++ is hosted on Windows and PHP is hosted on Linux.
      What are you talking about... Linux is built on C++...

      C++ is a programming language and is only ever used in web development for operations that require more optimization. I guarantee PHP is more than sufficient for you if you need to ask this question! Use PHP and don't worry about it!
      {{ DiscussionBoard.errors[5817773].message }}
      • Profile picture of the author Earnie Boyd
        Originally Posted by orb View Post

        What are you talking about... Linux is built on C++...
        Uh, no it isn't, Linux is built on C and Assembler. C++ is something totally different even though some C++ compilers can compile C code if told it is a C syntax source.

        Originally Posted by orb View Post

        C++ is a programming language and is only ever used in web development for operations that require more optimization. I guarantee PHP is more than sufficient for you if you need to ask this question! Use PHP and don't worry about it!
        Well, that depends, as always. PHP is a nice scripting language which can be embedded into the files read by Apache or other brand of http daemon and then passed on to an add in module which then returns the results to display. PHP can also be used in CGI mode, but so can C, C++, Java, Perl, Ruby, TCL, Python, etc. So if Marcus Luther is already comfortable with C++ and can learn CGI then go for it. Who knows, Marcus may even invent the next best thing in scripting languages.

        I will add that PHP is the most used when it comes to websites. It's syntax is similar to other languages and should not be hard to learn.
        Signature
        {{ DiscussionBoard.errors[5818612].message }}
      • Profile picture of the author deejayundoo
        Originally Posted by orb View Post

        What are you talking about... Linux is built on C++...

        C++ is a programming language and is only ever used in web development for operations that require more optimization. I guarantee PHP is more than sufficient for you if you need to ask this question! Use PHP and don't worry about it!
        I wasn't talking about the programming language that Linux was built with, i was saying PHP applications are built on and hosted on Linux servers and C++ on Windows (in Microsoft Visual Studio).

        And i agree with you, go with PHP and that's more than enough for building web applications.
        Signature
        {{ DiscussionBoard.errors[5828252].message }}
      • Profile picture of the author indiawebdevelop
        If you want to move of web development PHP is the best scripting language but C++ is the language of desktop application and little logical language.
        {{ DiscussionBoard.errors[5963021].message }}
        • Profile picture of the author heavy rain
          I'm familiar with both these programming languages. For web designing PHP is the best language and C++ difficult than PHP.
          Signature
          {{ DiscussionBoard.errors[5963074].message }}
      • Profile picture of the author JoshDylan
        Orb hit it spot on!
        Signature

        - Jay - Business Advisor

        {{ DiscussionBoard.errors[11105259].message }}
  • Profile picture of the author strangerstudios
    PHP is built specifically to serve HTML to a browser. It became popular because it worked very well, was easy to pickup, and had excellent documentation early on. It's a very "scrappy" language focused on getting things done.

    While you could technically write a website in C++, it would be like trying to fit a square peg into a round hole.

    To be asking this question, I'm assuming you are new to building websites.

    If you want to build a general purpose website as fast as possible, I would recommend looking into a system like WordPress, a "Content Management System" which runs on top of PHP and makes building websites very easy. You can tweak the PHP yourself via plugins if you need to.

    If you are gun hoe about making a "web app", I would look to learn PHP on a lower level or look into Ruby, Ruby on Rails, Python, etc.

    If you are in a corporate environment, consider Java.

    If you are familiar with Windows development and .NET, you can checkout C# and their web development tools which are related to C++.
    {{ DiscussionBoard.errors[5817730].message }}
    • Profile picture of the author dexlink
      Originally Posted by strangerstudios View Post

      PHP is built specifically to serve HTML to a browser. It became popular because it worked very well, was easy to pickup, and had excellent documentation early on. It's a very "scrappy" language focused on getting things done.

      While you could technically write a website in C++, it would be like trying to fit a square peg into a round hole.

      To be asking this question, I'm assuming you are new to building websites.

      If you want to build a general purpose website as fast as possible, I would recommend looking into a system like WordPress, a "Content Management System" which runs on top of PHP and makes building websites very easy. You can tweak the PHP yourself via plugins if you need to.

      If you are gun hoe about making a "web app", I would look to learn PHP on a lower level or look into Ruby, Ruby on Rails, Python, etc.

      If you are in a corporate environment, consider Java.

      If you are familiar with Windows development and .NET, you can checkout C# and their web development tools which are related to C++.
      Yes, I fully agree with you and thank you for your post.
      {{ DiscussionBoard.errors[7212776].message }}
  • Profile picture of the author RichBeck
    Marcus,

    Lots of web applications were built years ago in C++ CGI. It was a laborious process.

    For "modern" web applications.... I would recommend PHP if you are focusing on WordPress... For 100% custom web applications, I would use Ruby on Rails. It saves you from "reinventing the wheel" again.....

    God Bless,

    Rich
    {{ DiscussionBoard.errors[5817865].message }}
  • Profile picture of the author Jamie Lin
    Use PHP for web scripting because it is widely use and frequently updated, use C++ only for desktop applications. I see no connection between using PHP/C++ with design issue.
    {{ DiscussionBoard.errors[5825305].message }}
    • Profile picture of the author armedgrace
      Originally Posted by Jamie Lin View Post

      Use PHP for web scripting because it is widely use and frequently updated, use C++ only for desktop applications. I see no connection between using PHP/C++ with design issue.
      i agree.. since most of us are in the same page here.
      Signature

      -Athran Mirch Grizwaltz: Living for the Music

      {{ DiscussionBoard.errors[5842163].message }}
  • Profile picture of the author iuditg
    Most Web Applications are made with PHP, cost for maintenance is low, server charges are low and PHP codes are very easy to maintain as compared to other coding.
    {{ DiscussionBoard.errors[5836774].message }}
  • Profile picture of the author Pawpoint
    PHP gives you the advantage of being able to change your whole site, with links, in one easy step. Thats what is so preferable about it
    Signature
    http://www.cheapherbalincense.biz Cheap UK Strong Aroma Incense + bulk - Free UK delivery 1.5g to 1Kg
    {{ DiscussionBoard.errors[5837628].message }}
  • Profile picture of the author Nassim0x09
    php = web app
    c++ = desktop app
    Signature

    Earn up to $5 per 1000 visits to your short URLs
    Register Now : http://adfoc.us/?refid=30696

    {{ DiscussionBoard.errors[5838968].message }}
  • Profile picture of the author AleinaKoch
    Both languages runs on different platforms. They can work on Windows, Linux, Mac, BSD, etc. But if you want to pursue a career on system programming, go with C++. If you want to focus on web development, proceed with PHP.
    Signature

    The three chief virtues of a programmer are: Laziness, Impatience and Hubris.
    Buy My House | Recycle Mobile Phone | Prezzo Vouchers

    {{ DiscussionBoard.errors[5842708].message }}
  • Profile picture of the author seotools
    With C++ you can only create desktop applications and with PHP you can create websites or web based applications.
    {{ DiscussionBoard.errors[5856561].message }}
  • Profile picture of the author movieinhd
    PHP Is Very Well
    {{ DiscussionBoard.errors[5861505].message }}
  • Profile picture of the author mikenielson143
    PHP is good for web application and it is very easy and user friendly language that is why we prefer PHP rather then C++ for creating web application.
    {{ DiscussionBoard.errors[5861632].message }}
  • Profile picture of the author Njenyus
    PHP is used more widely in web apps than C++. I would definitely go with PHP. The community is large and it is supported greatly.
    {{ DiscussionBoard.errors[5865018].message }}
  • Profile picture of the author webgain
    php is well recommended by the experts. I would like to go with PHP. easy to learn and maximum support online for php users.
    {{ DiscussionBoard.errors[5878062].message }}
  • Profile picture of the author iryonos
    Just go for php ... it have more advantages .. you can develop wptheme , plugin and sell it easily than any c++ applications ...
    {{ DiscussionBoard.errors[5878612].message }}
  • Profile picture of the author harveyronn
    As per the purpose of quick leading go for PHP, its more beneficial for build a effective website. Moreover, PHP is kind of language which is based on interruptions on the other hand C++ is compiled based language. So choice is yours, if you want fast choice than use PHP first.
    {{ DiscussionBoard.errors[5879086].message }}
  • Profile picture of the author BlackWar
    Banned
    If you want to learn both of them, then go with C & C++ first after that PHP will be more easier.. This is my personal opinion..
    {{ DiscussionBoard.errors[5900955].message }}
  • Profile picture of the author techiespider
    cheese or butter,,it is your choice,,just learn OOPs concepts

    {mobie}
    Tech
    S
    {{ DiscussionBoard.errors[5924516].message }}
    • Profile picture of the author belgirjackson
      PHP is one web development language and when C++ is one desktop application language,
      PHP is one simple web development language and when C++ is one object oriented programming language,
      There is one best combination of PHP and mySQL when C++ is very compatible for all databases.
      {{ DiscussionBoard.errors[5927628].message }}
      • Profile picture of the author martin0436
        If you want to make a website, then PHP will be useful and if you want to make software, then C++ will be useful....
        Signature
        {{ DiscussionBoard.errors[5928635].message }}
        • Profile picture of the author nathan0436
          Both languages have so much importance in development field. PHP will help you in developing a website whereas C++ will help you in developing a software...
          Signature
          {{ DiscussionBoard.errors[5955021].message }}
  • Profile picture of the author JoshDylan
    Alright, it seems that there is a lot of confusion going on right now.

    For all of you, C++ is used in Linux and is what runs a majority of web based panels like cPanel. I said C++ not C. I know what I am talking about. C++ was designed off of C, C++ is just a more advanced version of C.

    C++ can be used in web based applications but a majority of the time, you would use C++ for desktop based programs.

    There is a big difference in programming between Client side scripting and server side scripting.

    With C++, it is primarily based for client side but still can be used for server side based operations. For instance, on one of my private servers, I have a few applications I created in C++ that help trigger the load balancing on my servers.

    With PHP, it's very touchy. You primarily use php as a client side coding method for more stunning websites such as Wordpress sites and Drupal sites. This forum is based off of php client side scripting as its made with vBulletin.

    As any Linux Admin would know, PHP has a huge role to play on the server side as well. PHP is essential for a majority of modern day websites to function.


    So a recap:

    C is the base of C++. C++ is widely used on Linux Servers just as C is to. PHP is primarily a client side scripting language. Windows and Linux both can compile and use C++ coding. There are libraries for C++ that are exclusive to Windows. If you start getting into game development you would know a lot about this.


    I am a certified Level III Linux Server Administrator. I own a large scale IT Business. I have previously worked for HostGator and I have been doing development work for as long as I can remember. I am young but I am not ignorant. Take the true facts from an actual professional who has been doing this for a hot minute now.
    Signature

    - Jay - Business Advisor

    {{ DiscussionBoard.errors[5956172].message }}
  • Profile picture of the author Earnie Boyd
    PHP is primarily a client side scripting language.
    PHP is a server side scripting language that outputs requested information to the client.
    Signature
    {{ DiscussionBoard.errors[5964093].message }}
  • Profile picture of the author JoshDylan
    The client side and server side aspect of PHP are almost two different types of PHP to be honest. The server side aspect for php is mainly modules.
    Signature

    - Jay - Business Advisor

    {{ DiscussionBoard.errors[5966319].message }}
  • Profile picture of the author xrampage16
    You have to remember that PHP is very close to C, not C++. New additions to PHP have allowed for classes and such, but most content you work with is still closer to C than C++ in what I've seen.

    As for the cardinal differences, I'm just chiming in with what a lot of other folks have already posted, but can hopefully make it a bit clearer.

    PHP is not compiled. This means that when you upload a php file to a server, and refresh the page, the contents (unless they are cached) are reflected immediately. This is great for testing and writing code, but is not terribly efficient.

    C/C++ is compiled code, which means that when you make any change to a file in the program, it has to be recompiled by a compile program. At compilation, the syntax and code is checked to make sure that it links properly via coding standards.

    PHP is not checked, which is why you can obtain the WSOD (White Screen of Death) where the site just does not load since you have a syntax error or programming error of some time.

    Because of these differences, you can understand why PHP is slower than C/C++. C/C++ compiled code is build, using the systems library, meaning that it can be compiled for max performance, and it never has to check to see syntax and other requirements.

    That being said, you can see why Facebook went the route of create their own php->C++ compiler, as it was able to turn their content which is not updated very often, to being compiled into a program that is incredibly fast.

    Just my two cents.
    Signature

    Developer and Admin for Komputer King LLC hosting - Offering lightning fast web hosting and Quality Backlink Building

    {{ DiscussionBoard.errors[5968004].message }}
  • Profile picture of the author mcygnet
    Hello..
    Its totally depends on your needs and type of application or system you want to build..
    Signature

    {{ DiscussionBoard.errors[6020245].message }}
  • Profile picture of the author sharonhurley
    Banned
    It all depends on what you are looking for. C++ gives a lot of power and control over your applications. PHP is best suited for web applications since most of its features are targeted towards database and user interaction.
    {{ DiscussionBoard.errors[6022534].message }}
  • Profile picture of the author Assefseer
    php is better then c++
    {{ DiscussionBoard.errors[6025850].message }}
  • Profile picture of the author eadweardroger
    Here I would like to go with C++, because it is one of the basic languages we can say. It is basically object oriented programing language which provides so many functions. It is safe, robust and secure language.
    Signature
    {{ DiscussionBoard.errors[6035194].message }}
  • Profile picture of the author atikbabu
    PHP is used for web application widely and has dynamic part Object Oriented PHP.So there is no need to use c++ in web application.And c++ is suitable for desktop application.
    {{ DiscussionBoard.errors[6038069].message }}
  • Profile picture of the author JoshuaReen
    I also recommend PHP for web-development, as it is specially programmed for web-development.
    {{ DiscussionBoard.errors[6048286].message }}
  • Profile picture of the author daustin099
    C++ is for building Desktop Applications and PHP is especially used for scripting.
    {{ DiscussionBoard.errors[6072056].message }}
  • Profile picture of the author JohnnyS
    Originally Posted by marcus luther View Post

    Hey folks,I am bit confused as there are many scripting language but generally most web applications are made using PHP why? And if using C++ in place of PHP will it degrades the quality of web apps in terms of designing...Need reviews !!!:confused:
    i think C++ is not used for web development, mainly used for desktop applications. you can only use C++ on the web with the help of a server-side scripting in which is PHP, and it is used on complex type of processes that PHP cannot do on the server-side.
    {{ DiscussionBoard.errors[6076590].message }}
  • Profile picture of the author Allcityloan
    I prefer PHP more then C++ .because for scripting PHP is most use
    {{ DiscussionBoard.errors[6091036].message }}
  • Profile picture of the author JayWiz
    Depends on your needs. PHP widely use for website development while C++ is for software development. Find what you needs first and then proceed from there. You can find tutorials, manuals, documentations on google. I recommends use php instead because it's the basic framework for all web development.
    {{ DiscussionBoard.errors[6091070].message }}
  • Profile picture of the author legendkeeper
    C++ is basically the backbone of every language. Now you cannot use C++ directly but indirectly, you will be using the concepts of the C++ in every programming language that you come across.
    C++ is designed for desktop applications whereas pHp is strictly for scripting and web applications.
    {{ DiscussionBoard.errors[6097000].message }}
  • Profile picture of the author mbitsol
    Only syntax is similar but not entirely. C++ code needs to be compiled into a .exe, PHP is interpreted directly from the source by Apache.
    Signature
    MbitSol - Digital Marketing Agency providing SEO Services UK
    Free online Jobs
    {{ DiscussionBoard.errors[6097097].message }}
  • Profile picture of the author onfio
    PHP is simple to learn and is quite powerful for web applications. For large-scale applications, PHP could also be compiled (such as Facebook) for faster response.
    Signature
    Apps - No-Obligation Mobile Apps for Web, Android, iPad & iPhone - Click Here
    Adex - Advertise & Monetize: Earn from your Site/Blog. Join Free! - Click Here
    {{ DiscussionBoard.errors[6099091].message }}
  • Profile picture of the author mmrumii
    PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.So i'm sure this is most important for me and definitely PHP.
    {{ DiscussionBoard.errors[6113929].message }}
  • Profile picture of the author JHONYY1
    PHP is script server base language especially developed for web designing and C++ off page language used for desktop applications
    {{ DiscussionBoard.errors[6130984].message }}
    • Profile picture of the author Nicholasamarquez
      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.
      {{ DiscussionBoard.errors[7196211].message }}
    • Profile picture of the author nikomaster
      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.
      Signature

      -.-

      {{ DiscussionBoard.errors[7211537].message }}
  • Profile picture of the author mauii
    Originally Posted by marcus luther View Post

    Hey folks,I am bit confused as there are many scripting language but generally most web applications are made using PHP why? And if using C++ in place of PHP will it degrades the quality of web apps in terms of designing...Need reviews !!!:confused:
    PHP is specifically designed for web applications. If you are going to learn a language for programming web apps, PHP is the way to go.

    HOWEVER, it is completely possible to do a web application in C++, and it's not as uncommon as people may think. OkCupid and Meebo are done in C++, and I'm sure there are lots of other examples. It just a much higher learning curve than, PHP, but there is nothing wrong with it per-say.

    In any case, PHP is sufficient for 99% of anything you'd want to do as far as web programming goes. That's what you should learn.
    {{ DiscussionBoard.errors[6159437].message }}
  • Profile picture of the author shellydisuja
    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.
    {{ DiscussionBoard.errors[6172360].message }}
  • Profile picture of the author Dead Body
    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..
    Signature
    {{ DiscussionBoard.errors[6174087].message }}
  • Profile picture of the author raferti
    The fact that PHP is more popular, C + + is a great language, use what you like best !
    {{ DiscussionBoard.errors[7181285].message }}
  • Profile picture of the author seowonder56
    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
    {{ DiscussionBoard.errors[7182346].message }}
  • Profile picture of the author pipercraig
    PHP focuses mainly on web and C++ is for desktop application so you decide what you want to do?
    {{ DiscussionBoard.errors[7189892].message }}
  • Profile picture of the author dutrowllc
    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.
    {{ DiscussionBoard.errors[7194249].message }}
  • Profile picture of the author kazim
    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.
    {{ DiscussionBoard.errors[7194338].message }}
  • Profile picture of the author rising_sun
    Banned
    Both are different similarity they are both object oriented ,
    PHP is better for web development and c++ is better for device level programming.
    {{ DiscussionBoard.errors[7216087].message }}
  • Profile picture of the author mehdi7604
    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.
    {{ DiscussionBoard.errors[7218614].message }}
  • Profile picture of the author muddywaters
    Give PHP a shot, it should work for you and save you time.
    {{ DiscussionBoard.errors[7225897].message }}
  • Profile picture of the author Mrunal Khatri
    Mostly c++ is used to build small desktop applications where as php is used to build websites or for web development. So both are used for their respective task and has completely different use.
    {{ DiscussionBoard.errors[11107299].message }}
  • Profile picture of the author jhonewill
    C++ is low level language with high level features, were PHP is server side scripting language. PHP is fast and preferred to use in server side programming.
    Signature
    {{ DiscussionBoard.errors[11107578].message }}
  • Profile picture of the author subraasingapore
    It depends in your preference Windows or Linux platform!!

    As discussed by the other experts "C++ is hosted on Windows and PHP is hosted on Linux"

    Its your choice now!!
    {{ DiscussionBoard.errors[11108289].message }}
  • Profile picture of the author Paul Shipman
    PHP is very easy to learn and implement. It supports the web application development. Maintenance is very low.
    C++ support desktop application development. Requires huge code and maintenance.
    {{ DiscussionBoard.errors[11112792].message }}
  • Profile picture of the author TopXListing
    C++ is used by many programmers to create computer software and applications that depend upon direct hardware manipulation.
    On the other hand, PHP is a powerful tool for making dynamic websites and also easy to use.
    So PHP is a better option for building your project.
    {{ DiscussionBoard.errors[11308526].message }}
  • Profile picture of the author Lemosys
    PHP language is basically used to serve web development purpose. There are frameworks available such as CodeIgnitor, Laravel and Magento that eases the development work and also, enhance the quality of development work through its features and fucntionalities.
    Signature

    Lemosys Infotech is the leading website development company in India, We are team of dedicated web developer. Hire us to get high level IT services for your Business.

    {{ DiscussionBoard.errors[11308627].message }}
  • Profile picture of the author hichamaziz
    hi normally c++ is using to develop software but php or javascript is for websites .
    {{ DiscussionBoard.errors[11309328].message }}
  • Profile picture of the author QuaziSazzad
    PHP for the web app and c++ for the desktop app.
    {{ DiscussionBoard.errors[11309442].message }}
  • Profile picture of the author Ravinsha Desai
    Basically C++ is a compiled language where PHP is interpreted language. PHP is easy to learn and user friendly and c++ is very strict language.
    {{ DiscussionBoard.errors[11324295].message }}
  • Profile picture of the author alberto7
    Why is everyone always griping about memory management in PHP?
    Just because the language attempts to do garbage collection for you, doesn't mean that it's adequate, and you can forget about it.
    The memory you use in PHP does matter. And that's why you use functions like memory_get_usage(). Just because PHP is very forgiving and allows some awful practices to compile, doesn't mean that you should use awful practices in writing code.
    The biggest difference I see between PHP and C++ syntactically is that PHP has less brutally ugly syntax. If you compare PHP and C++ in the scenarios you would use PHP, they're very similar.
    You just need to remember to top load your libraries in C++, which I find annoying. C++ does appeal to my inner need to control every detail of execution, though.
    {{ DiscussionBoard.errors[11333939].message }}
  • Profile picture of the author denisebr
    If you are cleared that you need to develop a web application then you should use PHP for the web app development because C++ is used to develop desktop apps.
    {{ DiscussionBoard.errors[11334119].message }}
  • Profile picture of the author alberto7
    C++ is a general-purpose object-oriented programming (OOP) language, developed by Bjarne Stroustrup, and is an extension of the C language. C++ is considered to be an intermediate-level language, as it encapsulates both high- and low-level language features. Initially, the language was called "C with classes" as it had all the properties of the C language with an additional concept of "classes."

    Java is a programming language that produces software for multiple platforms. When a programmer writes a Java application, the compiled code (known as bytecode) runs on most operating systems (OS), including Windows, Linux, and Mac OS. Java derives much of its syntax from the C and C++ programming languages.

    Now, it's your turn you tell which is better as per your requirements.
    {{ DiscussionBoard.errors[11335573].message }}
  • Profile picture of the author roboscripts
    PHP is behind most of the website, its easy to learn and you can do pretty much anything with it. C++ is much harder to code but is more stable. It always depends what you wish to do with the language. ascript or a website?
    Signature
    ROBO SCRIPTS - Scripts To Promote Cam Sites
    The Online Twitter Poster: Automatically post to Tweeter when a cam model comes online
    {{ DiscussionBoard.errors[11335978].message }}
  • Profile picture of the author Aymane Mzily
    PHP Built For Web Programming
    {{ DiscussionBoard.errors[11363205].message }}
  • Profile picture of the author Alian
    php faster, more convenient development
    {{ DiscussionBoard.errors[11366483].message }}
  • Profile picture of the author Alis Pro
    PHP fit for web development & C++ fit for windows application. You should select PHP cause it is so easy & popular for building a web application.
    {{ DiscussionBoard.errors[11367827].message }}

Trending Topics