PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 22nd, 2008, 04:58 PM
rsaassoc rsaassoc is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 6 rsaassoc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 4 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old November 22nd, 2008, 05:17 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 2,070 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 6 Days 8 h 15 m 37 sec
Reputation Power: 5
the php closing tag is supposed to be just ?> not php?>

Reply With Quote
  #3  
Old November 22nd, 2008, 05:47 PM
rsaassoc rsaassoc is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 6 rsaassoc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 4 sec
Reputation Power: 0
Quote:
Originally Posted by IAmALlama
the php closing tag is supposed to be just ?> not php?>


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

Reply With Quote
  #4  
Old November 22nd, 2008, 05:55 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 2,070 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 6 Days 8 h 15 m 37 sec
Reputation Power: 5
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.

Reply With Quote
  #5  
Old November 23rd, 2008, 09:50 AM
rsaassoc rsaassoc is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 6 rsaassoc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 39 m 4 sec
Reputation Power: 0
Quote:
Originally Posted by IAmALlama
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.


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.

Reply With Quote
  #6  
Old November 23rd, 2008, 02:51 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: San Diego, CA
Posts: 2,070 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 6 Days 8 h 15 m 37 sec
Reputation Power: 5
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:
<?php error_reporting(E_ALL); ?>
as the first line, you would probably see those errors even on the apache server.

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 02:55 PM.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > PHP - vista ultimate 32 - iis7


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 11 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek