Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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
 
Old November 18th, 2005, 01:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default Never programmed with php before

Hi there

I'm a complete newbie when it comes to php so I'm not sure what do to when this error message comes up!

Warning: fopen(HomeLog.dat): failed to open stream: Permission denied in /home/fhlinux196/t/www.myfirstsite.com/user/htdocs/admin/addhome.php on line 15
Cannot open Home File.

Can anyone help me overcome this?

Thanks in anticipation

Adam

 
Old November 19th, 2005, 04:31 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

Using your FTP program (or Files manager script of CP), right-click a file and set proper permission. PHP can change file-permission run-time using chmod() function.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Support Indian students' finances http://scholarship.mediasworks.com/
 
Old November 19th, 2005, 06:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

thanks, which permissions do I need to set?

 
Old November 24th, 2005, 07:25 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

If you cn't read a file via HTTP, file is missing public read permission.

Right-click a file and see Properties/CHMOD of it.

Sometimes a file or directory get corrupted, you need upload it again.

Remember Machine never errors .. :D

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Support Indian students' finances http://scholarship.mediasworks.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Warning: PHP Startup: Unable to load dynamic l surendran Beginning PHP 1 May 29th, 2006 08:49 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Can a popup be programmed to close w/o IE warning? Pete L Javascript How-To 2 November 10th, 2005 07:56 AM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 02:48 PM
korean programmed run in english windows? exarkun Beginning PHP 1 September 20th, 2004 08:45 PM





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