How do I run php from the command line, without having to use a script as an argument.
Example with script:
> php index.php
I already know how to execute a certain function or code like this:
> php -r "echo 12346;"
But is ther...
I'm doing a query to my DB, and we can make an identical query to this:
"hello world" "pacific ocean"
What happens is that I can search multiple strings at once:
Expected result:
String1: Hello world
string2: paci...
I'm developing a system in Laravel 4 based on Laravel's official tutorials and documentation. I have not seen anything related to (ACL) access permissions in Laravel. Knowing that my system will have several resources available, such as: New...
I have a question regarding the longblob data that is stored in the Database.
I currently have this for the other data:
echo "<tr><td>Email:</td>";
echo "<td>";
if ($exibe['Email']) {
echo $exibe['Email']...
I've created some classes and an interface to handle events for a small MVC application. My intention is to implement the Observer pattern, but I do not know if you agree, since I still confuse it with PHP. In the following code, did I do it the...
I would like to create a simple markdown, for bold and italic for now only, for example:
**foo** turns <b>foo</b>
__bar__ turns <i>bar</i>
Of course some details are needed, for exam...
I have a X value and I have a array with multiple values.
I would like to search for all the equal and lower values that would come in a combination that their sum would give X value. >
Example:
Array (in real scenario, tho...
I would like to know how to copy an image from a link without extension, that is, I already used several methods that work for images with extension, but without extension I have not yet, where will I use to copy the image of the Facebook profil...
I'm not able to insert formatting into code.
Whenever I send, I get the email formatting tags as <html> <body> , <strong> , <b> , <p> , etc ...
Follow the code with html formatting that...
I have a question about Laravel's Migrations and I believe they can help me.
1 - I created a model with migration by php artisan make:model Evento -m;
2 - In addition to increments and timestamps I added one more field to the migrat...