Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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
  #1 (permalink)  
Old April 23rd, 2005, 02:25 PM
Registered User
 
Join Date: Apr 2005
Location: Cupertino, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Writing Files that can't be read

Thanks for a great book. I'm learning PHP and I ran into a problem I don't know how to solve.

Your first example in Chapter 7, check_image.php writes an uploaded file as 1.jpg (generally number.ext) into a directory set by me as /images. This directory has 'world' read/write privileges. However the file gets written with www as owner as the only one with read/write privileges and when the browser tries to render the 1.jpg file it is denied access and there is the broken file icon in place of the picture.

I’ve checked PHP.ini settings, tried different browsers to no avail. How can I relax these permissions on the file written by PHP?

Configuration is Apache/1.3.33 (Darwin) PHP/5.0.3 on a G4 Mac running OS X 10.3.9
Thanks for any help

Ron


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating, Writing to and Deleting Text Files goels Access VBA 7 January 30th, 2007 11:51 AM
writing files golom Java Basics 1 August 2nd, 2006 08:23 AM
writing and reading files on HDD from VBA out5yder Access VBA 3 October 6th, 2005 02:43 AM
Writing data to binary files maniac_ie C++ Programming 2 February 24th, 2004 12:30 PM





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