wampthing Posted January 23, 2005 Share Posted January 23, 2005 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. Quote Link to comment Share on other sites More sharing options...
Deverill Posted January 23, 2005 Share Posted January 23, 2005 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. Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted January 23, 2005 Share Posted January 23, 2005 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. Quote Link to comment Share on other sites More sharing options...
wampthing Posted January 23, 2005 Author Share Posted January 23, 2005 Thanks guys, Ill check out the link to the tutorial. I appreciate your help. Quote Link to comment Share on other sites More sharing options...
boxturt Posted January 23, 2005 Share Posted January 23, 2005 The Abyss web server is very handy (aprelium.com) for this but pay special attention to the docs for setting up your file hierarchy. Quote Link to comment Share on other sites More sharing options...
rnmcd Posted February 17, 2005 Share Posted February 17, 2005 Is there an editor that you would recommend that ALSO interprets php includes? thanks. Quote Link to comment Share on other sites More sharing options...
TCH-RobertM Posted February 17, 2005 Share Posted February 17, 2005 rnmcd , take a look at this Thread there are many discussed here Quote Link to comment Share on other sites More sharing options...
TCH-Don Posted February 17, 2005 Share Posted February 17, 2005 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. Quote Link to comment Share on other sites More sharing options...
rnmcd Posted February 17, 2005 Share Posted February 17, 2005 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. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted February 17, 2005 Share Posted February 17, 2005 Yes, if you want to execute the PHP files. Quote Link to comment Share on other sites More sharing options...
matman Posted February 17, 2005 Share Posted February 17, 2005 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). Quote Link to comment Share on other sites More sharing options...
TCH-Dick Posted February 17, 2005 Share Posted February 17, 2005 In Dreamweaver MX and newer, it WILL show any HTML in the include file, but of course dynamic PHP stuff won't show up. I use Dreamweaver MX to create dynamic PHP pages and can view them when using Live View. Quote Link to comment Share on other sites More sharing options...
matman Posted February 18, 2005 Share Posted February 18, 2005 Point taken. I'll have to check out that tutorial. Quote Link to comment Share on other sites More sharing options...
jnull Posted March 4, 2005 Share Posted March 4, 2005 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. Quote Link to comment Share on other sites More sharing options...
TCH-Tim Posted March 4, 2005 Share Posted March 4, 2005 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 Quote Link to comment Share on other sites More sharing options...
rnmcd Posted March 4, 2005 Share Posted March 4, 2005 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? Quote Link to comment Share on other sites More sharing options...
jnull Posted March 4, 2005 Share Posted March 4, 2005 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. Quote Link to comment Share on other sites More sharing options...
sweetlati Posted January 28, 2013 Share Posted January 28, 2013 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? Quote Link to comment Share on other sites More sharing options...
jnull Posted January 28, 2013 Share Posted January 28, 2013 @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.com/books/phpmysql5/ Quote Link to comment Share on other sites More sharing options...
sweetlati Posted January 29, 2013 Share Posted January 29, 2013 Thanks i just can't afford it now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.