Questions tagged as 'php'

1
answer

How to decode html (entity) entities?

I have a string that returns me from the bank in the following format:    Received by Stake & amp; amp; amp; amp; amp; amp; I would like to convert it to the format without the accent markings and conversions, thus:    Received by...
asked by 01.05.2016 / 23:38
1
answer

How to link a specific div from another PHP page

I have a one page site, where I have an external page with a menu, and the same one has to link the DIVS of my home (one page). Example: On my external page, clicking on the Videos menu, I'll go to Div from the One Page page. When I try to li...
asked by 25.11.2015 / 13:40
2
answers

SQL Query Optimization in MySQL and Index

I have a performance problem with a query with SQL on MySQL that is using my server a lot, I have done index and even then the consumption does not decrease. The query I'm using is: SELECT CONCAT( '2015-10-14 '...
asked by 14.10.2015 / 15:52
1
answer

Mounting a query with laravel

I'm studying the laravel structure from this ready-made example = > bestmomo . In the project there is the userRepository repository with the following structure: <?php namespace App\Repositories; use App\Models\User; class...
asked by 24.11.2017 / 19:48
1
answer

Save space, SVG, Base64 or normal images?

I created this question in order to clarify doubts that I have developed over the months in relation to images and space. While accessing sites, either on my cell phone or my normal computer, I have observed that SVG or encoded images using b...
asked by 13.12.2014 / 16:21
2
answers

Base62 encoding

I'd like to know where I can get some PHP implementation, similar to PHP's MIME Base64 but only contain the A-Z, a-z, and 0-9 characters. PHP Base64 is quite versatile, but I need an algorithm that does not include the characters +...
asked by 16.01.2015 / 16:12
1
answer

Dynamic Bind with prepare ()

I'm doing a function using the PDO, when I try to use the PREPARE method the function does not finish successfully, it replaces PREPARE with QUERY by changing some arguments and it worked. But my question is the following because what with PR...
asked by 23.09.2014 / 05:23
3
answers

Pass variable php to javascript

Could someone tell me how to pass a PHP variable to the Javascript code. I know there are already many posts about this and I already tried to apply only that I should be doing something wrong so I decided to ask for help here. <?php $l...
asked by 17.04.2015 / 15:20
1
answer

Problems in configuring Composer with XAMPP in Windows environment

Installing the composer on windows has given me some work. I have some doubts: The Composer installer on Windows prompts you to enter the location of php.exe , and installs it there. After that I ran the commands on the console my co...
asked by 26.02.2015 / 01:55
1
answer

Send sms via php using my phone number

I would like to send sms via php, but without using third party api, I wanted to put my own mobile number as sender and it consume my credits for each send, ie just "automate" sending sms. Would that be possible?     
asked by 25.11.2016 / 13:53