vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Unexpected Character Error (https://vborg.vbsupport.ru/showthread.php?t=82127)

msgotit 05-27-2005 02:22 PM

Unexpected Character Error
 
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 Code:

<?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.


All times are GMT. The time now is 04:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01462 seconds
  • Memory Usage 1,715KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete