Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 12-20-2005, 04:43 AM
joychung joychung is offline
Hatchling Croc
 
Join Date: May 2005
Posts: 11
Default PHP question.

I have a little question in PHP.
I have a friend who want a subdomain in my website.
http://dopeynite.joypalace.net -> http://www.joypalace.net/dopeynite/

if he upload a php script in there. Did the php script can access or list or delete all the file in the main domain (http://www.joypalace.net/ ).

How can I block all script executing in the subdomain and they child only?

example: DopeyNite allow use php script list all file in http://www.joypalace.net/dopeynite/*.*
http://www.joypalace.net/dopeynite/*/*.*

Block him list all file in
http://www.joypalace.net/*.*
http://www.joypalace.net/(another folder)/*.*

Thanks,
__________________
Joy Chung
Reply With Quote
  #2  
Old 12-20-2005, 09:41 AM
MachineDog MachineDog is offline
Royal Croc
 
Join Date: Jul 2005
Location: Somewhere in the everglades.
Posts: 513
Default Re: PHP question.

This isn't technically possible unless they were different users, hence reseller packages. I'd recommend not letting ANYONE ftp upload access but yourself.
__________________

Reply With Quote
  #3  
Old 01-03-2006, 10:05 AM
joychung joychung is offline
Hatchling Croc
 
Join Date: May 2005
Posts: 11
Default Re: PHP question.

If that so, Is there a way to block executing a php script in a specified folder/directory?
__________________
Joy Chung
Reply With Quote
  #4  
Old 01-03-2006, 03:37 PM
sysops sysops is offline
Hatchling Croc
 
Join Date: Oct 2005
Posts: 18
Default Re: PHP question.

Yes... Chmod, set permissions for dir to read only.
__________________
"I'm right. I'm always right, but sometimes I'm a little more right then I usually am" -- rah pillage

What's life without a litte Karma?
http://maddkarma.com
Reply With Quote
  #5  
Old 01-05-2006, 07:43 AM
nexia's Avatar
nexia nexia is offline
Baby Croc
 
Join Date: Aug 2005
Location: Quebec city, Ca
Posts: 93
Default Re: PHP question.

the point with PHP scripts is that any good coder can hack any kind of server with these... so i would suggest that you give no access to anybody else than you to your own location... your friend can surely afford to have his own account if he needs to host php scripts...
Reply With Quote
Reply

Bookmarks

Thread Tools

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 On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 10:14 PM.