Posts by Machado • 613 points
18 posts
-
2
votes2
answers1783
viewsA: X.PagedList.Mvc with Core and Bootstrap 4.0
Extending @Matheus' response to ASP . NET Framework To function correctly, you must return to liTag instead of aTag of function FunctionToTransformEachPageLink, because if not the list is rendered…
-
0
votes1
answer68
viewsA: What’s the difference between map() and mapSpread() Eloquent Collection’s
Collection::map(callable $callback): Collection Run a map over each of the items. The method map will iterate over each item of the array, applying the $callback and returning a new value to the…
-
3
votes1
answer218
views -
4
votes2
answers480
viewsQ: Single vs. Double Quotes in PHP Regex
whereas I own a path which I wish to verify with preg_match if it is the desired path, what is the difference between the two operations to follow? // Single quoted string…
-
11
votes1
answer2784
viewsA: How to get HTML code from a page with PHP?
Hello! In fact the file_get_contents() does exactly what you want! From the PHP manual: file_get_contents() - Reads all contents of a file to a string. That is to say: file_get_contents() does not…
-
0
votes2
answers146
viewsQ: Spacing between tbodys
I have an item listing table with groups of lines (tbody) and would like to add spacing between them, not that I haven’t already done, but I’ve been looking for a "less gambiarra" way to achieve the…
-
2
votes2
answers768
viewsA: What does -Rf mean after rm?
With a little more research I found the following: rm removes / delete: -r recursive (recursively): recursively deletes all directories/files that match. -f force (force): force exclusion without…
-
0
votes2
answers768
viewsQ: What does -Rf mean after rm?
I have a command in SSH on the platform Magento (installed on a server Apache) to delete the contents of the cache folder rm -rf path/to/folder/* but I’m not really sure what -rf means.…
-
4
votes2
answers1498
viewsA: Using Object or Iframe to import other sites to my site
You can upload the contents in the iframe: <iframe id="estilizado" src="externo.html"></iframe> And then access your elements via jQuery or Javascript: var seuIFrame =…
-
1
votes0
answers36
viewsQ: How to use requireFailure in Hammer.js?
I don’t know exactly how to define the element in which to apply my function in the Hammer.js frame. There in the API itself is passed the following syntax: var horizontal = new Hammer.Pan({ event:…
-
3
votes1
answer1261
viewsQ: How to recover Codeigniter session data directly from database?
I am trying to recover data from my table ci_sessions of CodeIgniter that are saved in a serialized way. $data = $this->db->get_where('ci_sessions', array('id' => $id))->row('data');…
-
4
votes2
answers5046
viewsQ: How to validate Google reCaptcha / noCaptcha in PHP?
How to send such POST that Google asks and so make my field validated?
-
5
votes2
answers5046
viewsA: How to validate Google reCaptcha / noCaptcha in PHP?
You send the POST method with the necessary data to google and receives content in PHP Array as follows: $captcha = $_POST['g-recaptcha-response']; $response =…
-
1
votes1
answer994
viewsQ: How to convert to Database and check if a date is valid
How do I convert to YYYY-mm-dd and check if a date transmitted by a user via POST method is valid for my application?
-
2
votes1
answer994
viewsA: How to convert to Database and check if a date is valid
Previous method removed due to certain errors. Here is another way to validate dates brazilian (not tested in other formats). If you’re in the Brazil and still could not convert the date taken from…
-
0
votes6
answers2500
viewsQ: Hover on DIV1 change DIV2 with CSS
If I have a #div1 and a #div2, and they are brothers, I know I can use the dial ~ to stylize the #div2 as follows: #div1:hover ~ #div2 { /* regras */ } Is there an equivalent selector to style the…
-
3
votes1
answer94
viewsQ: Make DIV occupy page remnant with CSS
Good guys, I have a div#x that varies your width amid 70px ~ 220px. I need a second div#y, who is next to you occupies the rest of the page space. With jQuery it would be something like:…
-
3
votes2
answers201
viewsQ: URL rewriting in . htaccess
have the following URL: http://<site>/application/views/ambiente_teste/assets-teste/... And I wanted to rewrite it for: http://<site>/assets-teste/... I have tried in my . htaccess the…