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

PHP not executing, IIS 6

Hi, I'm attempting to run PHP on Microsoft IIS 6.0, and the PHP will
not execute.

For Example:

test.php:

<?
phpinfo();
?>

When I request http://localhost/test.php I get a blank page.
When I view the source, I get:

<?
phpinfo();
?>

Any ideas what I am doing wrong? Any resources that could guide me
through the install process? The .php extensions are setup correctly
(I believe) in IIS. Thanks for the help!

Mike Biang
Cramer Development
mike.biang - at - gmail -dot- com

Apr 17 '06 #1
3 3787

<mi********@gmail.com> schreef in bericht
news:11*********************@v46g2000cwv.googlegro ups.com...
<?
phpinfo();
?>

I am not extremely experienced but I read some time ago that <?php is
somewhat more reliable than just <? , as far as I recall it can be ambiguous
when more script engines are installed on one server. Maybe this link will
help:
http://www.iamcal.com/publish/articl..._applications/

Martien
Apr 17 '06 #2
mi********@gmail.com wrote:
Hi, I'm attempting to run PHP on Microsoft IIS 6.0, and the PHP will
not execute.

For Example:

test.php:

<?
phpinfo();
?>

When I request http://localhost/test.php I get a blank page.
When I view the source, I get:

<?
phpinfo();
?>

Any ideas what I am doing wrong? Any resources that could guide me
through the install process? The .php extensions are setup correctly
(I believe) in IIS. Thanks for the help!

Mike Biang
Cramer Development
mike.biang - at - gmail -dot- com


Martien could be correct. But also, what do you get when you look at the page
source?

If you see your code, either it isn't recognizing the shortcut <?, or you don't
have the extensions set up properly.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Apr 17 '06 #3
mi********@gmail.com wrote:
Hi, I'm attempting to run PHP on Microsoft IIS 6.0, and the PHP will
not execute.

For Example:

test.php:

<?
phpinfo();
?>

When I request http://localhost/test.php I get a blank page.
When I view the source, I get:

<?
phpinfo();
?>

Any ideas what I am doing wrong? Any resources that could guide me
through the install process? The .php extensions are setup correctly
(I believe) in IIS. Thanks for the help!


By default short tags are off. Try replacing "<? ... ?>" with the long tag
"<?php ... ?>". If you want short tags enabled, edit the sample php.ini
file, then copy it to c:\winnt (c:\windows ?? NFI - I don't "do" Windows
usually) and restart IIS. The install documentation is pretty thorough
IIRC (been a while since I did a PHP+IIS install).

Cheers,

James
--
This fortune is dedicated to your mother, without whose invaluable
assistance last night would never have been possible.

Apr 17 '06 #4

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

Similar topics

0
by: rvdw | last post by:
Hi All, I've a serious problem with executing stored procedures (SQL2000) from an Access db (version 97). After executing a stored procedure , msaccess hangs. The whole call to the procedure is...
0
by: Nick Coghlan | last post by:
Anyone playing with the CPython interpreter's new command line switch might have noticed that it only works with top-level modules (i.e. scripts that are directly on sys.path). If the script is...
15
by: Nick Coghlan | last post by:
Python 2.4's -m command line switch only works for modules directly on sys.path. Trying to use it with modules inside packages will fail with a "Module not found" error. This PEP aims to fix that...
10
by: Heiko Pliefke | last post by:
Hi NG! I wrote a stored procedure which at first deletes 100.000 rows and then inserts 100.000 new rows. There is a huge difference between executing this SP in the query-analyzer (runtime...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
7
by: Jibey | last post by:
Hello: I'm facing a very strange problem. When I run my Web application in Visual Studio.NET the Page_Load event is not executing. Other events like a Button_Click are executing. It doesn't...
0
by: whidbeywave | last post by:
Hello all, Help me understanding this situtation. While debugging a scenario for error 403.9 on IIS/XP Pro, I added two counters to perfmon app.I saw at some point of time Session Active =0 , but...
7
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was...
5
by: reycri | last post by:
Hi, I need to be able to do this: var func = new Function("var me = <selfRef>; alert(me.params);"); func.params = "This is a test parameter"; window.setTimeout(func, 500); Basically, I...
7
by: robin1983 | last post by:
Hi, good morning everyone, i have a file called attendence.php The problem is that some part of code is executing properly and half of the code is not and i dont get any warning or error message. For...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
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
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.