[advanced search]
Results from the most recent live auction are here.
20 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 07-03-2008, 12:07 PM   · #1
gmtfan
Senior Member
 
gmtfan's Avatar
 
Name: D.
Location: In front of my PCs
Trader Rating: (30)
Join Date: Mar 2007
Posts: 1,034
NP$: 14.00 (Donate)
gmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to all
PHP: Download php code from server

Hi,
I am struggling with a silly problem:
when we use address with .php extension, ex http://www.domain.com/index.php, the code is executed.
But when we use http://www.domain.com/index (with out .php) a dialog appears and tell us to choose when we want to save the file. Funny thing is this is an original php code, has not been executed yet.

Any one could help me with that? How to fix this silly error?

Thanks


Please register or log-in into NamePros to hide ads
gmtfan is offline   Reply With Quote
Old 07-03-2008, 01:09 PM   · #2
b.a
NamePros Member
 
b.a's Avatar
 
Trader Rating: (2)
Join Date: Jul 2006
Posts: 63
NP$: 0.00 (Donate)
b.a is an unknown quantity at this point
it may be an Apache issue. If you have access to hosting server, take a look at Apache Handler or mime types
__________________

Develop Your Domains | Domainers Toolbar discussed here |
b.a is offline   Reply With Quote
Old 07-03-2008, 03:27 PM   · #3
gmtfan
Senior Member
 
gmtfan's Avatar
 
Name: D.
Location: In front of my PCs
Trader Rating: (30)
Join Date: Mar 2007
Posts: 1,034
NP$: 14.00 (Donate)
gmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to all
I can't do that since I can not touch anything with root-required.
gmtfan is offline   Reply With Quote
Old 07-03-2008, 05:45 PM   · #4
Bruce_KD
NamePros Member
 
Trader Rating: (1)
Join Date: Sep 2006
Posts: 78
NP$: 100.00 (Donate)
Bruce_KD will become famous soon enoughBruce_KD will become famous soon enough
During a server restart, Apache would often prompt users to download my php files.
First, check your .htaccess file to make sure there aren't any odd things in there.
I'm assuming there is nothing though.

You need to contact your host ASAP. This is a severe security issue, and if it is happening to you, it is likely happening to other users on the server.
For something like this, I would demand that it be fixed within 24 hours or you will need your money back.

It definitely sounds like an Apache issue, and if you're renting server space, it is Their responsibility to ensure that it is running properly.

Raise Hell,


Bruce
Bruce_KD is offline   Reply With Quote
Old 07-03-2008, 08:54 PM   · #5
gmtfan
Senior Member
 
gmtfan's Avatar
 
Name: D.
Location: In front of my PCs
Trader Rating: (30)
Join Date: Mar 2007
Posts: 1,034
NP$: 14.00 (Donate)
gmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to allgmtfan is a name known to all
Thank you for the response. This is not paid host, this is company's. I am waiting If anyone tells me any tip with .htaccess. It looks like there is nothing with this. I will contact them for sure.

Tks
gmtfan is offline   Reply With Quote
Reply

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Site Sponsors
Proof is in the Parking EscrowDNS Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 01:06 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0