Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.