Re: Large URI request problem

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

 



On Mon, August 22, 2005 10:39 pm, Dean Maunder wrote:
> I have a large string that I need to send to a script that creates an
> image.
> eg <img
> src='createimage.php?wp=321,43,23,12,43,12,342,54,765,87,3,23,etc etc
> etc

Woof.

I'm surprised it took 3000 characters to become a problem... :-)

You MAY want to try your HTML with src="createimge.php?wp=..." instead
of the single quotes.

Yeah, HTML 4.0 or whatever didn't care, but that new-fangled XML HTML
crap it matters, I think.

> Until now this hasnt been a problem just putting the data in the URL,
> but now Im faced with a string that is over 3000 characters....which
> causes an issue and ends up displaying a red square on my page rather
> than the nice data I requested.  I cant seem to find a way around
> this,
> someone else suggested posting the data, but how can I post from
> HTML?...can anyone help with another solution?

In the script that writes out the HTML, don't write out all those
numbers in the URL.

Stick them in a database table, or put them in a session, or if
speed/performance is a Big Issue, and those can't hack it, stick them
in Shared Memory.

http://php.net/shmop

Then you can pass a small identifier like an ID from the database, or
whatever you want for an array index in your $_SESSION, or a path and
integer for the shared memory.

If shmop isn't fast enough, then you're in real trouble :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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