Thread: Php include

Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    3
    Plugin Contributions
    0

    Default Php include

    Hey everyone,

    I've been trying to include a file define_main_page.php

    by using an include('gallery.php')
    or
    $define_page = "http://ericschuppe.com/test/test/includes/languages/english/html_includes/gallery.html";
    include ('$define_page');

    Any idea on why this isn't working?

    Thank you.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: Php include

    What is it that your are trying to achieve? Are you trying to put a link to your gallery?
    20 years a Zencart User

  3. #3
    Join Date
    May 2009
    Posts
    3
    Plugin Contributions
    0

    help question Re: Php include

    Kinda, I have an external advertising banner that I want to include. I've tried reformatting this page(define_main_page.php) so there was no html what so ever, all the text was called through echo etc

    So i'm at a loss of how I can include this
    Heres the link of what i'm trying to include
    http://ericschuppe.com/test/test/inc...s/gallery.html
    The reason i've been trying to include this is because i need to have javascript in the head of my document and it doesnt work in the define_main_page

    Any help is welcomed, thanks ahead of time.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Php include

    Quote Originally Posted by ericsc View Post
    ... i need to have javascript in the head of my document ...
    http://www.zen-cart.com/wiki/index.p...s_-_Javascript
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Include a custom php file in mainpage.php
    By BeautyHealth.com.cy in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Nov 2010, 02:45 PM
  2. include a php in an ezpage
    By dbnavan in forum General Questions
    Replies: 1
    Last Post: 30 Jul 2010, 02:17 PM
  3. PHP requires or include
    By andytho in forum General Questions
    Replies: 10
    Last Post: 27 Oct 2008, 04:13 PM
  4. Php Include
    By Jodz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Dec 2006, 05:44 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