SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    IIS Include Problem with Workaround

    I am working with Quick_Form from PEAR.

    If I ues HC's IIS Workaround as shown below:

    PHP Code:
    //IIS Workaround
    if(!isset($_SERVER['DOCUMENT_ROOT'])) 

        
    $n $_SERVER['SCRIPT_NAME']; 
        
    $f ereg_replace('\\\\''/',$_SERVER['SCRIPT_FILENAME']); 
        
    $f str_replace('//','/',$f); 
        
    $_SERVER['DOCUMENT_ROOT'] = eregi_replace($n""$f); 

    On the first page (for eg. form.php)I have the above line. Do I need to add this above code to any of the pages with in the /QuickForm directory or not? I don't think so becuase the form.php has it once??

    Currenlty I am getting similar errors that I was getting before the above workaraound.

    All icludes inside /Quickform within all the pages have the correct paths they just do not have the workaround on them.

    Here is the new error. _ I know its an iclude error.

    Warning: HTML_QuickForm::_loadElement(/QuickForm/header.php) [function.-loadElement]: failed to open stream: No such file or directory in D:\inetpub\websites\MYDOMAIN\QuickForm\QuickForm.php on line 539

  2. #2
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    texas
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how many pages are in question? too many to zip and upload to take a closer look? i'm having trouble figuring about exactly what files are having what problem and in what directory
    free online calendar: http://inversiondesigns.com
    includes multiple calendars/users/groups, task manager,
    email and sms reminders, permissions (sharing), etc.

  3. #3
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by awulf
    how many pages are in question? too many to zip and upload to take a closer look? i'm having trouble figuring about exactly what files are having what problem and in what directory

    Root-
    /QucikForm
    ---all the subs of quickform

    /testing
    form.php

    /includes
    all my inlucdes (including common.php)

    I can zip the 3 dirs above and send over if necessary after below.

    I changed

    require_once 'whateverinclude';

    TO

    require_once($_SERVER['DOCUMENT_ROOT'].'/whateve dir/whatever.php');

    and i get this error:

    No input file specified. It looks like we are getting closer. Any ideas?

    Awulf - Let me know what you think and thank you for offering to take a peek.

    Thank you all

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    texas
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    would you mind zipping and posting everything? it'd help me get a better feel for what's goin on, and i can test it on my server too.
    free online calendar: http://inversiondesigns.com
    includes multiple calendars/users/groups, task manager,
    email and sms reminders, permissions (sharing), etc.

  5. #5
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i sent you an email at the calendar site ty awulf


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
  •