can anyone help me in writing a program for RAIL FENCE CIPHER in C lang??

Why don't you read up on the cipher at Wiki:
http://en.wikipedia.org/wiki/Rail_Fence_Cipher

and give it a try. It's not as hard as it might look. Do a couple messages by hand, and you'll see.

I'm sure that several posters could give you a hand with it, when you have a specific question.

please give me a php code for rail fence cipher.

First, welcome to our forum! ;)

Second, we don't "give" code, we help you over difficult parts of YOUR code. It's up to you to get the program started, at least.

Also, you're in the C board. Go to the Web Development tab, and choose the PHP board. That's the right place for your query.

Although I believe if you went to Wikipedia and read up on the Rail Fence Cipher, you'd have little problem creating your program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.