vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Anyway to fix this? Firefox displays HTML code... (https://vborg.vbsupport.ru/showthread.php?t=218260)

cheat-master30 07-09-2009 09:34 PM

Anyway to fix this? Firefox displays HTML code...
 
... except only when viewing pages stored in exactly one folder on my computer. I honestly don't know why, the files are seen perfectly when opened in Firefox in the folder above the current one in the directly list, and in every other folder like it, just in a single folder, it simply displays the HTML code.

The HTML and CSS is perfectly valid, it's not a Mime Type problem because every other site and folder on my computer works perfectly fine when the pages are viewed in Firefox, just this one folder is apparently corrupted beyond any possible use because of it. Any suggestions, or should I just ask on the official Mozilla support forum?

Marco van Herwaarden 07-10-2009 08:46 AM

I would ask at the support site of your webserver.

cheat-master30 07-10-2009 06:24 PM

It's not a webserver though, it's a folder on my actual home computer, my actual site is fine, and every other folder on my computer is fine, just this one folder is somehow completely screwed.

Brandon Sheley 07-10-2009 06:31 PM

set the file extension to open with w/e u want it too ;)

Marco van Herwaarden 07-12-2009 01:48 PM

And are you not looking at that local directory using the webserver that is installed on your local PC?

Wayne Luke 07-12-2009 05:02 PM

If you're using Windows, try this...

In Explorer go to View -> Folder Options -> View. Uncheck "Hide file extensions for known types".

Look at the file again and make sure it doesn't have a double extension. If it is filename.html.txt than Firefox can show the source and not render it.

cheat-master30 07-12-2009 07:10 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1847461)
And are you not looking at that local directory using the webserver that is installed on your local PC?

I'm not sure what's meant here, but usually, if you view a PHP file on your computer, it just shows the HTML content. However, for this sole directory, it just shows the whole thing in plain text, yet for all other folders it works fine.

Quote:

Originally Posted by Wayne Luke (Post 1847539)
If you're using Windows, try this...

In Explorer go to View -> Folder Options -> View. Uncheck "Hide file extensions for known types".

Look at the file again and make sure it doesn't have a double extension. If it is filename.html.txt than Firefox can show the source and not render it.

Tried that, both the files in that folder and every other folder on my computer that were used had .php as the only file extension.

Wayne Luke 07-13-2009 07:02 PM

A PHP file is simply a text file. Firefox doesn't know that a PHP file can be processed and would treat it as any other unknown text file. If you want Firefox to treat a local file as HTML than name it as HTML. If you want to process PHP than install a webserver and PHP on your computer and process it as PHP through localhost and send the HTML output with the proper headers to Firefox.

Install XAMPP, WAMP, MAMP, IIS + PHP, whatever if you want to view PHP files on your local machine.

Brandon Sheley 07-13-2009 07:54 PM

Quote:

Originally Posted by Loco.M (Post 1846518)
set the file extension to open with w/e u want it too ;)

did you see my reply?

how about this, what OS is the computer running that your trying to view the file on?

cheat-master30 07-13-2009 11:13 PM

Loco.M, it opens all other files with the same extension fine. But to answer your question, the computer in question is running Windows XP (yes, still, but I don't like Vista, and I'm relatively cheap with upgrading computers).


All times are GMT. The time now is 10:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete