Can anyone tell me why .php code is not parsed
#For PHP 5:
short_open_tag = Off
httpd.conf
# Add to the end of the LoadModule section
LoadModule php5_module "C:/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
#Add to the end of the AddModule section
#AddModule mod_php5.c
Mike 18 2575
Massa Batheli wrote: Can anyone tell me why .php code is not parsed
#For PHP 5: short_open_tag = Off httpd.conf # Add to the end of the LoadModule section LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php #Add to the end of the AddModule section #AddModule mod_php5.c Mike
It should be. Are your files named xxx.php?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
Thanks for your response Jerry .It should be but actually it is not .
My files do end with a php
My results look like
Hi <?php echo $_POST['name']; ?>.
You are <?php echo $_POST['age']; ?> years old.
cut and paste from http://us3.php.net/manual/en/tutorial.forms.php
Massa Batheli wrote: Thanks for your response Jerry .It should be but actually it is not . My files do end with a php
My results look like
Hi <?php echo $_POST['name']; ?>. You are <?php echo $_POST['age']; ?> years old.
cut and paste from
http://us3.php.net/manual/en/tutorial.forms.php
Do you have a page where we can look at it to see what's happening? It works
just fine here.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
after setting this, did you stop/restart the web server? Your biggest
problem is that you are using windows as a server....
bbblllleeeeccccchhh!
create a page with
--- cut here ---
<?php phpinfo(); ?>
--- cut here ---
what do you get?
<on*******@firstdbasource.com> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com... after setting this, did you stop/restart the web server? Your biggest problem is that you are using windows as a server....
Windows works just fine as a web server.
bbblllleeeeccccchhh!
create a page with
--- cut here --- <?php phpinfo(); ?> --- cut here ---
what do you get? on*******@firstdbasource.com wrote: after setting this, did you stop/restart the web server? Your biggest problem is that you are using windows as a server.... bbblllleeeeccccchhh!
BS. I've been using Apache with PHP and MySQL on Windows XP for years
and it works like a charm. Never had any problems, except for the well
known problem that Apache 2 has with XP without SP1 or greater.
Bye!
Phpinfo() shows up just fine with no errors .Apache test page shows up
just fine too.
When the .php files are replaced with .html then everything shows up
fine but for the values
in a form
I am sorry there is no test page yet to show, rebooted the laptop not
only restarted the services
Thanks a lot for your responses and hope one of you comes up with what
is needed
Massa Batheli
On Tue, 04 Apr 2006 09:27:18 -0400, Massa Batheli <mn****@yahoo.com> wrote: Can anyone tell me why .php code is not parsed
#For PHP 5: short_open_tag = Off httpd.conf # Add to the end of the LoadModule section LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php #Add to the end of the AddModule section #AddModule mod_php5.c
Don't you want to uncomment that last line? Should be:
AddModule mod_php5.c
In order to have a .HTML "execute" php commands, you must have html as
an addtype of AddType application/x-httpd-php - and you can only have
one AddType for each file extension.
PHP is working (if phpinf() works - it is configured correctly)
use a somewhat non-standard file extension -- something like:
AddType application/x-httpd-php .php .phtml
and rename your file to *.phtml
as for the other comments concerning windows: .. and your site gets how
many hits a day?
when addmodule is uncommented apache cannot be restarted
Would like to have .php working for now and worry about .phtml later
thanks so much for the responses
Thanks
okay... from a previous post you said that the phpinfo(); page was
working.. I assumed you had named it xxx.php and it displayed correctly
- is that not the case?
there should be an:
AddType application/x-httpd-php .php .phtml
(or similar line in either a mod_php.conf file or in the httpd.conf
file. without this directive, .php files cannot be "parsed".
Q: take a closer look at:
LoadModule php5_module "C:/PHP/php5apache2.dll"
shouldn't that be:
LoadModule php5_module "C:\PHP\php5apache2.dll"
maybe not - for real work, I don't do windows :) on*******@firstdbasource.com wrote: okay... from a previous post you said that the phpinfo(); page was working.. I assumed you had named it xxx.php and it displayed correctly - is that not the case?
there should be an:
AddType application/x-httpd-php .php .phtml (or similar line in either a mod_php.conf file or in the httpd.conf file. without this directive, .php files cannot be "parsed".
Q: take a closer look at:
LoadModule php5_module "C:/PHP/php5apache2.dll"
shouldn't that be: LoadModule php5_module "C:\PHP\php5apache2.dll" maybe not - for real work, I don't do windows :)
I appreciate your time but will like to share this with you. The
phpinfo.php page works wether front or back slashes are applied but
code is not still parsed.
What could be messed up here ...............
Massa bathe
Massa Batheli wrote: on*******@firstdbasource.com wrote: okay... from a previous post you said that the phpinfo(); page was working.. I assumed you had named it xxx.php and it displayed correctly - is that not the case?
there should be an:
AddType application/x-httpd-php .php .phtml (or similar line in either a mod_php.conf file or in the httpd.conf file. without this directive, .php files cannot be "parsed".
Q: take a closer look at:
LoadModule php5_module "C:/PHP/php5apache2.dll"
shouldn't that be: LoadModule php5_module "C:\PHP\php5apache2.dll" maybe not - for real work, I don't do windows :)
I appreciate your time but will like to share this with you. The phpinfo.php page works wether front or back slashes are applied but code is not still parsed. What could be messed up here ............... Massa bathe
Some questions:
1. what is in your apache2/logs/errors.log file? Anything relevant?
2. have you tried a really simple php file?
For example:
<?php
echo "<h1>Hi there</h1>";
?>
3. where are the pages that are not being served? In the same place as
the phpinfo?
-david-
Both pages are on the desktop
..The html page and the .php form processing page
David
The apache logs seem fine at least no errors that seem to ring a bell .
The simple PHP file you showed me is opened as a text file .
It is only opened with a browser if encapsulated in html.Please let me
know if that
is any hint to the problem
Massa Bathe
You said these are on your "desktop"???? Php will not "execute" from
your desktop. The files should be located in your apache directory
under htdocs and should be accessed via a web browser using your PC in
the address bar.
in IE: http://192.168.1.x/test.php
if you want to use command-line you must go to a cmd window and at the
prompt execute:
C:\where\ever\your\php.exe test.php
there is probably some way to make a .php file associated with your php
executable.
Massa Batheli wrote: David
The apache logs seem fine at least no errors that seem to ring a bell . The simple PHP file you showed me is opened as a text file . It is only opened with a browser if encapsulated in html.Please let me know if that is any hint to the problem
Massa Bathe
Ah, now the problem.
To get it to execute the PHP code, you MUST go through your web server - that
is, open a browser and access it with something like http://localhost/mypage.php.
Doing a File->Open in the browser or using any other tool to open it will not
execute the PHP code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
Jerry David and all thanks a lot .
**Problem resolved**
Massa Bathe This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: michael newport |
last post by:
I did the following as instructed in the docs. (see below)
everything seemed to install ok
and I started apache with no complaints, but,
1)I do not see a process for apache using ps -ef
2) In...
|
by: FL |
last post by:
Hi,
I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I
know, I'm nuts :o)
First, there is no php5apache2.dll in the beta2 package but a
php4apache2.dll (php.net doc...
|
by: somaBoy MX |
last post by:
I'm configuring PHP5 on my WinXP pro machine as an Apache2 handler.
However when I start apache I get system errormessages like "PHP Shutdown:
Unable to load dynamic library...
|
by: >>-Archer--> |
last post by:
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.
I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've...
|
by: Sarah Tanembaum |
last post by:
Though I installed MySQL5 and PHP5, how come my phpinfo() shows as follow:
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.57 <<<<<<<<<<<<<<<
...
|
by: TheClair |
last post by:
Hi,
I'm trying to install php5 as a shared module for Apache 2 (on SuSe 10.0). When I compile I don't get libphp5.so. I don't know why, I'm not getting any errors, there are a few warnings, but...
|
by: ll_42 |
last post by:
i reinstalled windows (98), installed apache and extracted the php5 zip
file into c:\php. i renamed php.ini-recommended to php.ini and added
the following lines to httpd.conf:
LoadModule...
|
by: SKUNKFACEWOODY |
last post by:
I hope for the sake of my sanity and the safety of my computer someone can help. I have been trying to install php5 to use with apache2 and windows xp. Apache installs fine and when you look up...
|
by: Alan M Dunsmuir |
last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I
need, purely for convenience, to set up a parallel platform under Windows.
Unfortunately, since I last did this (using...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: 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,...
|
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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |