Parse error: syntax error, unexpected 'INCLUDES_DIR'
Posted by: prataprajesh (---.beamtele.net)
Date: August 18, 2015 01:06PM

Parse error: syntax error, unexpected 'INCLUDES_DIR' (T_STRING) in C:\wamp\www\config.php on line 15

the below is the code on line 15

define('INCLUDES_DIR', 'C:\wamp\www\includes\');

please help me out where i went wrong. I am new to php and wamp.

Thanks a lot.

Options: ReplyQuote
Re: Parse error: syntax error, unexpected 'INCLUDES_DIR'
Posted by: RiggsFolly (---.as43234.net)
Date: August 18, 2015 01:35PM

Hello prataprajesh,

This site is for people with problems getting WAMPServer working, and not a basic PHP coding assistance site.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Parse error: syntax error, unexpected 'INCLUDES_DIR'
Posted by: Otomatic (Moderator)
Date: August 18, 2015 07:14PM

Hi,

Some advice :
> C:\wamp\www\config.php
Never put files directly into C:\wamp\www\
Create folder and put yout files into, for example C:\wamp\www\my_site\config.php

> define('INCLUDES_DIR', 'C:\wamp\www\includes\');
Don'f use backslashe (\) use slash (/) : define('INCLUDES_DIR', 'C:/wamp/www/includes/');
To specify a literal backslash, double it (\\).

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.