<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1008419" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1008419</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/making-php-secure#comment-1043390</link>
    <description> &lt;p&gt;Yes,&lt;/p&gt;
&lt;p&gt;but by this I would loose the persistency.&lt;br /&gt;
Right ?&lt;/p&gt;
&lt;p&gt;And most of the hosts don&#039;t have cgiwrap anyway  &lt;img src=&quot;http://www.webmaster-forums.com/ubb/frown.gif&quot; alt=&quot;&quot; class=&quot;bb-image&quot; /&gt;&lt;/p&gt;
&lt;p&gt;I think there should be an option in PHP to honor the suid-bit on php files.&lt;/p&gt;
 </description>
     <pubDate>Tue, 16 May 2000 17:45:00 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1043390 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/making-php-secure#comment-1043388</link>
    <description> &lt;p&gt;Just in case you didn&#039;t understand the question.&lt;/p&gt;
&lt;p&gt;Put this on you webserver and retrieve it via http (with php enabled).&lt;br /&gt;
&lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;
&amp;lt;html&amp;gt;
	&amp;lt;body&amp;gt;
		&amp;lt;?php
			function myPerms( $file ){
				$perms = fileperms( $file );
				$owner = fileowner( $file );
				$uid = getmyuid( );
				$myP[ &quot;r&quot; ] = 0;
				$myP[ &quot;w&quot; ] = 0;
				$myP[ &quot;x&quot; ] = 0;
				if( $uid == $owner ){
					$myP[ &quot;r&quot; ] = ( $perms &amp;amp; 00400 ) ? 1 : 0;
					$myP[ &quot;w&quot; ] = ( $perms &amp;amp; 00200 ) ? 1 : 0;
					$myP[ &quot;x&quot; ] = ( $perms &amp;amp; 00100 ) ? 1 : 0;					
				}else{
					$myP[ &quot;r&quot; ] = ( $perms &amp;amp; 00004 ) ? 1 : 0;
					$myP[ &quot;w&quot; ] = ( $perms &amp;amp; 00002 ) ? 1 : 0;
					$myP[ &quot;x&quot; ] = ( $perms &amp;amp; 00001 ) ? 1 : 0;									
				}
				$myP[ &quot;txt&quot; ] =  ( $myP[ &quot;r&quot; ] ? &quot;r&quot; : &quot;-&quot; ).( $myP[ &quot;w&quot; ] ? &quot;w&quot; : &quot;-&quot; ).( $myP[ &quot;x&quot; ] ? &quot;x&quot; : &quot;-&quot; );
				return( $myP );				
			}
			function ls( $dir = &quot;/&quot;, $lvl = 0 ){
				$hdir = opendir( $dir );
				while( $file = readdir( $hdir ) ){
					$myP = myPerms( $dir.&quot;/&quot;.$file );
					if( $myP[ &quot;r&quot; ]==1 AND $myP[ &quot;x&quot; ]==1 ){
					if( !strcmp( $file, &quot;.&quot; )==0 ){
					if( !strcmp( $file, &quot;..&quot; )==0 ){					
						for( $l=0; $l&amp;lt;$lvl; $l++ ){
							print &quot;--&amp;gt;&quot;;
						}
						print &quot;(&quot;.$myP[ &quot;txt&quot; ].&quot;)&quot;.$file.&quot;&amp;lt;br&amp;gt;&quot;;
						if( is_dir( $dir.&quot;/&quot;.$file ) ){
							ls( $dir.&quot;/&quot;.$file, $lvl+1 );
						}
					} } }
				}
				closedir( $hdir );
			}
			ls(  );
		?&amp;gt;
	&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
[/code] &lt;/pre&gt;</description>
     <pubDate>Mon, 15 May 2000 14:46:00 +0000</pubDate>
 <dc:creator>anti</dc:creator>
 <guid isPermaLink="false">comment 1043388 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
