Filesystem and Directory Functions

Author Topic: Filesystem and Directory Functions  (Read 2569 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • We Helpline
Filesystem and Directory Functions
« on: 12-24-2015, 00:42:23 »
Most of these functions will be quite familiar to Unix users, as they closely replicate common system commands .

Many of the functions in this section are dangerous. Because they duplicate functions that can and should be performed from the local system, they can be a crаcker’s bonanza without providing much value to legitimate users. Strongly consider disabling them using PHP’s disable_functions directive (as discussed in the preceding section on file writing)!

The one piece of good news is that some of these functions will only work if the PHP process is running as the superuser. Because this is not the default case in the Web browser, presumably these functions are intended to be used by the scripting version of PHP, and only trusted users who know what they’re doing are even in a position to shoot themselves in the foot this way. Of course, if you are foolish enough to run your Web server as root, you are doubly screwed.


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 52
  • Posts: 863
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: Filesystem and Directory Functions
« Reply #1 on: 05-14-2016, 01:55:23 »
Here are two great articles on this topic. In this http://www.php.net/manual/fa/ref.filesystem.php you will find information about filesystem  functions and in this one http://ua2.php.net/manual/fa/ref.dir.php you can read information about directory functions!
Good luck!
Your ideas, our writings - Writology.com

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1751 Views
Last post 12-24-2015, 00:40:20
by chinmay.sahoo
1 Replies
2809 Views
Last post 05-14-2016, 02:20:24
by TomClarke
0 Replies
1003 Views
Last post 12-28-2015, 00:16:17
by chinmay.sahoo
1 Replies
1964 Views
Last post 04-27-2016, 04:51:59
by TomClarke
0 Replies
827 Views
Last post 12-28-2016, 00:47:12
by chinmay.sahoo