Re: RE: PHP "GET" Error?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alice Wei wrote:
> Subject: Re:  RE: PHP "GET" Error?
> From: ash@xxxxxxxxxxxxxxxxxxxx
> To: ajwei@xxxxxxxxxxxxx
> CC: nospam@xxxxxxxxxxxxx; php-general@xxxxxxxxxxxxx
> Date: Thu, 25 Feb 2010 20:03:28 +0000
> 
> 
> 
> 
> 
> 
>   
>   
> 
> 
> On Thu, 2010-02-25 at 15:01 -0500, Alice Wei wrote:
> 
> 
>> Date: Thu, 25 Feb 2010 13:50:16 -0600
>> From: nospam@xxxxxxxxxxxxx
>> To: ajwei@xxxxxxxxxxxxx
>> CC: php-general@xxxxxxxxxxxxx
>> Subject: Re: PHP "GET" Error?
>>
>> Alice Wei wrote:
>>> Hi, 
>>>
>>>   I forgot to mention that the url is formed from Actionscript, I am just using PHP to do the "I/O" because Actionscript does not have this option. 
>>>
>>>   So, I guess I cannot do the serialize here like you suggested. I have changed # to 0x for now, and that does not seem to help yet. 
>>>   BTW, below is the complete code, would this help with my choices?
>>>
>> I haven't used actionscript, but it's javascript basically yes?
>>
>> Use encodeURI() or encodeURIComponent() on the data.
>>
>>
>    Yes, and no. But, I did find the function in the Actionscript library, and I used the new url to pass through to PHP. Looks like it still didn't work, could the length be an issue? 
> 
>    BTW, these two variables start off from Actionscript as "arrays", but would knowing this here help? It would be nice that I can just pass them on as arrays (I had to "turn them into strings" before I passed to PHP). 
> 
> Thanks for your help. 
> 
> Alice
> 
>> -- 
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>  		 	   		  
> _________________________________________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
> http://clk.atdmt.com/GBL/go/201469229/direct/01/
> 
> 
> 
> 
> Have you tried outputting the URL string to see if it's properly formed? AS3 can still trace() can't it?
> 
> 
> 
> This link should give you an idea of the string limits of different browsers and servers:
> 
> 
> 
> http://www.boutell.com/newfaq/misc/urllength.html
> 
> I have just done that, and here is the pathetically long url:
> 
> http://tdc-queuing/test/generic.php?from=Adair,%20OK-Alfalfa,%20OK-Atoka,%20OK-Beaver,%20OK-Beckham,%20OK-Blaine,%20OK-Bryan,%20OK-Caddo,%20OK-Canadian,%20OK-Carter,%20OK-Cherokee,%20OK-Choctaw,%20OK-Cimarron,%20OK-Cleveland,%20OK-Coal,%20OK-Comanche,%20OK-Cotton,%20OK-Craig,%20OK-Creek,%20OK-Custer,%20OK-Delaware,%20OK-Dewey,%20OK-Ellis,%20OK-Garfield,%20OK-Garvin,%20OK-Grady,%20OK-Grant,%20OK-Greer,%20OK-Harmon,%20OK-Harper,%20OK-Haskell,%20OK-Hughes,%20OK-Jackson,%20OK-Jefferson,%20OK-Johnston,%20OK-Kay,%20OK-Kingfisher,%20OK-Kiowa,%20OK-Latimer,%20OK-Le%20Flore,%20OK-Lincoln,%20OK-Logan,%20OK-Love,%20OK-Major,%20OK-Marshall,%20OK-Mayes,%20OK-McClain,%20OK-McCurtain,%20OK-McIntosh,%20OK-Murray,%20OK-Muskogee,%20OK-Noble,%20OK-Nowata,%20OK-Okfuskee,%20OK-Oklahoma,%20OK-Okmulgee,%20OK-Osage,%20OK-Ottawa,%20OK-Pawnee,%20OK-Payne,%20OK-Pittsburg,%20OK-Pontotoc,%20OK-Pottawatomie,%20OK-Pushmataha,%20OK-Roger%20Mills,%20OK-Rogers,%20OK-Seminole,%20OK-Sequoyah,%20OK-Stephens,%2
0OK-Texas,%20OK-Tillman,%20OK-Tulsa,%20OK-Wagoner,%20OK-Washington,%20OK-Washita,%20OK-Woods,%20OK-Woodward,%20OK&state_colors=0xFFFFCC-0xFFFFCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFFCCCC-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0xFF9999-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x0DCCFF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF-0x3333FF
> 
> This is generated from the encodeURI() Shawn was talking about. Does this seem "well-formed" to you?
> 
> Thanks.
> 
> Alice
> 

That URL works for me, however, why the 0x in the colors?  # is URL
encoded as %23, so the color #FFFFFF would be %23FFFFFF.
-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux