Open PHP file in SublimeText in web browser

0

I have a question and even though I'm looking for it I can not find the form, I'm developing a small web, I used to use Netbeans, I have several pages that are not HTML, but php, the detail is that now that I'm moving to SublimeText I find a way to execute my PHP pages, I have seen in SublimeText that if the page has an HTML extension, I just right click anywhere in my code and select "Open in browser" and the page is executed as the user would see it, but it's not the same with PHP, is there any way to do it directly from SublimeText?

I hope you can help me, this problem comes to my mind. Thank you in advance.

I use Windows 7, Xampp, Crhome and I'm starting with SublimeText 3.

    
asked by Carlos Daniel Zárate Ramírez 25.08.2018 в 22:37
source

1 answer

0

Good as I understand your question is that you had your website in netBeans using HTML5 and PHP to run the page.

and now that you use Sublime Text3 but when you try to open your websites in PHP but they do not look good?

well what I would do is give permission to the htdocs directory of xampp to overwrite then copy and paste all the files in the directory htdocs organized in a folder called for example website php and then I would go to localhost / sitewebphp and you could see your website with php obviously if you are using XAMPP and you have running your apache2 from the XAMPP control panel.

    
answered by 26.08.2018 в 01:40