Profile
Achievement
phpdev's Recent Snippets
- All /
« Prev 1 Next »
**Example of use:**
if (!isUniversityEmail('[email protected]'))
exit('You must have a valid and .edu email address to register for an account.');
1
1042
posted 11 years ago by phpdev
*Example:*
if (!isRewriteMod()) exit('Please install Apache mod_rewrite module.');
0
847
posted 11 years ago by phpdev
**Example of use:**
echo base64DataUri('/var/www/html/background.png');
*or*
echo base64DataUri('http://static.php.net/www.php.net/images/php.gif');
0
746
posted 11 years ago by phpdev
**Example of use:**
<a href="http://www.php.net/manual/en/index.php"><img src="<?php echo get_favicon('http://www.php.net/manual/en/index.php') ?>" alt="Favicon" title="See PHP documentation" width="16" height="16" /></a>
0
1521
posted 11 years ago by phpdev
**Example of use:**
$bIsConnected = check_internet_connection();
$sText = ($bIsConnected) ? 'You are connected to the Internet.' : 'You are not connected to the Internet.';
echo $sText;
0
1884
posted 11 years ago by phpdev