PHP Perl CGI Faq
Sunday, March 28, 2004
XML and SOAP and WS for Amazon
NuSOAP
http://dietrich.ganx4.com/nusoap/
http://www.amazon.com/gp/browse.html/002-8769981-6013644?node=3435361
www.w3.org/xml/core
www.w3.org/2002/ws/
PHP Debug
go to php.ini file and change track_errors on so it will deal errors in your own codes.
Software to create PDF
www.pdflib.com
www.fastio.com
1. checking PDFlib is already installed on the system by the funtion phpinof()
2. if you want to use TIFF or JPEG images in PDF, need to install the libraries from
www.libtiff.org or ftp://ftp.uu.net/graphics/jpeg
Thursday, February 26, 2004
Protecting the PHP code in FrontPage
<!--webbot bot="HTMLMarkup" startspan -->
<?php
echo "<img src='$image' width='$width' height='height'>\n";
?>
<!--webbot bot="HTMLMarkup" endspan -->
By sprater at servicom2000 dot com
Concerning Unix permissions of PHP files: as the earlier commentator noted, they need to be readable by the Unix user or group that owns the webserver process. The command "chmod 644
But the mode "644" makes the file readable for *any user* on the Unix system. Many PHP programs (if not most) contain sensitive database connection information, such as username and password. As a security precaution, if the PHP script I write performs a database connection with embedded user and password info, then I change the mode to readonly for owner, and make the owner the same as the webserver process owner. If my webserver runs as user "nobody", then:
chown nobody file.php
chmod 600 file.php
