Replace string in text file using PHP php#56

preview_player
Показать описание
This tutorial on Replace string in text file using PHP. By this tutorial we will learn how to get text file content then replace some strings then put the contents in file again.
Рекомендации по теме
Комментарии
Автор

Beautiful tutorial, thank you very much!

wrzq
Автор

Is it possible to get some specific content from a txt file.... Like i need Name, Phone, Address, Skill from CV (. Txt file)... And Those data will insert into database.... Pls do response... Thanks

apurbakarar
Автор

ami ekta form theke data post method e replace korte help

<?php
$url = "./recept.html";
$strings = file_get_contents($url);
$name = $_POST["name"];
$pass = $_POST["pass"];
$a = ["$name", "$pass"];
$b = ["mamun", "mypass"];
$strreplace = str_replace($a, $b, $strings);
file_put_contents($url, $strreplace);
?>

flashBDTutorials
Автор

create_url_slug('this is the example demo page');
This will return rokom url kivabe create kore and
kivabe url modde add kora jay??? akta vedio dile upokito hotam.Thanks

brandnayem
visit shbcf.ru