iGeek Blog

Jignesh Patel's Blog

categories

recent posts

recent comments



This is much needed when you want to force the web browser to show the Save File dialog box. Generally the web browser opens the file which can be read by it.

It all depends on the header which is being sent from the web server to the client browser. By default, the browser can open the images i.e. .gif, j.pg, .png & some other file as well like .swf (for FF especially).

This is how it can be implemented with Content-disposition. For example I want to force to save the .swf file.

The PHP code will be:


<?php
header('Content-disposition: attachment; filename=filename.swf');
header('Content-type:application/x-shockwave-flash');
readfile('pathoffile/filename.swf');
exit;
?>

This is what many people waiting for, a laptop from the world's most trusted mobile brand. That is going to be true. Nokia is going to launch the 'Nokia Booklet 3G'.

Nothing so say here. Have a look at the features.



Prices & Date of launch not declared yet. But this one will be the major attraction at the Nokia World to be held in Germany.

If you look at the Google Suggestions, while typing 'Why are indians' & typing the 'Why are americans' in the Google Search box, will get the below.

After looking at that Why people search only negative things for americans?

I was facing the issue: Emails were not getting sent after someone add the comment on the post in my wordpress based blog, http://magentocoder.jigneshpatel.co.in/

The problem was not in the Wordpress, it was on the hosting server. on which the blog is hosted.

After posting Ticket regarding the problem, they replied simple php mail() function won't work on that. As they are having the security concerns. After requesting them, they provide me the sample php code, which can send the email.

Here are the steps to be followed if you want to fix the email not sending problem (it will work if your problem is similar to mine).

1. Download the 'class-phpmailer.php' from here
2. Replace it with the existing file inside the wp-includes directory. (Make sure you have taken the backup of older one)
3. Then open the file 'pluggable.php' from 'wp-includes' directory
Find the line
$phpmailer->IsMail();

Replace it with
$phpmailer->IsSMTP();

You may need to setup the email account on the hosting server. Like 'wordpress@hostname.com'

I did up to these much changes & emails started to be sent successfully.