Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default php script on page_2.php

    Trying to run an image rotator on a 'defined page', and I am unsure what constitutes placing the script on the page. If, for example, I want the script to run on page_2, on what page do I place the php include and the actual script? I have tried tpl_page2_default.php, and index.php, but that does not seem to do it.

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: php script on page_2.php

    Without a great deal of coding tactics, PHP will not run from a defined page.
    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: php script on page_2.php

    it depends on the script you are using, if it is pure php you should be able to place it in tpl_page_2_default but most script will have 2 parts a script and a php file.

    Another solution would be to install the script in its own directory on the server and use iframe to display the output in page 2

  4. #4
    Join Date
    Mar 2006
    Location
    Melbourne, Australia
    Posts
    377
    Plugin Contributions
    0

    Default Re: php script on page_2.php

    Many thanks. I am warming to the static image.

 

 

Similar Threads

  1. v154 application/x-httpd-php html_header.php PHP script text
    By Parafanaylya in forum General Questions
    Replies: 3
    Last Post: 29 Aug 2015, 03:06 PM
  2. Linking Page_2.php, Page_3.php, Page_4.php In Footer
    By gws76 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2007, 10:59 PM

Posting Permissions

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