To few arguments. (php -f convert_to_po.php localeDir filename.php filename.po Example: php -f convert_to_array.php ../hu_HU/ strings.inc.php messages.po