473,246 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,246 software developers and data experts.

mime problem?

I have a php script that under some circumstances causes my browsers to
prompt me to open or save the file.

The file is an index file, index.php. When I try to open it from the root
of the domain. domain.com (or www.domain.com), I get a dialog box asking if
I wish to open the file or save it.

If I open any other PHP script in the root of the domain, it parses and
works properly.

If I open the file from a sub domain, sub.domain.com, it works properly.

If I open it locally (XP Pro SP2, Apache 2.0.48, PHP 4.3.4.), it works
properly.

If I open it on another machine, it works properly.

Clearly, it has something to do with my machine, but given the limited
circumstances under which the problem occurs, I'm struggling to figure out
what the problem might be. Any help would be appreciated.

Thanks,
Bob Chmara
Jul 17 '05 #1
2 1549
Bob Chmara wrote:
I have a php script that under some circumstances causes my browsers to
prompt me to open or save the file.

The file is an index file, index.php. When I try to open it from the root
of the domain. domain.com (or www.domain.com), I get a dialog box asking
if I wish to open the file or save it.


If you download it, do you get the HTML code, or do you get the actual
unparsed PHP code?

--
Tommy

Jul 17 '05 #2
Bob Chmara <sp**@chmara.nospam.com> wrote:
I have a php script that under some circumstances causes my browsers to
prompt me to open or save the file.

The file is an index file, index.php. When I try to open it from the root
of the domain. domain.com (or www.domain.com), I get a dialog box asking if
I wish to open the file or save it.

If I open any other PHP script in the root of the domain, it parses and
works properly.


Something to try:

telnet domain.com 80
GET /index.php HTTP/1.0^M
^M

Inspect the headers and see what it's sending you. (Particularly the
Content-Type)

My guess is it's a vhost configuration issue.

Jamie
--
http://www.geniegate.com Custom web programming
gu******@lnubb.pbz (rot13) User Management Solutions
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Phil Powell | last post by:
How do you detect an image MIME type if you know of the image in a directory? For example, I know of: if (is_file("$myImagePath/$myImageName")) { // FIND MIME TYPE BUT HOW I DUNNO } The...
0
by: Uwe Mayer | last post by:
Hi, I have a little mime-type problem running python with apache using mod_python. I'm on a Debian unstable system with Apache v1.3.31 and mod_python v2:2.7.10-3: I installed mod_python the...
0
by: clevariant | last post by:
Hello, I'm tasked with creating a WSDL file that is compatible with .NET's code gen' tool, wsdl.exe. I'm getting an error in the code output saying "Missing soap:body input binding", which...
1
by: Patrick | last post by:
Hi Does someone know how to decrypt mime messages? Is there a class in .net that helps with that? Thanks Patrick
9
by: wardy1975 | last post by:
Hi All, Looking for a little expert advice on a few web standards issues. I am currently trying to understand the impact of web standards for a web application I work with. I have been doing a...
13
by: stam | last post by:
hello guys, i have met a problem that i can send the html e-mail by using MIME via php to yahoo mail and hotmail, but when i was try to send to gmail, it show all the html coding. can someone help...
0
by: andreas.baus | last post by:
Hello. I'm trying to build a client using .NET/C# that is capable of communicating with an existing Webservice written in Java using Apache Axis. Now, I've encountered a problem trying to...
1
by: comp.lang.php | last post by:
<pre> if (!function_exists('mime_content_type_fileinfo')) { /** * Will use {@link http://us2.php.net/fileinfo FileInfo} functions provided within {@link http://pecl.php.net PECL} bundle to return...
3
by: Steven Allport | last post by:
I am working on processing eml email message using the email module (python 2.5), on files exported from an Outlook PST file, to extract the composite parts of the email. In most instances this...
1
by: jcor | last post by:
Hi, I'm trying to create a script that send a file in attachment of a mail: my code is something like this: #set up email my $to = "xxx\@xxxxxx.com"; my $from =...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.