Created
December 8, 2017 14:52
-
-
Save uneak/f7063e9910a837634132fa9b3451fc4c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function campaignSmsAction(Request $request) { | |
$all = $request->query->all(); | |
$log = serialize($all); | |
$dir = '/home/happysmsfr/www/process'; | |
if (isset($all['tag'])) { | |
$slugify = new Slugify(); | |
$file = $slugify->slugify($all['tag']).".process"; | |
} else { | |
$file = "message.error"; | |
} | |
$output = $dir . "/" . $file; | |
file_put_contents($output, $log.PHP_EOL , FILE_APPEND | LOCK_UN); | |
return new Response("add to ".$output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment