The odd thing is, I encountered this problem when switching from Mamp 3. Cez Cez 4, 1 1 gold badge 23 23 silver badges 36 36 bronze badges. I've tried that and again, just now to no avail. My httpd. My problem is that, despite the problematic line mentioned in my question being removed, I'm still having problems. It's like the server has cached the. Please added emphasis to my question for clarification.
Thank you, anyways! Does the server have any cache modules loaded? Yes, the "5" was left in by accident — Cez. How could I clear these caches? Would any of these cause this problem? Simply renaming the file, trying to access it by the old name, and then renaming it again as you described worked like a charm. Thank you! StefaDesign StefaDesign 6 6 silver badges 16 16 bronze badges. Work around was to remove the line. Amber Amber k 78 78 gold badges silver badges bronze badges. I tried that to no avail.
Before it was working just fine without anything in the. Mariella Mariella 21 1 1 bronze badge. First check if your apache server is running. Check if your mysql is running and listening using same command but you should be looking for TCP 0. Sarfraz Sarfraz k 70 70 gold badges silver badges bronze badges. Please see the updates to my post for more details. When saving a file locally, you should not need to include header. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Why browser is trying to download my php script file? Ask Question. Asked 11 years, 5 months ago. Active 8 years, 4 months ago. Viewed 13k times. Improve this question. Pavel Pavel 4, 10 10 gold badges 32 32 silver badges 47 47 bronze badges. What web server are you using? Is it Apache? Are you sending any custom headers? Have other PHP scripts worked fine before? Can you post the rest of the code? Add a comment.
This power icon button is toward the right side of the window that opens when you launch MAMP. Enter your computer password and username when prompted to continue. You can use any browser to preview your PHP file. Navigate to "localhost" in your browser's address bar.
You'll see a directory of your PHP files displayed on the page. Click the PHP file to run the script in your browser. Your PHP file now run and display its output in the browser window. Include your email address to get a message when this question is answered.
You Might Also Like How to. How to. About This Article. Written by:. Darlene Antonelli, MA. Co-authors: 2. Updated: February 10, Categories: Basic Computer Skills. Example 1: This example display the pdf file on the browser. Skip to content. Change Language. Related Articles. Table of Contents. Improve Article. Save Article.
0コメント