Questions tagged as 'php'

1
answer

Limit for strtotime function in php [duplicate]

I'm using the strtotime function as shown below, with cakephp. by passing the sum of 50 years it is returning null, the maximum that I can return is summing 20 years. Would anyone know if this is limiting / configuring cakephp or php itself...
asked by 25.01.2016 / 15:01
1
answer

Know which button was clicked

Friends, I have 4 buttons type <input tupe="button"> , each one has a different class because they are formatted in different ways. Both buttons have the same action, with different values only. I would like to know how to get these...
asked by 18.12.2015 / 12:53
2
answers

Play alert sound after bank query (PHP + MYSQL)

I need an alert sound to be played after a query on the bank ... Logical example: NUM_LINHAS = NUMBER OF TABLE LINES SE (NUM_LINHAS > 0) { play (); } My javaScript function that plays sound: <audio id="audio"> &...
asked by 16.07.2015 / 20:00
2
answers

Error with regular expression in PHP

Would anyone know to tell me why this regular expression of the error in PHP? /:[^\/\]*/ It is being used this way: return '/' . preg_replace('/:[^\/\]*/', '([^\/]*)', $value) . '/'; I'm trying to "break" one counter against another bu...
asked by 03.05.2014 / 20:51
4
answers

PHP MVC - Inclusion of CSS, Images etc

Hello, in my application I'm having problems when I add a css file, image or any other file that is frontend, because when I include it, I need to set the whole directory of it, for example. The views directory has the following structure  ...
asked by 23.03.2014 / 15:21
1
answer

How to notify the tracking of the mails to the user?

I have an eCommerce that integrates with Mail , except for the tracking system, which only includes the tracking code in order. I need every time I change the status, the customer is notified via email. With the code below, I can make an i...
asked by 21.08.2015 / 14:48
2
answers

Query in MySQL to return scheduled records for the next 30 days

I have a table called AGENDA, where I have the fields, ID, Location, Date. Doing the insertion and selection within the database I've already been able to do correctly. But I can not select the date in ascending order, showing the events that wi...
asked by 03.05.2014 / 04:22
2
answers

Configure CakePHP to send emails through gmail

I'm trying to set up cakephp to send emails via < I have already done some research and have not yet had success in the result, someone could you help me?     
asked by 03.03.2014 / 16:29
3
answers

sort array multidimensional php

I have the following array returned from a webservice (in the image I identify what I want, below the text to copy paste if necessary): Array([DataTable]=>Array([ID]=>STOCK[Line]=>Array([0]=>Array([Fields]=>Array([0]=>Array([F...
asked by 27.04.2016 / 17:54
1
answer

Date and Time and Weekend

I have a script , which does automatic scheduling of tasks. Through the line below, I get the current date / time, add another 5 minutes, and the script gets scheduled. $timeStamp = strtotime("+5 minutes", time()); But when it's a...
asked by 06.05.2016 / 04:14