473,385 Members | 1,661 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,385 software developers and data experts.

calling cgi script & then redirect

I have some processing I want to do.

I have a cgi scrpt that I want to call, it just sends an email.

Can I use a simple "header" command for that? But then I want to use
"header" again in order actually redirect for a script.

Your help is, as always, appreciated.

Mike
Jul 17 '05 #1
4 3596
On 2004-03-15, arenaTR <ar*****@comcast.net> wrote:
I have some processing I want to do.

I have a cgi scrpt that I want to call, it just sends an email.

Can I use a simple "header" command for that? But then I want to use
"header" again in order actually redirect for a script.


So you create your own script, that calls the cgi scripts (through wget
or the like) , and then send the header to redirect.

--
http://home.mysth.be/~timvw
Jul 17 '05 #2

"Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:c3*************@ID-188825.news.uni-berlin.de...
On 2004-03-15, arenaTR <ar*****@comcast.net> wrote:
I have some processing I want to do.

I have a cgi scrpt that I want to call, it just sends an email.

Can I use a simple "header" command for that? But then I want to use
"header" again in order actually redirect for a script.


So you create your own script, that calls the cgi scripts (through wget
or the like) , and then send the header to redirect.

--
http://home.mysth.be/~timvw


I'm having some strange trouble with this. I can't find the "wget" function
(I'm assuming it's function) that you mentioned. Can you guide me or make
any other suggestions? And I want to be able to call the cgi script from the
php script that will eventually use "header" to redirect. Your help is, of
course, greatly appreciated.
Jul 17 '05 #3
On 2004-03-15, arenaTR <ar*****@comcast.net> wrote:

"Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:c3*************@ID-188825.news.uni-berlin.de...
On 2004-03-15, arenaTR <ar*****@comcast.net> wrote:
> I have some processing I want to do.
>
> I have a cgi scrpt that I want to call, it just sends an email.
>
> Can I use a simple "header" command for that? But then I want to use
> "header" again in order actually redirect for a script.
So you create your own script, that calls the cgi scripts (through wget
or the like) , and then send the header to redirect.

I'm having some strange trouble with this. I can't find the "wget" function
(I'm assuming it's function) that you mentioned. Can you guide me or make
any other suggestions? And I want to be able to call the cgi script from the
php script that will eventually use "header" to redirect. Your help is, of
course, greatly appreciated.


http://www.gnu.org/software/wget/wget.html

<?php
`wget http://foo`;
header("Location: http://bar");
?>

--
http://home.mysth.be/~timvw
Jul 17 '05 #4
A real lazy way:

file_get_contents($full_url_to_the_cgi_script); // fire the CGI script

header("Location: $redirect_to_this_url"); // redirect

Uzytkownik "arenaTR" <ar*****@comcast.net> napisal w wiadomosci
news:tf********************@comcast.com...
I have some processing I want to do.

I have a cgi scrpt that I want to call, it just sends an email.

Can I use a simple "header" command for that? But then I want to use
"header" again in order actually redirect for a script.

Your help is, as always, appreciated.

Mike

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Bobbitt | last post by:
I've recently decided to switch from compiled Apache/PHP to RPM's of both and I'm having a problem I can't seem to solve. I have a Perl script called php_include.cgi that parses a PHP file for...
2
by: arenaTR | last post by:
I wanted to respost this question becuase I didn't think I was very clear in my earlier post. After doing some db work in a php script, from the same script, i want to call a CGI script with a...
4
by: John Reid | last post by:
G'day, On the server i am using a asp script to loop thru an xml file that contains a number of email addresses. When i pick up a email address i would like to call a cfm template that sends the...
4
by: Bob Murdoch | last post by:
I have an ASP application that calls a COM function to create a custom report as an Excel file. This works in a synchronous fashion, as long as the report does not take too long to create. If...
1
by: Stefan Barlow | last post by:
I have a mechanism that performs a server transfer to another page that uses the same codebehind class if an alternate page URL exists in the application variables. My problem is there is an...
3
by: Catalin Lungu | last post by:
Hi, I would like to call a python script from a link, something like this: <a href="midir/file1.rar" onclick="python_script?param1='cad1'&param2='cad'">Download file1</a> What is the correct...
5
by: Homa | last post by:
Hi all, Can anyone give me some links about how to do an async web service call from aspx and display a temperary page before the web service returns? Thanks, Homa Wong
3
by: aRTx | last post by:
I have try a couple of time but does not work for me My files everytime are sortet by NAME. I want to Sort my files by Date-desc. Can anyone help me to do it? The Script <? /* ORIGJINALI
7
by: jeddiki | last post by:
Hi, As I am in Turkey at present, I can not see vidoes on youtube. So I have tried a few proxies but keep finding them slow or not working. So I have installed myphpProxy on my server under...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.