Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2009, 09:34 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 07-10-2009, 08:46 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would ask at the support site of your webserver.
Reply With Quote
  #3  
Old 07-10-2009, 06:24 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 07-10-2009, 06:31 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

set the file extension to open with w/e u want it too
Reply With Quote
  #5  
Old 07-12-2009, 01:48 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And are you not looking at that local directory using the webserver that is installed on your local PC?
Reply With Quote
  #6  
Old 07-12-2009, 05:02 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-12-2009, 07:10 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
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 View Post
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.
Reply With Quote
  #8  
Old 07-13-2009, 07:02 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 07-13-2009, 07:54 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loco.M View Post
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?
Reply With Quote
  #10  
Old 07-13-2009, 11:13 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04672 seconds
  • Memory Usage 2,258KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete