Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-25-2002, 06:17 AM   #1
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
SSI PHP Question

How do you make a damn php page execute a cgi... server side include style?

For example, a SSI that dealt out cookies.

Found out cant stick the old ssi tag in the php like with html the hard way... and I NEED to get this cgi goooiiing.

Last edited by [Labret]; 07-25-2002 at 06:21 AM..
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 06:20 AM   #2
Daymare
Confirmed User
 
Industry Role:
Join Date: Feb 2002
Posts: 2,674
First you have to ask yourself; "Do you feel lucky? Huh, punk!? Do ya?" Then go for it. Once you go for it, nothing can stop you.
Daymare is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 06:21 AM   #3
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Quote:
Originally posted by Daymare
First you have to ask yourself; "Do you feel lucky? Huh, punk!? Do ya?" Then go for it. Once you go for it, nothing can stop you.
******.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 06:22 AM   #4
Daymare
Confirmed User
 
Industry Role:
Join Date: Feb 2002
Posts: 2,674
I'm just fuckin with ya. LOL You're too easy.
Daymare is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 06:23 AM   #5
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Code:
virtual("path/filename.cgi");
http://www.php.net/manual/en/function.virtual.php

That should help
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 06:44 AM   #6
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Quote:
Originally posted by punkworld
Code:
virtual("path/filename.cgi");
http://www.php.net/manual/en/function.virtual.php

That should help
Yeah, tried that one.

Gives me
Quote:
Warning: Unable to include '/path/to.cgi' - request execution failed in /home/html/nothing.com/ssitest.php on line 2
ANd I know the path is right, works just fine when called from a standard SSI.

Thanks for the link though, I have to be getting closer. Shit been driving me nuts for 4 hours now.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 06:58 AM   #7
Libertine
sex dwarf
 
Libertine's Avatar
 
Join Date: May 2002
Posts: 17,860
Hmm...virtual() is the function you need for this...
Is the cgi giving out appropriate headers n shit?
And, you might want to try out different path types (full/relative).
Libertine is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:03 AM   #8
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Quote:
Originally posted by punkworld
Hmm...virtual() is the function you need for this...
Is the cgi giving out appropriate headers n shit?
And, you might want to try out different path types (full/relative).
Yeah, tried full and relative. Same problem.

As for the headers I dont know. All it spits out is a small snippet of javascript with some cookie info in it. Sorta like ucj.

And I know the script works just fine, no problem with standard ssi. But I think I already said that.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:04 AM   #9
mrthumbs
salad tossing sig guy
 
mrthumbs's Avatar
 
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
Did you chmod the cgi executable?
mrthumbs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:05 AM   #10
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Quote:
Originally posted by mrthumbs
Did you chmod the cgi executable?
Of course, it works with normal ol SSI.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:06 AM   #11
12clicks
Too lazy to set a custom title
 
12clicks's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: God's right hand
Posts: 19,802
wow, successful guy like you begging for free help on a chatboard.
nice way to stay in touch with the people.

want me to ask on of my php guys here in the office?
__________________
I'm not a dinosaur, I'm a crocodile. I've seen dinosaurs come and go and I'm left unimpressed.
12clicks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:12 AM   #12
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
Quote:
Originally posted by 12clicks
wow, successful guy like you begging for free help on a chatboard.
nice way to stay in touch with the people.

want me to ask on of my php guys here in the office?
Oh the pain of Ronalds whit cuts deep.

Ohhhh make the pain go away....

Please... no more Ron, I submit!

Seriously though. Foe is my php stud, he is sleeping. I am too impatient to wait till he wakes up. Impatient, like you trying to figure out how to reply to this.

Old people get up early in the morning. I would love to see your medicine cabinet.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:19 AM   #13
12clicks
Too lazy to set a custom title
 
12clicks's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: God's right hand
Posts: 19,802
I'm sorry. I didn't know foe was on your payroll.
I guess you don't need my guys then.
__________________
I'm not a dinosaur, I'm a crocodile. I've seen dinosaurs come and go and I'm left unimpressed.
12clicks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 07:42 AM   #14
Ted
Confirmed User
 
Join Date: Nov 2001
Posts: 830
I'm only guessing but if you want to run something that aint php then try http://www.php.net/manual/en/function.exec.php or maybe http://www.php.net/manual/en/function.passthru.php

there are a few other options there depending on what you want to do.
Ted is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 08:43 AM   #15
Script Dude
Registered User
 
Join Date: Jun 2002
Location: Michigan
Posts: 86
Your post is a little short on detail.

Are you relying on the CGI script or the PHP script to set headers?

Perhaps you have to parse the headers returned by the CGI script and re-issue them in your PHP script? (or at least strip them to prevent them from being issued twice.) If you are seeing headers in your output when you access the page in a browser, this is probably the case.

I've used exec() to include the output of a perl script in my PHP code. Never had any real problems with it.

Contact me ([email protected]) if you want a second pair of eyes to double check what you're doing.
Script Dude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 08:46 AM   #16
alias
aliasx
 
alias's Avatar
 
Join Date: Apr 2001
Posts: 19,010
pay an expert
__________________
https://porncorporation.com
alias is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 08:54 AM   #17
Script Dude
Registered User
 
Join Date: Jun 2002
Location: Michigan
Posts: 86
I should learn to read things before posting.
Script Dude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 09:14 AM   #18
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
is the script running and just spitting out that error? if so..

error_reporting(0);
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 10:08 AM   #19
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
virtual is virtual path - the path seen from docroot of the webserver for that virtual host.

equivalent of include virtual - include file is different (just fyi) - that goes from the filesystem paths.
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 11:52 AM   #20
TomasDean
So Fucking Banned
 
Join Date: Jul 2002
Location: Czech republic
Posts: 2,292
Send the CGI file to my address [email protected], I will rewrite it to php for you... For free
TomasDean is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-25-2002, 12:54 PM   #21
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
I woke up ......


Everything works fine now
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.