Wednesday, August 11, 2010

Restrict unwanted files upload by using FileZilla

By using filters in filezilla we can avoid unwanted files in remote server

Showing Filters

To show and configure filters:

select "View > Filename filters...".

This will bring up the 'Directory listing filters' dialog box, that shows :

  • on the left side : the local filters
  • on the right side : the remote filters.

Multiple filters may be active at a time — those filters that are active will have a check next to them.

We can add/edit/delete filters by clicking edit filters button
once you have finished click apply that's all


Tuesday, August 10, 2010

Fixing Internet explorer Content-type and Content-Disposition issues using PHP

When you add download files option to your pages using PHP. you need to use following code to fix IE related issues

$filename = "myfile" . ".doc";
header('Content-Type: application/msword');
header('Expires: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Content-Disposition: attachment; filename="' . $filename . '"');

if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE')) {
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
} else {
header('Pragma: no-cache');
}

Tuesday, July 22, 2008

Clean URL


Clean URLs for a better search engine ranking From : Content with style



Search engines are often key to the successful promotion and running of your website, with high traffic making or breaking your online business. To maximise the visibility of your site in the organic listings of the biggest search engines it is important to strategically work out how keywords are used.

While link building (placing links to the site or from the site) and, most importantly, writing useful content form the foundation of search engine rankings, some careful attention to how your site treats URLs will influence its ranking massively.

Read More>>


Let's suppose you are building a small database driven website or web-based application which you need search engine covery for. And this isn't the only reason why you would choose to create a web application with search engine friendly URLs. Another important aspect is the usability of this feature. To achieve this, you could use Apache's mod-rewrite module. This would be one way. Another way would be to implement a sort of URL rewrite engine into your web application's engine.

Read More>>


How to make URLs user-friendly

One of the worst elements of the web from a user interface standpoint is the URL. However, if they're short, logical, and self-correcting, URLs can be acceptably usable.

Read more>>

Making "clean" URLs with Apache and PHP

Nowadays we almost systematically create database-generated websites. URLs are thus written on-the-fly and we usually call pages through query string, like:

http://example.com/index.php?type=article&id=25&date_written=20020322.

What I call "clean" URLs is what you can see on evolt.org, for instance. In my example the URL would be:
http://example.com/article/200203226.

Read more >>