Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Desktop application

Is we can also use php for desktop applications

kofi amoussou
kofi amoussou
Courses Plus Student 7,381 Points

to use php for desktop , you'll need a local server such as xampp, wamp or mamp depending on the operating system you use and a code editor. After installation of the local server , you create your project folder in the local server folder and start coding your php files. To view your project live , all you need is to launch your local server . Hope i answered your question

1 Answer

Jenny Olsen
Jenny Olsen
2,099 Points

PHP is usually just for web applications. You can use it for creating desktop applications (see here: https://www.sitepoint.com/3-ways-develop-cross-platform-desktop-apps-php/), but probably shouldn't. I've never heard of anyone actually doing it.