2108 solutions found
Page 11 of 106votes
How do I turn on all error and warnings and log them to a file, but to set up all of that within the script (not changing anything in php.ini)? I want to def...
votes
Is there any particular difference between intval and (int)? Example: $product_id = intval($_GET['pid']); $product_id = (int) $_GET['...
votes
We are running XAMPP with PHP 7.0 because our new products requires PHP 7. But there are old projects which use functions like `mysql_connect`, etc. Those ar...
votes
What is the simplest way of doing two way encryption in common PHP installs? I need to be able to encrypt data with a string key, and use the same key to dec...
votes
I'm using Nihilogic's "Canvas2Image" JavaScript tool to convert canvas drawings to PNG images. What I need now is to turn those base64 strin...
votes
For example, how do I get `Output.map` **from** `F:\Program Files\SSH Communications Security\SSH Secure Shell\Output.map` with PHP?
votes
Is there a way in JavaScript to compare values from one array and see if it is in another array? Similar to PHP's [`in_array`](http://www.php.net/in_arr...
votes
I’ve been trying to access this particular REST service from a PHP page I’ve created on our server. I narrowed the problem down to these two lines. So my PHP...
votes
I see these in PHP all the time, but I don't have a clue as to what they actually mean. What does `->` do and what does `=>` do? And I'm not ta...
votes
I have a problem to convert an object stdClass to array. I have tried in this way: return (array) $booking; or return (array) json_decode($b...
votes
I am sending an error response to my jQuery. However, I can not get the response text (in the example below this would be **Gone to the beach**) The only th...
votes
Is it possible? function test() { echo "function name is test"; }
votes
Why can't I pass the table name to a prepared PDO statement? $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->exe...
votes
What I mean is: Original String + Salt or Key --> Encrypted String Encrypted String + Salt or Key --> Decrypted (Original String) Maybe som...
votes
I have an HTML form field `$_POST["url"]`, having some URL strings as the value. Example values are: <pre> https://example.com/test/1234?...
votes
I have been meaning to install `ffmpeg` as an extension to my PHP setup. So before I can install it, I need to `phpize` it. I installed `php5-dev` by `sudo apt-...
votes
Simple question - how do I order by 'id' descending in Laravel 4. The relevant part of my controller looks like this: $posts = $this->post-...
votes
What are PHP Namespaces? What are Namespaces in general? A Layman answer with an example would be great.
votes
I installed a package with composer, and it installed many other packages as dependencies. Now I uninstalled the main package with `composer remove packageau...
votes
In Laravel, there appears to be a command for creating a migration, but not removing. Create migration command: php artisan migrate:make create_users_...