Posts by Pedro Amorim • 47 points
5 posts
-
1
votes1
answer2267
viewsQ: How do I make get and post requests through Curl?
I have this class with the following methods : public function __construct($url,$followlocation = true,$timeOut = 30,$maxRedirecs = 4,$binaryTransfer = false,$includeHeader = false,$noBody = false)…
-
1
votes0
answers28
viewsQ: how can I create and model a table with attributes in the database with the PDO using array?
I’ve already got this method following some examples I’ve seen around but I still don’t quite understand how I’m going to go through this array and turn the table attributes public static function…
-
1
votes1
answer1699
viewsQ: How to calculate the time difference between certain hours?
public function checks($request) { $token = $this->count->All(); foreach($token as $tokens){ $tokens->system_contador_user_update_at With this I take the time that is recorded on the bench…
-
1
votes1
answer294
viewsQ: want to do a phone validation more how do I validate the dash also if the user puts?
This is what I’ve got so far: public static function ValidaFone($RegeEx) { $RegeEx = preg_match('/^[0-9]{9,11,13}$/',$RegeEx); ........code..... }
-
0
votes0
answers322
viewsQ: How do I call the controller method inside the view?
have that method : public function Menu() { $tabelas = $this->menu->All(); $menus ="<ul><li>"; foreach ($tabelas as $tabela ) { if ($tabela->active == !false) { // $return =…
phpasked Pedro Amorim 47