366 solutions found in php-dev
Page 16 of 19votes
I saw different binaries for PHP, like non-thread or thread safe? What does this mean? What is the difference between these packages?
votes
I use this code to get the full URL: $actual_link = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; The problem is that...
votes
I want to convert these types of values, `'3'`, `'2.34'`, `'0.234343'`, etc. to a number. In JavaScript we can use `Number()`, but is th...
votes
I'm a little confused why I see some code in PHP with string placed in single quotes and sometimes in double quotes. I just know in .NET, or the C langua...
votes
PHP treats all arrays as associative, so there aren't any built in functions. Can anyone recommend a fairly efficient way to check if an array *"is a l...
votes
This is a question you can read everywhere on the web with various answers: $ext = end(explode('.', $filename)); $ext = substr(strrchr($file...
votes
What is fastest way to remove the last character from a string? I have a string like a,b,c,d,e, I would like to remove the last ',' and get...
votes
I have two dates of the form: ```lang-none Start Date: 2007-03-24 End Date: 2009-06-26 ``` Now I need to find the difference between these two in the f...
votes
When running my script, I am getting several errors like this: > Warning: Cannot modify header information - headers already sent by (**output started at...
votes
What's the best way to determine the first key in a possibly associative array? My first thought it to just foreach the array and then immediately breaking...
votes
Actually I want to read the contents that come after the search query, when it is done. The problem is that the URL only accepts `POST` methods, and it does not...
votes
I'm building a PHP script that feeds JSON data to another script. My script builds data into a large associative array, and then outputs the data using `jso...
votes
After noticing an application tended to discard random emails due to incorrect string value errors, I went though and switched many text columns to use the `utf...
votes
I'm using the below code to pull some results from the database with Laravel 5. BookingDates::where('email', Input::get('email'))->...
votes
I had this previously in my normal mysql_* connection: mysql_set_charset("utf8",$link); mysql_query("SET NAMES 'UTF8'");...
votes
I have a WordPress production website. I've exported the database by the following commands: `select database > export > custom > select all tab...
votes
I would like to make a timestamp column with a default value of `CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP` using the Laravel Schema Builder/Migrations. I h...
votes
I've just started with Laravel and I get the following error: > Unknown column 'updated_at' insert into gebruikers (naam, wachtwoord, > u...
votes
How can I generate a create table script for an existing table in phpmyadmin?
votes
**Migration error on Laravel 5.4 with `php artisan make:auth`** > [Illuminate\Database\QueryException]...