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

Subject: "SSI to PHP?"   Previous Topic | Next Topic
Printer-friendly copy    
Conferences GodfatherBomb Topic #38
Reading page 1 of 1 pages
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
jeffhopemoderator
Member since Aug-4-03
952 posts, Rate this user
Aug-23-04, 03:20 PM (PST)
Click to EMail jeffhope Click to send private message to jeffhope Click to view user profileClick to add this user to your buddy list  
1. "RE: SSI to PHP?"
 
   Hi John,

The SSI include calls can be done with PHP instead very easily:

<? virtual("cgi-bin/...."); ?>

I use PHP for my own sites.


Jeff


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
Kurtadmin click here to view user rating
Member since Dec-5-02
6391 posts, 3 feedbacks, 4 points
Aug-23-04, 03:24 PM (PST)
Click to EMail Kurt Click to send private message to Kurt Click to view user profileClick to add this user to your buddy list  
2. "RE: SSI to PHP?"
 
John,

Jeff does it, but I can't support it simply because I don't know PHP.

Gbomb creates html pages which can be included in PHP pages, but this doesn't mean it will work with your individual situation...


-Boom boom boom boom.


  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
jeffhopemoderator
Member since Aug-4-03
952 posts, Rate this user
Dec-15-04, 09:52 PM (PST)
Click to EMail jeffhope Click to send private message to jeffhope Click to view user profileClick to add this user to your buddy list  
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
jeffhopemoderator
Member since Aug-4-03
952 posts, Rate this user
Dec-16-04, 08:56 PM (PST)
Click to EMail jeffhope Click to send private message to jeffhope Click to view user profileClick to add this user to your buddy list  
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
ezrydnmoderator click here to view user rating
Member since Oct-31-03
825 posts, 1 feedbacks, 1 points
Jan-18-05, 05:16 PM (PST)
Click to EMail ezrydn Click to send private message to ezrydn Click to view user profileClick to add this user to your buddy list Click to send message via AOL IM Click to send message via ICQ  
7. "RE: SSI to PHP?"
 
To all questioning the changeover from SSI to PHP,

When I first started my "stars-n-stripes" website, I went to Jeff for assistance because it was to be my first totally bombed site. Jeff talked me into changing from SSI to PHP and it with through without a hitch. Oh, I forgot to put little PHP tags in the right way a couple of times, which Jeff quickly caught and scolded me for being so hard headed, but it worked just fine. I know absolutely ZIP about SSI or PHP. Jeff told me how to change them and it's not hard to do.

BB would spit out SSI tags and I'd change them to PHP tags and that was it!

John


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote
jeffhopemoderator
Member since Aug-4-03
952 posts, Rate this user
Jan-18-05, 05:20 PM (PST)
Click to EMail jeffhope Click to send private message to jeffhope Click to view user profileClick to add this user to your buddy list  
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


Conferences | Topics | Previous Topic | Next Topic
Rate this topic Rate this topic
Y>