Adam Purkrt

IT & computers, free & open source software

PHP, HTML, CSS, Javascript

PHP Frameworks: Zend · Symfony · Nette

Content management systems: joomla · wordpress · wordpress integration - the Loop · drupal

W3 Schools - web building tutorials · JQuery · Firebug extension to Firefox · Google sitemaps & webmasters' tools · A Quiz Designed to Give You Fitts · GNOME and Fitts' Law · Interval.cz · Veerle's blog · MathJax - JavaScript display engine for mathematics

PSPad editor - directly edit files on FTP

Opera browser: right click - Inspect Element Latest Opera download · Opera community forums · cross-browser testing: - right click → "Open with other browser" · Open Current Page in IE (button) · Open Current Page in Firefox (button) · Opera wiki · Opera skin editor· in Linux: SHIFT + MIDDLE click - configure panning (scrolling)

Firefox extensions: · Firebug · Web Developer Extension · Firegestures · All in one gestures

PHP.net · how to test empty parameter in TeX · How to stretch a background image with CSS · CSS 'bottom' and 'right' in Explorer · HTML & URL escape sequences · PHP eval function · robots.txt · HTML entities

grad.php listing - round corners, gradient color image generated by php color gradient

PHP Predefined Variables · $_SERVER['PHP_SELF'] = /it.php = currently processed php source, "as seen from the web", relative to server root · __FILE__ - currently processed filename, "as located on server"

$str = "<b>{$_POST[promenna][0]}</b>"

$str = "<b>$_POST[promenna]</b>"

Domain names, DNS: who.is · Regzone.cz · internic.COM · whois.EU · whois.net · nic.CZ · Whois Index by TLD · Query the DNS record · reverse DNS lookup - RIPE database

Apache, mySQL installation - in Debian, Ubuntu

# apt-get install apache2
# apt-get install php5
# apt-get install mysql-server
# apt-get install php5-mysql
# apt-get install mysql-navigator

# mysql_install_db
# /usr/bin/mysqladmin -u root password 'new-password'
# mysql [db_name] -u root -p < backup.sql

# mysql -u root -p

# mysqladmin create photovoltaic

mysql> GRANT ALL PRIVILEGES ON [db_name or *].[table_name or *] TO '[username]'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;

mysql> REVOKE ALL ON *.* FROM '[username]'@'localhost';

Apache config:

cd /etc/apache2/mods-enabled
ln -s ../mods-available/userdir.load
ln -s ../mods-available/userdir.conf

/etc/apache2/apache2.conf - at the end

<Directory /> deny from all allow from localhost </Directory>

CSS - cascading style sheets

"In CSS, everything is box."

More than one class can be assigned to an element - e.g. <div classid='firstclass secondclass thirdclass'> ... </div>

.foo.bar {...} in CSS - div class="foo bar" in HTML

.conditions .off:hover

:focus pseudo class

input[type=text] { } - styling of <input type="text" ... > (unsupported in IE6)

· Acid3 test · Acid2 Browser test · Mraveniste.org · Wellstyled

Email headers in UTF-8 charset: $subject_header = "=?utf-8?B?".base64_encode($subject)."?=";

automatically submit form with one <select> after selection: <select name="..." onChange="submit()"> ...</select>

Javascript: Comparing escape(), encodeURI(), and encodeURIComponent()