Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   Profuse Host Forum > World Wide Web > Programming / Scripting / Coding Forum > PHP

PHP The most widely used server-side programming language for web applications.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2008, 08:04 AM
karlpox
Status: Offline
Member
 
Join Date: Mar 2008
Posts: 55
karlpox is on a distinguished road
Default change chmod with php

i made a code that uploads an image to the server. But this images are not viewable until i change the chmod permission. So i googled some stuff on how to change the chmod using php.

So i created a different file and used the chmod() function. I was able to change the chmod successfully. The problems is when i implement the chmod() function to the upload script it does not change the chmod permission of the file. The codes are really identical i even output the files which was uploaded and used the chmod(). Although the outputs are both identical the chmod permission doesnt change at all. Any help?
Reply With Quote

  #2 (permalink)  
Old 04-10-2008, 03:50 PM
snoop1990
Status: Offline
Senior Member
 
Join Date: Dec 2007
Location: Germany (in a small town)
Posts: 356
snoop1990 is on a distinguished road
Default

I think it might be an permission error. I am not sure if php is allowed to change the permissions on your space or if it is prohibited by cpanel. Personally I would choose a corn job to change the permissions, or you write a php viewer, this should work even with 655 files.

Hope this helps.
Reply With Quote

Reply


Thread Tools
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
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is 75 HZ and how do I change my HZ? Kerry Melody Monitors 2 04-10-2008 03:06 PM
Need Name change com1 Free Web Hosting Support 1 01-02-2008 08:31 PM
Chmod 777 our-lounge Free Web Hosting Support 4 03-18-2007 07:28 PM
Please Change my account to... metrokit Free Web Hosting Support 1 02-14-2007 07:15 PM
CHMOD Issues GWPlanet Free Web Hosting Support 2 09-17-2006 07:02 PM


All times are GMT -7. The time now is 01:45 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80