Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Can I just create a new php file?

Posted on 2014-04-22
6
Medium Priority
?
599 Views
Last Modified: 2014-04-22
windows 7
my php ide (please do not suggest another php ide) requires too much clicking to create a new .php file in the folder I want


so I use windows explorer
right click
new
.txt file

and rename to .php file

I am then prompted if I want to change file extension from .txt to .php


I click on the new file and php ide opens
Can I just create a new php file? (instead of a txt file)

want php file
0
Comment
Question by:rgb192
6 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 40015350
Instead of that, you just open Notepad and save as  php file ("index.php" ). Check the attachment.php file
0
 
LVL 35

Accepted Solution

by:
Dan Craciun earned 2000 total points
ID: 40015373
How to add a new item to the "New" right click menu:

1. Type regedit in RUN dialog box and press Enter. It'll open Registry Editor. Now expand "HKEY_CLASSES_ROOT" key.

2. Now look for the file type which you want to add in "New" menu, e.g. for adding php file type look for .php key.

3. Right-click on it and select "New -> Key" and give it name "ShellNew".

4. In right-side pane, right-click and select "New -> String Value". Give it name "NullFile" and press Enter.

5. That's it. You'll immediately get the file type entry in "New" menu.

Taken from here: http://www.askvg.com/how-to-add-remove-items-from-new-menu-in-windows/

HTH,
Dan
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 40015390
When I want to create a new PHP file, I just save any PHP file that is open in my text editor under the new name, then empty it out and add my code.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Expert Comment

by:Dan Craciun
ID: 40015404
Just tested and I had to add an empty php file in C:\Windows\ShellNew.

But now I have this:
new php file
0
 

Author Comment

by:rgb192
ID: 40015412
Instead of that, you just open Notepad and save as  php file ("index.php" ). Check the attachment.

I wrote
my php ide (please do not suggest another php ide)

http://www.askvg.com/how-to-add-remove-items-from-new-menu-in-windows/
works
0
 

Author Closing Comment

by:rgb192
ID: 40015414
thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question