473,414 Members | 1,738 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,414 software developers and data experts.

php files downloading

Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish

Feb 16 '07 #1
8 1906
On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it

Thanks
Danish
short tags?

<? instead of <?php

Feb 16 '07 #2
On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:
On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish

short tags?

<? instead of <?php
Its not making any difference. I changed it bothways

Danish

Feb 16 '07 #3
On Feb 16, 4:15 pm, "danish" <me.linuxad...@gmail.comwrote:
On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:
On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish
short tags?
<? instead of <?php

Its not making any difference. I changed it bothways

Danish
Hi...I found out that this downloading option only comes when the
index.php file is accesses by giving the full url...

eg...http://192.168.1.1/inventory/index.php

Feb 16 '07 #4
On Feb 16, 1:50 pm, "danish" <me.linuxad...@gmail.comwrote:
On Feb 16, 4:15 pm, "danish" <me.linuxad...@gmail.comwrote:
On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:
On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish
short tags?
<? instead of <?php
Its not making any difference. I changed it bothways
Danish

Hi...I found out that this downloading option only comes when the
index.php file is accesses by giving the full url...

eg...http://192.168.1.1/inventory/index.php
Check the httpd.conf Content-type settings for lines related to PHP5.
If you have module-based PHP installation, there should be line like
that:

LoadModule php5_module "path-to-your-php-module"

Also,check the mime.types file. There should be lines

application/x-httpd-php php
application/x-httpd-php-source phps

Feb 16 '07 #5
danish wrote:
On Feb 16, 4:15 pm, "danish" <me.linuxad...@gmail.comwrote:
>On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:
>>On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish
short tags?
<? instead of <?php
Its not making any difference. I changed it bothways

Danish

Hi...I found out that this downloading option only comes when the
index.php file is accesses by giving the full url...

eg...http://192.168.1.1/inventory/index.php
This would be an Apache configuration problem, not PHP. I'd recommend
you check in alt.apache.configuration. They'll want to know what's in
your httpd.conf file.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Feb 16 '07 #6
Jerry Stuckle wrote:
danish wrote:
>On Feb 16, 4:15 pm, "danish" <me.linuxad...@gmail.comwrote:
>>On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:

On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish
short tags?
<? instead of <?php
Its not making any difference. I changed it bothways

Danish

Hi...I found out that this downloading option only comes when the
index.php file is accesses by giving the full url...

eg...http://192.168.1.1/inventory/index.php

This would be an Apache configuration problem, not PHP. I'd recommend
you check in alt.apache.configuration. They'll want to know what's in
your httpd.conf file.
In the Apache config make sure you added index.php to DirectoryIndex.

Example:

DirectoryIndex index.html index.html.var index.php
--
Thanks in Advance... http://weconsultants.prophp.org
IchBin, Pocono Lake, Pa, USA http://ichbinquotations.awardspace.com
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Feb 16 '07 #7
On Feb 16, 7:48 pm, "Mityok" <mit...@gmail.comwrote:
On Feb 16, 1:50 pm, "danish" <me.linuxad...@gmail.comwrote:
On Feb 16, 4:15 pm, "danish" <me.linuxad...@gmail.comwrote:
On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:
On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish
short tags?
<? instead of <?php
Its not making any difference. I changed it bothways
Danish
Hi...I found out that this downloading option only comes when the
index.php file is accesses by giving the full url...
eg...http://192.168.1.1/inventory/index.php

Check the httpd.conf Content-type settings for lines related to PHP5.
If you have module-based PHP installation, there should be line like
that:

LoadModule php5_module "path-to-your-php-module"

Also,check the mime.types file. There should be lines

application/x-httpd-php php
application/x-httpd-php-source phps
application/x-httpd-php php
application/x-httpd-php-source phps
These lines are not present in mime.types file but in httpd.conf
file. The LoadModule directive is also present in the httpd.conf file
Feb 16 '07 #8
On Feb 16, 9:40 pm, IchBin <wecon...@ptd.netwrote:
Jerry Stuckle wrote:
danish wrote:
On Feb 16, 4:15 pm, "danish" <me.linuxad...@gmail.comwrote:
On Feb 16, 3:53 pm, "shimmyshack" <matt.fa...@gmail.comwrote:
>>On 16 Feb, 10:32, "danish" <me.linuxad...@gmail.comwrote:
Hi,
Can anyone suggest me why some .php files are downloading and some are
executing. Ive got php 5.2.0 and apache 2.0.54. Apache came as an rpm
along with Fedora 4. I downloaded php from the site and built it
Thanks
Danish
short tags?
<? instead of <?php
Its not making any difference. I changed it bothways
>Danish
Hi...I found out that this downloading option only comes when the
index.php file is accesses by giving the full url...
eg...http://192.168.1.1/inventory/index.php
This would be an Apache configuration problem, not PHP. I'd recommend
you check in alt.apache.configuration. They'll want to know what's in
your httpd.conf file.

In the Apache config make sure you added index.php to DirectoryIndex.

Example:

DirectoryIndex index.html index.html.var index.php
--
Thanks in Advance... http://weconsultants.prophp.org
IchBin, Pocono Lake, Pa, USA http://ichbinquotations.awardspace.com
__________________________________________________ ____________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

Thanks for the help Jerry. Ill be posting in the
alt.apache.configuration group.

Ichbin..

I do have index.php in the DirectoryIndex directive

Danish
Feb 16 '07 #9

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

Similar topics

4
by: Luke StClair | last post by:
Only marginally belonging in this newsgroup... but oh well. I've just started writing in python, and I want to make the files available on the web. So I did the standard <a...
10
by: scrimp | last post by:
Ive been using PAMIE 1.4 to try to automate web page processes. The one thing I cannot do with it is upload files and download files. With uploading files, the file input box does not allow PAMIE...
0
by: sales | last post by:
If you are having difficulty downloading large files, please check out www.Downloads4Dialups.com. Mention this newsgroup in the "Special Instructions" window on the Shipping Form, and receive a...
1
by: Marc Pelletier | last post by:
Hello all, I am a desktop programmer getting my feet wet on the web. I am trying to build a .net website that will keep a set of local files synchronized with a master set on the web. Using a...
0
by: Chuck Anderson | last post by:
I am writing a Php script to run on my home PC (Windows) that downloads an Apache access log file and inserts new entries into a database.. The only way I can access these log files is through a...
13
by: Daniel Walzenbach | last post by:
Hi, Imagine the following situation: I have an asp.net application which allows uploading files to a SQL Server 2000 database (Files are stored as type "images"). As a next step I would like to...
0
by: just.starting | last post by:
I am having problem while downloading files from an apache server2.0.53 with php4.3.10.While downloading some files it generally stops after downloading some specific amount and then stops...
1
by: Andrew86 | last post by:
I have an application which requires a number of DLLs (unmanaged ansi C dlls) to reside in the same directory as the application. I currently have these dlls included in the project folder and...
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
7
by: Ehsan | last post by:
I foundd this code in ASPN Python Cookbook for downloading files in python but when it finished downloading files the files became corrupted and didn't open, the files in internet havn't any...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.