Tweaking 'Create a New Php Script' file

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Tweaking 'Create a New Php Script' file

    File > New > Create New PHP Script generates the same basic code everytime. How
    can I add a new line of code to that file so that everytime I create a new php
    doc, this new line appears? Any help is appreciated!

    jip Guest

  2. Similar Questions and Discussions

    1. PDF::Create (or alike) to create watermark for existing pdf file?
      Dear perl-ists: I tried out PDF::Create 0.01 (from cpan), and it is great. kudos, fabian. creates wonderful, clean, small valid pdf output. my...
    2. query tweaking
      Getting an error - Mike havent put in the extra column yet - just test running at the moment. Sql at the bottom. Language: Table...
    3. tweaking cf validation
      i want to edit the js validation for html cfforms. can anyone tell me where the file that contains the js is located? i need to comment out the...
    4. Tweaking cfchart
      I am trying to construct a scatter chart where points are displayed from 0.85 to 1.15, I also would like to control the distance between the points...
    5. sco 505 - create windoze exe file that will create a unix disk
      Hi, I wonder if this is possible, I want to put some files on a floppy disk from my SCO unix box, then I want that disk to be converted to a file...
  3. #2

    Default Re: Tweaking 'Create a New Php Script' file

    On 22 Apr 2005 in macromedia.dreamweaver.appdev, jip wrote:
    > File > New > Create New PHP Script generates the same basic code
    > everytime. How can I add a new line of code to that file so that
    > everytime I create a new php doc, this new line appears?
    In a standard install on Windows, the default document files are
    located in:

    C:\Program Files\Macromedia\Dreamweaver MX\Configuration\DocumentTypes\NewDocuments

    This is a MX install; I assume MX04 and DW/Macs would be similar. The
    file you want to edit is 'default.php'.

    --
    Joe Makowiec
    [url]http://makowiec.net/[/url]
    Email: [url]http://makowiec.net/email.php[/url]
    Joe Makowiec Guest

  4. #3

    Default Re: Tweaking 'Create a New Php Script' file

    jip wrote:
    > File > New > Create New PHP Script generates the same basic code everytime. How
    > can I add a new line of code to that file so that everytime I create a new php
    > doc, this new line appears? Any help is appreciated!
    You may also want to check out this extension as it'll allow you to
    quickly open any of the built in default documents for editing:
    [url]http://www.communitymx.com/abstract.cfm?cid=01E77[/url]



    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

  5. #4

    Default Re: Tweaking 'Create a New Php Script' file

    Thanks for the reply. Am I missing something or is there no link to download the extension for 'Edit Document Templates'??
    jip Guest

  6. #5

    Default Re: Tweaking 'Create a New Php Script' file

    jip wrote:
    > Thanks for the reply. Am I missing something or is there no link to download the extension for 'Edit Document Templates'??
    Did you click through the "More..." link?

    That should take you to this page:
    [url]http://www.communitymx.com/content/article.cfm?cid=01E77[/url]

    and the download link is at the bottom of the page.

    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* Guest

  7. #6

    Default Re: Tweaking 'Create a New Php Script' file

    Thanks for the feedback Joe. That was an easy fix.

    Do you know if its possible to add new documents in this folder and have them recognized by DW 04 for creating new docs?
    jip Guest

  8. #7

    Default Re: Tweaking 'Create a New Php Script' file

    On 22 Apr 2005 in macromedia.dreamweaver.appdev, jip wrote:
    > Thanks for the feedback Joe. That was an easy fix.
    >
    > Do you know if its possible to add new documents in this folder and
    > have them recognized by DW 04 for creating new docs?
    I honestly don't. DW's set of documents is far richer than I'll ever
    need, so I haven't seen the need to do it. You might look through the
    docs at this page:

    [url]http://www.macromedia.com/support/dreamweaver/extend.html[/url]

    At an offhand guess, it shouldn't be harder than creating the doc plus
    the support files you want and adding it; existing files should make a
    fine model. However, I'm unsure of the method of making DW recognize the
    addition.

    --
    Joe Makowiec
    [url]http://makowiec.net/[/url]
    Email: [url]http://makowiec.net/email.php[/url]
    Joe Makowiec Guest

  9. #8

    Default Re: Tweaking 'Create a New Php Script' file

    Oops, that was somewhat obvious! Too much coffee and moving way too fast. Thanks!
    jip Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139