iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-09-2003, 11:57 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default 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/
Reply With Quote
  #2 (permalink)  
Old 12-10-2003, 04:53 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Bristol, UK
Posts: 521
carbonize RepRank 0
Default

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.
__________________
Carbonize
Reply With Quote
  #3 (permalink)  
Old 12-10-2003, 06:05 AM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Toronto, Canada
Posts: 1,782
cyanide RepRank 0
Default

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?
Reply With Quote
  #4 (permalink)  
Old 12-10-2003, 06:39 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default 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/
Reply With Quote
  #5 (permalink)  
Old 12-10-2003, 09:17 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Toronto, Canada
Posts: 1,782
cyanide RepRank 0
Default

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?
Reply With Quote
  #6 (permalink)  
Old 12-10-2003, 10:42 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default 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/
Reply With Quote
  #7 (permalink)  
Old 12-11-2003, 04:30 PM
redcircle's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 425
redcircle RepRank 0
Default

I think it's time for your client to find another host.
Reply With Quote
  #8 (permalink)  
Old 12-11-2003, 05:31 PM
johreiki's Avatar
WebProWorld Member
 
Join Date: Oct 2003
Location: Hilo, Hawai'i
Posts: 68
johreiki RepRank 0
Default 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/
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:40 PM.



Search Engine Optimization by vBSEO 3.3.0