View unanswered posts | View active topics It is currently Wed Jun 07, 2023 9:46 am



Reply to topic  [ 1 post ] 
 PHP path on XAMPP 
Author Message
Junior Member

Joined: Thu Jan 07, 2010 9:02 pm
Posts: 1
Post 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
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

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

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.