vs.php Tip : Map .phtml files to .HTML Editor

By mahingupta on Sep 02 2010 | 0 Comments

I recently started to work on one of cool zend framework applications. I have my roots basically in .Net Environment and I love Visual Studio as IDE.

So I decide to use Vs.PHP as a PHP plugin in Visual Studio which allows me to use Visual Studio 2010 for developing PHP applications.

In zend application, you view files have .phtml extension, which by default do not meet to any Editor in Visual Studio, so you don't get any sensible intellisens by default. That's pure annoying.

What you lose :

1. Intellisese

2. Rich formatting options provided by visual Studio like “Format Selection”

Solution :

1. Go to Tools –> Options –> Text Editor –> File extension

2. In Extension write .phtml and In Editor drop down select HTML Editor

image

3. Press Ok.

4. Restart Visual Studio

5. If any .phtml files opened by default close them and reopen.

Congratulations.. Now you are having good formatting options, intellisense at your service.

Note : Format Selection will not work on lines containing  <?php lines.

Thanks.

Post info

Tags:
Categories:

Google Search – How to , I am shocked

By mahingupta on Aug 06 2010 | 0 Comments

 

I don't know where we are going.

Recently I tried to Google about some PLESK problem.  Google has a nice little feature to suggest you some of the common phrases other people searched, matching your search query know as Google Suggest.

I just typed in How to in search box and as usual Google presented me with list of common search phrases people are searching, and I GOT SHOCKED.

Result of How To – ( 6-Aug-2010 )

image

 

Now lets go in a bit detail :

1) World's biggest two problems today are, IMHO, population and corruption. AND Google shows me that majority of people wants to know “How to get pregnant”

.2) World is now so health conscious that 3 of the top search results are about reducing and gaining weight.

More analysis later.

 

 

This is today’s results ( 7-Aug-2010 ).

image

Post info

Tags:
Categories: Life , TechNews , TechTips , Google

Asp.Net Set Medium trust in local

By mahingupta on Aug 01 2010 | 0 Comments

My almost all  web sites are hosted on goDaddy shared medium trust hosting.It is always painful to get things running on medium trust environment after got it running on your development environment.

But now you can set medium trust environment on your local machine and check every functionality there only.

You need to add following configuration in your web.config

<system.web>
    <trust level="Medium" />
</system.web>
Now you can test your application as if it is running under Medium Trust environment.
 

Post info

Tags:
Categories: Asp.Net , TechTips , goDaddy