473,396 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

cannot pass query string (GET) vars

I'm having a very odd issue, that arose this morning after working
fine yesterday...

here's a very simple script:

1: <?php
2: $test = $_GET['test'];
3: echo "Hello" . $test . "<p>";
4: ?>

when called using this URL:

http://216.244.107.150/info.php?test=me

the code should just output:

Hello me

but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.

Any ideas?? I'm very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.

Beekay

Oct 25 '07 #1
12 2146
On Thu, 25 Oct 2007 19:26:09 +0200, Kevin Blount <ke**********@gmail.com
wrote:
I'm having a very odd issue, that arose this morning after working
fine yesterday...

here's a very simple script:

1: <?php
2: $test = $_GET['test'];
3: echo "Hello" . $test . "<p>";
4: ?>

when called using this URL:

http://216.244.107.150/info.php?test=me

the code should just output:

Hello me

but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.

Any ideas?? I'm very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.
Seems to work OK from here using that IP. Are you sure it isn't some local
firewall/proxy setting? Does IIS keep a access and/or error log, and if
so, what is in it?
--
Rik Wasmus
Oct 25 '07 #2
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?

No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)

ok.. something screwy is going on, right?

On Oct 25, 1:29 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 25 Oct 2007 19:26:09 +0200, Kevin Blount <kevin.blo...@gmail.com>
wrote:


I'm having a very odd issue, that arose this morning after working
fine yesterday...
here's a very simple script:
1: <?php
2: $test = $_GET['test'];
3: echo "Hello" . $test . "<p>";
4: ?>
when called using this URL:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
Any ideas?? I'm very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.

Seems to work OK from here using that IP. Are you sure it isn't some local
firewall/proxy setting? Does IIS keep a access and/or error log, and if
so, what is in it?
--
Rik Wasmus- Hide quoted text -

- Show quoted text -

Oct 25 '07 #3
On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount <ke**********@gmail.com
wrote:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
>Seems to work OK from here using that IP. Are you sure it isn't some
local
firewall/proxy setting? Does IIS keep a access and/or error log, and if
so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?
Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?
I'd say so. Try to access any access/error logs and check it out. The one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
--
Rik Wasmus
Oct 25 '07 #4
On Oct 25, 1:58 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount <kevin.blo...@gmail.com>
wrote:


http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
Seems to work OK from here using that IP. Are you sure it isn't some
local
firewall/proxy setting? Does IIS keep a access and/or error log, and if
so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?

Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?

I'd say so. Try to access any access/error logs and check it out. The one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
--
Rik Wasmus- Hide quoted text -

- Show quoted text -
Here are the logs.. anything jump out at you?

As you can see. I tried "oelebole" first, and it worked! So, I tried
"me" again, failed.. I tried "kevinblount" hinking the length or
reserved word thing might be in play, but it failed to. I then tried
"beekay", failed.. finally back to "oelebole" and it failed this
time.

Really confused now :p

Kevin

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2007-10-25 19:02:05
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-
status
2007-10-25 19:11:27 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:34 W3SVC1260829704 192.168.2.143 GET /info.php
test=me 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows
+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.4322;+.NET+CLR+2 .0.50727;+FDM) 500 0
0
2007-10-25 19:11:39 W3SVC1260829704 192.168.2.143 GET /info.php
test=beekay 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:49 W3SVC1260829704 192.168.2.143 GET /info.php
test=kevinblount 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:59 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0

Oct 25 '07 #5
On Oct 25, 2:16 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 1:58 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:


On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount <kevin.blo...@gmail.com>
wrote:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
>Seems to work OK from here using that IP. Are you sure it isn't some
>local
>firewall/proxy setting? Does IIS keep a access and/or error log, and if
>so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?
Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?
I'd say so. Try to access any access/error logs and check it out. The one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
--
Rik Wasmus- Hide quoted text -
- Show quoted text -

Here are the logs.. anything jump out at you?

As you can see. I tried "oelebole" first, and it worked! So, I tried
"me" again, failed.. I tried "kevinblount" hinking the length or
reserved word thing might be in play, but it failed to. I then tried
"beekay", failed.. finally back to "oelebole" and it failed this
time.

Really confused now :p

Kevin

#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2007-10-25 19:02:05
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-
status
2007-10-25 19:11:27 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:34 W3SVC1260829704 192.168.2.143 GET /info.php
test=me 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows
+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.4322;+.NET+CLR+2 .0.50727;+FDM) 500 0
0
2007-10-25 19:11:39 W3SVC1260829704 192.168.2.143 GET /info.php
test=beekay 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:49 W3SVC1260829704 192.168.2.143 GET /info.php
test=kevinblount 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:59 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0- Hide quoted text -

- Show quoted text -
quick extra -

I just checked the evnet logs.. nothing showing at all regarding PHP
or IIS
I also restarted IIS, and after that the script worked with "me" and
then "kevin", but if I try it again, it's back to hanging and failing.
Oct 25 '07 #6
On Thu, 25 Oct 2007 21:16:34 +0200, Kevin Blount <ke**********@gmail.com
wrote:
On Oct 25, 1:58 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount
<kevin.blo...@gmail.com>
wrote:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. IfI
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I
try
and pass a name/pair on the URL.
Seems to work OK from here using that IP. Are you sure it isn't some
local
firewall/proxy setting? Does IIS keep a access and/or error log, and
if
>so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?

Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?

I'd say so. Try to access any access/error logs and check it out. The
one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
Here are the logs.. anything jump out at you?

#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-
status
2007-10-25 19:11:27 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
500 status means internal server error, so check the error log why an
error occured. If nothing jumps out, check wether it's an IIS or PHP issue
by using a static page with the GET string instead of a PHP one.
--
Rik Wasmus
Oct 25 '07 #7
On Oct 25, 2:35 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 2:16 pm, Kevin Blount <kevin.blo...@gmail.comwrote:


On Oct 25, 1:58 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount <kevin.blo...@gmail.com>
wrote:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
Seems to work OK from here using that IP. Are you sure it isn't some
local
firewall/proxy setting? Does IIS keep a access and/or error log, and if
so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?
Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?
I'd say so. Try to access any access/error logs and check it out. The one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
--
Rik Wasmus- Hide quoted text -
- Show quoted text -
Here are the logs.. anything jump out at you?
As you can see. I tried "oelebole" first, and it worked! So, I tried
"me" again, failed.. I tried "kevinblount" hinking the length or
reserved word thing might be in play, but it failed to. I then tried
"beekay", failed.. finally back to "oelebole" and it failed this
time.
Really confused now :p
Kevin
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2007-10-25 19:02:05
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-
status
2007-10-25 19:11:27 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:34 W3SVC1260829704 192.168.2.143 GET /info.php
test=me 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows
+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.4322;+.NET+CLR+2 .0.50727;+FDM) 500 0
0
2007-10-25 19:11:39 W3SVC1260829704 192.168.2.143 GET /info.php
test=beekay 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:49 W3SVC1260829704 192.168.2.143 GET /info.php
test=kevinblount 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:59 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0- Hide quoted text -
- Show quoted text -

quick extra -

I just checked the evnet logs.. nothing showing at all regarding PHP
or IIS
I also restarted IIS, and after that the script worked with "me" and
then "kevin", but if I try it again, it's back to hanging and failing.- Hide quoted text -

- Show quoted text -
I wish I could edit these posts, rather than spamming all the time..

I found that turning on "friendly HTTP errors gave some clues"..
here's the latest

ok.. restart IIS again
1) first I run http://216.244.107.150/info.php and see "Hello"

2) next I run http://216.244.107.150/info.php?test=me" and it hangs

3) I tru and go back to http://216.244.107.150/info.php and this time
IE returns the friendly error "HTTP 500 - Te website cannot display
the page"

4) no matter how long I eave it, once it's failed once, I can't get
the scipt to work again.

RK: Could you try again, then if it works.. try a different couple of
test= values? I want to mke sure it's working for you multiple times,
not just once.. might be connection/IP based? clutching at straws
here

seems that this is server based, rather than script. Again, nothing
obvious in the IIS logs and no event log entries

I think I need to reinstall PHP and/or follow the IIS setup section
again

Oct 25 '07 #8
On Thu, 25 Oct 2007 21:47:57 +0200, Kevin Blount <ke**********@gmail.com
wrote:
RK: Could you try again, then if it works.. try a different couple of
test= values? I want to mke sure it's working for you multiple times,
not just once.. might be connection/IP based? clutching at straws
here
Hmmm, worked 5 times in a row, and then failed. Using the last working
GET's in another browser did not fix it.
seems that this is server based, rather than script. Again, nothing
obvious in the IIS logs and no event log entries

I think I need to reinstall PHP and/or follow the IIS setup section
again
I'd say that with an error like 'PHP has encountered an Access Violation
at 01CE1255' reinstalling PHP is indeed your best bet.
--
Rik Wasmus
Oct 25 '07 #9
On Oct 25, 2:47 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 2:35 pm, Kevin Blount <kevin.blo...@gmail.comwrote:


On Oct 25, 2:16 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 1:58 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount <kevin.blo...@gmail.com>
wrote:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
>Seems to work OK from here using that IP. Are you sure it isn't some
>local
>firewall/proxy setting? Does IIS keep a access and/or error log, and if
>so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?
Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?
I'd say so. Try to access any access/error logs and check it out. The one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
--
Rik Wasmus- Hide quoted text -
- Show quoted text -
Here are the logs.. anything jump out at you?
As you can see. I tried "oelebole" first, and it worked! So, I tried
"me" again, failed.. I tried "kevinblount" hinking the length or
reserved word thing might be in play, but it failed to. I then tried
"beekay", failed.. finally back to "oelebole" and it failed this
time.
Really confused now :p
Kevin
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2007-10-25 19:02:05
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-
status
2007-10-25 19:11:27 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:34 W3SVC1260829704 192.168.2.143 GET /info.php
test=me 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows
+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.4322;+.NET+CLR+2 .0.50727;+FDM) 500 0
0
2007-10-25 19:11:39 W3SVC1260829704 192.168.2.143 GET /info.php
test=beekay 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:49 W3SVC1260829704 192.168.2.143 GET /info.php
test=kevinblount 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:59 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0- Hide quoted text -
- Show quoted text -
quick extra -
I just checked the evnet logs.. nothing showing at all regarding PHP
or IIS
I also restarted IIS, and after that the script worked with "me" and
then "kevin", but if I try it again, it's back to hanging and failing.- Hide quoted text -
- Show quoted text -

I wish I could edit these posts, rather than spamming all the time..

I found that turning on "friendly HTTP errors gave some clues"..
here's the latest

ok.. restart IIS again
1) first I run http://216.244.107.150/info.phpand see "Hello"

2) next I runhttp://216.244.107.150/info.php?test=me" and it hangs

3) I tru and go back tohttp://216.244.107.150/info.phpand this time
IE returns the friendly error "HTTP 500 - Te website cannot display
the page"

4) no matter how long I eave it, once it's failed once, I can't get
the scipt to work again.

RK: Could you try again, then if it works.. try a different couple of
test= values? I want to mke sure it's working for you multiple times,
not just once.. might be connection/IP based? clutching at straws
here

seems that this is server based, rather than script. Again, nothing
obvious in the IIS logs and no event log entries

I think I need to reinstall PHP and/or follow the IIS setup section
again- Hide quoted text -

- Show quoted text -
unhfortunately the last reply by me was made while you were replying..
here I go again dbl posting!

good call on tryuing static pages.. worked fine. I also tried a
similar script in ASP and it worked just fine, repeatedly.

Seems to be just IIS. Another post about the error that Firefox
reported seems to have given me an avenue to follow.. hopefully I can
get this working soon. Thanks for all the help.. and if you do think
of anything else, I'd be more thank greatful to hear about it :)

kevin.blount@gmail(REMOVEME)com

Oct 25 '07 #10
On Oct 25, 2:59 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 2:47 pm, Kevin Blount <kevin.blo...@gmail.comwrote:


On Oct 25, 2:35 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 2:16 pm, Kevin Blount <kevin.blo...@gmail.comwrote:
On Oct 25, 1:58 pm, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 25 Oct 2007 20:44:58 +0200, Kevin Blount <kevin.blo...@gmail.com>
wrote:
http://216.244.107.150/info.php?test=me
the code should just output:
Hello me
but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.
Seems to work OK from here using that IP. Are you sure it isn't some
local
firewall/proxy setting? Does IIS keep a access and/or error log, and if
so, what is in it?
To confirm.. when you click the above you see "Hello me" - not just
"Hello"?
Indeed. Changing test to 'oelebole' worked too (see your access logs)
No firewall/proxy.. it was working fine for me earlier today. I'll
check IIS6 again, but I'm not sure what to look for. I just tried from
Firefox, and receieved this error message:
"PHP has encountered an Access Violation at 01C21255" - I also tried
from another PC on my network.. same deal. Lastly tried from a remote
PC (via Remote Desktop to the server this is all running from)
ok.. something screwy is going on, right?
I'd say so. Try to access any access/error logs and check it out. The one
with 'oelebole' in the get strings was OK, compare that to your failed
requests.
--
Rik Wasmus- Hide quoted text -
- Show quoted text -
Here are the logs.. anything jump out at you?
As you can see. I tried "oelebole" first, and it worked! So, I tried
"me" again, failed.. I tried "kevinblount" hinking the length or
reserved word thing might be in play, but it failed to. I then tried
"beekay", failed.. finally back to "oelebole" and it failed this
time.
Really confused now :p
Kevin
#Software: Microsoft Internet Information Services 6.0
#Version: 1.0
#Date: 2007-10-25 19:02:05
#Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-
status
2007-10-25 19:11:27 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:34 W3SVC1260829704 192.168.2.143 GET /info.php
test=me 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows
+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.4322;+.NET+CLR+2 .0.50727;+FDM) 500 0
0
2007-10-25 19:11:39 W3SVC1260829704 192.168.2.143 GET /info.php
test=beekay 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:49 W3SVC1260829704 192.168.2.143 GET /info.php
test=kevinblount 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0
2007-10-25 19:11:59 W3SVC1260829704 192.168.2.143 GET /info.php
test=oelebole 80 - 76.210.180.155 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+QS+4.2.1.0;+.NET+CLR+1.1.432 2;+.NET+CLR
+2.0.50727;+FDM) 500 0 0- Hide quoted text -
- Show quoted text -
quick extra -
I just checked the evnet logs.. nothing showing at all regarding PHP
or IIS
I also restarted IIS, and after that the script worked with "me" and
then "kevin", but if I try it again, it's back to hanging and failing.- Hide quoted text -
- Show quoted text -
I wish I could edit these posts, rather than spamming all the time..
I found that turning on "friendly HTTP errors gave some clues"..
here's the latest
ok.. restart IIS again
1) first I run http://216.244.107.150/info.phpandsee "Hello"
2) next I runhttp://216.244.107.150/info.php?test=me" and it hangs
3) I tru and go back tohttp://216.244.107.150/info.phpandthis time
IE returns the friendly error "HTTP 500 - Te website cannot display
the page"
4) no matter how long I eave it, once it's failed once, I can't get
the scipt to work again.
RK: Could you try again, then if it works.. try a different couple of
test= values? I want to mke sure it's working for you multiple times,
not just once.. might be connection/IP based? clutching at straws
here
seems that this is server based, rather than script. Again, nothing
obvious in the IIS logs and no event log entries
I think I need to reinstall PHP and/or follow the IIS setup section
again- Hide quoted text -
- Show quoted text -

unhfortunately the last reply by me was made while you were replying..
here I go again dbl posting!

good call on tryuing static pages.. worked fine. I also tried a
similar script in ASP and it worked just fine, repeatedly.

Seems to be just IIS. Another post about the error that Firefox
reported seems to have given me an avenue to follow.. hopefully I can
get this working soon. Thanks for all the help.. and if you do think
of anything else, I'd be more thank greatful to hear about it :)

kevin.blount@gmail(REMOVEME)com- Hide quoted text -

- Show quoted text -
Final update.. having rolled bck to 5.2.0 the error no longer appears.
Following an idea from another post I made regarding the specific
error I recieved in Firefox ("PHP has encountered an Access Violation
at") I found a few (not many mind) posts that said this was a 'bug'
introduced after 5.2.1, so rolling back to 5.2.0 should fix it, and so
far it has for me.

Cheers

Oct 25 '07 #11
Kevin Blount wrote:
I'm having a very odd issue, that arose this morning after working
fine yesterday...

here's a very simple script:

1: <?php
2: $test = $_GET['test'];
3: echo "Hello" . $test . "<p>";
4: ?>

when called using this URL:

http://216.244.107.150/info.php?test=me

the code should just output:

Hello me

but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.

Any ideas?? I'm very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.

Beekay
Try writing some headers first..
Oct 26 '07 #12
On Oct 26, 1:26 am, Kevin Blount <kevin.blo...@gmail.comwrote:
I'm having a very odd issue, that arose this morning after working
fine yesterday...

here's a very simple script:

1: <?php
2: $test = $_GET['test'];
3: echo "Hello" . $test . "<p>";
4: ?>

when called using this URL:

http://216.244.107.150/info.php?test=me

the code should just output:

Hello me

but instead the server just hangs, until my browser timesout. If I
remove "?test=me" from the URL, the script works just fine (output:
"Hello "), but for some reason all my PHP scripts now hang when I try
and pass a name/pair on the URL.

Any ideas?? I'm very new to PHP and probably change the config of IIS6
somehow, or just broken it in some other way. Any advice would be
appreciated.

Beekay
url
http://216.244.107.150/info.php?test=urlencode(me)
<?php

$test = urldecode($_POST['test']);

echo "hello {$test}";

?>

Oct 28 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Dave Smithz | last post by:
Hi there, I have a php script that does some form input validation. As it verifies each field if the field has incorrect data, it appends an error message to an $error array. E.g. if...
3
by: Dr. Oz | last post by:
Hi, I am trying to read in a query string from one page and build a link to another page based on the query string. Here's the code I am using to read in the query string: <script...
7
by: Zlatko Matić | last post by:
Let's assume that we have a database on some SQL server (let it be MS SQL Server) and that we want to execute some parameterized query as a pass.through query. How can we pass parameters to the...
0
by: Zlatko Matić | last post by:
Hi everybody! Recently I was struggling with client/server issues in MS Access/PostgreSQL combination. Although Access is intuitive and easy to use desktop database solution, many problems...
3
by: Agnes | last post by:
There is a button in form A , as the users click it, Form B will show. however, how can i pass the parameter to form B . the parameters got (tablesname,search condition). As form B receive these...
10
by: tshad | last post by:
I want to access multiple arguments based on name passed. For example I have the following asp:textboxes: BillingAddress1 BillingAddress2 BillingCity ShippingAddress1 ShippingAddress2...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
2
by: I Hate My Computer | last post by:
I am using frames on a website. The title link on the title page adds a query string. The link goes to a page with two rows the second has two columns. I want the right column to be changed depending...
13
by: magickarle | last post by:
Hi, I got a pass-through query (that takes about 15 mins to process) I would like to integrate variables to it. IE: something simple: Select EmplID from empl_Lst where empl_lst.timestamp between...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.