Guest Posted February 4, 2005 Posted February 4, 2005 As title really. I do not intend offering international shipping, so these are really needless. How can I remove them from all the pages on my site? Cheers Chris
hobbzilla Posted February 4, 2005 Posted February 4, 2005 Comment them out from being loaded in includes/column_right
Guest Posted February 4, 2005 Posted February 4, 2005 Many thanks Zilla. I'm familiar with commenting in HTML but not in PHP. How can I do it? I've found the line in column_right.php: { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } Can I do it sucessfully in notepad? =) C
mocat Posted February 6, 2005 Posted February 6, 2005 I'm familiar with commenting in HTML but not in PHP. How can I do it? I've found the line in column_right.php: { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } Can I do it sucessfully in notepad? =) C I came in with the same question. After a quick google search, it appears from this page on PHP basics at PHP Basics: When inside PHP tags, you can add comments: * /* comment */ * # comment * // comment (everything until the end of the line will be ignored in the two last cases; in the first case, the comment can span multiple lines). I think any text editor could be used that works cleanly (that is, one that doesn't add extra characters or code as would MS Word). -Mocat (I know just enough to get into trouble...)
Jack_mcs Posted February 6, 2005 Posted February 6, 2005 I realize the asterisk's in your example probably came from the original article but, just to avoid confusion, the leading * should not be included. So to comment out a line, you would use //, not *//. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
mocat Posted February 6, 2005 Posted February 6, 2005 Correction, with bullets removed: /* comment */ # comment // comment (everything until the end of the line will be ignored in the two last cases; in the first case, the comment can span multiple lines).
Recommended Posts
Archived
This topic is now archived and is closed to further replies.