Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    3
    I am helping a site out with getting the amazon.pl script installed and functioning. Their site has a common layout that consists of a header, two sections on the sides that consist of multiple link sections, and a middle section that holds the main content for the page.

    Their site is heavily PHP. Most of their content runs off of PHP with a mySQL database backend. What they would like to do is embed the amazon.pl script results in that middle section.

    I figured out the script tag to be able to present results in a page -- is there anyway to embed the normal amazon.pl in the site outline and leave all of the PHP active? Could I make a specialized template, with a PHP extension, point the script at it, and have that work?

    Let me know if I didn't provide enough information...do this part time, good enough to muddle my way through most things, but not an expert.

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    To include amazon.pl output in a PHP page, you would use the PHP equivalent of an SSI include statement:

    virtual("http://www.mydomain.com/cgi-bin/amazon.pl?ssi&PARAMETERS");

    The ssi parameter is required to tell amazon.pl that the results are being included in something.

    See also: PHP virtual() function documentation.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 26
    Last Post: July 26th, 2011, 10:50 AM
  2. PHP question - include(file.php) with variables
    By teezone in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: September 4th, 2009, 04:54 PM
  3. Replies: 1
    Last Post: September 11th, 2008, 01:58 PM
  4. Amazon.co.uk - php script to upload feed??
    By mhart in forum Midnight Cafe'
    Replies: 4
    Last Post: October 16th, 2007, 03:59 PM
  5. Replies: 2
    Last Post: May 25th, 2004, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •