Welcome visitor
* Login
* Register
It is currently July 23rd, 2019, 7:20 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Server Side » PHP



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Comment symbols not working!!!
PostPosted: March 24th, 2009, 11:57 pm 
User avatar

Posts: 70
I got this script from the php manual, and im trying to do some modifications but for some reason the "/*" and "*/" comment symbols are not working. This is what i have, i added the symbols at the beginning and the end. Any help is well appreciated.
/*<?php
// The message
$message = "Line 1\nLine 2\nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);

// Send
mail('caffeinated@example.com', 'My Subject', $message);
?>*/


Top
 Profile  
 
  Re: Comment symbols not working!!!
PostPosted: March 25th, 2009, 12:12 am 
User avatar

Posts: 86
/* and */ are PHP symbols, and when you type them before you indicate that the script is on PHP language,
e.g.  /*<?PHP
PHP cant produce the expected result, PHP should begin first,
e.g. <?PHP/* this does work


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Server Side » PHP


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron