Questions tagged as 'php'

2
answers

Create instance of class dynamically PHP with Namespace

$class = ucfirst(strtolower($_GET['type'])) . "Controller"; include $class . ".php"; $item = new $class(); But if I put the class name without being dynamically, for example: $item = new PessoaController(); It is accepting nor...
asked by 29.04.2014 / 22:28
2
answers

Returning value into the Post Type in Wordpress

I need to return values to be displayed in columns of the post type, but I can not return anything, how should I do it? Code: add_action( 'init', 'create_eventcategory_taxonomy', 0); add_filter ("manage_edit-tf_events_columns", "tf_events_e...
asked by 08.04.2014 / 20:51
2
answers

Problem with email with embedded image

I'm trying to send email with embedded image in text through boundary . In Gmail everything is beautiful, as always, but in Outlook the text does not arrive in HTML and the image arrives as an attachment. <? @date_default_timezone_set('...
asked by 31.01.2014 / 15:02
2
answers

Plugin for uploading large files in wordpress

I'm developing a wordpress blog for a client (who has very little computer and internet experience). In this blog, videos and zips files will be available for download. Thinking that these files may vary greatly in size (up to 350MB) I've b...
asked by 06.02.2014 / 12:30
1
answer

Count hashtags in a textarea with emojionearea

I would like to know how do I count hashtags in a textarea with emojionearea This is the code: I would like to know how do I count hashtags in a textarea emojionearea Example: const maxLength = 2200 const emojionearea = $("#emoji...
asked by 12.12.2018 / 17:29
1
answer

Return javascript result with controller

Is it possible inside a Controller, to return a javascript action and proceed with the controller script? Example: Call to Login page: <li><a href="javascript:" link="{{ route('login') }}" class="popup">logar</a></...
asked by 07.02.2014 / 15:07
1
answer

Eloquent select total query

I'm trying to group to bring totals into my query that is in mysql SELECT COUNT(*) as total ,e.descricao FROM pedido_cliente p INNER JOIN estabelecimentos e on e.id = p.estabelecimento_id GROUP BY p.estabelecimento_id,descricao...
asked by 07.12.2018 / 18:22
1
answer

Uploading image with AJAX and PHP

I need a help to upload image with AJAX, PHP and MySQL It takes all the data right, even saves the path of the image in MySQL, however does not create the file in the destination folder, what I want is to move the image set in the destination fo...
asked by 17.12.2018 / 16:33
1
answer

Registering multiple images in a post

I have a study project that has to create a kind of gallery. Assuming I have a limit of 20 images per post. How to register these images in the database? I thought of two hypotheses. On the 1st I would create about 22 columns in a table calle...
asked by 16.11.2014 / 22:20
3
answers

Error uploading to another server

I'm trying to write some images to another server pointing the IP and the folder, in my PHP code I pointed the path of the folder $_UP['pasta'] = '\\172.23.25.4\\manutencao\'; and the following error occurs:   Warning: move_uploaded_fi...
asked by 14.11.2014 / 16:33