have problems importing keys generated with php openssl to CryptoAPI I successfully create key pair in php, crypt/decrypt a string with it – no problems Then I wrote a program in Delphi which should import private and public keys into CryptoAPI. I found some example private RSA key in internet and it im…
Sending multiple emails with PHPmailer
Edit: I forgot I’d created the SendMail(); function myself, which is why the explanation doesn’t mention at first what it does. I’m having some trouble with PHPMailer (https://github.com/PHPMailer/PHPMailer) when attempting to send two emails, one directly after the other. The script is almo…
How to select certain fields with mongodb doctrine in symfony2
I want to find some documents from my mongo Database, and I’m using the function : FindBy() unfortunately this function doesn’t have any field selection arguments like native mongodb driver has with the function : find(). Does any one know how to select custom fields in the doctrine of Mongodb ? T…
PHP Post Method Error
I am using Post method in my website. In my index.html file is the following code: <meta http-equiv="X-UA-Compatible" content="IE=…
‘Invalid parameter number’ error using bindParam to create an MySQL query
I have written a function that takes four arguments and passes them to my MySQL database using a PDO. I am trying to use bindParam so that I can use the variables to construct the query. I have followed the examples in the PHP documentation, but I am getting the following error: ERROR: SQLSTATE[HY093]: Invali…
Custom config file for codeigniter
Very new to CodeIgniter, trying to create a custom config file to load special variables into my application. in application/config/ I created custom.php and placed the following code in that file: I then opened up application/config/autoload and altered the following code: I refresh my application and see th…
Find div that has no class and no id in PHP Simple HTML DOM Parser
I am using PHP Simple HTML DOM Parser. It works well, but I have problem selecting divs that do not have both ID AND CLASS. will return all divs that has no class, but can have ID. I tried this one but it did not work. Answer I don’t think that it has this sort of functionality, if you look
How to disable PHP Error reporting in CodeIgniter?
I’ve read the official documentation and all they say is that I should have a error_reporting() function located at the top of your main index.php file. But I don’t have index.php file in my project. My base controller is called core so to get to main index I go to www.mysite.dom/core/. So I guess…
How to display a readable array – Laravel
After I write: And after I refresh the browser I get an unreadable array. Is there a way to get that array in a readable format? Answer dd() dumps the variable and ends the execution of the script (1), so surrounding it with <pre> tags will leave it broken. Just use good ol’ var_dump() (or print_r…
500 Internal Server Error when trying to use ErrorDocument to handle request
I have this .htaccess file: However, when I go to localhost/example.php, it returns a 500 Internal Server Error. Any help please? Thanks. EDIT: The full error message that comes up is: Answer You’re most likely getting 500 due to looping error. Exclude 404.php from last rule as: