[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] fopen i php



On Thu, Oct 28, 2004 at 08:10:32PM +0200, Hans Schou wrote:
> On Thu, 28 Oct 2004, Michael Bernhard Sørensen wrote:
> 
> >       if(!($fp=fopen("/dev/ttyS0", "A"))){
> >        echo "Could not open /dev/ttyS0<br>";
> >      }
> 
> "A" ? skal det ikke bare være "w" eller "w+" ?
> http://dk.php.net/manual/en/function.fopen.php

'a'	 Open for writing only; place the file pointer at the end of the
file. If the file does not exist, attempt to create it.

'w'	 Open for writing only; place the file pointer at the beginning
of the file and truncate the file to zero length. If the file does not
exist, attempt to create it.

Så det er næppe problemet. Er din PHP konfigureret til at køre i
safe_mode eller lignende?

-- 
Med venlig hilsen
- Jacob Atzen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *