473,386 Members | 1,973 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how do you send a lot of data between scripts

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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Ray Paseur | last post by:
We broadcast email messages with PHP scripts, but sometimes email is not timely and we would like to send something that could get there faster. Can anyone tell me about how to send Instant...
1
by: Gernot Hillier | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I'm the developer of a Linux ISDN application which uses embedded Python for controlling the communication. It starts several threads (i.e....
2
by: Danny | last post by:
Hi I am trying to create links to my product pages that are genereated via cgi. The best way seems to use the search.cgi script that is used when somebody enters a search term in the websites...
3
by: Kassam | last post by:
Hi MVPs out there. I have constructed an order form and the users will enter the informtion. I now need to send the filled out form as an e-mail (body being the HTML with the fille din data) to...
2
by: Lisa Pearlson | last post by:
Hi, My php application (on Apache/Linux) needs to do the following: The PHP script receives a request from a client (binary), asking for certain records of data. My PHP script loops through...
4
by: Anne | last post by:
hi ng I would like to make a database where the user automatically can send a short message service (SMS) just by pressing a button. I know how to do it if it is an email (by using the...
6
by: ShieldsJared | last post by:
Hello all, I've been working on an application for a while now and have now come to a standstill. I have an application that I intend to have stored on a file server (developed in C#), which...
1
by: steinwaygirl | last post by:
Hi all, I have been searching so hard for the answer to this, hopefully some of you all can help. I have created an HTML file with various forms - also included CSS and some javascript for...
2
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.