Forums

PHP

This topic is locked

Newbie to PHP, stumbler with Dreamweaver

Posted 05 Oct 2005 05:26:59
1
has voted
05 Oct 2005 05:26:59 Erik Ritzman posted:
I have been using StudioMX2004 for some time now, primarily to find pages I like, download them, open them with DWMX2004, and editing them to do what I want. I have built my whole website www.snaprider.com by doing this, and coded a bit in HTML from what I've learned.
Now, I'm interested in switching from Blogger to WordPress as my "blog" tool, however it is based on PHP. "No problem" I thought, I'll just install an Apache Server, PHP, and MySql on my machine, run them from "localhost" and then edit stuff with Dreamweaver, and learn as I go. {bursts into hysterical laughter}
OK... here is where I need some help...
When I code something in DW with "Split view" I used to be able to see the code, and the result at the same time with my HTML edits. This allowed me to adjust things and in essence get a WYSIWYG feel. When I code something such as a layer that has PHP in it though, all I get is a little PHP icon in the "Design view" ....this isn't good. If I can't see the space my PHP callout uses, how can I arrange my stuff around it?
Is this a "feature", or am I not doing something right?
Secondly, when I do this, if I set it up as an ".html" file, my PHP doesn't display when I view the page in my browser (just trying to display PHP info in the middle of the page with HTML features around it such as background image, and text; using "?php phpinfo(); ?" {inside <> of course} to pull PHP info)
Your assistance would be appreciated, as well as any links to free tutorials on using/developing with PHP. Thanks, Erik

Edited by - eriksmiles on 05 Oct 2005 05:27:48

Replies

Replied 08 Oct 2005 03:17:48
08 Oct 2005 03:17:48 Tracy Sweder replied:
Hi Erik,

In DWMX2004, towards the top of the screen where you can toggle between Code, Split & Design views - you should see a little Lightening Bolt to the right of these options. Hovering over it should cause you to see the words "Live Data View" - if you click on it your view should be updated to what would be seen in the browser. Now, I've been testing my pages on an actual Server that I FTP everything up to - so I haven't used the Live Data View much as the layout inside DW's Design View isn't always accurate with the Div placements so I view it in both IE and FireFox to make sure everything is where I want it - and the proper elements are being called through the script - but the Live Data View works well if you just want to see that the info you are pulling into the page with PHP is actually getting pulled in <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Hope that helps,
MommaTC

Replied 12 Oct 2005 16:11:21
12 Oct 2005 16:11:21 Roddy Dairion replied:
Ok am afraid its not that simple. If you use dreamweaver to code in php you won't see any output except php icon. Live data won't work either don't ask why its one of the mysteries that i can't resolve using dw.
If you save a page that contain php coding as html it will never work. If you page has just a little bit of php you will have to save you page as ".php".
Hope i manage to help.
Roddy

Reply to this topic