Search
Syndication
Sponsors

How Can I Send Text To Any Other Website From My Php Page?

July 12th, 2010

Actually m using iframe, but the work i wanna do is to send text to a website in such manner that the page where the data is sent shoud’nt be shown in the browser when sent through a php page from a site.
code example wud be appreciatable.

Mail example in PHP

June 7th, 2010

<?php
   $headers = "From:sender@yourmail.com\r\n";
   $recipients = "recipient1@email.com,recipient2@email.com";
   mail($recipients, "This is the subject line","This is the mail body part", $headers);
?>

Short url using is.gd and PHP

June 4th, 2010

Create a short url using is.gd, not the best example below but you get the idea

<?php
/*
Get a is.gd short url using PHP
*/
function isgd($url) 

    $ch = curl_init(); 
    $timeout = 5; 
    curl_setopt($ch,CURLOPT_URL,’http://is.gd/api.php?longurl=’.$url); 
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
    curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); 
    $content = curl_exec($ch); 
    curl_close($ch);
    //return the data
    return $content; 
}

//how to use
$shorty = isgd(’http://acode.net’);
echo $shorty;
?>

What’s The Best Way To Store An Encryption Key Using Php?

February 28th, 2010

We’re writing a PHP script that reads an encrypted file. But the problem is I can’t just store the key used to decrypt the file inside of the PHP code. It’s been suggested to me to use a keystore but I don’t really understand how that works. Can somebody help point me in the right direction?

What’s The Best Way To Store An Encryption Key Using Php?

February 27th, 2010

We’re writing a PHP script that reads an encrypted file. But the problem is I can’t just store the key used to decrypt the file inside of the PHP code. It’s been suggested to me to use a keystore but I don’t really understand how that works. Can somebody help point me in the right direction?

Translate
Links
Tags