"Include" with only HTML?

Discussion in 'Programming' started by scott_sutherland, Jun 17, 2009.

  1. #1
    Hi Guys,

    I operate an eBay store and I would like to sell several hundred items that are all very similar. Therefore, I would like them to have very similar descriptions in the auction posts. HOWEVER, I may need to edit information about the items, and instead of going one-by-one through these hundreds of items, I would like to be able to edit them all in one fell swoop.

    Which comes to my problem. I know that using PHP I would be able to use the "include" function to relatively easily fix my problem. However, eBay only allows HTML posts, to the best of my knowledge. Does anyone know of any way that I would either be able to use an "include"-like function in HTML -OR- be able to post some PHP in eBay?

    Many thanks for all your help!
     
    scott_sutherland, Jun 17, 2009 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    You can do it using SSI (Server side Include) tag:

    <!--#include virtual="path-to-file/include.htm" -->

    Kailash
     
    kailash, Jun 17, 2009 IP
  3. scott_sutherland

    scott_sutherland Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not sure this would work, because I want to include information from a different server. The actual auctions will be on eBay servers, but my own "included" information will be from my own server. If there is still a way to do this with SSI, can you please point me in the right direction?

    Thanks!
     
    scott_sutherland, Jun 17, 2009 IP
  4. Domster

    Domster Greenhorn

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #4
    One way, if you have access to Apache/PHP, is to add PHP to the file extension via htaccess...

    in htaccess you could add something like...

    AddType application/x-httpd-php .php .htm .html
    Code (markup):
    and then you should be able to add any PHP code you want within a normal .htm/html file extension.
     
    Domster, Jun 18, 2009 IP
  5. elenabush

    elenabush Peon

    Messages:
    502
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I am searching more s/w product reseller list, if any guys can help me then sure do it, I will very great full its job.
     
    elenabush, Jun 18, 2009 IP
  6. ToddMicheau

    ToddMicheau Active Member

    Messages:
    183
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Hey, quick question- do eBay allow flash? A flash programmer could do this, use flashvars to tell the app what to load, it loads it from your server using an xmlsocket, parses and put it onto the page. . .

    If eBay does allow flash I would make it.
     
    ToddMicheau, Jun 18, 2009 IP
  7. xBidule

    xBidule Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Well, why dont you add some PHP scripts in you site for some dynamic content and pull the information from eBay.
    If you do not want that then you can always add iFrames in your HTML code to include (bad for SEO).
     
    xBidule, Jun 20, 2009 IP