Mike
Mike

Reputation: 755

Komodo Edit and localhost

Having Windows7x64, WAMP server and Komodo Edit, I want to open in browser via localhost local file c:\wamp\www\site1\index.php with simple phpinfo(); inside. - And yes - I did mapping in Edit - Preferences - Mapped URIs ( http://localhost/site1 corresponds to "c:\wamp\www\site1" ). - However, in browser I see "file:///C:/wamp/www/site1/index.php". - Does someone here know how to overcome this? - It all works perfectly in PhpStorm, Netbeans, phpDesigner and Codelobster... - But they are all not free and therefore I would like to achieve this in Komodo Edit.

Upvotes: 2

Views: 1084

Answers (1)

Paul Sweatte
Paul Sweatte

Reputation: 24617

Use a more generic URI mapping:

file:///C:/wamp/www/

maps to:

http://localhost/

Otherwise, use the "Properties and Settings" preference for the index.php file:

  • Go to the "Edit->Current File Settings" menu
  • Customize the "Preview URL" to be

    http://localhost/site1
    

References

Upvotes: 1

Related Questions