IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

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 Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 20th, 2004, 03:41 AM
benzizbit benzizbit is offline
User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 41 benzizbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 51 m 25 sec
Reputation Power: 5
problems moving from Apache to IIS

Hi All

I would like to move from Apache to IIS.

Can someone please tell me why after submitting the form $enter is still empty
when I'm using the IIS, and it is working fine when I'm using Apache server ?


the index.php file:
PHP Code:
<?php 
Include("header_inc.php"); 
if(isset(
$enter)){ 
    
$USER=$name_form
    
$PASSWORD=$password_form
    
$STATION=$test_name 
    $au
=amax_auth($USER,$PASSWORD); 
    
$USER_ID=$au['id']; 
    
$LEVELS=$au['levels']; 
    if(
ereg("Guest"$LEVELS)){ 
        
amax_light_keep_history($USER,'System',"Login of $USER",getenv ("REMOTE_ADDR")); 
        Include(
"amax.php"); 
    }elseif(
ereg("-1"$LEVELS)){ 
        echo 
"<div class=hazard>Databse Error</div>"
        exit; 
    }elseif(
ereg("-2"$LEVELS)){ 
        echo 
"<div class=hazard>Password is wrong, try again</div>"
        exit; 
    }elseif(
ereg("-3"$LEVELS)){ 
        echo 
"<div class=hazard>User do not exist</div>"
        exit; 
    } 
    unset(
$enter); 
    
?> 
    <BR><CENTER><A HREF="index.php">Click here to sign in</A></CENTER><BR> 
    <?PHP 
}else{?> 
    <html><head><title>AtricA manufacturing quality system</title></head> 
    <body background="<?php echo BACKGROUND ?>"> 
    <h1>Login in to AMAX - Atrica manufacturing quality system<? Echo "<BR>Running on ",HOST,"<BR>Using ",DATABASE," DB"?></h1> 
    <?php 
    $password
=''
    
?> 
    <form method="post" action="<?php echo $PHP_SELF,"?enter=YES"?>"> 
    <CENTER><table><tr> 
    <?PHP 
    
if(!isset($USER)) $USER='Guest'
    
make_control("<tH><CENTER>Your name: </CENTER><BR>""SELECT","name_form","",1,$USER,"select user_name from users order by user_name asc" ) ; 
    
?> 
    <TR><TH>  Password:<BR><INPUT TYPE="password" NAME="password_form" size=20 onenter='document.this_form.submit()'> 
    <tr><tH><BR><CENTER><INPUT TYPE="SUBMIT" NAME="enter" value="Log in"></CENTER> 
    </table></CENTER><br><br><br><br><br><br><br><br><br><br><br> 
    <?PHP 
    
//make_control("Choose the station:<BR>","RADIO_HORIZONTAL","test_name","",'',$test_name,"SELECT test_name FROM `test_names` where test_name<>'0'"); 
    
?> 
    </form> 
    <script type="text/javascript"> 
     document.forms[0].password_form.focus() 
    </script> 
<?php 

?> 

</body></html>


Thanks

Reply With Quote
  #2  
Old October 20th, 2004, 01:42 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,712 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 23 h 31 m 33 sec
Reputation Power: 688
Gee, I don't know what you mean by "isn't working"

Did you install php for IIS?
__________________
======
Doug G
======
"Hide, hide witch! The good folk come to burn thee. Their keen enjoyment hid behind their gothic mask of duty." -Mark Clifton

Reply With Quote
  #3  
Old October 20th, 2004, 11:45 PM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 27
I would say you have a program with globals being off as compared to being on with Apache. Please check your php.ini file and make sure your settings are the same as they were for Apache since it seems they have been changed.

Either that or you could update your PHP code to work with register globals off since that is a better way to program.

Reply With Quote
  #4  
Old October 21st, 2004, 07:03 AM
benzizbit benzizbit is offline
User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 41 benzizbit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 51 m 25 sec
Reputation Power: 5
Thanks

Thanks is was the globals in the php.ini



Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > problems moving from Apache to IIS


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway