Click to See Complete Forum and Search --> : why When I click on php file download dialog come?


cabab2020
10-12-2006, 02:39 PM
can any body help me with this problem

1- If I try to show or run php file the windows download dialog popup and ask me to open or save the file .
If I open it windows open dreamweaver for editing the file
I'm using WAMP 1.6.5

2- In some forum on web when i click on attachment windows download dialog popup and ask me to open or save the file not the attachment file but a php file this problem just happen from my computer so the problem not from forum.

bokeh
10-12-2006, 02:44 PM
How are you calling the file? Does the URL contain http:// ? If yes the server is misconfigured; if no that is the problem.

cabab2020
10-12-2006, 03:14 PM
I try to put a file in C:\wamp\www\dream so it works from dreamweaver but I can't show it directly from IE

should I put my project on
C:\wamp\www
with out any folder or can I put like this
C:\wamp\www\dream\phpautomembersarea
can I run php file from this root
D:\Documents and Settings\MSH\My Documents\dream\phpautomembersarea

Thank u for ur reply

bokeh
10-12-2006, 03:55 PM
Put the php script in the server root dirertory or one of its descendants. Call the file using a URL (http://localhost/path/filename.php), not a file path (file:///C:/wamp/path/filename.php)

cabab2020
10-12-2006, 04:01 PM
thanks

but what about
2- In some forum on web when i click on attachment windows download dialog popup and ask me to open or save the file not the attachment file but a php file this problem just happen from my computer so the problem not from forum

bokeh
10-12-2006, 04:07 PM
Number 2 doesn't make any sense (at least not to me). English is obviously not your mother tongue.

cabab2020
10-12-2006, 04:42 PM
Yes that's right
When I click on (attachment file) on forum (download dialog) popup and ask me to open or save the file.
not the (attachment file) but a (php file)
so I can't download any file from php forum
this problem just happen from my computer so the problem not in the forum
and this problem happen after I installed wamp

sorry for my bad english

bokeh
10-12-2006, 06:02 PM
What do you mean download files from the forum? What files?

cabab2020
10-12-2006, 06:17 PM
any file like rington or photo or zip file that attached to thread in an internet forum

"I canN'T download ATTACHMENT"

becaus when I click on ATTACHMENT(download dialog) come and ask me to save index.php
not the zip file or any file I want to download it

bokeh
10-13-2006, 02:02 AM
That is a behaviour of you web browser. What does it have to do with PHP?