[PHP] Re: Access denied to php files in Netscape 6
I still haven't figured this out. URL problems? No. The first time I tried it I copied the URL directly out of my IE address bar to just check the file in Netscape quick to see how it looked. You are not authorized to view this page HTTP 401.3 - Access denied by ACL on resource Internet Information Services That is the file permissions error. But I have the standard configuration for IIS (PWS). IUSER has appropriate permissions. Just to be sure, I gave EVERYONE full access to all folders and files under wwwroot. No dice. One clue is that when I switch the URL in Netscape to http://localhost/test.php or http://127.0.0.1/test.php I get this error: No web site is configured at this address. This leads me to believe that even though Netscape is using http://mymachinename/*.htm and displaying HTML pages just fine, that it's actually bypassing my IIS and just looking at the pages from disk rather than from the web server. I'm going to check into this some more when I have some time to burn. In the meantime back to some coding =P. Chris Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm running PWS on WinXP Pro. I can't test my php stuffs in Netscape cause it says Access Denied when I try to access any php file. They work fine in IE6. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Access denied to php files in Netscape 6
Forgot to mention that I have no proxy settings set for either IE or Netscape. Chris Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I still haven't figured this out. URL problems? No. The first time I tried it I copied the URL directly out of my IE address bar to just check the file in Netscape quick to see how it looked. You are not authorized to view this page HTTP 401.3 - Access denied by ACL on resource Internet Information Services That is the file permissions error. But I have the standard configuration for IIS (PWS). IUSER has appropriate permissions. Just to be sure, I gave EVERYONE full access to all folders and files under wwwroot. No dice. One clue is that when I switch the URL in Netscape to http://localhost/test.php or http://127.0.0.1/test.php I get this error: No web site is configured at this address. This leads me to believe that even though Netscape is using http://mymachinename/*.htm and displaying HTML pages just fine, that it's actually bypassing my IIS and just looking at the pages from disk rather than from the web server. I'm going to check into this some more when I have some time to burn. In the meantime back to some coding =P. Chris Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm running PWS on WinXP Pro. I can't test my php stuffs in Netscape cause it says Access Denied when I try to access any php file. They work fine in IE6. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] stuck n00b
I have a simple form: form action=addUser.php method=post Enter Username: input type=text name=userNamebrbr input type=submit value=Submit /form Submits to addUser.php: ?php echo $HTTP_SERVER_VARS['userName']; ? Returns this error in my browser: Notice: Undefined index: userName in E:\Inetpub\wwwroot\Test\addUser.php on line 11 Is there a setting in my php.ini file I need to change? register_globals is off, as that seems to be the preferred method now. But that's my issue, trying to access this external variable. $_REQUEST doesn't work. $_POST doesn't either. I have other scripts that it's working in, but I may not know what I'm saying here. PHP 4.2.3 on IIS (personal web server or whatever it's called) on WinXP Pro. Thanks for any help you can give. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] stuck n00b
My form is actually using method=post. And I did use $_POST. Can't remember if I tried $_GET, but if I'm using post would that even work? I'll give it a try later and let you know. Jay Blanchard [EMAIL PROTECTED] wrote in message 000101c2697c$4ad74bc0$8102a8c0@000347D72515">news:000101c2697c$4ad74bc0$8102a8c0@000347D72515... [snip] Submits to addUser.php: ?php echo $HTTP_SERVER_VARS['userName']; ? Returns this error in my browser: Notice: Undefined index: userName in E:\Inetpub\wwwroot\Test\addUser.php on line 11 Is there a setting in my php.ini file I need to change? register_globals is off, as that seems to be the preferred method now. But that's my issue, trying to access this external variable. $_REQUEST doesn't work. $_POST doesn't either. I have other scripts that it's working in, but I may not know what I'm saying here. PHP 4.2.3 on IIS (personal web server or whatever it's called) on WinXP Pro. [/snip] You mentioned everything but $_GET{'userName'] :^] Since the form method=GET this is what you would have to do to 'get' the result you're looking for. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: stuck n00b
Well, $_POST['userName'] is now working, but I could have sworn I was trying that last night and it was returning the same error. Oh well, thanks for the help guys. Chris Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a simple form: form action=addUser.php method=post Enter Username: input type=text name=userNamebrbr input type=submit value=Submit /form Submits to addUser.php: ?php echo $HTTP_SERVER_VARS['userName']; ? Returns this error in my browser: Notice: Undefined index: userName in E:\Inetpub\wwwroot\Test\addUser.php on line 11 Is there a setting in my php.ini file I need to change? register_globals is off, as that seems to be the preferred method now. But that's my issue, trying to access this external variable. $_REQUEST doesn't work. $_POST doesn't either. I have other scripts that it's working in, but I may not know what I'm saying here. PHP 4.2.3 on IIS (personal web server or whatever it's called) on WinXP Pro. Thanks for any help you can give. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] stuck n00b
I was sure I'd tried it, but $_POST works now. Thanks guys. Jay Blanchard [EMAIL PROTECTED] wrote in message 000501c2697d$ded95a10$8102a8c0@000347D72515">news:000501c2697d$ded95a10$8102a8c0@000347D72515... [snip] My form is actually using method=post. And I did use $_POST. Can't remember if I tried $_GET, but if I'm using post would that even work? I'll give it a try later and let you know. [/snip] My bad! I looked at two e-mails from different folks and saw a GET in one, and a POST in another. Since you are using POST it should be $_POST['userName'] or $_POST[userName] Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Access denied to php files in Netscape 6
I'm running PWS on WinXP Pro. I can't test my php stuffs in Netscape cause it says Access Denied when I try to access any php file. They work fine in IE6. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to send POST info without a form?
I have a single php file that I want to do some different things (only one at a time, based on a conditional): display a form to the user for input submit information from (above) form to database list information in database (that has been INSERTed by the above) I want this file to be able to call itself using the following code: $input = $_SERVER['PHP_SELF'].?action=INPUT; $list = $_SERVER['PHP_SELF'].?action=LIST; print 'a href='.$input.'Input a new user/abr'; print 'a href='.$list.'List all users/a'; but I want to submit the action value as a POST rather than a GET. I then have conditionals around each of my modules that check $_POST['action'] for one of three values and only print that module if that's the action I need the file to perform. Basically I'm trying to figure out how to lump this all into one file. Obviously I could split it into three files that do each of the desired actions, but I would then also have to have a fourth file which provides a front end into it, which I don't want to do and is what got me started down this path. How can I submit POST information to a php file without using an HTML form? TIA. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php