Then you have to use mysqli, or the older mysql extension. However, mysql support is not bundled with PHP5 by default, so you cant have an absolute guarantee that they will be available, though chances are they are.
Alternatively, use SQLite, which is bundled with PHP5 by default. SQLite is also available in PDO, which if you are using PHP5.1 wont need PEAR since it is present by default.