NEW! Tuelz! :-:
Keyword
Armory/Keyword2Link Convert
:-:
BlogBomb
ReadMe
CherryBomb
ReadMe
FatBomb
ReadMe
GodfatherBomb
ReadMe
PowerBomb
ReadMe
SpiderBomb
ReadMe
BuyItBomb ReadMe
CB2RSS ReadMe
ImageBomb ReadMe
SearchFeed
||
RevenuePilot
John McGovern
unregistered bomber
|
Aug-23-04, 02:55 PM (PST) |
|
"SSI to PHP?"
|
Hi there, I currently have my site set up to parse all .html pages as PHP pages (via the .htaccess file). Because of the programs running on my site, it's not easy to change over to SSI. How hard would it be to have this being read as PHP instead? I've got credit card in hand ready to buy, but wanted to know how much tweaking I'll need to have done. Thanks, John
|
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
Jake Asbill
unregistered bomber
|
Dec-15-04, 09:37 PM (PST) |
|
3. "RE: SSI to PHP?"
|
PHP can include SSI files using the above code, however I can not get the following to work with blog bomb. <?php include($_SERVER<"DOCUMENT_ROOT">."/cgi-bin/bb/feedsearch_ssi.cgi?cat=1&random=1");?> Any ideas on how to pass variables via SSI but using PHP? I dont think it can be done. - J |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
jeffhope
Member since Aug-4-03
952 posts, Rate this user |
Dec-15-04, 09:52 PM (PST) |
|
4. "RE: SSI to PHP?"
|
Jake, You're right, PHP and SSI don't "speak" as a general rule. But if you're using PHP, there should be no need to use SSI at all. Can you explain more what you're trying to accomplish in your example? You shouldn't need to use the DOCUMENT_ROOT variable at all, as your server should typically see the /cgi-bin/... location properly, relative to the root. But maybe I'm missing something... Jeff |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
Jake
unregistered bomber
|
Dec-16-04, 08:50 PM (PST) |
|
5. "RE: SSI to PHP?"
|
Hey Jeff, Blog bomb requires variables to be passed in the SSI code to feedsearch. The information passed tells the CGI file what RSS data to extract back to the original page using the inclusion code. PHP is having a hard time passing these variables and then returning the data that the perl script parses. I think I am going to have to rewrite the feedsearch file in PHP for this to work. Best, - JA |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
jeffhope
Member since Aug-4-03
952 posts, Rate this user |
Dec-16-04, 08:56 PM (PST) |
|
6. "RE: SSI to PHP?"
|
Hi Jake, You shouldn't have to rewrite anything. I use PHP with all the bombs all the time (a lot) & haven't had to rewrite anything yet. I'm still not quite sure what you're having trouble with. If you're parsing your pages with PHP instead of SSI, you can do everything you need to do with PHP, no SSI required. Ex: <? virtual("/cgi-bin/blogbomb/feedsearch_ssi.cgi?keywords=$phpkw&results=$phpnumresults"); ?>
You should be able to substitute in PHP variables to your bomb query strings with no problem at all. Jeff |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
jeffhope
Member since Aug-4-03
952 posts, Rate this user |
Jan-18-05, 05:20 PM (PST) |
|
8. "RE: SSI to PHP?"
|
Thanks John, and to everyone wondering the same thing: Just remember it's not officially supported, and my time is limited. We're just calling the various bombs with PHP instead of SSI. Everything you need to know is in my post 1 above. Jeff |
|
Alert | IP |
Printer-friendly page | Edit |
Reply |
Reply With Quote |
|
|
|