This file contains hidden or 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 | |
| function fb_opengraph() { | |
| global $post; | |
| if(is_single()) { | |
| if(has_post_thumbnail($post->ID)) { | |
| $img_src = wp_get_attachment_image_src(get_post_thumbnail_id( $post->ID ), 'medium'); | |
| } else { | |
| $img_src = get_stylesheet_directory_uri() . '/img/opengraph_image.jpg'; | |
| } | |
| if($excerpt = $post->post_excerpt) { |
This file contains hidden or 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 | |
| // Ref : http://php.net/manual/en/function.ftp-put.php | |
| $name = "test.txt"; | |
| $filename = "/home/mine/Desktop/test.txt"; | |
| //-- Code to Transfer File on Server Dt: 06-03-2008 by Aditya Bhatt --// | |
| //-- Connection Settings | |
| $ftp_server = "server_url_here"; // Address of FTP server. | |
| $ftp_user_name = "username_here"; // Username |