Problem with $_GET[]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
el_gato
Forum Newbie
Posts: 12
Joined: Sun Oct 18, 2009 9:28 pm
Location: Bandung
Contact:

Problem with $_GET[]

Post by el_gato »

Hai all,

I'm developing an application that using communication between desktop and server (php). Desktop application periodically sends http header that captured by server/remote application (php).
One strange problem was, on server, i could not get one of parameters sent by desktop app. All data sent was captured using php $_GET[] function. This problem never happend when i tested on localhost (windows xampp) or my other remote server that using Freebsd (my current test server is linux (hosting server, with php version 5.2.8)). Tried to read apache access log, the parameter and value was exists.

Below is one line that i copied from apache access log

114.59.25.186 - - [18/Oct/2009:13:58:26 +0700] "GET /comm/pirep.php?pilot=001&date=2009/10/17&time=06:04:00&callsign=GIA160&reg=PK-GEG&origin=WICC&dest=WIII&alt=WIIH&equipment=B734&fuel=3048&duration=00:32&distance=98&version=4015&more=0&log=[2009/10/17%2006:04:00]*Flight%20IATA:GIA160*Pilot%20Number:001*Company%20ICAO:MVI*Aircraft%20Type:B734*Aircraft%20Registration:PK-GEG*Departing%20Airport:%20WICC*Destination%20Airport:%20WIII*Alternate%20Airport:WIIH*Online:%20No*Route:PW*Flight%20Level:8000*No%20Slew%20and%20time%20accel*No%20pause*06:04%20%20Zero%20fuel%20Weight:%20113839%20Lbs,%20Fuel%20Weight:%2013686%20Lbs*06:04%20%20Parking%20Brakes%20off*06:11%20%20VR=%20163%20Knots*06:11%20%20V2=%20173%20Knots*06:11%20%20Take-off*06:11%20%20Take%20off%20Weight:%20126996%20Lbs*06:11%20%20Wind:%20000\xba%20@%20000%20Knots%20Heading:%20288\xba*06:11%20%20POS%20S06\xba%2053\xb4%2053\xb4\xb4%20E107\xba%2034\xb4%2008\xb4\xb4%20*06:11%20%20N11%20110%20N12%20110*06:11%20%20Gear%20Up:%20178%20Knots*06:11%20%20Flaps:3%20at%20178%20Knots*06:11%20%20Flaps:2%20at%20184%20Knots*06:11%20%20Flaps:1%20at%20185%20Knots*06:12%20%20Flaps:0%20at%20188%20Knots*06:13%20%20TOC*06:13%20%20Fuel%20Weight:%2012614%20Lb*06:24%20%20TOD*06:24%20%20Fuel%20Weight:%2011565%20Lb*06:26%20%20Wind:323\xba@008%20Knots%20Heading:%20280\xba%20Ground%20Speed:%20268%20Knots%20Altitude%206994%20ft*06:30%20%20Flaps:1%20at%20206%20Knots*06:31%20%20F

The log value exists, but when i used $_GET['log'], the result was empty.Any idea about this?
Thanx for the help..

Kind Regards
- Lorensius W. L. T -
- http://www.londatiga.net
User avatar
Kastor
Forum Newbie
Posts: 24
Joined: Thu May 01, 2008 2:29 am
Location: Grodno, Belarus
Contact:

Re: Problem with $_GET[]

Post by Kastor »

Maybe request line is too long.
Check apache configuration (LimitRequestLine)
User avatar
el_gato
Forum Newbie
Posts: 12
Joined: Sun Oct 18, 2009 9:28 pm
Location: Bandung
Contact:

Re: Problem with $_GET[]

Post by el_gato »

Kastor wrote:Maybe request line is too long.
Check apache configuration (LimitRequestLine)
Hmm, so the problem was on apache configuration, since the server is a hosting server, i dont have any information about it's apache configuration. Thanx Kastor for your information, any ideas or tricks to solve this problem?

Kind Regards
- Lorensius W. L. T-
- http://www.londatiga.net -
Post Reply