This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-type: audio/mp3'); | |
$text = urlencode($_GET['q']); | |
$content= file_get_contents('http://translate.google.com/translate_tts?tl=en&q=' . $text); | |
echo $content; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//create array of data to be posted | |
$post_data['Z_ACTION'] = ''; | |
$post_data['Z_START'] = ''; | |
$post_data['P_TAX_AUTH'] = '604'; | |
$post_data['P_STREET_NUMBER'] = ''; | |
$post_data['P_STREET_NAME'] = 'CARRIAGE CRT'; | |
//traverse array and prepare data for posting (key1=value1) | |
foreach ( $post_data as $key => $value) { | |
$post_items[] = $key . '=' . $value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<script type='text/javascript' src='jquery-1.7.1.min.js'></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$.getJSON("http://willkriski.com/?json=1&count=1",function(data) { | |
$('body').append('<a href="'+data.posts[0].url+'"><div id="homeblog">'+data.posts[0].title+'</div></a>'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$.getJSON("http://willkriski.com/?json=1&count=1",function(data) { | |
$('body').append('<a href="'+data.posts[0].url+'"><div id="homeblog">'+data.posts[0].title+'</div></a>'); | |
}); |