366 solutions found in php-dev
Page 6 of 19votes
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
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_...
votes
To find the number of elements in a PHP `$array`, which is [faster/better/stronger][1]? `count($array)` or `sizeof($array)` ? Edit ---- Thanks to Andy...
votes
I'm trying to build a list of functions that can be used for arbitrary code execution. The purpose isn't to list functions that should be blacklisted or...
votes
Simple question, but the answer seems quite hard to come by. In Codeigniter, I could load the URL helper and then simply do echo base_url(); to get my...
votes
I have a html form which has a select list box from which you can select multiple values because its multiple property is set to multiple. Consider form method...
votes
I need to have a class constructor in PHP call its parent's **parent's** (grandparent?) constructor without calling the parent constructor. // ma...
votes
I try to use PHPMailer to send registration, activation. etc mail to users: require("class.phpmailer.php"); $mail -> charSet = "UT...
votes
I've installed PHP 7 using [this repo][1], but when I try to run ``composer install``, it's giving this error: > - [package] requires ext-curl * -...
votes
What is the best way to accomplish this?
votes
I'm trying to parse some HTML using DOMDocument, but when I do, I suddenly lose my encoding (at least that is how it appears to me). $profile = "...
votes
I'd like to see what the post fields in the request are before I send it. (For debugging purposes). The PHP library (class) I am using is already made (n...
votes
We need to see what methods/fields an object has in Javascript.
votes
I realise the second one avoids the overhead of a function call (**update**, is actually a language construct), but it would be interesting to know if one is be...
votes
I'm wondering what the difference between .phtml and .php files is, and when to use one over the other.