Jump to content

Recommended Posts

Greetings

 

I'm using dreamweaver as IDE to PHP and I need to use inc files, but all I can see is black code. The code is hard to understand. How can I turn on the php syntax highlight for inc files on DW(if this is possible)?

 

Thank you very much

 

Sérgio

You are going to have to go behind the scenes in your dreamweaver cofiguration files and set it up yourself. DWMX is semi-open source, with a lot of the program run by javascript and XML...open DWMX and go the help section and look up customizing dreamweaver, it is very powerful and fantastic, you can even set it to have people enter a password in order to use the program, if you are fluent with javascript...

 

anyway you will have to hand-code this option in about 3 or 4 different XML files. One suggestion is before you make changes, make a backup of the original, because if you screw it up, the program will fail...

 

BS ;)

  • 2 weeks later...
  • 3 weeks later...

You shouldn't name your include files like "file.inc"

 

try naming them "file.inc.php" .. problem solved. :) no reason why you should name them .inc over .inc.php

 

Also if you leave your "file.inc" files in the web directory people will be able to view the source by going to www.yoursite.com/file.inc and therefore this is a security issue epesically if you have database username and passwords in there.

 

If you still want to use the .inc naming convention make sure the include files are in a folder that is not accessable via a browser. Arbritary file paths is not a deterent to a hacker.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.