Questions tagged as 'php'

3
answers

Search for value corresponding to weight

I have a table with values, where each value is according to weight (kg).    Up to 3kg = $ 20.00       Up to 5kg = $ 25.00       Up to 10kg = $ 28.00 SELECT estado, kg, valorCap, valorExcedCap, valorAloremCap, prazoCap FROM transporta...
asked by 14.05.2015 / 21:49
2
answers

MySQL Due Date

I have a register where I store the product registration date. However I need to exclude these products after 5 days registered in the database. I tried to use PHP with the following code: $dataExcluir = mktime(null,null,null,date('m'),...
asked by 03.06.2015 / 20:43
1
answer

How to implement the MVC standard in PHP

I'm a novice programmer and I'm having a hard time putting together my MVC framework. When I say structure I mean how to develop a model.php a view.php and a controller.php, in short what code to develop to connect them, make them interact with...
asked by 12.05.2015 / 17:25
2
answers

Get json values in cURL return

I have three distinct servers: server A, server B, and server C. Where A registers users and stores personal information. I'm trying to log in from servers B and C into A using cURL. I need to return the values of A to authenticate user and t...
asked by 24.05.2015 / 15:34
1
answer

Read dbase in PHP

In the company has a software in Clipper, which saves the information in dbase (database_dados.dbf), now there is a need to integrate it with PHP, but I can not use the dbase functions. I have already enabled extension=dbase.dll in php.in...
asked by 02.06.2015 / 18:55
2
answers

Difference between two dates in PHP in months of 31, 28 and 29 days

I have a bonus system that only frees the bonus after 30 exact days of the user's registration. To compare the current date with the user's registration date so that I get how many days left to complete 30 exact days, I use the following code...
asked by 03.06.2015 / 03:57
2
answers

Activate module "zlib" in php 5.5

I have a Magento store hosted on a dedicated server and to generate a PDF file in one of the platform modules you need to have the Zlib extension installed. The same is already installed, if I execute the following command in the terminal the ex...
asked by 09.06.2015 / 22:56
2
answers

Definition of numeric value in PHP Constants

Can I use the define () command to set a numeric value to a constant? All the examples I've tried only use strings, is it okay to set a numeric value?     
asked by 09.06.2015 / 03:42
1
answer

Instantiate class outside the namespace

I have a class with namespace defined: namespace App; class AppSessionHandler { private $db; //... $this->db = Utils::ZendDB(); >>>>>> LINHA 12 } The following error occurs:    Class 'App \ Utils' n...
asked by 09.06.2015 / 13:08
2
answers

SetInterval () and load () functions and traffic problems

So guys .. I know the code below is pretty unnecessary, but I just need to know one thing, actually an answer ... The code below in my site serves to make refresh in an update icon that shows the number of notifications in case any friend...
asked by 18.06.2015 / 15:18