very confused

From: Date: Wed, 01 Nov 2000 18:52:14 +0000
Subject: very confused
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23210@lists.php.net to get a copy of this message
ok so i wrote this script.. --------------------------------------------------------- <?php $new_file = fopen("/www/public_html/docs/werd.html","w"); fputs($new_file, "shitty"); fclose($new_file); echo "done"; ?> --------------------------------------------------------- simple enough right?? i only wrote it to understand the fopen fputs and fclose commands. it works fine except for one small problem.. this is the file --------------------------------------------------------- /bin/bash: /root/.bashrc: Permission denied shitty -------------------------------------------------------- i have no idea why its attempting to open roots .bashrc the user that runs apache is www (group www) all permissions look fine.. www:x:502:504:www:/www:/bin/bash /etc/passwd shows the correct home directory and the user has its own .bashrc any help??? -enthalpy -- ------------------------------------------------------ ______ __ _______ _ _ _ _______ __ / ____// \ /__ __/ /_/ / \ | | | _ \ \ / / / __/ / /\ \// // / __ / - \| | | __/\ \/ / / /____/_/__\_/_//_/_/ /_/ /\_\ |__|_|_ \ / /_______________________// / |________\ / / /_/ {hooray}/_/ /__/ .org |_| /__/ ------------------------------------------------------

« previous php.general (#23210) next »