Categories
PHP

404 errors after backup buddy migration wordpress

So I’m in charge of migrating a website from its current page to the staging site for testing. I was given backup buddy and told to use this program. Unfortunately I was not given any login credentials and the guy in charge won’t give them to me so I can’t talk to tech support. So […]

Categories
PHP

query_posts exclude custom field

I have an RSS feed that includes the following loop: <?php /** * Template Name: Custom RSS Template – Template Name */ $postCount = -1; // The number of posts to show in the feed $posts = query_posts(‘post_type=job_listing&showposts=’ . $postCount); //print_r($posts); header(‘Content-Type: ‘.feed_content_type(‘rss-http’).’; charset=’.get_option(‘blog_charset’), true); echo ‘<?xml version=”1.0″ encoding=”‘.get_option(‘blog_charset’).'”?’.’>’; ?> I have a custom field […]

Categories
PHP

Is it possible to list all spreadsheets from Google Drive that are public?

I have been researching trying to find out if I can display all of the spreadsheets that are public from my Google Drive. I have found the API to list a single spreadsheet but you can only list it with a spreadsheet ID. Link: https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get I have also searched google but none of the results […]

Categories
PHP

how to send/mail form submitted info to an x email?

Hi how can I send a website form information submitted to an email of my choice? I am building a website in html and want to have a contact form and send the clients data name phone and email to the company’s email so that the company can reply later. I was trying to use […]

Categories
PHP

Paiement system with react-native

Good evening! I would like a realized payment service with react-native. My users must subscribe every me to use my sercice but bank cards are not much developer in my country so I use a service of my operators called Orange Money. The sender types in the recipient’s number, fills in his code and the […]

Categories
PHP

How do I load more JSON items using button?

Currently I have a .getJSON firing on click of a load button. I want the next 10 items in the JSON file to load on each subsequent click. Currently the first 10 items are being appended each time instead of the next items in the array. JS: var current = 0; $(document).ready(function() { $(“#get-data”).click(function(){ //load […]

Categories
PHP

Getting an empty AJAX response from PHP login request

I have the following php code, which works on its own. However, when using it AJAX it returns an empty response. PHP login code: <?php session_start(); include_once ‘resources/database.php’; if(isset($_POST[‘m_login_signin_submit’])) { $email = trim($_POST[’email’]); $user_password = trim($_POST[‘password’]); $password = MD5($user_password); try { $stmt = $db->prepare(“SELECT * FROM users WHERE email=:email”); $stmt->execute(array(‘:email’ => $email)); $row = $stmt->fetch(PDO::FETCH_ASSOC); […]

Categories
PHP

laravel, basic instalation, redirect give me back a 500 Error

I have make a basic instalation of Laravel 5.6.5 with composer, and also I have added socialite plugin. I have read some stackoverflow question, but I dont’t get it works. If I run laravel with php artisan serve it works, but If I try to use the local Apache (2.4.18) It give me back this […]

Categories
PHP

PHPStorm xdebug over SSH tunnel path mappings

I’m debugging PHP on a remote server (Amazon Linux). I can get PHPStorm to “Break on first line”, and step through execution properly, but when it moves to another file it gets totally the wrong line. It keeps stepping through and seems to be working that way, but on the wrong line so I can’t […]

Categories
PHP

Current date with datetime

I have a vacation request form, I have a two date and time fields. Well one field is start_date and another is end_date. What I want is that when a user goes to create a request, in the field of start_date leave the current date and the time is 08:00, some help? It should look […]