₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,089 members, 8,420,258 topics. Date: Thursday, 04 June 2026 at 03:00 PM

Toggle theme

Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersHelp!!! My Php Files Are Downloading Instead Of Parsing Or Executing. (1036 Views)

1 Reply (Go Down)

Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ultimatex(op): 5:27pm On Feb 27, 2016
I am working on a project and I am still learning some stuff but this one seems to be a very big road block.

My php files do not execute on the browser instead they start downloading to the local PC automatically.

I have been trying to resolve this issue (google, stackoverflow) for about 6 hours now all to no avail.

Please, if you know what I am to do for the php files to run. Please tell me.

Thank You!
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ogaprime(m): 5:59pm On Feb 27, 2016
ultimatex:
I am working on a project and I am still learning some stuff but this one seems to be a very big road block.

My php files do not execute on the browser instead they start downloading to the local PC automatically.

I have been trying to resolve this issue (google, stackoverflow) for about 6 hours now all to no avail.

Please, if you know what I am to do for the php files to run. Please tell me.

Thank You!
Am still learning too...it seems its not in the server's folder e.g using wamp c://wamp/www
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ultimatex(op): 6:32pm On Feb 27, 2016
ogaprime:
Am still learning too...it seems its not in the server's folder e.g using wamp c://wamp/www
No am talking about cPanel and online web host
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by hollyfat(m): 6:37pm On Feb 27, 2016
It do happens on some system. Use http://127.0.0.1 instead of localhost
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by Nobody: 7:11pm On Feb 27, 2016
.htaccess

Please paste the contents of the file let me see
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ultimatex(op): 7:45pm On Feb 27, 2016
coolsix:
.htaccess

Please paste the contents of the file let me see
I didn't use .htaccess since I am not restricting it to some users
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ultimatex(op): 7:47pm On Feb 27, 2016
hollyfat:
It do happens on some system. Use http://127.0.0.1 instead of localhost
My virtual server is working perfectly. It is the online server that has this issue.
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by Nobody: 8:18pm On Feb 27, 2016
ultimatex:
I didn't use .htaccess since I am not restricting it to some users
There are two factors that can cause your php files to download. Also .htaccess is not only for restricting users. It has alot of functions.

Factors include:

1.) Apache Configuration

2.) .htaccess

Since you said no .htaccess it's unusual it would be an Apache Configuration so you contact your Web host
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ogaprime(m): 8:34pm On Feb 27, 2016
ultimatex:
No am talking about cPanel and online web host
Alright but that is what happens when you don't read the php file from the server. So that means some files are in the wrong places
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by onyengbu: 9:02pm On Feb 27, 2016
ultimatex:
My virtual server is working perfectly. It is the online server that has this issue.
Which hosting plan did you pay for? Linux or Windows or both?
Also, even if you didn't create .htaccess file yourself, make sure none exist there.
Re: Help!!! My Php Files Are Downloading Instead Of Parsing Or Executing. by ultimatex(op): 9:41pm On Feb 27, 2016
onyengbu:
Which hosting plan did you pay for? Linux or Windows or both?
Also, even if you didn't create .htaccess file yourself, make sure none exist there.
Its cpanel using GlobalHosting247 - I don't know whether its Linux or windows. I will check tomorrow
1 Reply

HELP ME Error Parsing XML, Line 15, Column 70: The Entity "Raquo" Was ReferencedDownload All My Php/website Scripts With Just A TokenHello Please Can Someone Explain To To Me What Torrent Files Are234

Advertise Your Business To 1M NigeriansDominate Youtube, And Start Making Money From Youtube(5,940k Dollar) 9btc (bitcoin) For Sale