473,799 Members | 3,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3614
On 2004-03-15, arenaTR <ar*****@comcas t.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*****@comcas t.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*****@comcas t.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*****@comcas t.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("Locatio n: http://bar");
?>

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

file_get_conten ts($full_url_to _the_cgi_script ); // fire the CGI script

header("Locatio n: $redirect_to_th is_url"); // redirect

Uzytkownik "arenaTR" <ar*****@comcas t.net> napisal w wiadomosci
news:tf******** ************@co mcast.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
2179
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 inclusion. It does this by running "php -f " but unfortunately it no longer works with the RPM: ---------- Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This
2
3302
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 bunch of strings. I've tried: header("Location: http://mydomain.com/cgi-local/sendemail.cgi?"); To no avail. Following this script is a simple header for an HTML page redirect, which does work. in fact, the cgi call doesn't work at all, but
4
2519
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 email. I have tried the below: Server.Execute("sendemail.cfm?Email=john"); but it gives me a ASP 0231 error. i suspect that i can only call another asp script. Interestingly i only get an error when i use the string parameter
4
5790
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 that happens, the session times out and we run into other kinds of problems. I have, in other cases, executed a stored procedure asynchronously (thanks to a tip from this group) thru ADO. I'm wondering if ASP provides some way of executing a...
1
1393
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 endless loop because I cannot find the REAL script name calling the codebehind. Request.ServerVariables returns the original script name since it is a server transfer. Redirect is not an option, as I want this to be seemless. How can I find out...
3
3545
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 sintax for this sentence? Or something similar... I want to can download the file but at the same time execute the script. TIA,
5
4051
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
5198
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
16170
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 the domain name www.blog-start.com Unfortuantely it is not not working correctly
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10260
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10243
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10030
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.