CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 File name lower to upper case gives page Not Found errors

Print topic Send  topic

Author Message
bigtoe

Posts: 115
Posted: 06/30/2004, 2:26 AM



I was working on a CCS project on one PC.
The project files were stored on a LAN drive.
I opened the same project from another PC on the same LAN.
Changed 1 field label and published the project.

But I noticed that the names of some of my files have been
changed from upper case to lower case. For example:
T_ADM_HIST_list.php
Footer.php
Header.php

now appear as:
t_adm_hist_list.php
footer.php
header.php


My Linux server has Apache and MySQL.
Case sensitivity is giving me errors like:
Not Found
The requested URL /test/tns/01/tns_a/T_ADM_HIST_list.php was not found on this server.

I can manually go and fix this but is there any way to force lower case on file
names so that I do not have to deal with this repeatedly.



View profile  Send private message
crecalde

Posts: 13
Posted: 07/01/2004, 9:47 PM

If I had this problem, I would use a sed script on my Linux server to change all file names to lower case. Then (presuming that my server had previously been syncronized with my LAN server) I would ftp all the files from Linux into the LAN server, so that both file systems are exactly the same.

The thing to watch out for with this approach is that links in your HTML files, and possibly your PHP files, and any links that you store in your database may also have to be changed to all-lowercase. The HTML and PHP files can also be changed with a sed script, but you will need the original file list (the one from before you changed the case of the file names) for this. Entries in the database can also be addressed with SQL translation statements., if you have a large number of these entries. Otherwise, you may be better off manually dealing with the database.

Documentation for sed and SQL is readily available in many standard books and web sites.

By the way, are you using some DOS utilities, or an old LAN server? They could account for the changing of text case.

C.
View profile  Send private message
bigtoe

Posts: 115
Posted: 07/02/2004, 12:19 AM

I understand what you mean.
I would do this if I had known that these sort of case changes were happening.

A few files where affected and I made the lower case changes by hand.

Now, access to my server is via ssh/scp. (Not ftp.)
This does not allow me to mount filesystems as logical drives.
And I don't think CCS supports scp.

So after I publish the project locally, I manually ZIP it and scp it over to the server.

This way the case sensitivity is preserved in the ZIP archive.

No, I am not using DOS.

And I think what caused these upper-to-lower case changes was
that the project directory under "C:\Inetpub\wwwroot" was moved
to another location. So when the project was being re-published
to "C:\Inetpub\wwwroot", it looks like CCS took the liberty to
make the upper-to-lower case changes. And I found out the hard
way because the pages were not found according to my web browser.



View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.