Edit PHP files without extension

Hi,
I'm currently developing a website with DW CS3 and I'm using
apache's mod_rewrite so I have clean URL's. The thing is that doing
this forces me to rename my php files e.g.
index.php to
index. Is there a way that DW recognizes these files as PHP
files, so I have nice highlighted code?
Greets,
Nick

Hello,
Right clicking and selecting open is exactly the answer to
the question you
asked about how to open files without an extension.
There are many young people and people just learning here, so
all questions
are answered.
How was anyone supposed to know you meant something else, and
that you
already knew the answer was to right click and select open?
You didn't mention DW was giving you errors until after 2
people gave the
answer to the question you asked.
The fact that DW is giving you an error message when you try
to open the
file is something else entirely.
So, if that's your actual question, can you expand on "DW
keeps giving me
errors" and share what the error messages are, so we can try
and help you?
Take care,
Tim
"magoo" <[email protected]> wrote in message
news:gcr7s0$m9n$00$[email protected]..
> Murray *ACE* wrote:
>> Right click on the file and select Open.
>>
>>
>> "magoo" <[email protected]> wrote in
message
>> news:gcr39p$r7o$01$[email protected]..
>>> Alan wrote:
>>>>> is it possible to open files without
extension in DW?
>>>>
>>>> yes- but they will be treated as a plain
text file, they won't be
>>>> associated with any type of scripting type
so no code hints or code
>>>> coloring.
>>>
>>> That`s fine, so how does it work?
>
> Wow, what an ace you are. If it was that easy I would
not have bothered
> posting here ...
>
> --
> Regards
> magoo

Similar Messages

  • Quick Look for files without extensions.

    I have many files without extensions that quick look does not recognize as text files. Bash shell scripts generally do not use an extension, for example (they are identified by their first line). Similarly I have a lot of text file notes w/o a ".txt" extensions.
    Is there any way to have quick look recognize these as text files? They currently have either text edit or textmate as their default "open with" app. I presume there is a config file of some sort for quick look that will let me default files with no extension to text files, but have not found it yet.

    Can't Quick Look for some text files
    Re: Is it possible to change the viewing format?
    Quick Look for files without extensions.
    Re: Can I view text files without a .txt extension in Quick Look?
    How do I add support to Quick Look

  • Can't edit php files in dreamweaver, access to site root denied

    Can anyone help me please?
    I've recently purchased a Macbook Pro after my PCs failed on me and also had to get a Creative Suite Web Premium. I have always used Dreamweaver to edit my php files. In Windows XP, I had to run the programme to run as an Administrator to edit php files. Now I have not a clue how to do it on Mac! Each time I tried to save a php file, a dialog box appear stating: Access to Macintosh
    HD:Library:Webserver:Documents:Untitled-1.php was denied
    Regards
    Sinead

    You shouldn't have to do that on the Mac or Windows.  Only thing I could find that would suggest loading files from there is a tutorial by David.  And although I would normally agree with him, keeping the files in a system library folder for a testing environment is really unnecessary.  I'd recommend moving them into your /Users/{username}/Sites folder.  There is already a modification to the apache server to recognize that as http://localhost/~{username}.  Or install something like MAMP that is in the Applications folder.

  • How to use Terminal to Find or Locate files without extensions?

    I'm conversant with the cli, but not a power-user.  I've discovered a fairly large number of audio files, across dozens of sometimes nested folders, that (somehow) lost their '.aif' extension and now appear as Unix Executable Files.  Upon appending said files with the proper extension, they are perfectly normal audio aif's.
    My Problem: using the Terminal, how can I search a directory tree to find those files *without* an extension, discriminating between files and folders, and then append the correct extension to only the files?
    I've tried a number of queries, mostly built around the idea of using 'filename.*', but for some reason searching for an extension omission (as opposed to a specified string) isn't so simple. 
    The following: ls -al *.
    Brings up 'No such file or directory'
    And the following ls -al .*
    Brings up files AND directories
    I need o discriminate between files and directories, finds all files without extensions, and rename them with the appropriate extension.
    Can anyone help?
    Best, Tom

    The following will find files without a file extension in the current working directory and any sub-directories->
    find . -type f ! -name "*.*"
    If you are confident that the files found are the appropriate audio file (in this case aif) then you could->
    find . -type f ! -name "*.*" -exec mv {} {}.aif \;

  • FileFilter files without extension (*.)

    I want the file dialog to only show files without extension, so I set the filter to '*.', but the dialog shows no files at all.
    var legendFilter: FileFilter = new FileFilter("Legende", "*.");
    legendFileRef.browse([legendFilter]);
    These legend files are created by another application and don't include an extension.
    I cannot ask the user to rename the files prior to upload, I cannot change the output of the other application and I do want to filter to prevent selection of incompatible files as much as possible.
    Flex 4.6, Windows 7

    Would that be:
    new FileFilter("Legende", "null")
    or
    new FileFilter("Legende", null)
    If this is not correct, maybe you just use browse() without fileFilter,
    and then check the extension property of file() that selected from file browse

  • I find file without Extension after Download.

    In Firefox, when I am trying to download STL file from Email then it allows me to download such file without extension. That means I can't get file with Extension. . Why such thing happen ?

    Hi, Flash Player is a browser plug in, not a standalone player. It works thru your browser. Check in Safari and any other browser that you use for the Shockwave Flash plugin. Make sure it's Enabled.
    You can test each browser here and should be able to see the Flash Player logo(Red F) animate(spin). It will also display the version of Flash Player that you have Installed.
    http://www.adobe.com/software/flash/about/
    eidnolb

  • Unable to edit php files in CS3

    Hi,
    I have users that need to edit content in php files in Contribute CS3, just editing text and adding images etc. Every time they try to edit a page they just get a grey screen with the words 'headerMenu', which happens to be the page title of a file that is included using the php include command. They cannot edit anything on the page. I have checked the admin options and they are allowed to edit scripts etc..
    Any ideas on what might be causing this?
    Thanks,
    David

    Hi imadb,
    Since you have the Acrobat Pro DC 30-day trial, please try opening that to edit your PDFs (rather than opening them in Reader, and clicking the Edit PDF button).
    If you search your computer, you should have both an Adobe Acrobat Reader DC and and Adobe Acrobat Pro application. They can coexist, but it does make things a little confusing.
    If you want to evaluate  Acrobat Pro DC, it's best that you open it directly. That way, you can get the real "lay of the land" with Acrobat before making any purchase decisions.
    Best,
    Sara

  • Files without extensions read as UNIX exe files

    I have an iMac connecting to my MacBook Pro that has several external drives attached by firewire. On those external drives the iMac sees any file without an extension as exe files. In particular, font files are seen this way.
    Can I add extension to the font files (most of them postscript type 2) so that the iMac sees them as fonts rather an exe files?
    Or is there a way of solving the problem that has a more broad approach?
    Thanks!!!

    First, ensure that Finder->Preferences->Advanced->Show all filename extensions is checked, then check those files. If the issue continues, then rebuild the LaunchServices database by running this one-line command in the Terminal.app (/Applications/Utilities/)—copy & paste it into the Terminal window and hit the return key:
    */System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user*
    Restart and see if that fixes the problem.

  • Batch export .ai to .png produces files without extension - please help

    I created an Action to batch export a folder of .ai files to create 300dpi .png's of the .ai file's artboard. I did this by simply recording "Export...as png" with my desired settings then Batch running the Action on desired folder of .ai files.  The files were successfully exported, the trouble is that the exported files lack a .png file extension. My intent is to take these PNG files and
    merge them into a single PDF using Acrobat Pro. Unfortunatly, without the .PNG extension, Acrobat Pro does not recognize the file types and does not let me use the Combine Files feature on them. Going back and manually adding a .png at the end of the exported files defeats the time-saving purpose of Batch Processing all together. Is there something I am missing or doing incorrectly? I have included screenshots of 1) My Batch Action settings 2) folders showing files without .png extension and 3) visual of what I see when I am trying to combine PNGs into a PDF. Assistance would be greatly appreciated!
    - Erin

    Yes, I am on a Mac running Snow Leopard 10.6.8 with CS5 (Illustrator 15.0.2, Acrobat Pro 9.4.6). Your suggestion did not help as "Hide Extension" is not checked. I even set "Open With" to Acrobat Pro and still get no extension or ability to import into Combine in Acrobat. Thanks anyhow. Please see below.

  • Files without extensions not recognizing program

    Recently I used my new lacie firewire drive to transfer files from my G4 to a PC laptop. Now the files on the Lacie (when I work on the G4) are missing their icons. Only files without the extension .ai, .m4a etc. Some files will open via right click and choose the program. Some will not open at all.
    In every folder there is now a finder.dat and resource.
    I read in a recent post about the finder.dat and resource. And now understand the relationship to the PC. This has never happened on my older Lacie drive which I've used between computers.
    Is there a repair program I can run on the Lacie?

    But for now is there a way to salvage the files that are
    gray rectangles. So that they can recognize the program
    from which they were created?
    First, you do get credit for using some method of backing up. Thats more than many users do
    If the files with generic icons were created on another Mac, and they will not open (or prompt you for a program to open), then you likely no longer have either an old copy of the program that created the file, or you do not have the OSX version of the program that created them, or both.
    Given they are from a G3, I would suspect they are looking for a Classic based program, not an OSX based program.
    First question: Is Classic installed on your new machine?
    If not, you may want to install it. Presuming your G3 was up to OS 9.2.2, you should be able to simply copy the System Folder (Os9), as well as the Applications (OS9) folder from the G3 to the external to the G4.
    Second question: Based on your folder structure, can you determine what program you originally used to create the file(s)?
    If the answer to question 2 is yes, then try opening that program (or the latest version thereof) first, then using it's open... command to open the file that you cannot 2x click.
    Once you successfully open the file in (whatever program), save the file. This should 'update' the file, change the icon, and make it 2x clickable from the finder.
    If the files with generic icons were created on the PC, then you will need the Mac equivalent of the program, or a program you know can open the file. For these files, once again open the application, then use it's open... command to get to the file.
    Keep in mind there may be some files you simply cannot open or run on the Mac. There are way too many to list, but some of the most common will be .MDB (MS Access),DLL,PIF,COM, EXE,CAB, & MSI.

  • Best way to edit PHP files in FB4?

    I'm trying out FB4 and would like to be able to use a PHP editor within the FB application. At the moment the PHP files it generates open up in Dreamweaver, which is fine but it would be better to have one tool than two. I tried to install the Eclipse PDT but I don't see any more options after I've installed it. I really would like nice coloured formatting and maybe code assist, like DW provides. Has anyone done the same? (Also interested in the same thing for FB3).
    Thanks

    I found the PHPEclipse plugin, which installed into FB4 - will try it with FB3 now

  • Since few days, Firefox crashes when trying to open local php files - without using localhost . It shoudn't. I tried to unsinstall everything and reinstall. But it didn't work. I use a mac osX 10..6

    I'm a beginner web developper. When I try to open php files, Firefox crashes and open millons of new firefox windows . I have no choice other than forcing Firefox to quit. When I use the localhost adress, it's Ok. But because I usually open the file directly from a folder in my HDD, (it's faster to dothis way) transforming it after with the localhost/~username/file ... it' s quite irritant.

    Hi.
    I tried logging in as a different user in the OS and that didn't work.
    Do you mean that Safari crashed there as well?
    If so, that's an indication that the startup disk needs repairing.
    Using Disk Utility to verify or repair disks

  • Unable to Open Files without Extensions

    Ever since updating to Mavericks and iWork 2013, I've noticed that Pages seems unable to open files that lack formal file extensions and the OS seems unable to accurately identify what type of file something is. For example, if I double-click on a Word document that doesn't have ".doc" or ".docx" in its filename (either shown or hidden), Pages will launch and then say the file "can't be opened." If I then change the filename to include ".doc" or ".docx" and try again, Pages will open the file successfully. It doesn't seem limited to iWork, though. Today I tried opening a PDF file that lacked a file extension. Pages launched and told me the file "can't be opened." I then added ".pdf" to the filename, double-clicked on it again, and the file successfuly opened in Preview. Any idea why the OS seems to be unable to tell what kind of files things are all of a sudden? Or why iWork and other apps seem unable to recognize and open files they used to be able to recognize and open? I don't have time to add file extensions to all my files! — Also, I thought this was a mature UNIX-based OS, not Windows 3.1...

    Didn't realize I could edit my original post, so now this comment is superfluous...

  • IE downloads files without  extension as html type

    Hi,
    i wrote a piece of code to down load files. its working fine for all the filetypes which will have extension.
    but if the file doesn't have any extension, then download prompt shows
    FileName : aaaaa
    Type : Html Document
    and when saves it saves as txt file. how to stop this and save it as unknown type

    I know this isn't an answer to the question you're asking, but are you sure you want that behavior? There might be times where you want an extensionless file to be loaded as a plain text file. At the very least, it will help make your site more compatible.
    If all these files are collected in the same area on your system, it might be best to give them the .html extension.
    You can do this relatively painlessly with virtually any scripting language. I know I've even seen an AppleScript that will go through a batch and change the extension for you. You might want a modified one that will first check for the start/end HTML tags in the file first to make sure you're only changing HTML files. A quick Google search for scripting a filename change will probably yield lots of results (check Perl and PHP resource sites as well).

  • FCPX can't use files without extension?

    I just spent hours renaming my old clips..... from "ClipXXX" to a date (handy tip.... AVT DV Info is a godsend if you don't know when you recorded footage!).
    I didn't put ".dv" at the end of each one... I didn't think it mattered.
    However, FCPX shows all clips without the extension as grey, and they can't be selected. This is odd, because iMovie, Quicktime etc. can see them, recognise them as .dv files and open them.
    Have I got something set up wrongly?
    If not, anyone know how to batch change 100's of files to add .dv so FCPX can see them??

    If you have Adobe Bridge (Any Photoshop since 7, or PS Elements would have installed it), you can easily add or change a suffix.
    If you don't have Bridge, then I would recommend A Better Finder Rename. It has a number of options for modifying File/Folder names, include changing characters by position, renaming to a numbered or alphabetic list, adding suffixes, prefixes, scannig file name for specific characters and updating only this files with those characters... to many options to list.  Very light weight, and runs as a finder extension so you can select the files, right-click(cntl-click) on the list and select ABFR from the pop-up.
    I currently use v6.9.5.  Current version is 8 and has a trial.
    NOTE: I have no affiliation with the author, I just use the app regularely.
    TA

Maybe you are looking for

  • IPod mini Battery & Reset Problems - So Annoying!

    Hi Everyone! My first post and it's a problem! I bought the second generation iPod mini back at the very end of February this year. I love it to bits and i've used it every single day since i got it! I charge it whenever i need to (mostly every other

  • How to make a line intersect with a path at random angles?

    How do you make a line intersect with the anchor point of a half circle when you want the line to continue on past the anchor point of the half circle at a random angle?

  • Kerberos & AFP fails to login via kerberos

    Hi, I am unable to login via afp using kerberos. When i used the kadmin.local -q listprincs comand to list the principals the afpserver is listed. When i change the authorization to kerberos. I revice a : "Connection Failed! The User Authentication M

  • Can anyone explain me the significance of replacement path?

    hi all, Can anyone explain me replacement path   - with text variables   - with characteristics and   - with formulas. Can anyone explain me with an example for each of those replacement path. And i heard abt replacement path for characteristics can

  • Re : Apple iPhone account creation , account details

    I had create an apple account and downloaded the itunes, while creating apple account it asked me to submit the credit card detials, can any one  please tell me how to disable the bank details, so that no one can use it, or else how to protect it by