Blog Links

SQLite V3 with PHP – sample script


Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/earthinfo.org/httpdocs owned by uid 10011 in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 237

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/wp-content/uploads/2009/05/sqlite-150x150.gif) is not within the allowed path(s): (/var/www/vhosts/earthinfo.org/httpdocs:/tmp) in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 237

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/earthinfo.org/httpdocs owned by uid 10011 in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 261

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/wp-content/uploads/2009/05/sqlite-150x150.gif) is not within the allowed path(s): (/var/www/vhosts/earthinfo.org/httpdocs:/tmp) in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 261
sqlite

SQLite [http://www.sqlite.org] is a very handy tool, essentially it creates a database in a file. SQLite V3 should be installed automatically with PHP5.
I find SQLite very handy when I want to make standalone code that uses a database, and because it doesn’t require an external application(such as Mysql) it makes it very portable. [...]

XPaths with PHP by example


Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/earthinfo.org/httpdocs owned by uid 10011 in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 237

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/wp-content/uploads/2009/05/php-150x150.png) is not within the allowed path(s): (/var/www/vhosts/earthinfo.org/httpdocs:/tmp) in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 237

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/earthinfo.org/httpdocs owned by uid 10011 in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 261

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/wp-content/uploads/2009/05/php-150x150.png) is not within the allowed path(s): (/var/www/vhosts/earthinfo.org/httpdocs:/tmp) in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 261
PHP

Learn by example how to scrape web pages using PHP and Xpath.

Plesk9 – Global Vars and Sym Links


Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/earthinfo.org/httpdocs owned by uid 10011 in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 237

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/wp-content/uploads/2009/04/plesk_logo1-150x150.png) is not within the allowed path(s): (/var/www/vhosts/earthinfo.org/httpdocs:/tmp) in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 237

Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 33 is not allowed to access /var/www/vhosts/earthinfo.org/httpdocs owned by uid 10011 in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 261

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/wp-content/uploads/2009/04/plesk_logo1-150x150.png) is not within the allowed path(s): (/var/www/vhosts/earthinfo.org/httpdocs:/tmp) in /var/www/vhosts/earthinfo.org/httpdocs/wp-content/plugins/thumbnail-for-excerpts/thumbnailforexcerpts.php on line 261
Plesk Logo

Some more obscure command line configuration required when using PHP Global Variables and Symlinks in Plesk9