By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,053 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,053 IT Pros & Developers. It's quick & easy.

how do you send a lot of data between scripts

P: n/a
How can I send a lot of data from foo.php to bar.php ?

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?
Jan 31 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Gunnar G schrieb:
How can I send a lot of data from foo.php to bar.php ?

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?
use sessions or shared memory functions

hth, Roy

--
Roy Kaldung
roy {at} kaldung {dot} com
http://kaldung.com/
Jan 31 '07 #2

P: n/a
use sessions or shared memory functions
Which one would you suggest (is easiest for me to use and learn)?
All I want to do is to send a bunch of arrays from one page to another.
That's all.

Jan 31 '07 #3

P: n/a
Gunnar G schrieb:
>use sessions or shared memory functions
Which one would you suggest (is easiest for me to use and learn)?
All I want to do is to send a bunch of arrays from one page to another.
That's all.
I would suggest the usage of sessions. This should be the easiest way
where you can find the howtos instead of shared memory usage I think.

Greetings, Roy

--
Roy Kaldung
roy {at} kaldung {dot} com
http://kaldung.com/
Jan 31 '07 #4

P: n/a

"Gunnar G" <de****@comhem.sekirjoitti
viestissä:iJ*******************@newsb.telia.net...
>use sessions or shared memory functions
Which one would you suggest (is easiest for me to use and learn)?
All I want to do is to send a bunch of arrays from one page to another.
That's all.
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
manually
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
disabled cookies

... or something like this...


Jan 31 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.