dan's homepage http://pomocnik.com/users/dan VoIP, Linux, PHP Mon, 08 Jan 2007 13:48:12 +0000 http://backend.userland.com/rss092 en PHP performance checking (for example: because of Dreamhost CPU usage warning) If you want to optimize your PHP script or find out what part of your PHP script causes problems (for example consumes too much CPU time on Dreamhost) - below you can find solution how to do it - how to check - chow long selected parts of your PHP ... http://pomocnik.com/users/dan/2006/01/php-performance-checking-for-example-because-of-dreamhost-cpu-usage-warning/ Adsense Notifier If you need to check your adsense stats "every three seconds" you should install Adsense Notifier extension for Firefox! "Adsense Notifier simply shows your adsense stats on the status bar and updates the stats automatically. This is wonderful for anyone with OCD ( or GAD as some have called it ) ... http://pomocnik.com/users/dan/2006/01/adsense-notifier/ checking for C compiler default output file name… configure: error: C compiler cannot create executables So, ... you have gcc and try to compile some stuff - but ./configure answers: checking for C compiler default output file name... configure: error: C compiler cannot create executables. Solution: Just install glibc-devel that's all. http://pomocnik.com/users/dan/2005/10/checking-for-c-compiler-default-output-file-name-configure-error-c-compiler-cannot-create-executables/ Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration What to do if you've got this: Warning: fopen() [function.fopen]: URL file-access is disabled in the server configuration Warning: fopen(http://somelocation.com/somefile.xml) [function.fopen]: failed to open stream: no suitable wrapper could be found in /home/someuser/somephpfile.php on line [someline :-)] ??? It happens if - for security reasons fopen is restricted to open remote files. If it ... http://pomocnik.com/users/dan/2005/10/warning-fopen-functionfopen-url-file-access-is-disabled-in-the-server-configuration/ How to convert dos file to unix/linux format. How to get rid off all bad Windows line endings? it's simple, for example to convert all *.php files in directory write: for x in *.php; do dos2unix $x; done http://pomocnik.com/users/dan/2005/08/how-to-convert-dos-file-to-unixlinux-format/ Apache Server Tutorial Part I: Preparing to Install WAMP on Windows NT 2000 Pro Definition WAMP is an acronym for the combination Microsoft Windows, Apache, MySQL and one or more of Perl, PHP and Python. It is modelled after the more well-known LAMP, referring to the all-open source/free software approach which uses Linux instead of Windows. http://pomocnik.com/users/dan/2005/08/apache-server-tutorial-part-i-preparing-to-install-wamp-on-windows-nt-2000-pro/ How to password protect web directory (folder) 1. Create .htaccess file with the content below: AuthUserFile /home/username/htdocs/.htpasswd AuthName "Password Protected" AuthType Basic require valid-user Of course in the AuthUserFile type in the location of the .htpasswd file (i.e. when you want to store that file, you'll create it in next step) 2. Set password for the user(users) (-c option creates .htpasswd file) If it ... http://pomocnik.com/users/dan/2005/07/how-to-password-protect-web-directory-folder/ Firefox & Thunderbird working together! [description taken from ubuntuforums.org but might be usefull for all Linux distros :-)] Some people have problems using mailto links with Thunderbird. To fix the "choose user profile" problem, follow this howto. THUNDERBIRD: Open with firefox an URL contained in an email Open Nautilus and type this in the address bar: ~/.thunderbird (if ... http://pomocnik.com/users/dan/2005/07/firefox-thunderbird-working-together/ Great firefox extension - customizegoogle Just look at: http://www.customizegoogle.com/ its great Mozilla Firefox extension for google! http://pomocnik.com/users/dan/2005/06/great-firefox-extension-customizegoogle/ Invisible dragon :-) If you wanna see the Invisible Dragon walking through a blizzard! You can find him here :-) http://pomocnik.com/users/dan/2005/05/invisible-dragon/