 |
|
 |
Main Menu |
|
 |
Forums |
|
 |
Programming Contest |
|
 |
Documentation
|
|
 |
Partner
Sites |
|
 |
Sponsors |
|
 |
|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Author |
Message |
davszym
Junior Member
Joined: Thu Jan 07, 2010 9:02 pm Posts: 1
|
 PHP path on XAMPP
I recently installed XAMPP on a Windows XP machine to develop PHP scripts locally. I have PHP working but when I tried to run the a script I created which currently runs on my linux web server, no dice.
I have narrowed the problem down to the fact that when referencing file paths on Linux slashes are used for directories, but on windows back slashes are used. Is there an easy way around this so that my script will work as it was written for the Linux system.
Here is the code: (BASEPATH is a constant defining the local path) [PHP]$log_array = file(BASEPATH."/cnfg/confdata.txt");[/PHP]
Any Ideas? :o
|
Thu Jan 07, 2010 9:11 pm |
|
 |
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|
|