PHPStorm 3.0 trail version, does not reconize .php file only .php5 and .php4 .phtml and .inc

Hello, last week I downloaded PHPStorm on my PC. I have windows 7 64 bit running.

When I want to start a new php project you can create php files, but only of extension .php5 .php4 .phtml and .inc
These files don't run on the localhost using wamp! when I rename the .php5 to .php it works, but the .php file does is
not reconized in the PHPStorm IDE! Could it be because it's conflicting with my recently bought webstorm ?

By the way, I have bought webstorm, but when I startup PHPStorm it looks the same as webstorm. Do you have to
choose between them? Or can you run them both?

Is this a bug?

Regards, Chris.

5 comments
Comment actions Permalink

Hi Chris,

but the .php file does is not reconized in the PHPStorm IDE!

File | Settings | File Types --- make sure that *.php pattern is listed under PHP files entry. If not -- add it manually.

Could it be because it's conflicting with my recently bought webstorm ?

Quite possible.

PhpStorm = WebStorm + PHP. There is no need to have both of them. They share the same configs ... so yeah, they may interfere with each other.

By the way, I have bought webstorm, but when I startup PHPStorm it looks the same as webstorm. Do you have to
choose between them?

Choose one.

Or can you run them both?

You can ... but you will have to do it manually (some manual configuration of one of them to ensure that it uses different/independent config/cache folder). Check this link .. or search this forum for instructions (the same logic for any IDE built on IDEA platform): http://stackoverflow.com/a/5889637/107788

0
Comment actions Permalink

Thanks for your Reply Andriy!

My Notepad++ was causing it make the .php extension reserved for text file editing. I changed it using the File type settings for that. That worked! :)


I was wondering tough.. what is the use of creating .php5 and php4 files if you can't run them with WAMP. I tried google but could not find instuctions on how
to run these file extensions with WAMP. I know it is a littlebit offtopic, but do you or anyone else know how to set it up?

I did not know PHPStorm was Webstorm + PHP, it is possible to pay for a upgrade from webstorm 3.0 to PHPStrom ?

Thanks,

Regards, Chris.

0
Comment actions Permalink

Hi Chris,

I was wondering tough.. what is the use of creating .php5 and php4 files if you can't run them with WAMP. I tried google but could not find instuctions on how
to run these file extensions with WAMP.

Why do you need that? Those file extensions were useful in a transition period (when PHP v5 was still new ... and later) when some hosting companies (including your own local PHP) were offering a possibility to choose which PHP version to use for executing *.php scripts (for example: *.php were mapped to be executed by PHP4 while *.php5 by PHP5).

The only reason why this still can be useful these days is if you having some product/library/script that is optimized to a specific PHP version (uses PHP v4 syntax for classes, PHP5-deprecated functions etc etc) -- for example, FirePHP.

I know it is a littlebit offtopic, but do you or anyone else know how to set it up?

I don't know the easy way of doing it in WAMP (never used it myself -- but it may have some nice & easy to use GUI for that), but all you need is to edit Apache's config file & restart it.

Find httpd.conf (the main config file for Apache), search for this kind of line:

AddType application/x-httpd-php .php

Just add desired extension to that list, e.g.:

AddType application/x-httpd-php .php .phtml .inc .php5

For additional details please consult Apache manual ( http://httpd.apache.org/docs/current/mod/directives.html ) or just google it -- there are plenty of instructions how to do it for Apache (look for "how to install php on apache").

I did not know PHPStorm was Webstorm + PHP, it is possible to pay for a upgrade from webstorm 3.0 to PHPStrom ?

Well ... this info is clearly written on PhpStorm product page as well as FAQ pages. But in any case: please contact sales describing your situation -- they should help you there: sales@jetbrains.com

0
Comment actions Permalink

Thank you for the information!

I tought the PHPStorm IDE only worked with these php5 and php4 extensions, because the php exstension was not available for me,
but after chaning the settings it is now showing up! :)

I would like to give you points for answering, I noticed it on other topics. How can I do that?

0
Comment actions Permalink
I would like to give you points for answering, I noticed it on other topics. How can I do that?

I do not think it is possible to convert "normal" forum thread to a "question" type after it was answered. But you can try editing your first post in this thread -- look for "Edit thread" link on right-hand side.

0

Please sign in to leave a comment.