Security Considerations 147 There are two types of
Security Considerations 149 $this->error = PGP binary file .$this->pgp_bin. is not .executable.n ; return(false); } return(true); } function _check_file($file) { if(!file_exists($file)) { // Create a temporary filename in the path specified as class variable $temp_file = tempnam($this->tmp_path, PGP ). .asc ; // Gently touch the file touch($temp_file); // Open the newly created file, write the string passed as argument .$file to it $fp = fopen($temp_file, w ); if (!$fp) { $this->error = Could not open temporary file $temp_file for .writing in _check_file().n ; return(false); } fputs($fp, $file); fclose($fp); // Assign the temporary filename to $file $file = $temp_file; } return($file); } function _exec_pgp_command($args) { // Create a temporary filename in the path specified as class variable $temp_file = tempnam($this->tmp_path, PGP ). .asc ; // Execute the PGP command $command = $this->pgp_bin. -o $temp_file $args ; exec($command); // Open the temporary file created by PGP and read it into $contents $fp = fopen($temp_file, r ); if (!$fp) { $this->error = Could not open temporary file $temp_file for .reading in _exec_pgp_command().n ; continues
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost PHP MySQL Web Hosting services