note 109583 added to ref.filesystem

From: Date: Mon, 30 Jul 2012 21:37:41 +0000
Subject: note 109583 added to ref.filesystem
Groups: php.notes 
Request: Send a blank email to php-notes+get-189518@lists.php.net to get a copy of this message
Can anyone tell me why i'm getting these double slashes on windows: File Location (where directory.php is located): C:\xampp\htdocs\hfmw\chapter7\tartans PHP code: define('TARTAN_DOC_ROOT', '/' . ltrim(substr(dirname(__FILE__), strlen($_SERVER['DOCUMENT_ROOT'])), '/')); define('PUBLIC_TARTAN_DIR', rtrim(TARTAN_DOC_ROOT, '/') . '/tartans/'); directory.php: echo PUBLIC_TARTAN_DIR . '<br />'; Results: /\hfmw\chapter7/tartans/ ---- Server IP: 64.71.164.2 Probable Submitter: 165.190.89.174 ---- Manual Page -- http://www.php.net/manual/en/ref.filesystem.php Edit -- https://master.php.net/note/edit/109583 Del: integrated -- https://master.php.net/note/delete/109583/integrated Del: useless -- https://master.php.net/note/delete/109583/useless Del: bad code -- https://master.php.net/note/delete/109583/bad+code Del: spam -- https://master.php.net/note/delete/109583/spam Del: non-english -- https://master.php.net/note/delete/109583/non-english Del: in docs -- https://master.php.net/note/delete/109583/in+docs Del: other reasons-- https://master.php.net/note/delete/109583 Reject -- https://master.php.net/note/reject/109583 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#189518) next »