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

Can anyone tell me why php scripts are not parsed ???

Can anyone tell me why .php scripts are not parsed?

PHP5 Apache 2 on windows

php.ini
short_open_tag = Off
#For PHP 5:
# Add to the end of the LoadModule section
LoadModule php5_module "C:/PHP/php5apache2.dll"
AddType application/x-httpd-php .php

Thanks a million for your time

Apr 4 '06 #1
5 2682
can't think of anything but to make sure you're editing the httpd.conf
and not httpd.default.conf

Apr 4 '06 #2
Sorry got another thread going, having responded for which I am
grateful you deserve an answer.The proper file is checked httpd.conf
not the default

Thanks
Massa Bathe

Apr 5 '06 #3
"Massa Batheli" <mn****@yahoo.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Sorry got another thread going, having responded for which I am
grateful you deserve an answer.The proper file is checked httpd.conf
not the default

Thanks
Massa Bathe


AddType application/x-httpd-php .php

This may seem like a stupid question but how are you calling your web page.
As the setting above dictates, only pages ending in .php will be parsed.
Add .htm .html as well.

AddType application/x-httpd-php .php .htm .html

Norm
Apr 6 '06 #4
Norman Peelman wrote:
"Massa Batheli" <mn****@yahoo.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Sorry got another thread going, having responded for which I am
grateful you deserve an answer.The proper file is checked httpd.conf
not the default

Thanks
Massa Bathe


AddType application/x-httpd-php .php

This may seem like a stupid question but how are you calling your web page.
As the setting above dictates, only pages ending in .php will be parsed.
Add .htm .html as well.

AddType application/x-httpd-php .php .htm .html

Adding the above "AddType" line is not really a very smart idea. I
causes Apache to parse every file named .htm, .html
This will put a much bigger load on the server parsing each and every
file (.htm .html) that have no PHP within them. The results will be seen
by the end user as slow serving webpages. Is that what one really
wants?. Don't be laze, do it the right way.
Apr 7 '06 #5
"David" <yo*******@findmoore.net> wrote in message
news:G7********************@centurytel.net...
Norman Peelman wrote:
"Massa Batheli" <mn****@yahoo.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Sorry got another thread going, having responded for which I am
grateful you deserve an answer.The proper file is checked httpd.conf
not the default

Thanks
Massa Bathe


AddType application/x-httpd-php .php

This may seem like a stupid question but how are you calling your web page. As the setting above dictates, only pages ending in .php will be parsed.
Add .htm .html as well.

AddType application/x-httpd-php .php .htm .html

Adding the above "AddType" line is not really a very smart idea. I
causes Apache to parse every file named .htm, .html
This will put a much bigger load on the server parsing each and every
file (.htm .html) that have no PHP within them. The results will be seen
by the end user as slow serving webpages. Is that what one really
wants?. Don't be laze, do it the right way.


I knew someone would catch that... I just shot that off before rushing off
to work. Really what one should do is decide upon an extension for static
pages and omit that from the list, so that:

AddType application/x-httpd-php .php .htm

would allow .html pages to NOT be parsed through PHP. And as a side note,
any extension will work.

Norm
--
FREE Avatar hosting at www.easyavatar.com
Apr 8 '06 #6

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

Similar topics

5
by: Michael Lawrence | last post by:
I am looking to start up a comprehensive Adult dating website and I need pre-made PHP scripts to set up the back-end for this project. Preferably someone out there has a set of pre-made scripts...
2
by: Don | last post by:
How do I use PHPRC at runtime from within my php scripts to tell PHP where my working directory is with all my php scripts? The scripts are on the host server. Just did a phpinfo() and got the...
7
by: Doug Rosser | last post by:
I'm writing a fairly complicated test framework and keeping configuration data inside ini files that are parsed at runtime by the ConfigParser module. For example, there would be a section...
6
by: Skip Montanaro | last post by:
I wrote PEP 304, "Controlling Generation of Bytecode Files": http://www.python.org/peps/pep-0304.html quite awhile ago. The first version appeared in January 2003 in response to questions...
8
by: DeadCert | last post by:
Hi, How can I store all my scripts on a separate page and then call them from the html page that I want to use them on? the <head> section is getting too cluttered and I would like to store all in...
1
by: wolftor | last post by:
I want to change the default folder but can't seem to see where this is done. -- Regards, Peter www.AAAdataSystems.com Personal Organizer software. Managing personal contacts, projects,...
3
by: steve_h | last post by:
I think the subject says it all, but just in case: I know that I can call my own methods during an XSL transformation using <xsl:value-of select="myObject.someMethod(arg1)" /> having done...
10
by: olafilink | last post by:
Hello, we're running an Win2003server with IIS6 and PHP4 in fastCGI config. When i try to use system() command to execute ffmpeg.exe it works ok when i run the PHP script from the commandline on...
5
by: Andy Fish | last post by:
Hi, using HTML 4.01 (not xhtml), I have recently discovered that this: <script>var x='</script>';</script> is not valid HTML - the fact that there is an end script tag in quotes causes the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.