Just had a WordPress site updated with the latest Custom Contact Forms. After the update the site is no longer loading and I see these errors: The first error refers to this function: But these errors are only PHP warnings, not fatal errors. But I get the white screen of death anyways. I am not familiar with …
Put a file on FTP site with contents from string variable (no local file)
I want to upload a file to an FTP server, but the file content is held in a variable, not in an actual local file. I want to avoid using a file; this is to avoid security risks when dealing with …
Codeigniter 3 – Access Session from Outside Codeigniter Installation
I can’t seem to get session data passed from my codeigniter application back to a script in my includes folder. From what I’ve read on other answers, I need to set my session_id() to be able to rejoin a session with session_start(). Theoretically the code below should work, at least according to o…
echo “windows.open(‘view_users.php’,’_self’)”; – is not working
I’m faily new at this so please help. I’m doing and admin panel, and once I put my email and password, it doesn’t go to the page I created (view_users.php). I’m following this tutorial. Everything works until minute 15.47. This is a school project, nothing too fancy. Here is the php pa…
Elasticsearch Sort based on value first
I want to sort results on the release date. I want 2015 movies first and the rest of the years sorted on the has_poster value. So I get results like: 2015, 2015, 1989, 2017, 2006 etc. So far this …
How to get absolute path to public_html folder
I’m a little confused about absolute paths when searching in the questions. I have a php project that includes a Header.php file which is the header for first level php files. To avoid adding another …
Sort array by keys in custom order
I have the following multidimensional array I need to sort each of the inner arrays by their key so they are in the order LOW, MEDIUM, HIGH (the first is correct by chance). I tried the following code which I took and adjusted from here: but this orders them as HIGH, MEDIUM, LOW (ascending alphabetical). It d…
Getting error when sending an email in Laravel 4.2
I have an error in Laravel when I am sending an email. I have a form with a select tag and when I select the user and click submit I need to send him a mail after I select it. Here is my …
htaccess url rewrites and redirects not working
I have a website that was updated. I want to make the old urls work, I want to redirect some of them, so links from google search still work, and rewrite the url for other urls, using .htaccess. For …
permission denied for composer in /usr/local/bin/
I followed the documentation on https://getcomposer.org/doc/00-intro.md#globally to install composer globally on arch linux. When I do composer self-update, I get this message: [ErrorException] …