Posts by Ennio Sousa • 686 points
15 posts
-
6
votes1
answer200
viewsQ: Search for people with similar names
I am developing code to search for people names intelligently using SQL SERVER LIKE operator. In names like Souza and Sousa just use brackets [] Ex.: select * from pessoas where nome like 'joão…
-
1
votes2
answers1448
viewsA: Consume data from an existing table in Laravel
As Migrations are required if you are going to create or modify tables in the dataset. To manipulate these tables, you can Query Builder, that is, without the need for a Model, for example: $users =…
-
1
votes1
answer62
viewsA: make:auth do not create Route::group
No problem if Route::auth(); not in a group of routes.
-
3
votes1
answer94
viewsQ: Remote file cache with interval updates with PHP
I’m developing a news portal and I’m using a Weather forecast API. The problem is that every time people open the page, PHP downloads the JSON of the API, and this ends up interfering with the page…
-
6
votes1
answer139
viewsQ: How to convert a Javascript array to a PHP array?
The system gives me a Javascript matrix to work on the page. I can get this array with PHP, but I don’t know how to convert Javascript to PHP and work using PHP. This is an example of the Javascript…
-
0
votes1
answer194
viewsQ: How to pick specific snippets of a php string
I am using a adapted API that retrieves the following XML data <?xml version="1.0" encoding="utf-8" ?> <ajax> <cmd p="innerHTML" t="shurlmsg"> <![CDATA[<div…
phpasked Ennio Sousa 686 -
8
votes1
answer323
viewsQ: schema.org: What to use: Microdata or JSON-LD?
The marking of structured data Schema.org for search engines Google, Yahoo! , Bing and Yandex is great for rich snippets. However I realized that most webmasters use Microdata and almost never use…
jsonasked Ennio Sousa 686 -
3
votes4
answers23723
viewsQ: How not to write duplicate data to Mysql with PHP?
I’m learning PHP and, to begin with, I’m doing a phonebook project, with name, DDD and phone. However, before new data is entered, how do I check if the same phone number is already registered?…
-
8
votes2
answers12416
viewsQ: Resize image with PHP while maintaining aspect ratio
I would like to resize images by the ratio from a remote link using PHP. This is possible? Type: http://site.net/imagem.jpg for…
-
5
votes2
answers21088
viewsQ: How to make these Divs responsive?
I am creating "informative" to put on the home page of my site and I need a light. I wanted him to stay that way: And when the visitor’s screen resolution was decreasing, the title and description…
-
1
votes2
answers2133
viewsQ: Metadata OGP.ME What is the ideal image size for social networks
I use the metadata of The Open Graph Protocol for sharing social networks, in particular Facebook. <meta property="og:image" content="http://example.com/ogp.jpg" /> <meta…
-
2
votes1
answer3861
viewsQ: How to insert HTML content in the div with jQuery without using " (reverse bar and double quotes)
I use a CMS called uCoz and it has a variable <?$RELATED_ENTRIES$(5)?> which displays posts related to the page my visitor reading. I would like to put the related lines between the text of…
-
3
votes3
answers595
viewsQ: Responsive images
I am building a blog with responsive design and currently use width:100% to resize the images inside the div. .eMessage>.pimg>img{ width:100%; -webkit-width: 100%; /*Chrome*/ -moz-width: 100%;…
-
5
votes2
answers4564
viewsQ: Internal search form
I have an internal search form on the site. <form method="get" id="searchform" action="/search/"> <div> <input type="text" value="Pesquisar..." name="q" id="s"…
htmlasked Ennio Sousa 686 -
1
votes1
answer21477
viewsQ: How to Unlock Port 80 of Windows 8 Firewall?
I’m using WAMP to run a local server and sometimes I want to show my projects to some friends, I’ve already set up port 80 on the router with my IPV4 and everything. When I do the port tests on some…