I am very new to PHP, and I need some help with a project I am working on. So basically what happens is the QR code is generated and a short URL is generated as well for the QR Code, and what I need is the short URL that is generated to be sent to my email address. Here is what the code looks like:
PHP Code:
<?php
class Url_shortner_class {
function shorten_url($criteria=array()) {
$url = $criteria['url'];
$type = $criteria['type']; //google
You can use PHP's mail() function, or you could look into using something like PHPMailer to deal with a lot of the details.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Depending on your server config, you might have to add some additional mail headers in the 4th (optional) parameter.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks