Using PHP files in Dreamweaver?

When I create a new PHP file in Dreamweaver the code is the same as an HTML file, shouldn't be different? with php commands or something?
Thanks

When I create a new PHP file in Dreamweaver the code is the same as an HTML file, shouldn't be different? with php commands or something?
Not unless you add them.  PHP is a server-side programming language.  PHP web pages are no different than HTML pages except that they can parse data on the server.  With the right include statements or commands, PHP or ASP pages can publish information from server-side databases to form a dynamically driven web site.
BUILDING DYNAMIC SITES in DW
Set up a local testing server in Adobe Dreamweaver CS4
http://www.adobe.com/newsletters/edge/december2009/articles/article2/index.html
Setting up a PHP development environment for Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_05.html
Building your first dynamic website – Part 1: Setting up your site and database connection
http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com

Similar Messages

  • Can't view Wordpress PHP files in Dreamweaver CC.

    Mac. MAMP.
    I have downloaded my full site hosted on xxxx into MAMP htdocs.
    Download directly from root public_html on host.
    I keep getting "Dynamically-related files could not be resolved because the site definition is not correct for this server"
    Even if I go "live view" and set - Web URL to: www.indochinaexplorers.com (my site) - instead of http://localhost, it comes up with a lot of PHP boxes.
    Been through all tutorials for more than a week.
    Have been through all possible settings and configurations under "Manage Site"
    Did a Test - New PHP page. Same thing, it does not show, design or live view.
    So stuck,
    Thanks Peter

    I have the same issue and none of the alleged Guru's that answered have provided anything useful.  Solid Web Design is about workflow, which could lead to innovation if people would stop reverse innovation language...Dreamweaver could be a viable wordpress solution if it worked as it's supposed to. CC is a bust as the focus has shifted to mobile first. 
    There are no "real pages" for you to edit in DW; just code fragments.
    Wordpress is dynamically driven but this is untrue.  Every PHP file in a theme has structure and is a "real page".  Fragments have to be in a "file" to be called, they are not called out of thin air.  If I want to style page.php, it cannot be done without first adding selectors.  #mainContent for example. The only thing php does is add dynamic functionality.  Page.php can be altered and saved as Page_fullwidth.php, Page_Music.php ,Page_webDesign.php and they can all have a different layout in the same theme.  Else there would be no templates to choose from in the static page section of the WP Admin area. 
    Themes drive the appearance and functionality of your WP site.  If you need a new look, find a different Theme and install it from your WP Dashboard.
    How does this help?
    Unless you are very familiar with PHP code and more specifically the PHP code WP uses, you will not have good results working in DW.   You really must use the WP Dashboard to manage your content, Themes, and plugins.
    This has nothing to do with the issue.  The issue is Dreamweaver simply does not allow propper editing of wordpress sites in a dynamic environment.  No one ever said they didn't know anything about php, creating wordpress themes, plugins, and so on...
    Dear next genius..Since the question has already been asked, I won't ask it again, but the original inquiry is my issue as well.  If you have figured out how to make this work, please respond, if not, please don't.
    Mac

  • Can't edit php files in dreamweaver, access to site root denied

    Can anyone help me please?
    I've recently purchased a Macbook Pro after my PCs failed on me and also had to get a Creative Suite Web Premium. I have always used Dreamweaver to edit my php files. In Windows XP, I had to run the programme to run as an Administrator to edit php files. Now I have not a clue how to do it on Mac! Each time I tried to save a php file, a dialog box appear stating: Access to Macintosh
    HD:Library:Webserver:Documents:Untitled-1.php was denied
    Regards
    Sinead

    You shouldn't have to do that on the Mac or Windows.  Only thing I could find that would suggest loading files from there is a tutorial by David.  And although I would normally agree with him, keeping the files in a system library folder for a testing environment is really unnecessary.  I'd recommend moving them into your /Users/{username}/Sites folder.  There is already a modification to the apache server to recognize that as http://localhost/~{username}.  Or install something like MAMP that is in the Applications folder.

  • Display of PHP files in Dreamweaver

    After updating to Dreamweaver 8.0.2, I'm finding that I can't
    view php files in either the Split or Design modes. It will only
    appear in the code mode and won't let me select a browser to
    display either.
    Any suggestions?

    Open Preferences (Edit > Preferences) and switch to the
    File
    Types/Editors category. Make sure that .php (or whatever file
    extension
    you are using for your files) is *not* specified in the "open
    in code
    view" field.
    The name of this field should be "open only in code view".
    HTH,
    Randy
    > After updating to Dreamweaver 8.0.2, I'm finding that I
    can't view php files in
    > either the Split or Design modes. It will only appear in
    the code mode and
    > won't let me select a browser to display either.

  • How to Use PHP Files and .tpl files

    I have taken a course and it includes a resource section with templates that I can use. These templates are squeeze page ones and inside the folder are index.php, config.php and a whole lot of .tpl files that open up in empty Stickies on my Mac.
    Can someone explain how to use these files. When I open them in Dreamweaver I see code related to the php files but I can't browse the index.php file in a browser to see what the so called sqeeze page looks like.
    Yikes I'm really lost here.
    thanks
    John

    ORA-06401, 00000, "NETCMN: invalid driver designator"
    Cause: The login (connect) string contains an invalid driver designator.
    Action: Correct the string and re-submit.
    The //ip:port/sid connect string will only work with 10g clients.
    Check your tnsnames.ora file. Does the file have control characters or missing carriage-return characters ? (Maybe you ftp'd the file from a unix box ?)
    I would suggest that you create a new tnsnames.ora - hand edit it (don't copy the old one). If you have sqlplus client - try using it to connect to the remote DB first.
    The instructions for connection to a local or remote DB are all the same (when using plain OCILogon) because the connection is made over TCP.

  • Using FH9 files in dreamweaver

    I have an .fh9 file that i want to insert in dreamweaver. I
    need to know if .fh9 files are the correct format to use for web
    pages or should a different format be used.

    You might want to check out soe basic web authoring tutorials
    at someplace like webmonkey.com...or start with the basic tutorials
    in DW.
    But to answer your question, no, you don't want to use FH9
    files in DW. Most web browsers can only display GIF and JPG images,
    but you could output your FH9 file as something more usable. OR you
    could like to the FH9 file for people to download.
    Hope this helps!

  • PHP files in Dreamweaver

    Hi,
    I'm wondering if anyone has been unable to open php files.
    When I try to open them Dreamweaver freezes. I have reinstalled CS3
    and deleted all of the local files and downloaded them all over
    again from the remote site but nothing seems to fix the
    problem.

    Excellent! I was wondering how to solve that since it was
    happening to
    me as well, i was even working on notepad++ in those files
    with PHP and
    just saw this thread.
    Thank you so much for your answer Alan that definitively
    solve the
    problem so back to DWCS3 again :)
    Alan wrote:
    >
    >> It happened to me on two separate computers on the
    exact same day. It was the
    >> same day CS4 was released and a Icon showed up in my
    Cs3 telling me to go get
    >> it. As soon as this icon appeared, my PHP files
    started crashing Dreamweaver.
    >> Search the net, many people encountered the exact
    same thing that same week.
    >>
    >> Weird, but it happened.
    >>
    >
    > Yes- but it had a different cause. Deleting the one
    corrupt file is less
    > drastic that deleting or renaming the entire
    Configuration folder.
    >
    > TechNote
    >
    > Dreamweaver CS3 crashes after Daylight Savings Time ends
    >
    > Issue
    >
    >
    > Adobe Dreamweaver CS3 crashes when working with certain
    PHP or ASP files in
    > Code view or Design view after the clock goes back one
    hour, when Daylight
    > Savings Time ends. The crashes only occur when selecting
    certain lines in
    > Code view, or selecting certain objects in Design view.
    The crashes only
    > occur in files that have PHP or ASP code, intermingled
    with HTML code. The
    > crashes do not occur in Dreamweaver 8 or earlier (Ref.
    229536).
    >
    >
    > Reason
    >
    >
    > The Dreamweaver CS3 WinFileCache-AD76BB20.dat file has
    been corrupted by the
    > time change.
    >
    >
    > Solution
    >
    >
    > 1. If Dreamweaver is open, quit the application.
    > 2. Delete the WinFileCache-AD76BB20.dat file from the
    Dreamweaver user
    > configuration folder. Note that on Windows, the
    Application Data and AppData
    > folders are hidden by default, so verify that your
    Windows Explorer folder
    > options are set to View Hidden Folders. The location of
    this file is as
    > follows:
    > * Dreamweaver CS3 on Windows Vista:
    > C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver
    9\Configuration
    > * Dreamweaver CS3 on Windows XP:
    > C:\Documents and Settings\[username]\Application
    Data\Adobe\Dreamweaver
    > 9\Configuration
    > 3. Restart Dreamweaver.
    >
    >
    > Keywords
    >
    > Code/Design view, Daylight Savings Time, Dreamweaver,
    crashes
    >
    > TechNote Details
    > Last Update: 11-05-2007
    > ID: kb402776
    >

  • Further details on Unable to save php file in dreamweaver.

    setting up a php site in dreamweaver.
    I am taking a class in PHP. I am following instructions to set up my work environment in Dreamweaver. I am using an Imac, dual core, running snow leopard, and have loaded xampp onto my machine. Dreamweaver version CS3.
    Class instructions say to set up my local site with following path: Applications/xampp/htdocs. My DW wants me to use : instead of /, so when I set up the local site, this is what my path looks like. Macintosh HD:Applications:XAMPP:xamppfiles:htdocs:
    When I try to save my first page, as a .php, I get the following error message: Access to MacintoshHD:applications:XAMPP:xamppfiles:htdocs:hello.php was denied. I get this error message on both of my macs, so it is a problem in my path, not individual to my machine.
    There is something wrong with my path, but I don't know what it is. I cannot create path with / instead of :, DW won't allow it. I tried creating a path exactly as instructed in the lesson, but that did not help. I don't know what I am missing because I am just starting so I don't know what to look for. Any thoughts? Thanks in advance....

    You should setup the built-in php instead of xampp on Snow Leopard. Look here for more info
    http://DwFAQ.info/home.php?id=18
    Then when you setup your local site use HD_Name:Users:User_Account_Name:Sites:Website_Folder:

  • Why this site used php files in all the pages?

    Hola
    I download my friend's site and ALL the pages are in a folder with the file name index.php ... WHY?
    Example;
    Name of folder; gallery
    Inside this folder, a file with the name index.php
    Name of folder; contact
    Inside this folder, a file with the name index.php
    It has an "includes" folder with files for ;
    header.php, footer.php, content.php and functions.php
    and so on.
    Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    what is the purpose of using php in every single page?
    I have to tell you that my friend has a program call CKeditor and CKfinder to
    edited her website.
    Not sure if this is the reason why this site has been coded all of it with php files.
    I'm waiting impatiently for your responce

    >Now, this site has ONLY 7 pages, it's not like it's a monster site, so
    >what is the purpose of using php in every single page?
    The reason for using php extension or not has absolutely nothing to do with the size of the site. If the site uses dynamic pages, then the page need a dynamic page extension. Even sites without dynamic pages often use .php in anticipation of using them so the file names won't need to be changed down the road.
    Now, if your question is more about why they created separate directories for each page, it's probably so the url's can be accessed without including the file extension, Ex
    example.com/contact
    instead of
    example.com/contact.php

  • Cannot save a php file in dreamweaver:access denied

    I am taking a course in PHP. I am using the environment download XAMPP, and working directly in dreamweaver. My very first project is the traditional Hello World script, a simple echo command... When I go to save the file, Dreamweaver gives me an error message :"Access to Macintosh:Applications:XAMPP:htdocs:Hello.php  was denied."  No other file name works, even saving a simple page with nothing but premade code on it works... I am stuck and stumped.

    Hello Allen.
    I don't think Firefox supports the vCard format by default... But you may want to try this extension, as I think it's what you want:
    https://addons.mozilla.org/en-US/firefox/addon/6204
    I hope this helps.

  • Using iWeb files in dreamweaver

    Here's the deal. I built my website in iWeb, no problem. I upgraded my hard drive and backed up the files I uploaded (not using .mac) and now I can't just edit my site. iWeb won't open what it created and dreamweaver just opens up blank pages. What do I do?

    [quote]Working on a site from another machine also
    requires that the Domain file[/quote]
    I assume that is referring to working on another
    [mac] machine.
    Yes, it has to be another Mac with iWeb installed.
    It just seems wierd to me
    that someone can browse my site on-line..but i can't
    open it up. Why does it work that way?
    Your site on-line is just standard html and can be opened and edited with any text editor. iWeb's inability to open html is presumably related to the programming technology it uses to generate html from its internal templates -- just the way this particular app works.

  • Flash:  Video--  Flvplayback--using SWF file in dreamweaver.

    I have placed a video into flash cs3 and made the swf file
    using the flvplayback, and i have put the swf or published it
    ...putting it in dreamweaver, I can see the video and hear the
    sounds when I preview in firefox or iexplore however once I put in
    my server I cannot see anything or hear anything. It does not show
    up,. Can anyone help me with this problem. I just took the SWF file
    and uploaded it through dreamweaver using the insert, media,, flash
    and placed in my template.

    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','1000','height','400','src','descarga
    total1','quality','high','pluginspage','
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','descarga
    total1' ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="1000" height="400">
    <param name="movie" value="descarga total1.swf" />
    <param name="quality" value="high" />
    <embed src="descarga total1.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="1000"
    height="400"></embed>
    </object>

  • Using InDesign Files with Dreamweaver

    For several years my designers have produced layered
    Photoshop files which I then import into ImageReady. In ImageReady
    I produce the slices, background images, etc.
    I have a new designer which likes to use InDesign for Website
    Design. I am looking for help from the community regarding the use
    of InDesign files as raw material for website development. Do I
    need to get InDesign or can I import the file into ImageReady?
    Your help is appreciated.

    RobfromGR wrote:
    > I have a new designer which likes to use InDesign for
    Website Design.
    That's nice for him; but what about YOU?
    If your workflow does not include InDesign, then his
    shouldn't for your
    jobs; he's working for you, after all. And I've never comes
    across a web
    designer using InDesign for web work (print work, yes - all
    the time. It's
    good for that...). I usually work in Fireworks, but I have
    one client who
    likes to work from Photoshop to match with their in-house
    designers. For
    that client, I use Photoshop.
    So... Just tell him the formats you support, and leave him to
    sort out how
    he gets them for you. If you need the source documents as
    well, then dictate
    them also.
    Regards,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • Using PHP in a dreamweaver site? Help!

    Hello,
    I have a question in regards to using a PHP script in my
    website. Do I have to convert the page away from XHTML? If there is
    anyone that could help I would be very grateful.
    Thanks a million!!!
    John

    PHP is a server scripting language. HTML is something
    rendered by a local
    browser. The two never intersect! So, as David says, no....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jbravo1224" <[email protected]> wrote in
    message
    news:f2aknv$560$[email protected]..
    > Hello,
    >
    > I have a question in regards to using a PHP script in my
    website. Do I
    > have to
    > convert the page away from XHTML? If there is anyone
    that could help I
    > would be
    > very grateful.
    >
    > Thanks a million!!!
    >
    > John
    >

  • Dreamweaver templates not updating *.php file

    Hello everyone,
    I have been given an exisiting website to update that uses
    Dreamweaver templates.
    I have made the changes successfully within the content.dwt
    file, saved it, and then uploaded both the new content.dwt file and
    the related *.htm pages that were linked to it.
    After going to the website to double check the new pages I
    found a *.php file that uses the same template, content.dwt, but it
    never asked to update that particular file.
    So, I opened the *.php file in Dreamweaver and tried to apply
    changes from the content.dwt file to it using: Templates - Update
    current page, but no such luck. Since there is no code at the start
    of this file like the other *.htm files how do I "connect" it with
    the newly updated template. I tried making a small change on the
    content.dwt file so see what files would come up in the "do you
    wish to update..." list but for some reason the *.php file is not
    there.
    Perhaps the answer is fairly obvious to someone who has
    worked with Templates a lot but since I have just started working
    with templates I still have a large knowledge gap in this area.
    Any help would be appreciated.
    Many thanks
    Mr Zedd

    Can you post a link to the PHP page, please? This will allow
    me to see the
    HTML markup on it....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mr Zedd" <[email protected]> wrote in
    message
    news:eviqn8$ntm$[email protected]..
    > Hello everyone,
    >
    > I have been given an exisiting website to update that
    uses Dreamweaver
    > templates.
    >
    > I have made the changes successfully within the
    content.dwt file, saved
    > it,
    > and then uploaded both the new content.dwt file and the
    related *.htm
    > pages
    > that were linked to it.
    >
    > After going to the website to double check the new pages
    I found a *.php
    > file
    > that uses the same template, content.dwt, but it never
    asked to update
    > that
    > particular file.
    >
    > So, I opened the *.php file in Dreamweaver and tried to
    apply changes from
    > the
    > content.dwt file to it using: Templates - Update current
    page, but no such
    > luck. Since there is no code at the start of this file
    like the other
    > *.htm
    > files how do I "connect" it with the newly updated
    template. I tried
    > making a
    > small change on the content.dwt file so see what files
    would come up in
    > the "do
    > you wish to update..." list but for some reason the
    *.php file is not
    > there.
    >
    > Perhaps the answer is fairly obvious to someone who has
    worked with
    > Templates
    > a lot but since I have just started working with
    templates I still have a
    > large
    > knowledge gap in this area.
    >
    > Any help would be appreciated.
    >
    > Many thanks
    >
    > Mr Zedd
    >

Maybe you are looking for

  • Personal File Sharing with Fast User Switiching

    I have 2 users set up on the iBook. I want file sharing turned on for only one of the users and off for the other. Both are logged in. Any way to do this? It appears that personal file sharing is either on or off for all users.

  • Extraction:scripts of objects in database to a FILE

    Hello .... I m extracting the codes of objects(procedures,packages....) its working fine ...but for some objects its not entirely writing the lines from source say for one objects if there are 1000 lines its writing only 700 lines... declare v_handle

  • How to set the output list in alv

    hai all, i have copied the standard alv program into customized and the out put of customized have changed . but the output listy of this customized program is to be changed like standard program . please tell me how to do this i have setting the cur

  • Excise register in SD

    Dear All Which excise  register wil get updated on SD transaction,whether all invoices created will reflect in RG register or utilised part will get rfelected Can any one send screen shot of excise register My mail id is [email protected] Regards

  • My calendar on iPhone doesn't sync with my iPad or mac

    I have i cloud on all three of my apple devices. When I add to my calendar on my I Phone it doesn't syn to my Mac or I Pad. Help