470,849 Members | 1,133 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

main program call another main [GET]

Hi all

is it possible to call from a main program another one the same as it is
done by the browser?

If I begin I am able to do http://server/main.php?name="test" in the
browsers URL.

Could I do such a submission inside of a program and how?
Reimar



--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.*****@fz-juelich.de
-------------------------------------------------------------------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/i...lib_intro.html
================================================== =================
Jul 17 '05 #1
3 2252
Reimar Bauer wrote:
Hi all

is it possible to call from a main program another one the same as it is
done by the browser?

If I begin I am able to do http://server/main.php?name="test" in the
browsers URL.

Could I do such a submission inside of a program and how?
Reimar


I got it myself

Reimar
--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.*****@fz-juelich.de
-------------------------------------------------------------------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/i...lib_intro.html
================================================== =================
Jul 17 '05 #2
In article <c7***********@zam602.zam.kfa-juelich.de>, Reimar Bauer wrote:
Reimar Bauer wrote:
Hi all

is it possible to call from a main program another one the same as it is
done by the browser?

If I begin I am able to do http://server/main.php?name="test" in the
browsers URL.

Could I do such a submission inside of a program and how?


I got it myself


It's always nice if you tell what the solution was then ;)
I suppose you found about curl.

--
http://home.mysth.be/~timvw
Jul 17 '05 #3
Tim Van Wassenhove wrote:
In article <c7***********@zam602.zam.kfa-juelich.de>, Reimar Bauer wrote:
Reimar Bauer wrote:
Hi all

is it possible to call from a main program another one the same as it is
done by the browser?

If I begin I am able to do http://server/main.php?name="test" in the
browsers URL.

Could I do such a submission inside of a program and how?


I got it myself


It's always nice if you tell what the solution was then ;)
I suppose you found about curl.


You are right

the main program does previously only ask if name was submitted.

If the main.php is included into an other program I have had $name already
so the only thing to change was to add an "or" statement.

previous:
if (strlen($_GET["name"])>0){

.....................

now:
if ((strlen($_GET["name"])>0) or (strlen($name) > 0)){

Reimar

--
Forschungszentrum Juelich
email: R.*****@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
================================================== ================
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/i...lib_intro.html

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

45 posts views Thread by Steven T. Hatton | last post: by
5 posts views Thread by Seong-Kook Shin | last post: by
13 posts views Thread by Sokar | last post: by
11 posts views Thread by objectref | last post: by
2 posts views Thread by Charlie Tame | last post: by
8 posts views Thread by koorb | last post: by
9 posts views Thread by DanielJohnson | last post: by
6 posts views Thread by chang | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.