Jump to content


Photo

Php Includes & Dreamweavermx


  • Please log in to reply
19 replies to this topic

#1 wampthing

wampthing

    Crazy Uncle Dave

  • Members
  • PipPipPipPip
  • 409 posts

Posted 23 January 2005 - 04:56 PM

I have been messing around with PHP includes. I am just starting to learn, with some success. Specifically I am trying to include things like the menu bar at the top, etc.
I have uploaded my files and gotten it to look right on the web, but the Design view (Not the PREVIEW in explorer) seems to not show anything under the PHP Include. It will show a place for the include, but everything under it is missing. Anyone have any Ideas? DO I just need to learn to do it all by hand and not mess with Dreamweaver? Please say no.
What I am trying to do is get away from using frames, but make the site updating easier.
Dave Jensen (Wampthing)
~I'm not as confused as you think I am... on the other hand, maybe I'm not~


#2 Deverill

Deverill

    Immediate Family

  • Members
  • PipPipPipPip
  • 3,307 posts

Posted 23 January 2005 - 05:17 PM

I use DreamWeaver (DW) and PHP includes and the unfortunate thing is that DW can't interpret the PHP commands so it sticks in the PHP placeholder. You could look at the whole testing server thing in DW but sometimes it's just easier to upload it and view the page to see if it comes out the way you want.

Another thing you can do is to put a web server on your PC that understands PHP and view the pages locally. One server that has been recommended in this forum before is the Abyss web server. It was free but I'm not sure about the current version. Anyway, you can set up your PC as a web server and have it "serve up" the pages, interpreting PHP as it goes. You can do a search on the forum for Abyss and find more info.
"A winner is simply willing to do what a loser won't."

#3 TCH-Dick

TCH-Dick

    General Manager

  • Admins
  • PipPipPipPip
  • 5,891 posts

Posted 23 January 2005 - 05:28 PM

You need to create a "site" to be able to use the Live Data View in DW. If your not sure how to so this take a look at the PHP and Dreamweaver MX Video Tutorials.

If you already have a 'site' created the connect to it and hit the Live Data View icon.
Attached File  livedataview.jpg   3.66KB   248 downloads

Dick DeVance
General Manager
TotalChoice Hosting, Inc
dick@totalchoicehosting.com


Posted Image


#4 wampthing

wampthing

    Crazy Uncle Dave

  • Members
  • PipPipPipPip
  • 409 posts

Posted 23 January 2005 - 05:50 PM

Thanks guys, Ill check out the link to the tutorial. I appreciate your help.
Dave Jensen (Wampthing)
~I'm not as confused as you think I am... on the other hand, maybe I'm not~


#5 boxturt

boxturt

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,356 posts

Posted 23 January 2005 - 06:19 PM

The Abyss web server is very handy (aprelium.com) for this but pay special attention to the docs for setting up your file hierarchy.
- Ty

Guitar Lessons in Connecticut

"After silence, that which comes nearest to expressing the inexpressible is music." - Aldous Huxley
"Imagination is more important than knowledge. Knowledge is limited, Imagination encircles the world." - Albert Einstein

#6 rnmcd

rnmcd

    Immediate Family

  • Members
  • PipPipPipPip
  • 464 posts

Posted 16 February 2005 - 07:37 PM

Is there an editor that you would recommend that ALSO interprets php includes?

thanks.

#7 TCH-RobertM

TCH-RobertM

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,228 posts

Posted 16 February 2005 - 08:08 PM

rnmcd , take a look at this Thread
there are many discussed here :clapping:

#8 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 16 February 2005 - 08:18 PM

I think to see the includes on your computer you will need to install apache web server with php

For php editors here is a roundup of editors with reviews.

#9 rnmcd

rnmcd

    Immediate Family

  • Members
  • PipPipPipPip
  • 464 posts

Posted 17 February 2005 - 10:35 AM

I think to see the includes on your computer you will need to install apache web server with php

For php editors here is a roundup of editors with reviews.

<{POST_SNAPBACK}>


So, as Don mentioned, regardless of editor (whether it is Dreamweaver or PHP Designer 2005) I would still need to install php and Apache Web Server on my computer, right?

Thank you.

#10 TCH-Bruce

TCH-Bruce

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 20,149 posts

Posted 17 February 2005 - 11:18 AM

Yes, if you want to execute the PHP files.

Bruce Richards
Forum Moderator
TotalChoice Hosting, Inc.
Webhosting by Total Choice Web Hosting - General Support Forum

I am a Forum Moderator. While I can assist in answering most of your hosting related questions, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.


#11 matman

matman

    Distant Family

  • Members
  • PipPipPip
  • 164 posts

Posted 17 February 2005 - 01:03 PM

In Dreamweaver MX and newer, it WILL show any HTML in the include file, but of course dynamic PHP stuff won't show up. Includes are one of the very few PHP things that Dreamweaver does actually read and do something with, at least to show any HTML stuff in the include.

I use this feature to create consistent headers, footers, or navigation bars -- all the HTML for these is in a seperate file which is included via PHP into the actual pages; that way I only have to edit one file to update the navigation bar. I prefer this to using Dreamweaver templates, and the navigation bar will show up in design view on Dreamweaver (although you can't edit it without opening up the actual include file).
MATMAN
"Where does he get those wonderful toys?"

professional stock photos

#12 TCH-Dick

TCH-Dick

    General Manager

  • Admins
  • PipPipPipPip
  • 5,891 posts

Posted 17 February 2005 - 05:39 PM

In Dreamweaver MX and newer, it WILL show any HTML in the include file, but of course dynamic PHP stuff won't show up.

<{POST_SNAPBACK}>

I use Dreamweaver MX to create dynamic PHP pages and can view them when using Live View.
Attached File  mxlive.jpg   103.96KB   314 downloads

Dick DeVance
General Manager
TotalChoice Hosting, Inc
dick@totalchoicehosting.com


Posted Image


#13 matman

matman

    Distant Family

  • Members
  • PipPipPip
  • 164 posts

Posted 18 February 2005 - 04:06 PM

Point taken. I'll have to check out that tutorial.
MATMAN
"Where does he get those wonderful toys?"

professional stock photos

#14 jnull

jnull

    Immediate Family

  • Members
  • PipPipPipPip
  • 247 posts

Posted 04 March 2005 - 12:06 PM

Rather than installing apache, etc., you can also download for a 30 day trial, and then purchase for about $20 SOKKIT. This gives you space on your local computer to run PHP code to test prior to uploading to your web server.
LongviewNET, LLC
www.longviewnet.com

#15 TCH-Tim

TCH-Tim

    Immediate Family

  • Members
  • PipPipPipPip
  • 1,137 posts

Posted 04 March 2005 - 12:29 PM

Rather than installing apache, etc., you can also download for a 30 day trial, and then purchase for about $20 SOKKIT.  This gives you space on your local computer to run PHP code to test prior to uploading to your web server.

<{POST_SNAPBACK}>

Jim, this is the coolest thing I've seen all day. Took me less than 20 minutes to download, install, and get my site up and running on my local machine. Thanks for the tip.

-Tim
Tim Hodge
Operations Manager
Total Choice Hosting, LLC

TOS and AUP - have you read them?

Chat me up:
AIM: tchgurutim
Yahoo: tchgurutim
ICQ: 369396726

#16 rnmcd

rnmcd

    Immediate Family

  • Members
  • PipPipPipPip
  • 464 posts

Posted 04 March 2005 - 02:28 PM

you can also download for a 30 day trial, and then purchase for about $20 SOKKIT.  This gives you space on your local computer to run PHP code to test prior to uploading to your web server.



How different is this from Live View that Dick mentioned earlier?

#17 jnull

jnull

    Immediate Family

  • Members
  • PipPipPipPip
  • 247 posts

Posted 04 March 2005 - 02:42 PM

you can also download for a 30 day trial, and then purchase for about $20 SOKKIT.  This gives you space on your local computer to run PHP code to test prior to uploading to your web server.



How different is this from Live View that Dick mentioned earlier?

<{POST_SNAPBACK}>



I don't use Dreamweaver as my primary tool... so I could not answer that question for you in comparisoin.

SOKKIT basicly creates a PHP enabled web server on your local computer, where you can then place your PHP pages and run as if they were on a web server, per se.
LongviewNET, LLC
www.longviewnet.com

#18 sweetlati

sweetlati
  • Members
  • 2 posts

Posted 28 January 2013 - 04:08 AM

Hello... jnull i registered to here only to ask about this program, i know it's abit late not sure if you will reply me or even using this forum, i'm confused the same as the author of this topic, looking for a programa to make php easy and this sokkit sounded brilliant could help me, you or somebody?



#19 jnull

jnull

    Immediate Family

  • Members
  • PipPipPipPip
  • 247 posts

Posted 28 January 2013 - 07:29 AM

@sweetlati - It does look like Sokkit is no longer available -  http://www.sokkit.net/ - unfortunate, because it was a well working resource for PHP that didn't require a web server.  I would recommend, if you're wanting to learn PHP - that you get a domain name, setup a hosting account here with TCH, then purchase this book in paper or digital - and start coding through the examples in it.  You'll be PHPing in no time.

 

Book: http://www.sitepoint...ooks/phpmysql5/


LongviewNET, LLC
www.longviewnet.com

#20 sweetlati

sweetlati
  • Members
  • 2 posts

Posted 28 January 2013 - 10:53 PM

Thanks i just can't afford it now.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users