خرید بک لینک

Vote count: 0

I am writing an HTML file using file_put_content(), but want to be able to add additional content later by pulling the current file contents and chopping off the known ending to the html.

So something along these lines:

$close = '</body></html>';

$htmlFile = file_get_contents('someUrl');
$tmp = $htmlFile - $close;

file_put_contents('someUrl', $tmp.'New Content'.$close);

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 6 مرداد 1395 ساعت: 3:32

صفحه بندی