Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-25-2005, 12:08 PM   #16 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
i had forgotten to uncomment that line. did that reset iis and reloaded the page. no change
smckittr is offline   Reply With Quote
Old 08-25-2005, 12:09 PM   #17 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
1. make sure there is no semi colon at the beginning of that cgi.force_redirect line

2. did you modify the permission for the C:\PHP5 directory so that the IUSR_... could read/execute it?

3. you restarted IIS after saving the modified php.ini correct?
__________________
Mike
sde is offline   Reply With Quote
Old 08-25-2005, 12:10 PM   #18 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
also, you did not use the PHP installer right? if so, or if you have tried to install PHP previously, make sure there is NO php.ini file in the C:\WINDOWS directory.

if there was, delete it and restart IIS. the only php.ini file should be in C:\PHP5
__________________
Mike
sde is offline   Reply With Quote
Old 08-25-2005, 12:17 PM   #19 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
everything seems right
no semicolon before the cgi.force_redirect line.
IUSR_SCOTT has permission
iis restarted
and i didn't use the installer

what about the redirect_status cgi variable that the output mentions?.
heres the code for the only redirect_status variable i could find in php.ini
Code:
; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
; will look for to know it is OK to continue execution.  Setting this variable MAY
; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
; cgi.redirect_status_env = ;
sounds related
smckittr is offline   Reply With Quote
Old 08-25-2005, 12:38 PM   #20 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
Got it!!!!
dunno how but it works
thanks very much for all your help.
i greatly appreciate it
now on to mysql
Scott
smckittr is offline   Reply With Quote
Old 08-25-2005, 12:49 PM   #21 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
maybe the page was cached in the browser? i dunno. i set my browsers to get current content everytime i visit a page.

lemme know how the mysql stuff goes. once it is installed, uncommented in the php.ini file, and iis is restarted, .. you should see a 'mysql' section in the phpinfo.php page.
__________________
Mike
sde is offline   Reply With Quote
Old 08-25-2005, 01:46 PM   #22 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
it worked great.
thanks for all your help
Scott
smckittr is offline   Reply With Quote
Old 08-25-2005, 01:55 PM   #23 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
cool beans. glad i could help. now i should make this into an article now that i know the instructions work on a machine that isn't my own =)
__________________
Mike
sde is offline   Reply With Quote
Old 08-26-2005, 01:36 PM   #24 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
I just figured out what changed so that the php thing worked.
I have to first access http://localhost which goes to index.htm
then i can type in the address bar phpinfo.php
but i can only view a php page if i have just now viewed index.htm, so i can't go from phpinfo.php to test.php
any suggestions?
THanks
Scott
smckittr is offline   Reply With Quote
Old 08-26-2005, 01:52 PM   #25 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
that is a pretty confusing explanation, but i'll take a shot at it with some more questions.

before i answer though, where you were previously should have absolutely nothing to do with the next php page.

even though the logic makes no sense, i will go with it and ask you the following questions so you might be able to isolate the problem.

you say you can go from index.htm to phpinfo.php. can you go from index.htm to test.php?

- if yes, then wow, i am stumped because index.htm has nothing to do with either of the other files.

- if no, then i think there is something wrong with test.php.

are you sure test.php works? do you have 'display_errors=on' in the php.ini config?

i dont' have a php config to look at, but the other php config setting for errors that i recommend i think is error_reporting.

make sure you report ALL ~ notices (or seomthing like that). the most common way to report errors is have php report all errors except notices.

i'm leaning towards maybe you have a parse error in test.php and the display_errors is just not on.

just some ideas.
__________________
Mike
sde is offline   Reply With Quote
Old 08-26-2005, 01:58 PM   #26 (permalink)
smckittr
Scott
 
Join Date: Aug 2005
Posts: 29
smckittr is on a distinguished road
both php.php and test.php work if i start at index.htm
so i would type http://localhost in the address bar and load that page and then i would type http://localhost/phpinfo.php and it would work. if i just go from this forum thread to http://localhost/phpinfo.php it doesn't work.
I get the error 500 "Can't display page because of internal server error" page
i'll check display_errors and error_reporting
thanks
Scott
smckittr is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 5.0.4 and 4.3.11 Released sde Code Newbie News 0 04-20-2005 10:56 AM
PHP vs .NET Redline Lounge 1 11-24-2004 06:10 AM
PHP Comes of Age sde Code Newbie News 0 04-14-2004 11:41 AM
I need to learn PHP Nitro PHP 9 06-28-2003 11:24 AM


All times are GMT -8. The time now is 10:56 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting