Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Name Hell!!!!! Need Input

Status
Not open for further replies.

HowdeeDoodee

Technical User
Mar 14, 2005
61
US
Totally blown away by the following problem.

I have a php file named TestFile4. This file or script works when uploaded. However, when I change the file name to TestFile4_1 or TestFile5 or some other name, even names different than TestFile4, I get error messages from MySql or from php.

Here is what I have tried and none of these has worked.

Renaming TestFile4 in Windows Explorer.
Copying Testfile4 to another directory then renaming Testfile4.
Renaming TestFile4 using save as in notepad.
Copying the contents of TestFile4 over to an editor (HTML-kit) and saving that file to another file name.

What in the world is going on here????
 
If you post the code inside, that will be helpful.
Like the header part, probably?
 
Are you sure your renamed files have the ".PHP" extension? If you rename on UNIX like
Code:
mv TestFile4.php TestFile4_1
then UNIX will happily remove the ".PHP" extension, since it is not really an extension, but is just part of the filename.

Ken
 
Top of the file...

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<form action="SASubtopic.php" method="get">
See Also String: <input name="SeeAlso" type="text" /> 
<input type="submit" />
</form>


<BODY>
<center>
    <?php

All files are saved with the php extension.
 
please note that unix is CASE sensitive...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top