Is it possibel to run PHP code on a Blogger Site?

Discussion in 'HTML & Website Design' started by rod007, Feb 6, 2007.

  1. #1
    Hi all,

    I would like to enter some PHP codes into my site which is on Blogger, but I have been told it's not possible - is this true?

    Regards,

    Rod
     
    rod007, Feb 6, 2007 IP
  2. popstalin

    popstalin Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why not do a search in Google's Blogger Group? I think you can but check there to be sure.
     
    popstalin, Feb 6, 2007 IP
  3. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #3
    By "on Blogger", do you mean you have a blog that is hosted on a blogspot.com domain? or are you using Blogger to post to a blog that is hosted on your own server? If the former is true, I doubt you can use PHP codes because you don't have access to the blogspot.com server to host your scripts.

    What do you want the code to do? There may be a non-PHP alternative.
     
    Nonny, Feb 6, 2007 IP
  4. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it depends what you are trying to do... if you want PHP to run something that will be displayed on your page you could have the PHP file on your own server which AJAX calls and spits out the output onto your blogspot.com blog. More info is required to provide further help.
     
    DatR, Feb 6, 2007 IP
  5. rod007

    rod007 Active Member

    Messages:
    166
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    Yes i have a blog hosted by Blogger.com and I want to Run the RSS feed news's PHP code on my site as I have been told it's a good idea to do this for getting a page rank from google.
     
    rod007, Feb 7, 2007 IP
  6. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #6
    It's still not clear to me what you want to do. If you want to put headlines or content from other people's feeds, you can do that without PHP.

    If you want a feed from your blog to be created (e.g. for "blog and ping"), Blogger will do that for you - just go into your Settings, and under "Site Feed" make sure the feed is turned on. Also be sure that you have "Notify Weblogs.com" (under "Publishing") set to "Yes".
     
    Nonny, Feb 7, 2007 IP
  7. rod007

    rod007 Active Member

    Messages:
    166
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #7

    Basically as i said i want to enter a PHP code into my site which is being hosted by blogger and i can't do that as apparently the blogger won't take PHP codes.
     
    rod007, Feb 14, 2007 IP
  8. Psyc

    Psyc Peon

    Messages:
    58
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'd also like to know this too, but I doubt you can. They probably disabled for security reasons.
     
    Psyc, Feb 14, 2007 IP
    harshakiran likes this.
  9. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #9
    That is true. The PHP has to be has to be on a server somewhere else, since you don't really have access to the blogspot.com server.

    However, what I wasn't clear about was what you want the PHP script to do. There may be an alternative way of doing the same thing that doesn't require uploading code.
     
    Nonny, Feb 14, 2007 IP
  10. rod007

    rod007 Active Member

    Messages:
    166
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #10
    Well, there's a site which provides news feeds and it claims in order for the SE's to be able to read the news it has to be in PHP as the JS version of it won't be read by them.

    It would be handy to have this news feed as this appears to the SE's as the site being updated regularly because of the constant update in the news flow.

    I hope that sounds clear now.
     
    rod007, Feb 15, 2007 IP
  11. Nonny

    Nonny Notable Member

    Messages:
    2,093
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    210
    #11
    I see, you want your blog to be scraped rather than human-generated content.

    The best way to do this is to set up a blog on your own domain. I know software like rss2blog requires you to do this. Also, in addition to the technical constraints, there is a high likelihood that Blogger will delete your blog if you use a lot of scraped content*, so in the long term it's better to have the posts archived on your own server, and, you would probably want to use your own posting software, like Word Press.

    If you want an indexed free blogspot blog add content yourself. I've had blogs rapidly (within a couple of weeks) indexed by Google by simply posting once a day, 4 or 5 times a week. You don't even need to log into blogger if you post by e-mail.

    * https://beta.blogger.com/content.g
    Blogger aggressively flags potential spam blogs - I've had one of mine flagged for "human review" even though it was all human generated. It seems to happen when posts are link-heavy. That was annoying because I had to type in a CAPTCHA to post, but it only took 2 or 3 days for a human to say it was OK. If it had really been automated content, the blog probably would have been deleted.
     
    Nonny, Feb 15, 2007 IP
  12. ramzwatcher

    ramzwatcher Peon

    Messages:
    67
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #12
    as far as i concern, you can't place the php code on blogger.

    but however if you want to place rss news (see articel, news section at http://ppcimages.blogspot.com for example), you can use feedburner. It will convert feeds to html.

    blogger does allow html and javascript :D

    hope it helps.
     
    ramzwatcher, Feb 16, 2007 IP
  13. MWilson

    MWilson Peon

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Hi,
    At aarss.com, once you select your options and insert your feed url you can select php or other which will out put an iframe script. Maybe that will work for you.
    Mike
     
    MWilson, Feb 16, 2007 IP