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, 05: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, 06:17 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 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 5 Days 1 h 54 m 18 sec
Reputation Power: 4
the php closing tag is supposed to be just ?> not php?>

Reply With Quote
  #3  
Old November 22nd, 2008, 06: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, 06:55 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 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 5 Days 1 h 54 m 18 sec
Reputation Power: 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.

Reply With Quote
  #5  
Old November 23rd, 2008, 10: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, 03:51 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 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 5 Days 1 h 54 m 18 sec
Reputation Power: 4
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 03: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!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




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