Q If you are writing your PHP scripts using windows notepad, you will need to ensure that your files are saved with the .php extension.But notepad adds a .txt extension to files automatically, Now how can we prevent this ?

May 31, 2010 | Filed Under PHP | Comments Off

Ans: We have to choose one of the following steps to prevent it-

(i) When you save the file and are prompted to provide a name for the file,
place the filename  in quotes (i.e. “hello.php”).
(ii) you can click on the ‘Text Documents’dialog box and change the setting to “All Files”.
You can then enter your filename without quotes.

Comments

Comments are closed.

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker