How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Robert Preston Your Own Question

Robert Preston
Robert Preston, Programming Tutor
Category: Programming
Satisfied Customers: 9561
Experience:  PHP, MySQL, XHTML, CSS, SEO, Drupal, Joomla, Wordpress, C++, C#, etc
14124282
Type Your Programming Question Here...
Robert Preston is online now
A new question is answered every 9 seconds

How can i disable a php code from being read without removing

This answer was rated:

How can i disable a php code from being read without removing it?
Hi,

You can comment PHP code by doing something like this:

<?php

/* THIS IS A COMMENT BECAUSE

echo("This will not be run because it's inside of a comment");

*/

?>

so anything inside of the /* */ will not be executed.

Thanks,
Rob

Edited by Robert Preston on 10/14/2009 at 2:06 PM EST
Robert Preston and other Programming Specialists are ready to help you