close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

commenting out

Thread began 8/10/2010 6:24 am by i.edwards384429 | Last modified 8/10/2010 10:57 am by Jason Byrnes | 707 views | 1 replies |

i.edwards384429

commenting out

Hi

just playing with a setup and trying to set one include for my local server and one for the remote so when I upload I can change the template and away I go.

The code I used is below is it correct as it does not appear to comment out

thanks

Ian

<?php
/*
include('C:/wamp/www/1stmodelagency/cms/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_localhost, $localhost, 'left_column_image' , 'left_column_image');
*/
?>
<?php
/*
include('/home/fhlinux128/1/1stmodelagency/cms/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_localhost, $localhost, 'left_column_image' , 'left_column_image');
*/
?>

Sign in to reply to this post

Jason ByrnesWebAssist

that appears to be correct, but you do not need to create two separate blocks, you could do it like this instead:

php:
<?php
//include('C:/wamp/www/1stmodelagency/cms/WA_CMS/addtosite.php');
include('/home/fhlinux128/1/1stmodelagency/cms/WA_CMS/addtosite.php');
echo 
WA_getCMSContent($database_localhost$localhost'left_column_image' 'left_column_image');
?>



the only thing that changes is the include line, the WA_getCMSContent will be the same on local or remote.


see the php manual for comments for more details.
language.basic-syntax.comments.php

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...