Reply to Re: [PHP] Large URI request problem

Your name:

Reply:


Posted by "Richard Lynch" on 08/23/05 11:21

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация