Home >


  • Crippling TTFB/Wait times on Ajax call in WordPress [on hold]

    Crippling TTFB/Wait times on Ajax call in WordPress [on hold]September 18

    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

  • Beginner PHP calculatorAugust 25

    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

  • PHP within typescript fileAugust 17

    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/

  • Apply PHP version with .htaccess on specific file onlyAugust 10

    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

  • apns push notification click checkAugust 8

    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

  • AJAX Change functionAugust 7

    I have a AJAX change function in my code..which works fine..in local server..i.e WAMP...but doesn't execute on remote server...where might be the problem??? i checked the version of server php too... my code.. <script type="text/javascript" s

  • Kohana htaccess and index_file doesn't works as I expectAugust 6

    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

  • Meta Box Plugin - Adding field value inside echoJuly 18

    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="

  • Shortcode for Visual Composer Grid fails turning string to integerMay 14

    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

  • Does wp_query and query_posts affect website performance? May 12

    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

  • wp_query (or hook) posts by date (id) in array then set post_typeMay 11

    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

  • WooCommerce - Customer Order History PaginationMay 10

    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 need help implement a Javascript code into the PHP fileMay 10

    I need help implementing a Javascript code into my PHP file that would replace the default search box with a new one. Do I have to use echo? How would it look like? Thanks in advance or your help, I've been trying for hours now. $(function () { $('a[

  • A Dockerfile for Composer (a dependency manager for PHP)March 15

    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

  • How to get 10 random rows from MySQL database and put it into an output variable? [on hold]March 15

    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 ('

  • Using a separate class in Symfony to handle a list of entities with controller injectionMarch 14

    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

  • Better way for securing direct access to php filesMarch 14

    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

  • Is there any limit of product can store in woocommerce?

    Is there any limit of product can store in woocommerce?February 25

    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.

  • Trying to allow user to upload a profile pic to a mysql databaseFebruary 24

    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'];

  • php variable to url in address barFebruary 24

    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=&

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.283 s.