Wrox Programmer Forums
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2011, 04:10 PM
Authorized User
 
Join Date: Jun 2009
Posts: 66
Thanks: 22
Thanked 0 Times in 0 Posts
Default UNC Path

Hello All,
I am having a problem with saving a PDF file into a server location. The computer I am using is not the server machine and all the directories are using mapped path. So when i try to save a file into "\\\\10.10.11.9\\t2m.net\\html\\books\\IISbook .pdf " it says: The file doesn't exist.

The code is as below:
PHP Code:
<?php
$filename 
'\\\\10.10.11.9\\t2m.net\\html\\books\\IISbook.pdf';

if (
file_exists($filename)) 
{
    echo 
"The file $filename exists";

else 
{
    echo 
"The file $filename does not exist";
}
?>
And the output is :
Code:
The file \\\\10.10.11.9\\t2m.net\\html\\books\\IISbook.pdf does not exist

Last edited by skhan; January 17th, 2011 at 04:31 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Retriving UNC Path of mapped drive (Linux Folder) kaushalparik ASP.NET 2.0 Professional 2 April 5th, 2007 09:58 PM
UNC Network Path stonesbg ASP.NET 2.0 Basics 1 February 1st, 2007 11:28 AM
Filesystemobject and UNC paths dlfisher1972 Pro VB 6 0 January 5th, 2006 01:44 PM
Using UNC in data source rguidry Classic ASP Databases 2 March 29th, 2005 10:02 AM
Get UNC for a local file Mitch Access 0 August 12th, 2003 02:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.