Aureole Posted February 8, 2008 Share Posted February 8, 2008 I've started developing on WAMP but I have a problem... I have something like this... <?php if( DEV_MODE == 1 ) { define( 'ROOT_PATH', 'C:\\wamp\equinox\' ); } else { define( 'ROOT_PATH', '/home/......./public_html/equinox/' ); } ?> I'm getting the error: Parse error: syntax error, unexpected T_STRING in C:\wamp\www\equinox\init.php on line 37 Of course, that's because of the back slashes... so how do I overcome this problem? Quote Link to comment https://forums.phpfreaks.com/topic/90046-solved-path-problem/ Share on other sites More sharing options...
kenrbnsn Posted February 8, 2008 Share Posted February 8, 2008 When using PHP, you can use the forward slash on Windows. Ken Quote Link to comment https://forums.phpfreaks.com/topic/90046-solved-path-problem/#findComment-461672 Share on other sites More sharing options...
Aureole Posted February 8, 2008 Author Share Posted February 8, 2008 Learn something new everyday, thanks. Quote Link to comment https://forums.phpfreaks.com/topic/90046-solved-path-problem/#findComment-461674 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.