How to use rss feed in webpage

Step 1: Save the file rsslib.txt as rsslib.php from this link :
http://www.scriptol.com/rss/rsslib.txt

Note: inside the rsslib.php , there are two functions that will be used for displaying rss .

i) RSS_Display ( url , number of posts to show )
ii) RSS_Links (url , number of posts to show )

Step 2 : Paste the following code segment to your web page for rss feed :

Note: in the $url , paste your rss feed link ,

<?php
 require_once("rsslib.php");

$url= "something.wordpress.com/feed/rss"  ;
 if($url != false)
 {
 echo RSS_Links($url, 15);
 }
?>

End:

For detailed information : http://www.scriptol.com/rss/rss-reader.php

how to activate ’show hidden files & folders’ forcely

Windows Xp problem/error :

Problem statement: i was trying to see hidden files and folders in my directory

by choosing ‘Tools->Folder Option->View-> o Show hidden files and folders

from menu bar. But this option had no effect on the folder.

So i checked the option again and saw that the option didnt changed .

How can i activate the “show hidden files and folders” ?

Solution:

1. Go to Start –> Run, then type Regedit

2. Navigate to the registry folder :

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOW ALL

3. Find a key called CheckedValue.

4. Double Click CheckedValue key and modify it to 1.

This is to show all the hidden files.

[Source :  http://en.kioskea.net/forum/affich-477-c-ant-see-hidden-files ]

AJAX

AJAX useful links for learning and practicing

1 . Hello World of Ajax :

Link :

http://www.dynamicajax.com/fr/AJAX_Hello_World-271_290_322.html

includes : AJAX web chat , AJAX instant messenger , AJAX suggest , AJAX hello world , JSON AJAX web chat , ASP.NET AJAX web chat

2. Practical example of Hello world AJAX with live result :

Link:

http://www.hackorama.com/ajax/

3. Latest updates on AJAX :

Link:

http://www.ajaxprojects.com/ajax/index.php

includes : .net framework , Java framework , PHP framework , Ruby framework, Ajax tools ,  Javascript framework , Projects , Tutorials

4. Google AJAX Search API

Link :

http://code.google.com/apis/ajaxsearch/documentation/

5. PHP for Microsoft AJAX Library

Link:

http://www.codeplex.com/phpmsajax

6. XMLHttpRequest and AJAX for PHP programmers

Link:

http://www.phpbuilder.com/columns/kassemi20050606.php3

Includes : Detailed way of writing AJAX code  in php and running it

7. Using the Microsoft AJAX Library with PHP

Link:

http://blogs.msdn.com/bgold/archive/2007/01/23/using-the-microsoft-ajax-library-with-php.aspx

includes : tutorial on hello world of Microsoft Ajax Library with PHP

Connect PHP with Oracle using Zend Core for Oracle V2.5

You just need to install Zend Core for Oracle V2.5   to connect php4 or php5  with oracle9i or oracle10g or oracle11g or oracle old/latest versions.

To Download Zend Core for Oracle V2.5

Go to :

http://www.zend.com/en/products/platform/downloads

[Note: for download you need to become a Zend member.

To create Zend account visit  https://www.zend.com/en/user/login ]

and select Zend Core for Oracle V2.5

then select the package (windows / Linux )

and finally click download .

Installation of Zend Core for Oracle V2.5 :

The following components WILL be installed:

• Zend’s Bundled Apache

Port 80 will be used by Zend’s Apache

(You can change the port address during installation)

• Zend Framework

• Oracle Client

The following components will NOT be installed:

• phpMyAdmin

• MySQL Database

01-zend-core-setup

02-zend-core-setup

03-zend-core-setup

To access the Zend Core Administration Web GUI :

Go to http://<your-host>:<port>/ZendCore

By default this will be

http://localhost/ZendCore

Copy your PHP application’s files to Zend Apache’s htdocs directory.

Note: If you run the default installation, then the folder will be at

C:\Program Files\Zend\Apache2\htdocs

Sample php file (to test for database connection with oracle) :

file name : Oracle-php.php

<?php
$conn = oci_connect(’scott’, ‘tiger’, ”);
$sql = oci_parse($conn, ’select * from emp’);
oci_execute($sql);
while ($row = oci_fetch_assoc($sql))
echo $row['ENAME'] . “<br>”;
?>
<?php $conn = oci_connect('scott', 'tiger', ''); $sql = oci_parse($conn, 'select * from emp'); oci_execute($sql); while ($row = oci_fetch_assoc($sql)) echo $row['ENAME'] . "<br>"; ?>
Finally you can see the result :
result

Setting Perl and CGI in Wamp Server 2.0

I found a useful link that will help you in running a perl and cgi script ( files with extension .pl or .cgi ). It has got step by step explanation of the installation . I was successful in running the cgi in my PC. I hope you  might get lucky too.

For detailed setting of perl :

Visit : http://www.chromicdesign.com/2009/05/setting-up-perl-for-wampp.html

By doing the following easy steps , you will be able to run a cgi script and see its effect .

1. Download ActivePerl  ver 5.10.0.1005 from

http://www.activestate.com/activeperl/

or

http://downloads.activestate.com/ActivePerl/Windows/5.10/ActivePerl-5.10.0.1005-MSWin32-x86-290470.msi

01-active-perl-setup

02-set-directory-to-Cdrive-wamp-bin-Perl-

2. After installing ActivePerl , run the wamp
server.

For testing purpose , I have given some test codes below :

you need to create 2 files inside a new folder under www directory of wamp :

  • cgi_form.html
  • backatcha.cgi

then run the cgi_form.html under wamp server.

Example file :

Create a file named cgi_form.html

<html>
    <head>
        <title></title>
    </head>
    <body>
        <form action="backatcha.cgi" method="GET">
            <p>What is your favorite color?
            <input name="favcolor" /></p>
            <input type=submit value="Send form" />
        </form>
    </body>
</html>

Create a file named backatcha.cgi

#!C:\wamp\bin\Perl\bin\perl.exe

use 5.010;
use CGI;

use strict;
use warnings;

my $q = CGI->new();
say $q->header(), $q->start_html();

say "<h1>Parameters</h1>";

for my $param ($q->param()) {
    my $safe_param = $q->escapeHTML($param);

    say "<p><strong>$safe_param</strong>: ";

    for my $value ($q->param($param)) {
        say $q->escapeHTML($value);
    }
    say '</p>';
}

say $q->end_html();

then , run the wamp server ,

and open the cgi_form.html

(  for example :   http://localhost/cgi/cgi_form.html )

cgi_form
cgi_form
cgi_result
cgi_result

How to Connect PHP 5 with Oracle 10G in WindowsXP

· Installe the WampServer 2.0 (for running php )

· Installe the Oracle 10g

WampServer 2.0

WampServer 2.0


Note: There is no need to change the port address of wamp and oracle.

Then the following things to be done :

For the PHP part :

1. Search for php.ini file inside wamp(folder)

There will be two files found in the search result

(according to my Computer hardisk :

C:\wamp\bin\php\php5.2.6\php.ini
C:\wamp\bin\apache\apache2.2.8\bin\php.ini )

2. Now open the php.ini file in notepad

3. Find this :

extension=php_oci8.dll

extension=php_pdo_oci.dll

extension=php_pdo_oci8.dll

And remove the ; (semicolon ) if present before the extension word .

Before :

;extension=php_oci8.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll

After :

extension=php_oci8.dll
extension=php_pdo_oci.dll
extension=php_pdo_oci8.dll

Make the above correction in both php.ini files and save it .

For the Oracle part :

1. Run the Oracle server.

2. If the oracle server is running then , isqlplus command will run in Command prompt.

3. Go to Start -> Run -> cmd

4. And Type the following command (according to my PC)to run sqlplus:

Sqlplus scott/tiger@ORCL

sql

[Format : sqlplus username/password@service-name]

5. If stage 4 runs successfully then , type the following command in command Prompt (to run Listener):

lsnrctl

lsnrctl-1

>stop

lsnrctl-2

>start

lsnrctl-3

lsnrctl-4

6. If the stage 5 runs correctly then , type following command in command Prompt (to test connection)

[Format : tnsping service-name]

tnsping orcl

tnsping

If it successfully loaded , then the last line will show OK with some time that have taken to run the server .

Finally , create a file named oracle-php.php and test this code :

<?php
$conn = oci_connect('scott', 'tiger', '');
$sql  = oci_parse($conn, 'select * from emp');
oci_execute($sql);
while ($row = oci_fetch_assoc($sql))
echo $row['ENAME'] . "<br>";
?>

save it .

and put this file under wamp server in the wamp/www in a new folder.

1. To check that php is having connection with oci (Oracle Call Interface )

If you have the wamp welcome page , then click on phpinfo()

or

Write this code and save it with .php:

       <?php
           phpinfo();
       ?>

Inside this phpinfo() , search for “OCI8 Support”. If you get it “enabled” state , then it has got the connection with Oracle .

oci

Now run the oracle-php.php file and get the following output (according to my database ):

result

…………………….

Done.. PHP 5 and Oracle 10G connected …

I hope it has also connected for you.

You may face some problems…

This is the simple way I configured my PHP-Oracle in 2009.

How to change port address in WampServer

Brief:

To change the port address in a Wamp Server Ver 2.0 , at first change the listen port inside the file httpd.conf  of apache,  and to display the changed port address on wamp server , also change the localhost address and add the port to it inside the  file wampmanager.tpl .

Details:

To change the port address of Apache in Wamp server :

1.       Go to   \wamp\bin\apache\apache2.2.8\conf

2.       Open  httpd.conf” in notepad

3.       Find “Listen 80” and Change it to your desired port

(for example : Listen 8081)

4.       Save it and close it .

 

To show the starting page of Wamp Server with new changed port address :

1.       Go to \wamp

2.       Open “wampmanager.tpl” in notepad

3.       Find “http://localhost and replace with your given port address

(for example :

·         http://localhost:8081/

·         http://localhost:8081/phpmyadmin/

·         http://localhost:8081/sqlitemanager/

)

4.       Save and close it .

Done….

WampServer With Changed PortAddress

WampServer With Changed PortAddress

Include an external StyleSheet / (.css) file :

An external style sheet may be linked

to an HTML document through HTML’s LINK element:

The <LINK> tag is placed in the document HEAD.

Sample Code :

<link rel=”stylesheethref=”yourStyleSheet.css” type=”text/css“>

Basic attributes :

  • rel
  • href
  • type

The optional TYPE attribute is used to specify a media type–text/css

for a Cascading Style Sheet

–allowing browsers to ignore style sheet types that they do not support.

Code type 1: (.css file in the same folder )

file name : style.css (inside project folder)

<link rel=”stylesheet href=”style.css” type=”text/css“>

Code type 2: (.css file in the another  folder )

file name : style.css (inside common\forlder1 under project folder)

<link rel=”stylesheet href=”common/folder1/style.css” type=”text/css>

How to remove “” from displaying in Internet Explorer

I was working with the servlets and got these characters in my output without any code to print that .

finally i searched the internet and found the solution to remove   that set of characters from displaying :

“To remove the UTF-8 characters that appear in your account’s messages, please follow the steps I have provided below:

1. Launch an Internet Explorer

2. Click on the “View” drop-down menu

3. Select “Encoding” and then “Unicode (UTF-8)” option.

This will remove the “” characters that appear in your account’s messages. ”

Fitna (film) created by Dutch [ movie against a religion, particularly Islam ]

Fitna (Film)

From Wikipedia, the free encyclopedia

Release date(s)

March 27, 2008
April 6, 2008

Running time

16:48

Country

The Netherlands

Language

Dutch
English
Arabic
Persian

Fitna is a 2008 short film by Dutch parliamentarian Geert Wilders. Approximately 17 minutes in length, the film shows a selection of Suras from the Qur’an, interspersed with media clips and newspaper clippings showing or describing acts of violence and/or hatred by Muslims. The movie wishes to demonstrate that the Qur’an, and the Islamic culture in general, motivates its followers to hate all who violate the Islamic teachings. Consequently, the film argues, Islam encourages, among others, acts of terrorism, antisemitism, violence against women, and Islamic universalism. A large part of the movie deals with the influence of Islam on the Netherlands.

The film’s title, “fitna“, is an Arabic term used to describe “disagreement and division among people” or a “test of faith in times of trial”.[1] Wilders, a prominent critic of Islam, described the movie as “a call to shake off the creeping tyranny of Islamization“.[2]

On March 27 2008, Fitna was released to the Internet on the video sharing website Liveleak in Dutch and English versions. The following day, Liveleak removed the film from their servers, citing serious threats to their staff. On March 30, Fitna was restored on Liveleak following a security upgrade, only to be removed again shortly afterwards by Wilders himself because of copyright violations. A second edition was released later.

[edit] Release

The exact nature of Fitna’s release had been uncertain up until its official launch. This was due to concerns of the legality of its content and anticipated acts of terrorism. The Dutch press centre Nieuwspoort offered to release the film, on the condition that Wilders would pay for the increased security required during the press conference and the weeks after it. Wilders declined to do so, citing prohibitive costs.[4][5]

Having failed to successfully negotiate a transmission of the film with any Dutch television station,[6][7][8] Wilders created a website, www.fitnathemovie.com, on March 5, 2008 with the intention of releasing the film.[9][10][11] However, this was subsequently suspended (see below).

On March 22, the Dutch Muslim Broadcasting Association (NMO) offered to air the film, on the proviso that it could be previewed for any possible illegal material and that Wilders would take part in a debate with proponents and opponents afterwards.[12][13] Wilders declined, quoted as saying “No way, NMO.”[14]

Wilders released the film on March 27, 2008 on the video website Liveleak.[15] The following day, Liveleak removed the film from their servers after receiving threats which they described as being “of a very serious nature”.[16][17][18] The film soon appeared on various BitTorrent and video sharing websites.[19]

Liveleak reinstated Fitna on March 30, after security upgrades offering increased protection to its staff had been implemented.[20] Soon after, Wilders withdrew the film[21] to make some minor edits, such as removing the copyrighted Jyllands-Posten Muhammad cartoons[22] and the photograph of Salah Edin, a rapper wrongly identified as Mohammed Bouyeri, in response to lawsuits.[23] Kurt Westergaard, the cartoonist, was pleased with the news and believed the lawsuit would be dropped.[22]

A revised edition, containing a new cartoon in place of the contentious one, and a corrected picture of Bouyeri, was released on Liveleak on April 6.[24]

[edit] Plot

The movie shows a selection of Suras from the Qur’an, interspersed with newspaper clippings and media clips with The Arabian Dance and Åses død as an underscore.[25][26][27]

[edit] Themes

Wilders said the 15-minute film show how verses from the Qur’an are being used today to incite modern Muslims to behave violently and anti-democratically based on those verses.[28][29][30] He later described the film as “a call to shake off the creeping tyranny of Islamization,”[2] and a push for a Leitkultur, a culture that “draws on Christian, Jewish, humanistic traditions and that poses a challenge to the Islamic problem.”[31]

[edit] Suras

Sura

Title

Verse

8

Al-Anfal (The Spoils of War)

60 [8:60]

4

An-Nisa (The Women)

56 [4:56]

47

Muhammad (Muhammad)

4 [47:4]

4

An-Nisa (The Women)

89 [4:89]

8

Al-Anfal (The Spoils of War)

39 [8:39]

An-Nisa 56, translated here as: “Those who have disbelieved our signs, we shall roast them in fire. Whenever their skins are cooked to a turn, we shall substitute new skins for them, that they may feel the punishment; Verily Allah is sublime and wise.”

The following Suras are mentioned in Fitna in order of appearance:[71]

[edit] Reaction

Main article: International reaction to Fitna

International reaction to Fitna consisted of condemnation in the Muslim community, a Fatwā by Al-Qaeda against Geert Wilders, and attempts by Southeast Asian countries to censor the film.[69][78][79] The Dutch government immediately distanced itself from the film.[80] Several Muslim organizations and political parties have organized boycotts against Dutch products.[citation needed]

Indonesia, the most populous Muslim country, has conducted a ban on several web sites, such as YouTube, MySpace, Rapidshare and Metacafe, as directed by the Ministry of Communications and Informations.[81] On April 11, the Indonesian government lifted the ban. Indonesian communications minister Muhammad Nuh apologised to the public for the inconvenience.[82][83]

Geert Wilders’ film failed to generate much controversy in Iran although the government did express its outrage on the day of its release and conservative websites complained about it for a while. By and large, Fitna elicited indifference among the general public. There was an anti-Fitna demonstration, but just 30 people turned up and they were carrying signs that had nothing to do with the film.[84]

In response to the movie on Sunday March, 30 an op-ed by the Dutch Minister of Foreign Affairs, Maxime Verhagen, was printed in the Arabic Newspaper Asharq al Awsat. In the article, he asks of the readers to “keep the head cool and the relations warm”. He urges the need of dialogue, instead of provocation, as a means to bridge the differences between cultures.[85]

On April 1, a debate was held about the movie in the Dutch parliament. In this debate, the government and Geert Wilders accused each other of lying about facts of their previous communication. According to various members of the government, Wilders had told in previous conversations about his intentions to tear parts out of the Qur’an and setting them on fire. Wilders denied this.[86]

In November 2008, a pamphlet that was distributed to children aged 10-12 years compared Fitna to Mein Kampf, stating that “Geert Wilders’ film Fitna and Adolf Hitler’s Mein Kampf are based upon one-sided points-of-view. Fortunately there are also other books and plays that -on the contrary- show respect for people with other ideas or faiths or that look different.”[87]

[edit] Legal actions

One of the Jyllands-Posten Muhammad cartoons was included in the film without the permission of the artist, Kurt Westergaard. Westergaard has asserted that this infringes his copyright and is considering taking legal action against Wilders.[88]

Various Dutch people filed an official complaint against the movie, after it was released. The Dutch Ministry of Justice is determining whether any statutes will be broken by the publishing of the film. According to some experts, prosecution is without merit, because Wilders has been aware in advance of legal possibilities and impossibilities.[89]

Jordan is preparing a criminal case against Wilders, noting that it might be considerable time before an indictment is issued.[90] Meanwhile, the groups making the complaint (The Messenger of Allah Unites Us)[91] have urged the boycotting of Dutch products, and blame The Hague for not indicting Wilders themselves for inciting hatred of Islam. Less than a month later, the chief prosecutors in Amsterdam issued statements to the effect that Wilders will not be indicted on incitement to hatred charges within the Netherlands. Chief prosecutor Leo De Wit further noted that the content was “offensive to Muslims, but that they had to be taken in the context of the political debate around Islam in the Netherlands”. De Wit concluded, “we find Wilders’ remarks were limited to Islam as a religious movement”.[92] Dutch foreign affairs minister Maxime Verhagen has ordered an analysis of the risks faced by the MP, noting the possibility that Wilders, while abroad, could be arrested and deported to Jordan at the latter’s request.

In January 2009 the Amsterdam appeals court ordered prosecutors to try him for making anti-Islamic statements. “In a democratic system, hate speech is considered so serious that it is in the general interest to… draw a clear line,” the court in Amsterdam said. Mr Wilders said the judgement was an “attack on the freedom of expression”. Prosecutors said that they could not appeal against the judgement and would open an investigation immediately.[93]

[edit] Movies made in response

On March 28 a movie was released by the Arab European League, named Al Mouftinoun.[94] There was also a call to submit a response movie to a special Geert Wilders Film festival.[95] The movie Ashkar[96] was declared the winner on May 3rd 2008.[97] A Saudi blogger made a contra-movie in April, named Schism.[98]

Link:

http://en.wikipedia.org/wiki/Fitna_(film)