Posts

Showing posts from August, 2012

why Images are not Showing on Frontend as well as Backend on Godaddy Server in magento?

Images are not Showing on Frontend as well as Backend on Godaddy Server in magento recent i transfer my project one to another server every thing is working fine on my local server but when i upload this project on another server images are not showing on frontend and  backend of products. I surfed many magento help sites with many of the suggestions and tried everything but that that was not working for me and finally after a lot of hectic trials i got the solution for it. Just Rename your .htaccess file inside the /media directory to .htaccess-old. This will absolutely work for your site. if its works for you don't forget to say thanks to this blog :)

How to add custom design twitter feed in php website?

If you are looking for twitter feed which you can customized your self then Simple copy and paste this code in your page for twitter feed and change the twitter username <?php     $username = "xyz"; // change the username     $limit = 5;     $feed = 'https://api.twitter.com/1/statuses/user_timeline.rss?screen_name='.$username.'&count='.$limit;     $tweets = file_get_contents($feed);   $tweets = str_replace("&", "&", $tweets); $tweets = str_replace("<", "<", $tweets); $tweets = str_replace(">", ">", $tweets); $tweet = explode("<item>", $tweets);     $tcount = count($tweet) - 1; for ($i = 1; $i <= $tcount; $i++) {     $endtweet = explode("</item>", $tweet[$i]);     $title = explode("<title>", $endtweet[0]);     $content = explode("</title>", $title[1]); $content[0] = str_replac