Hi when i run php file on local host it directly go to download folder it not come in run condition
Please help me
i am new in php
thank

Recommended Answers

Is Apache running? You need to start Apache otherwise, you may get this issue. Or if you run php files from outside the htdocs folder maybe

Jump to Post

All 3 Replies

Member Avatar

Is Apache running? You need to start Apache otherwise, you may get this issue. Or if you run php files from outside the htdocs folder maybe

I think so syed is checking the file in any host provided space.There on click on any file,it will be downloaded.There is one more option called preview(as i can remember),on click of that you can see the page.
Just try to first work on local system then go to your host provided space.

make sure that the url is http://localhost/... and not file:///C:/xampp/htdocs/...
You get the wrong url if you right-clik ->open in brouwer on the file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.