|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
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.
|
|
|
|
|
|
#3 | |
|
Registered User
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Feb 2002
Posts: 2,674
|
I'm just fuckin with ya. LOL You're too easy. |
|
|
|
|
|
#5 |
|
sex dwarf
Join Date: May 2002
Posts: 17,860
|
Code:
virtual("path/filename.cgi");
That should help |
|
|
|
|
|
#6 | ||
|
Registered User
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
|
Quote:
Gives me Quote:
Thanks for the link though, I have to be getting closer. Shit been driving me nuts for 4 hours now. |
||
|
|
|
|
|
#7 |
|
sex dwarf
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). |
|
|
|
|
|
#8 | |
|
Registered User
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
|
Quote:
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. |
|
|
|
|
|
|
#9 |
|
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
Did you chmod the cgi executable?
|
|
|
|
|
|
#10 | |
|
Registered User
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
|
Quote:
|
|
|
|
|
|
|
#11 |
|
Too lazy to set a custom title
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.
|
|
|
|
|
|
#12 | |
|
Registered User
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
|
Quote:
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. |
|
|
|
|
|
|
#13 |
|
Too lazy to set a custom title
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.
|
|
|
|
|
|
#14 |
|
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. |
|
|
|
|
|
#15 |
|
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. |
|
|
|
|
|
#16 |
|
aliasx
Join Date: Apr 2001
Posts: 19,010
|
pay an expert
__________________
https://porncorporation.com |
|
|
|
|
|
#17 |
|
Registered User
Join Date: Jun 2002
Location: Michigan
Posts: 86
|
I should learn to read things before posting.
|
|
|
|
|
|
#18 |
|
Confirmed User
Join Date: Apr 2002
Location: Houston
Posts: 5,651
|
is the script running and just spitting out that error? if so..
error_reporting(0); |
|
|
|
|
|
#19 |
|
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. |
|
|
|
|
|
#20 |
|
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
|
|
|
|
|
|
#21 |
|
Confirmed User
Join Date: May 2002
Location: CT
Posts: 5,246
|
I woke up
Everything works fine now |
|
|
|