|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
PHP - vista ultimate 32 - iis7
i have php installed and it is working with IIS 7. i say this because i can use phpmyadmin. the problem i am having is with a simple phpinfo.php.
one line. <?php phpinfo(); php?> here is the error PHP Notice: Use of undefined constant php - assumed 'php' in C:\Inetpub\wwwroot\phpinfo.php on line 1 thanks |
|
#2
|
|||
|
|||
|
the php closing tag is supposed to be just ?> not php?>
|
|
#3
|
|||
|
|||
|
Quote:
thanks that was it. does apache treat this any different as i believe it is that way on apache. i will check and see. thanks again |
|
#4
|
|||
|
|||
|
that is php specific, apache doesn't have anything to do with it. It is just a notice error, most servers have error reporting set to E_ALL^E_NOTICE meaning that all errors except notice errors show up. You may just different error_reporting settings on the different server.
|
|
#5
|
|||
|
|||
|
Quote:
i'm sure you are correct. but i tried the code with my apache server 2.2 on vista ultimate and it worked with the old code. could there be some correction or error checking in the apache init? thanks again. |
|
#6
|
|||
|
|||
|
the only apache setting would be just to tell php what to set the settin to in php at script runtime. It still would have nothing to do with apache other than apache telling php that setting. If you went into one of your old scripts and put:
PHP Code:
The webserver works like this (and its the same for both apache and iis): user visits website and requests a page. server software pulls the page and sees that it is a php file. then it sends that file off to php to run. php takes the script, compiles it at runtime, runs it and gets a resulting output. php sees the error and adds the error to it's results from the script output server software gets those results and sends them back to the user. Apache/iis would have nothing to do with php errors other than maybe telling php when it calls it to set some settings. The php errors are in the result the server gets back from php. Last edited by IAmALlama : November 23rd, 2008 at 03:55 PM. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > PHP - vista ultimate 32 - iis7 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|