Results 1 to 4 of 4

Thread: PHP Include issue

  1. #1
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Include issue

    Hi,

    I'm still a bit new to php but have a bit of experience with it.

    I currently built a website in Gunther which is basically a php framework that uses smarty templates. It allows you to create new pages etc like a small cms and allows you to enter php code and html etc to help display your data.

    A problem I'm having is on one of the pages in my site which is created as a flat file, not sql, I want to display and use a php user management program.

    I have successfully been able to use a php form script as the whole application is in the one script. However when using a more advanced program that has many php files, I get issues and it won't allow the other files it calls on to load.

    I was wondering if anyone here has experience with this, and could suggest a fix? Using as an iframe doesn't work, nor does as an include.

    Cheers in advance,
    Paul

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    It sounds complex, and I don't really understand the issue.

    What's the basic problem?

    "it won't allow the files it calls on to load"?

    what does that mean?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Jan 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well i probably made it sound more complicated than it is!

    Just say I have my user login program. It's 6 php files.

    When making the page in the website I can input php or html code to call that index.php file of the user login program.

    However I can't load the page as an iframe - won't let me, and if I open the page as an include, the first page that i've included (index.php) loads fine and displays beautifully

    however if i then try to login etc and the script starts working, it then basically won't find the files it needs even though it's in the same directory as the index.php file. because the gunther program/smarty template system is looking for a flat file page called index.php which doesn't exist.

    really hard to describe unfortunately

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I would suggest, then, fixing the program that is trying to search for index.php and make it search for the correct one.
    OR, you could rename your other current page index.php, possibly.

    I'm still not quite sure.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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