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


Groups > comp.lang.php > #3207

file_get_contents() on Windows 7

Date 2011-09-25 19:22 +0200
From Luuk <Luuk@invalid.lan>
Newsgroups comp.lang.php
Subject file_get_contents() on Windows 7
Message-ID <2k44l8-qlt.ln1@luuk.invalid.lan> (permalink)

Show all headers | View raw


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.....

-- 
Luuk

Back to comp.lang.php | Previous | Next — 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