[SOLVED] how to write to a file?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

i think 'anjanesh' you should think of a solid reason before pointing out at others. a person does something because there is solid reason behind it which may not be clear to anybody else. and also as as 'admin' he can think for situation in a better way that most of us. :x
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

n00b Saibot wrote:i think 'anjanesh' you should think of a solid reason before pointing out at others. a person does something because there is solid reason behind it which may not be clear to anybody else. and also as as 'admin' he can think for situation in a better way that most of us. :x
No need to get mad. Neither one of them is really at fault.

[edit]
PHP.net strpos() user comments wrote: GrandLibrarian at iname dot com
27-Apr-2000 09:32
To find the position of a string in a case-insensitive manner without converting everything to lowercase, try using stristr:<br>
$temp = stristr($haystack,$needle);<br>
$pos = strlen($haystack)-strlen($temp);
For people with PHP < 5.
saumya
Forum Contributor
Posts: 193
Joined: Sun Jan 30, 2005 10:21 pm

Thank you

Post by saumya »

Thanks people.
now its working fine.
Saumya
Post Reply