Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Windows 7 with program files

26 Apr 2010   #1
clintonbrits

windows 7
 
 
Windows 7 with program files

I created my own software application when i had windows xp to manage my website. The localhost server was installed to c:\program files\apache\apache 2.2\htdocs. This software application edited htm documents in the htdocs folder and then using my browser, i viewd it locally.

I now upgraded to windows 7 home basic when i bought a new computer but windows 7 seems to be schizophrenic with my documents. The software application opens the file i want to edit and i can change it. If i exit and come in it loads the document with my changes but these changes do not show if i open the file in notepad or if i preview the webpage in my web browser.

Can anyone provide me with any assistance to why a single file location could have two versions of a file and where i can find the one my application is using.

Thanks in advance
Clinton Brits


My System SpecsSystem Spec
.
26 Apr 2010   #2
Casca

 

Windows 32 bit or 64 bit?

If 32 bit, one set of rules/tests applies. If 64 bit, maybe it is looking in the wrong path.
My System SpecsSystem Spec
26 Apr 2010   #3
clintonbrits

windows 7
 
 

I installed the 32 bit but it is looking in the correct path because if you delete the file and then ask it to open it, it gives an error that the file can no longer be found. If you ask the program to delete the file then it disappears from program files, if you save to file again to replace it it brings back the file that used to be there instead of the new content.
My System SpecsSystem Spec
.

26 Apr 2010   #4
zzz2496

Windows7 Ultimate 64bit
 
 

Own the file/folder, and make sure you have enough privilege to access the said files... (I use apache too, never had any problems with it except PHP/MySQL driver hates Windows x64).

zzz2496
My System SpecsSystem Spec
26 Apr 2010   #5
Casca

 

Quote   Quote: Originally Posted by clintonbrits View Post
I installed the 32 bit but it is looking in the correct path because if you delete the file and then ask it to open it, it gives an error that the file can no longer be found. If you ask the program to delete the file then it disappears from program files, if you save to file again to replace it it brings back the file that used to be there instead of the new content.
An issue quite similar to this was addressed in this forum last year, prior to my membership. I don't know how to search very well, but I do remember it. It is memorable to me because several advanced users thought the OP was nutsorworse.
My System SpecsSystem Spec
26 Apr 2010   #6
ccatlett1984

 

I know this is gonna sound stupid, but after you make a change to the file are you restarting the local web server?
My System SpecsSystem Spec
26 Apr 2010   #7
zzz2496

Windows7 Ultimate 64bit
 
 

Quote   Quote: Originally Posted by ccatlett1984 View Post
I know this is gonna sound stupid, but after you make a change to the file are you restarting the local web server?
ccat, I don't think you need to restart the web server if you only change the document... At least I don't, and I always edit on-the-fly...

zzz2496
My System SpecsSystem Spec
26 Apr 2010   #8
ccatlett1984

 

Quote   Quote: Originally Posted by zzz2496 View Post
Quote   Quote: Originally Posted by ccatlett1984 View Post
I know this is gonna sound stupid, but after you make a change to the file are you restarting the local web server?
ccat, I don't think you need to restart the web server if you only change the document... At least I don't, and I always edit on-the-fly...

zzz2496
Some of the "consolidated solutions" i've seen lately actually cache the documents, so edits dont appear on the fly.
My System SpecsSystem Spec
27 Apr 2010   #9
zzz2496

Windows7 Ultimate 64bit
 
 

Quote   Quote: Originally Posted by ccatlett1984 View Post
Quote   Quote: Originally Posted by zzz2496 View Post
Quote   Quote: Originally Posted by ccatlett1984 View Post
I know this is gonna sound stupid, but after you make a change to the file are you restarting the local web server?
ccat, I don't think you need to restart the web server if you only change the document... At least I don't, and I always edit on-the-fly...

zzz2496
Some of the "consolidated solutions" i've seen lately actually cache the documents, so edits dont appear on the fly.
Ahh... I see, well - I assume it's a standard apache installation, so it won't have any caching I think...

zzz2496
My System SpecsSystem Spec
27 Apr 2010   #10
clintonbrits

windows 7
 
 

I've tried taking ownership of the folder using the take ownership menu option after downloading the software but still no luck. I'm almost at a solution but look at this.

1. Edit document and save then it saves the changes which can only be seen in my program and does not show if you open the file in the apache folder using notepad or a web browser. The interesting thing here is that eventhough the change cannot be seen, the html file in the htdocs folder changes size so it must contain the changes.

2. If you cut the file from the htdocs folder to the desktop and then open it then it shows the changes but if you cut and paste it back to the htdocs folder then it returns to the previous state before changes were made eventhough the size doesn't change.

3. The only files which seem to be affected are the ones i copied into the htdocs folder from a backup disk and this doesn't happen if the program has created a new file. If you save the document to test.htm then
it works exactly as it should and as you would expect it to.

Strange yet true.

Thanks for the input
My System SpecsSystem Spec
Reply

 Windows 7 with program files




Thread Tools




Similar help and support threads
Thread Forum
Program refusing to install in standard program files folder
I have an Advent (PC World brand) Laptop that comes with its own custom On-Screen Display software. The software is made for 32 bit Windows with no 64 bit version available as far as I'm aware. I have upgraded to 64 bit Windows recently and everything seems to work great except the OSD. ...
Software
Program Files (x86) & Program Files Installed On Another Drive
Hi have have a new PC running Win7 Home Premium 64bit. I have 2 drives: 1 x 120GB SSD (running the OS) (C Drive) 1 x 1TB HDD (D Drive) The SSD is running the OS and a couple of main programs which i use quite often (ie. Office 2010, Antivirus, etc). The HDD i want to use to install and...
General Discussion
Allow installed program to rename files under Program Files (x86)
Hi, I have a program installed under "C:\Program Files (x86)\CompanyName\SWName". When the program runs it's supposed to copy some files, say FROM "C:\Program Files (x86)\CompanyName\SWName\Drivers\*.abc TO "C:\Program Files (x86)\CompanyName\SWName\Drivers\*.xyz The program works on...
General Discussion
Program Files or Program Files (x86)-Where to place downloaded program
My computers are both running Win 7 64-bit. I am thoroughly confused when it comes to placing programs that I download into their proper folders: That is, program files (x86) vs program files. I have read stuff on this, but still confused. for the most part, even when a dl'd program suggests...
Software
windows.old and program files x86
I just did a clean install of w7 ultimate 64bit over my previous vista 32bit and my primary hard drive is loaded up with old folders and things. The biggest it seems is windows.old and Program Files x86. I am thinking about deleting the x86 p-files because its now running a 64 bit OS and i dont...
Installation & Setup
No Program Files (x86) Windows 7
Hello Everyone, I am new here as of today. So, hello. I have a Windows 7 Pro box straight from Dell last month. It has a Program Files, but no Program Files (x86) on it that I can find. I displayed the hidden folders, and didn't see it there. Does anyone know where to find it now? I surely...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:11.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App