Posts by Fela • 23 points
4 posts
-
0
votes1
answer42
viewsA: Laravel:I can’t Download a file
Try something like public function getDownload() { $file= public_path(). "/download/info.pdf"; $headers = array( 'Content-Type: application/pdf', ); return Response::download($file, 'filename.pdf',…
-
0
votes1
answer16
viewsQ: Change byte value in nodes
In php to change the value of certain bytes in the binary file, use a simple replace. For example: $acc = fread($f5900xt, filesize(public_path("5900xt"))); $demoid = substr($acc, 0, $userlenght);…
-
0
votes1
answer146
viewsQ: Read binary file using struct created in C++
Good afternoon to all, I would like to read a binary file created in C++ using the following structure: struct STRUCT_MOB { char MobName[NAME_LENGTH]; // The name of the mob // 0 - 15 char Clan; //…
-
1
votes1
answer28
viewsQ: Transform array into single matrix
Good morning, I am having the following difficulty, currently my array returns as follows: array(2) { [0]=> array(1) { ["name"]=> string(8) "Vermelho" } [1]=> array(1) { ["name"]=>…