Format() function in PHP? (conerting pawn to PHP)
#1

Hiya, i need to format a string for php, like ("Your name is %s", Bob) would give "Your name is Bob".

Thanks

EDIT: this might help you inderstand, it's what i'm doing

PHP код:
<?php
include 'config.php';
echo 
exec(' killall -9 $svr ');
echo 
"<meta http-equiv=\"refresh\" content=\"1; url=index.html\" />\n";
?>
config.php makes $svr = samp03svr. And i know it works, as i've included and used it in other scripts.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)