NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP: Download php code from server

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-03-2008, 01:07 PM THREAD STARTER               #1 (permalink)
Senior Member
 
gmtfan's Avatar
Join Date: Mar 2007
Location: In front of my PCs
Posts: 1,051
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 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
gmtfan is offline  
Old 07-03-2008, 02:09 PM   #2 (permalink)
b.a
NamePros Member
 
b.a's Avatar
Join Date: Jul 2006
Posts: 64
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  
Old 07-03-2008, 04:27 PM THREAD STARTER               #3 (permalink)
Senior Member
 
gmtfan's Avatar
Join Date: Mar 2007
Location: In front of my PCs
Posts: 1,051
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 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  
Old 07-03-2008, 06:45 PM   #4 (permalink)
NamePros Member
Join Date: Sep 2006
Posts: 99
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  
Old 07-03-2008, 09:54 PM THREAD STARTER               #5 (permalink)
Senior Member
 
gmtfan's Avatar
Join Date: Mar 2007
Location: In front of my PCs
Posts: 1,051
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 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  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:24 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger