putnamehere
-
Posts
6 -
Joined
-
Last visited
Never
Posts posted by putnamehere
-
-
is they anyway i can take away line breaks from text.. example.
Text:
This.
That.
The other.
What i want it to be:
This. That. The other. -
Hi, i'm makeing a comment script and i have a input box for the persons name or email.
Problem is when the page is submited i need to know if it's a email or website so i use the mailto:// or http:// acordingly.
How would i do this? -
Hi, how do i load something after the page has already loaded without refreshing the page?
i looked at php flush() but i couldent understand it. Can some explain to me how i use this or any other command to "load something without refreshing the page".
Thanks!
Paul -
Thats Fantastic!, i'm very pleased.
do you take USD or GBP? -
I would like to creat a script that searched files on my server for a string once the string was found it would desply the area were it found it, how would i do this??
[code]
<?php
$search = $_POST['s'];
$file="index.php";
$getcontents=file_get_contents($file);
if (preg_match("/$search/", "$getcontents", $look)) {
echo "A match was found.<BR>$look";
} else {
echo "A match was not found.";
}
?>
[/code]
Thats what i'v got so far but it just says a match was found array how would i desply the text after the or before were the string it found?
no lin breaks?
in PHP Coding Help
Posted
Simple:
[code]$str = "String<br />with <br />line breaks<br />";
$str = str_replace("<br />", "", $str);
echo $str;[/code]
[/quote]
it works but i want to write "$str" to a file and for that it dosent work any ideas y?