PDA

View Full Version : Unexpected Character Error


msgotit
05-27-2005, 02:22 PM
So I am pretty new at creating pages to be used in vB so I was looking for a little help. Sorry if this is the wrong place to ask but it seemed to make the most sense. This is all I have in the file, and I get the following error:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in c:\inetpub\wwwroot\forum\admincp\admin_email.php on line 2

Parse error: parse error in c:\inetpub\wwwroot\forum\admincp\admin_email.php on line 2

This is in the admincp folder.

<?php

error_reporting(E_ALL & ~E_NOTICE);

define('CVS_REVISION', '$RCSfile: admin_email.php,v $ - $Revision: 1.256.2.8 $');
define('NO_REGISTER_GLOBALS', 1);

require_once('./global.php');

?>

Thanks for any help. I have just copied most of this straight from a vB file. I have just started with vB and am trying to understand how it all works. Thanks again!

filburt1
05-27-2005, 02:40 PM
There is nothing syntactually wrong with that file that I can see. You shouldn't include the CVS version though because they're internal to Jelsoft and used for tracking versions of a specific file.

msgotit
05-27-2005, 03:03 PM
From what I understand the error is being thrown even before it gets the file, is there some way that vB interacts with the files that would cause this? I have deleted everything out, I have placed an echo statement in the file and it still throws that error. Thanks for the information about the version, once I posted it and was looking at it, that is what I thought, but that is good to know.

My main question would be, is there anything that you have to change anywhere to make the page show up in the admincp. I would have assumed you just had to have the file in the folder and you are good to go, but the error would suggest otherwise.