can you display a php index file in dreamweaver?

by ronr
17 replies
  • WEB DESIGN
  • |
I bought a script WSO that let's you make simple websites by filling in blanks and uploading images.

I thought I could go into the index file (index.php) when it created a file and open it in Dreamweaver to make more modifications. But unfortunately the design part of the editor only shows 2 tags and nothing else. The 2 tags it shows are:

<td>
<tr>

I tried changing the extension to .htm but that didn't help.

Is there a way I can see it in design mode?

Even if I have to modify it temporarily in order to edit it then change it back it would sure help.

Thanks, Ron
#display #dreamweaver #file #index
  • Profile picture of the author webpeon
    hey ron trying to get a grip on what you are actually trying to achieve here but not always so easy via a forum using text..

    are you able to post some screenshots of what you are trying to achieve or drop me a line on skype or my sites contact form. I have some time to see if I can give you a hand
    Signature
    Web 2 Mobile
    The Future of The Web
    {{ DiscussionBoard.errors[6667068].message }}
  • {{ DiscussionBoard.errors[6667115].message }}
    • Profile picture of the author ronr
      Originally Posted by UMS View Post

      Try opening the file in a plain text editor.
      I can open it in a plain text editor but I can also see the code in Dreamweaver. I was just hoping to also be able to see it in design mode (wysiwyg) also so I could see my changes and so some visual editing.
      {{ DiscussionBoard.errors[6667347].message }}
  • Profile picture of the author webpeon
    Not saying its a bad program, what worries me about programs like that is you dont know how clean the code is and after multiple changes you may just end up with some really bad markup on your pages...

    A couple options for you that may help is to download and instal xampp and just run the entire site on your localhost and make changes live accordingly... or

    upload it to an actual host and modify it live that way
    Signature
    Web 2 Mobile
    The Future of The Web
    {{ DiscussionBoard.errors[6668045].message }}
  • Profile picture of the author shantanu
    You must go to the background part of the script coz index shows u the front end which is having only 2 parts........try to trace the bacground details from the index part. Take my advice too stop using dreamweaver and use notepad ++ it willg ive u a wide range of code handling techniques and make u familiar with codes.
    {{ DiscussionBoard.errors[6668257].message }}
  • Profile picture of the author ronc0011
    Actually the question you're asking is one I've been curious about for some time because I've been wanting to know whether or not to buy Dreamweaver. So the question is; does Dreamweaver have a built in testing web server with a php interpreter? and the answer is I don't believe it does. SO I think what you'll have to do is like "webpeon" suggest and install one of the WAMP packages. That's what I'm running is WAMPserver. This will install a compleat environment on your machine, PHP, Apache, and MySQL so then you'll be able to build your pages and then run them on your test environment. and display them in your web browser.
    {{ DiscussionBoard.errors[6669927].message }}
    • Profile picture of the author Brandon Tanner
      Dreamweaver does not have a built-in php interpreter, so you will need to install XAMPP or WAMP on your computer before you can view php files in Dreamweaver's design mode.

      Setting up a PHP development environment for Dreamweaver | Adobe Developer Connection
      Signature

      {{ DiscussionBoard.errors[6670077].message }}
      • Profile picture of the author ronc0011
        This is one of the major short comings of PHP/Apache/MySQL. It is in fact the thing I really love about ASP/C#/MSSQL you can build test and run the whole thing from your desktop and the leading or chief development tool i.e Visual Web Developer comes with a complete test environment built in Unfortunately the main reason for using PHP i.e. Wordpress has an unmatched support community mainly plug ins and such things. In other words there are so many things you will never have to write for yourself simply because someone else has already written one or three. You don't have to be a developer to incorporate a lot of very high end functionality in your Wordpress site. Of course , developing for Wordpress is a pain in the butt because you have to put all this other stuff on your machine
        {{ DiscussionBoard.errors[6671317].message }}
        • Profile picture of the author webpeon
          Originally Posted by ronc0011 View Post

          This is one of the major short comings of PHP/Apache/MySQL. It is in fact the thing I really love about ASP/C#/MSSQL you can build test and run the whole thing from your desktop and the leading or chief development tool i.e Visual Web Developer comes with a complete test environment built in
          Thats what I love about it too, you can build entire applications without even having an internet connection all on your PC - Sorry this doesn't help much.. hey ronc have you ever tried VS PHP on vis studio?
          Signature
          Web 2 Mobile
          The Future of The Web
          {{ DiscussionBoard.errors[6673252].message }}
  • Profile picture of the author scrapcode
    If your developing on a remote server, use Notepad++, it allows you to open files remotely, and when you save changes it automatically uploads the new file. Pretty nifty!

    What you're trying to do is get some WYSIWYG functionality from a PHP file and your final answer is: Learn a better way. I don't see many situations where this wouldn't mess up where the PHP code is injected. PHP is dynamic, the data will always change... Learn simple HTML, or at least learn what PHP needs to go where... Create your template in Dreamweaver as HTML, throw in the PHP, and save as what you need to.
    {{ DiscussionBoard.errors[6669985].message }}
    • Profile picture of the author Lloyd Buchinski
      Originally Posted by scrapcode View Post

      If your developing on a remote server, use Notepad++, it allows you to open files remotely, and when you save changes it automatically uploads the new file. Pretty nifty!
      That sounds interesting. How do you get it to log in to the server? Is there a plug in for that?
      Signature

      Do something spectacular; be fulfilled. Then you can be your own hero. Prem Rawat

      The KimW WSO

      {{ DiscussionBoard.errors[6790950].message }}
  • Profile picture of the author davidsbain
    Dreamweaver will show only html coded websites inside dreamweaver. To view php coded sites you need to install wamp server and then view the page on localhost. The reason for this is that html is coded with direct links to the content on the page whereas php is potentially pulling dynamic content from sql queries and needs the server and database to process the php part.

    Also you cannot just change the file type to html as the difference from html to php is in the coding and not just a file extension, think of it like this in html you can code your best selling product to appear at the top of the page but you would need to update the link every time the best selling product changed whereas with php you can ask the database to provide you with the best selling product and display it automatically any time someone visits your site, the code does a completely different action
    {{ DiscussionBoard.errors[6672928].message }}
  • Profile picture of the author supernoobice
    You will need to open the file as is in dreamweaver (.php) and after you do the changes upload it to you web server. You can also make a web server offline using your computer using XAMP.
    {{ DiscussionBoard.errors[6673197].message }}
  • Profile picture of the author jaasmit
    By dreamweaver you can just see your pages. You can also edit them.
    But when it comes about developing php files then you must have to install wamp or xamp whatever you prefer.
    {{ DiscussionBoard.errors[6674707].message }}
    • Profile picture of the author ronc0011
      Originally Posted by webpeon View Post

      Thats what I love about it too, you can build entire applications without even having an internet connection all on your PC - Sorry this doesn't help much.. hey ronc have you ever tried VS PHP on vis studio?



      I've see the product and visited their website but I'm not sure if it will install on VWD 10 express edition. Since it cost a $100 I'm may not be willing to experiment. I've seen a couple of review that were a little sketchy.
      {{ DiscussionBoard.errors[6676516].message }}
      • Profile picture of the author webpeon
        Originally Posted by ronc0011 View Post



        I've see the product and visited their website but I'm not sure if it will install on VWD 10 express edition. Since it cost a $100 I'm may not be willing to experiment. I've seen a couple of review that were a little sketchy.
        Just doesn't sound right to me lol - php and asp holding hands all friendly and stuff - nahhhhh!! I'm running vis studio 2010 pro, I'd have a play with it but my php skills are quite pitiful really, wouldn't be able to take it for a true test drive.
        Signature
        Web 2 Mobile
        The Future of The Web
        {{ DiscussionBoard.errors[6720749].message }}

Trending Topics