Home >

php

Advertisement
  • Initial offset of number of posts in home page on the posts pageMarch 17

    I've got a problem. Im using WP_query on my static home page, and i've set up an 'archive' page (not like archives/tags etc) as my 'page 2' which has all my other posts on it. My home page is a total of 13 posts, but I was wondering, on the 'archive'

  • Translating add to cart woocommerce buttonMarch 17

    I am trying to translate add to cart button. I have 2 code snippets from woocommerce documentation here are they: FOR SINGLE PRODUCT - THIS ONE WORKS add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +

  • Basic template engineMarch 11

    I wanted to know how I can improve it. I mainly want to look at speed and performance, but if there are any improvements please give a suggestion. <?php defined("SECURE") or exit('Please define SECURE keyword to continue.'); class template {

  • Basic SQL Help - Syntax error in Query ExpressionMarch 8

    I am beginning to learn SQL and I have made a basic .mdb table. I am trying to have a page where the user selects a book category and when they click on it, the next page will have the book content & author within the book category they chose. I curr

  • IGNORE INTO Mysql not ignoring record

    IGNORE INTO Mysql not ignoring recordMarch 8

    Here is my sql code to load csv file into database but i have lots of duplicate code generated by perl script. I want to ignore duplicate records while inserting into DB and it's work but every time it inserts one duplicate record you can see in scre

  • Switch between Jquery AJAX and PHP with target="_blank"March 7

    I have a search result displayed - in this there is an anchor tag like below. <div class="addfriend"> <a href="add_friend.php?from=kpkdhar22&id=2" id="2" target="_blank" onclick="addfriend(1, 2)&qu

  • Multiple strings for one VariablesMarch 7

    I am trying to create a system which allows for authorizing a transaction via a Admin ID. I wish to have multiple Admin ID's, to track which user made the transaction. $txtKnownAdminHash = "c0b71d437b9138ce3c1860b09b8923ebed6f8aeb3db4093458f38300f6f2

  • nginx php-fpm7 - blank screenFebruary 24

    I try to setup nginx + php-fpm with this nginx.conf: http://pastebin.com/52pFEWqT But I see blank screen in browser and in php fpm outut 127.0.0.1 - 20/Feb/2016:17:07:18 +0000 "- " 200 Can you help to fix it?

  • XAMPP: running index.php leads to error (Win/Linux)February 17

    I used to use XAMPP on a Windows Computer to see how my homepage (php) works. Everything works fine without any issues. I now installed XAMPP on my Notebook which runs on Linux. Installation went fine without any problems. When I open http://localhos

  • Locating PHP extension folder using bashFebruary 5

    I'm trying to build a bash script to install the Source Guardian PHP extension however the destination directory is different on every subsequent release of Ubuntu. Installing PHP5 on Ubuntu 14.04 results in the extensions being stored in /usr/lib/ph

  • Custom Form Processing IssueJanuary 31

    I have created a form on my wordpress site, a function to process the data located in functions.php, and an action php file. I have tested the processing function and know it works, but I'm having trouble getting everything to communicate with wordpr

  • PHP Basic template engineJanuary 17

    Basic template system for PHP, I wanted to know how I can improove it? mainly I want to look and speed and performance, but if theres any improovements please give a suggestion below, thank you to everyone who helps. <?php defined("SECURE") o

  • VirusTotal explanation needed [on hold]January 15

    I have done a virustotalscan on a custom PHP script that I've just purchased for quite a lot and it gets detected by Rising AV as "JS:Trojan.Nemucod!1.A420 [F]". I have tried to look up the rising antivirus to do a scan myself but it's unfortuna

  • Simple Cloud using PHP [on hold]January 12

    I am looking for a simple Cloud written in PHP. It should be possible to integrate it in a existing design. Also you should be able to create accounts for your clients, and put files into their folders so that only those clients can access the files

  • Auto System Backup and SiteMap Update not working in MagentoJanuary 8

    I have Magento 1.9.1.1. I have configured SiteMap update and System Backup in Magento on the backend. I have also setup the cron job to run. The cron job does work because I see the cron_schedule table getting updated. +-------------+----------------

  • Net beans debugger on mac not working

    Net beans debugger on mac not workingJanuary 6

    my net beans debugger on my mac is not working and I am not sure why. This is the php.ini file on my MAMP. Its located in my php5.6.2. folder. [xdebug] zend_extension="/Applications/MAMP/bin/php/php5.6.2/lib/php/extensions/no-debug-non-zts-20131226/x

  • 10-php.conf deleted apache confJanuary 1

    I had a file deleted from my web servers that caused PHP not to load. Would an Apache update on cent is 6 would cause /etc/httpd/conf.d/10-php.conf to be deleted? This hasn't happened before but cannot think of anything else. [[email protected] conf.d

  • nginx config with php and alias broken after updateJanuary 1

    I have configured access to a local directory through an nginx alias + php support: https://mydomain.de/wbg points to /var/www/wallabag. Everything was working fine until I did a normal apt-get update && apt-get upgrade on the server (running on d

  • Test if fragment caching is workingDecember 19

    I had this fragment caching function added in the `function.php. it goes like this: function fragment_cache($key, $ttl, $function) { if ( is_user_logged_in() ) { call_user_func($function); return; } $key = apply_filters('fragment_cache_prefix','fragm

  • Display only text to WordPress loop without loosing the text formattingDecember 18

    I want to display text from content (only text) with the formating (paragraph, bold, italic.) on loop. When I am using this code: <?php echo mb_substr( strip_tags( get_the_excerpt() ),0,255); ?> or <?php the_excerpt(); ?> The text displayed wi

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