Submit Your Article Forum Rules

Results 1 to 8 of 8

Thread: Remote Files

  1. #1

    Remote Files

    On my site, I often use remote javascript files to insert content on multiple pages. I know it's possible for people to disable javascript on their browsers -- in which case they will be missing part of my content (though I can't imagine why someone WOULD disable javascript).

    I've learned another way of inserting content, with remote SSI files. I can't use this on my site, because my host does not support SSI....but I'm about to start making a site for someone who CAN use SSI. I was all set to use it, and then just recently read (in a newsletter from a respected authority on site design) that the newer browsers are allowed to ignore anything within HTML comment tags. Now I'm wondering if these new browsers will actually be set to do that. If so, they will not read the links to my remote SSI files, which have the form:



    Is there truly a danger of browsers not reading what's in comment tags now....and, if so, is there another way to do a remote SSI file?

    Thanks in advance ------

    _||_
    db
    Don Beckett
    Reiki, Johrei, Macrobiotics: POWER TOOLS
    http://johreiki.net/

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Posts
    519
    If you use php then it doesn't matter as the page is sent to the PHP processor first which adds the text from your include and then sends the finished HTML off to the visitors browser.

    <?php include('file.html'); ?>

    all pages must use the .php or .shtml extension though.

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    I agree with carbonize,
    php is the way to go. It works just the same way as SSI.
    Just need to have .php as the extension on all your pages and call the includes as mentioned.
    The bonus, is: If your client says to you later down the road, that he/she would like to have a guesbook, shopping cart or some type of dynamic integration, then you're pages are already to accept the wonderful world of php / MySQL
    Web Hosting Guru
    | Need Help For Your Forum?

  4. #4

    remote files

    Quote Originally Posted by carbonize
    If you use php then it doesn't matter as the page is sent to the PHP processor first which adds the text from your include and then sends the finished HTML off to the visitors browser.

    <?php include('file.html'); ?>

    all pages must use the .php or .shtml extension though.
    Thanks very much. Apparently my client's host does not support PHP....unless I did something wrong. I made a test page including

    <?php include('file.html'); ?>

    and saved it both ways: as an .shtml and as a .php. Then I made a file with a line of regular html code (but without <html> or <head> or <body> tags), and saved it as file.html. But the uploaded test page did not show the contents of file.html....

    _||_
    db
    Don Beckett
    Reiki, Johrei, Macrobiotics: POWER TOOLS
    http://johreiki.net/

  5. #5
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,771
    To see what components are installed on the server, create a blank page, with only <? phpinfo(); ?>
    Save the page as phpinfo.php and upload.
    Now navigate to yourdomain.com/phpinfo.php and see what it spits out

    What server are you on ?
    It's pretty rare that a host doesn't support php, unless it's a free host
    Web Hosting Guru
    | Need Help For Your Forum?

  6. #6

    remote files

    Quote Originally Posted by cyanide
    To see what components are installed on the server, create a blank page, with only <? phpinfo(); ?>
    Save the page as phpinfo.php and upload.
    Now navigate to yourdomain.com/phpinfo.php and see what it spits out
    It puts out <? phpinfo(); ?>

    Quote Originally Posted by cyanide
    What server are you on ?
    It's pretty rare that a host doesn't support php, unless it's a free host
    The server is earthlink.net -- it's not a free account, my client is paying them for her own domain.


    Thanks again ------

    _||_
    db
    Don Beckett
    Reiki, Johrei, Macrobiotics: POWER TOOLS
    http://johreiki.net/

  7. #7
    Senior Member redcircle's Avatar
    Join Date
    Aug 2003
    Posts
    424
    I think it's time for your client to find another host.
    www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
    www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.

  8. #8

    remote files

    Quote Originally Posted by redcircle
    I think it's time for your client to find another host.
    I think she has reached that same conclusion....
    : ^ )
    Don Beckett
    Reiki, Johrei, Macrobiotics: POWER TOOLS
    http://johreiki.net/

Similar Threads

  1. ***Remote Bids***
    By datacalls in forum Domains Buy/Sell
    Replies: 0
    Last Post: 02-15-2008, 02:54 PM
  2. Remote Rollovers
    By pete200677 in forum Graphics & Design Discussion Forum
    Replies: 4
    Last Post: 06-08-2006, 05:19 PM
  3. JavaScript Remote Scripting: Processing XML Files
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 10-10-2005, 03:09 AM
  4. remote files and hosts - It's Driving me nuts!
    By lsblogs in forum Web Programming Discussion Forum
    Replies: 0
    Last Post: 09-23-2004, 07:18 PM
  5. remote script
    By gene02 in forum Web Programming Discussion Forum
    Replies: 0
    Last Post: 01-17-2004, 12:15 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
  •