Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3208

Re: file_get_contents() on Windows 7

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!news.xs4all.nl!not-for-mail
Date Sun, 25 Sep 2011 19:35:29 +0200
From Luuk <Luuk@invalid.lan>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2
MIME-Version 1.0
Newsgroups comp.lang.php
Subject Re: file_get_contents() on Windows 7
References <2k44l8-qlt.ln1@luuk.invalid.lan>
In-Reply-To <2k44l8-qlt.ln1@luuk.invalid.lan>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <1c54l8-9qt.ln1@luuk.invalid.lan> (permalink)
Lines 35
NNTP-Posting-Host 80.101.116.74
X-Trace 1316972401 news2.news.xs4all.nl 2431 80.101.116.74:54331
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:3208

Show key headers only | View raw


On 25-09-2011 19:22, Luuk wrote:
> I am getting an error when using get_file_contents,
> i simplified my problem as below:
>
> C:\TEMP>dir >test
>
> C:\TEMP>php -e "echo get_file_contents('test', true); "
> Could not open input file: echo get_file_contents(test, true);
>
> C:\TEMP>dir test
> Volume in drive C is MyCdrive
> Volume Serial Number is A0B0-B175
>
> Directory of C:\TEMP
>
> 25-09-2011 19:09 1.822 test
> 1 File(s) 1.822 bytes
>
>
> The question is, why?
>
> I also tried to specify full path 'c:\temp\test'
> or with slashes in stead of back-slased like: 'c:/temp/test'
> but no luck so far.....
>

C:\TEMP>php -v
PHP 5.3.6 (cli) (built: Mar 17 2011 10:37:07)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

(in can you want to know...)

-- 
Luuk

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

file_get_contents() on Windows 7 Luuk <Luuk@invalid.lan> - 2011-09-25 19:22 +0200
  Re: file_get_contents() on Windows 7 Luuk <Luuk@invalid.lan> - 2011-09-25 19:35 +0200
  Re: file_get_contents() on Windows 7 "Peter H. Coffin" <hellsop@ninehells.com> - 2011-09-25 12:28 -0500
    Re: file_get_contents() on Windows 7 Luuk <Luuk@invalid.lan> - 2011-09-25 20:27 +0200
      Re: file_get_contents() on Windows 7 Luuk <Luuk@invalid.lan> - 2011-09-25 20:39 +0200
  Re: file_get_contents() on Windows 7 Doug Miller <doug_at_milmacdotcom@example.com> - 2011-09-25 14:32 -0400

csiph-web