Skip to main content
Post Closed as "Duplicate" by Marvin, Funk Forty Niner php
added 242 characters in body
Source Link

when I load this in my browser this is the error that I receive but I cant seem to find out what is wrong with it. Does anyone have any suggestions on how to solve this issue.

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , """/"); 
define('INCLUDES', DOC_ROOT . 'includes'. DS);

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\test\defines.php on line 9

Warning: require_once(C:/XAMPP/htdocs/test/mysql/db_connect.php): failed to open stream: No such file or directory in C:\xampp\htdocs\test\defines.php on line 12

Fatal error: require_once(): Failed opening required 'C:/XAMPP/htdocs/test/mysql/db_connect.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\test\defines.php on line 12

when I load this in my browser this is the error that I receive but I cant seem to find out what is wrong with it. Does anyone have any suggestions on how to solve this issue.

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , ""); 
define('INCLUDES', DOC_ROOT . 'includes'. DS)

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\test\defines.php on line 9

when I load this in my browser this is the error that I receive but I cant seem to find out what is wrong with it. Does anyone have any suggestions on how to solve this issue.

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , "/"); 
define('INCLUDES', DOC_ROOT . 'includes'. DS);

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

Warning: require_once(C:/XAMPP/htdocs/test/mysql/db_connect.php): failed to open stream: No such file or directory in C:\xampp\htdocs\test\defines.php on line 12

Fatal error: require_once(): Failed opening required 'C:/XAMPP/htdocs/test/mysql/db_connect.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\test\defines.php on line 12

delete tags ajax and jquery, remove snippet
Source Link
Marvin
  • 14.6k
  • 3
  • 56
  • 62

when I load this in my browser this is the error that I receive but I cant seem to find out what is wrong with it. Does anyone have any suggestions on how to solve this issue.

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , ""); 
define('INCLUDES', DOC_ROOT . 'includes'. DS)

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , ""); 
define('INCLUDES', DOC_ROOT . 'includes'. DS)

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\test\defines.php on line 9

when I load this in my browser this is the error that I receive but I cant seem to find out what is wrong with it. Does anyone have any suggestions on how to solve this issue.

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , ""); 
define('INCLUDES', DOC_ROOT . 'includes'. DS)

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\test\defines.php on line 9

when I load this in my browser this is the error that I receive but I cant seem to find out what is wrong with it. Does anyone have any suggestions on how to solve this issue.

<?php


define('DOCUMENT',"C:/XAMPP/htdocs/test/");
define('DOC_ROOT' , DOCUMENT);
define('DS' , ""); 
define('INCLUDES', DOC_ROOT . 'includes'. DS)

define('MYSQL_DIR' , DOC_ROOT . 'mysql' . DS  );
define('MODELS_DIR' , DOC_ROOT . 'mysql' . DS . 'models' . DS );

require_once MYSQL_DIR . 'db_connect.php';



?>

Parse error: syntax error, unexpected 'define' (T_STRING) in C:\xampp\htdocs\test\defines.php on line 9

Source Link
Loading