We are experiencing significant TTFB/Wait times on an ajax call that is effectively our entire site/proposition (it loads job listings on our job board). We are using a combination of WP Job Manager and Jobify - a well known and widely used combinati
I've spent the last few evenings learning PHP, CSS and HTML through Codecademy and now on Team Treehouse. My goal is to progress with PHP over the next year or two and perhaps obtain Zend cert. Anyway, I've worked on a simple calculator to test what
I need to populate some typescript arrays with PHP array values. Here is how I do it: Relevant portion of index.php: <? require 'scripts/back_end/database_connection.php'; require 'scripts/back_end/get_countries.php'; require 'scripts/back_end/views/
I set new PHP7 version with .htaccess at root, but few files in subdirectories show errors and I want to set with .htaccess PHP v5.6 only for this files. Is this possible? Action application/x-httpd-php70 /cgi-sys/php70-fcgi-starter.fcgi AddType appl
I have implemented a PHP server which sends push notifications to visitors of my site with the following code: $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert); stream_context_set_opt
php 5.6.18 and apache 2.4.18 under freeBSD, trying to start kohana wellcome controller with user-friendly URLs. Kohana::init(array( 'base_url' => '/', 'index_file' => true, )); and standart htaccess file: # Turn on URL rewriting RewriteEngine On # I
I am using Meta Box Plugin to add some custom options to my Page Edit. I added a field to add an image background to the header which is working great. This image background has a parallax background effect. I have the following code: <div class="
I am working in a shortcode for visual composer grid. I want to show the list of terms of a taxonomy (portfolio_tag) associated to a custom post type (portfolio). The shortcode gets the ID from the post correctly, but it is a string, not a number. Wh
This question already has an answer here: When should you use WP_Query vs query_posts() vs get_posts()? 7 answers I've been aware about the difference of wp_query and query_posts. I just want to know what impact does both query methods to the perform
Hi I am building a plugin and am not as familiar with wordpress hooks as I would like. The code would not be used to display on a page rather just setting in the database. I am looking for a hook or snippet that will help me do the following: grab al
I'm trying to implement pagination into WC's customer order history that can be seen on the "My Account" page using woo_pagination(). https://docs.woothemes.com/document/woo_pagination/ The template file I'm trying to edit is - woocommerce/templ
I recently built a Docker image for Composer, and I'd love to get a review of the image, the bash based wrapper script, it's recomended use, and the repository structure. Here's the Dockerfile for the latest tag: FROM alpine:edge MAINTAINER Samuel Pa
The code below selects rows from the DB random rows.I want to select 10 random rows and then in an output variable like the code below. First i want to select ten random rows then output them in something like the code above. My code: <?php DEFINE ('
In my Symfony (v2.7.9) project I have a set of entities which share some view functionality i.e being displayed in a table with some of their values as columns. Following the separation of concerns principle, I've made a ListTable class which handles
I don't know if this method uses a lot of time to process, or if it is bad but I wanted to know if there is any better way of actually doing this? I have a few class files that I want to stop users viewing through the browser, and only allowing them
I have 330000 products in excel sheet and i am importing this into wordpress woocommerce. I had already imported 138245 using custom php script, but if i will import more 50 record the product table is crashed and shows blank page. see: thanks.
I'm attempting to make a simple web app. I'm at the stage of creating the user profile section of it, and I'm stuck at allowing the user to upload their own profile picture. please see below for the query I'm using. $username = $_SESSION['username'];
I have the code echo(' <div class="row"> <div class="col-sm-2" > <form method="POST" action="plan.php"> <p>Selectati data raportului:<br> <select name="SelectDR" onchange=&