Re: [PHP] PHP/Perl/CGI Question

2001-03-20 Thread Clayton Dukes

I was afraid you were going to say that...
Anyone care to show me how to write that?

Clayton Dukes
-
Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net

- Original Message -
From: "Andrew Rush" <[EMAIL PROTECTED]>
To: "Clayton Dukes" <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 2:33 PM
Subject: Re: [PHP] PHP/Perl/CGI Question


> on 3/20/01 02:21 PM, [EMAIL PROTECTED] splat open and thusly melted:
>
> > What am I doing wrong? Why is it printing the php tags instead of
executing
> > them?
>
> because the output of a CGI cannot then be run through the PHP parser. you
> could possibly write the PHP out to a new file (with the proper extension
> for the parser) and then send a location header() that sends the user to
> execute that page. i've never done this, so i can't vouch for it's
> workability, but there's nothing wrong with the idea in concept- at least
so
> far as i can see
>
> --
> :: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::
> **
> "Crippled but free, blind all the time, i was learning to see"
>
> - J. Garcia / R. Hunter
> **
>
> The  views expressed herein are not necessarily those of my employer, but
> they let me have them anyway.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP/Perl/CGI Question

2001-03-20 Thread Clayton Dukes



Howdy,
 
I have a search cgi form that has the following 
function:
 
sub 
header{    print "Content-type: 
text/html\n\n";    print "\n";    
print "\n";    
print "Search\n";}
 
When I use the function though, the web page 
(source) comes up as:
Search...datainclude("footer.php");?>
 
What am I doing wrong? Why is it printing the php 
tags instead of executing them?
 
Clayton 
Dukes-Download 
Free Essays, Term Papers and Cisco Training from http://www.gdd.net


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]