Posts by Uellington Palma • 134 points
13 posts
-
0
votes1
answer182
viewsA: Mysql insertion problem with Multi upload
See if this code can help you. <?php // Carrega a library $this->load->library('upload'); // Verifica se tem arquivos no input if (!empty($_FILES['files'])) { // Conta os arquivos…
-
0
votes0
answers87
viewsQ: Adapt a php plugin with Codeigniter
How to adapt the plugin Croppic for cutting images? I have two files that I turned into Ibraries, but I can’t pass the parameters to that library. The plugin is this:…
-
0
votes1
answer69
viewsQ: Which server to upload and download files?
I’m finishing a site to upload and download music files, and I don’t know much about servers, and I would like the opinion of someone who understands the process, and if you have an article on the…
-
1
votes1
answer70
viewsA: Write input filenames to xml
Be able to solve foreach ($nomes as $value) { // Start branch 'track' $xml->startBranch('track'); $xml->addNode('title', $value); // End branch 'bikes' $xml->endBranch(); }…
-
-2
votes1
answer70
viewsQ: Write input filenames to xml
I would like to record input files in an xml document public function do_upload() { $this->load->library('upload'); $len = count($_FILES['files']['name']); $nomes = array(); for($i = 0; $i…
-
2
votes4
answers529
viewsQ: How to generate an array with the list of uploaded files?
Type I want to generate an array like this. array('nome1', 'nome2', 'nome3',) what I have is the $name string, how do I generate the above array ? would be something like array($nome) ?? my code if…
-
0
votes0
answers361
viewsQ: How to rename multiple input file files?
How to change the name of the files going to a particular directory ? This is my code; $upload_files = $_FILES['files']; // Inicia o array dos dados que serão inseridos $conf2 = array(); // Varre o…
-
1
votes1
answer332
viewsQ: How to enter the name of the files loaded in the database
$this->load->library('upload'); //Configure upload. $this->upload->initialize(array( "upload_path" => './public/uploads/album/', "allowed_types" => 'mp3', "max_size" =>…
-
2
votes1
answer417
viewsQ: how to prevent an element from being reloaded when accessing other pages of the same site?
How to keep an element fixed and without being changed even changing page, on a website. Like a music player, like websites http://letras.mus.br/ http://palcomp3.com/ but not with ajax, if at all…
-
2
votes1
answer622
viewsQ: Problem passing parameters to function
I have the following Javascript code to which I intend to pass parameters from an event onClick, but they are not recognised: HTML <a id="addplaylist" href="javascript:void(0);"…
-
1
votes1
answer64
viewsA: Difficulty with two Uri segments
Already getting the solution would be something like $route['([^/]+)'] = 'home/user/$1'; $route['(:any)/(:any)'] = 'home/arquivo/$1';
-
0
votes1
answer64
viewsQ: Difficulty with two Uri segments
They are trying to create the url, where the first segment is the user and the second is his file, e.g.: http://www.exemplo.com/joao/bola Controller public function user() { $user_url =…
-
2
votes1
answer453
viewsQ: Improve file_get_contents performance in loops
There is a way to do the file_get_contents perform a quick function within a loop? Follows the code <?php foreach ($links->result() as $value) : ?> <?php $url = $value->lnkUrl;…