Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Gunnar G
January 31, 2007, 10:33 am
rate this thread
This might happen if foo.php echo some text and bar.php returns an image
that should be displayed below the text that was echo:ed, and foo.php must
send a lot of data to bar.php.
Yes, I know, I can draw the picture in foo.php, and save it to a file, but
what if that is not an option here. Is there a way to send the data without
creating a huge URL?
Re: how do you send a lot of data between scripts
I don't comment shared memory functions, because i have not used them, but
session is anyway one easy and common way and you'll learn to love it, but
remember about sessions:
1) remember to START session => session_start() or if they are autostarted
in php.ini no problem
2) both scripts should be in same host (but directory doesn't matter)
3) you have a choice to make:
a) you pass session_id in EVERY necessary url, automagically(php.ini) or
b) it is stored to cookie and then users MUST have cookies enabled.
this seems to be default setting. this is safer but problem is if user has
.. or something like this...