Home >

php

Advertisement
  • 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

  • How would you connect to 100 different databases in wp-config.phpDecember 18

    We have a setup where we have 100 sites using exactly the same code base, and all files are stored on Amazon S3. But right now we are running 100 different WordPress installations. Now I was thinking just to change the settings in wp-config.php based

  • OPP Sign In/Out procedure in PHPDecember 9

    Preface As a self-taught student of Web-Development and Web Technologies, I created a simple sign in/out form in PHP, just for practice purposes and some fun! I read the O'reilly's book about PHP and I found one sentence there ( I really don't rememb

  • Getting Duplicate data in database table after executing the codeDecember 9

    Hi I am getting duplicate data in database table after executing the code.I am not able to find the reason. Please help me out $total_posts = array(); ini_set('display_errors', true); try { $stmt = $db->prepare("INSERT INTO timeline_row_wise (`fbn

  • PHP Configuration classDecember 9

    Created this little config class, any room for improvements? Think I have done an alright job but would like to know if any improovements could be made? <?php defined("SECURE") or exit('Please define SECURE keyword to continue.'); class confi

  • Copy File With PHP By copy() function so slowDecember 6

    I use windows 7 ultimate and xampp in my computer. I use copy() function to copy file with PHP. But, When I tested it with same device and same file, copy function from Windows Explorer Faster than when I copy file with php by copy() function. (525MB

  • tutorials or internet documentation for building a php website beginner project?December 5

    I have a year-end project to do , a website with PHP on the theme of Rail Check is a new travel company Focused on train tickets reservations. My problem is that I still have problem to start a brick by brick project, I do not know the exact way to b

  • how to customize article manager in Joomla administratorDecember 3

    i am not that much export in Joomla. and i stuck at one problem. i want to add some custome fields in article manager page when we add / edit article from admin side. just like wordpress when i add some function in function.php page it reflacts on wp

  • php json_encode returns blank for arrayDecember 2

    I am trying to return the result of a mysql query as json, but the json_encode function always returns a blank although the array contains elements. Here is the relevant code Retrieve the query and convert to php array: $sql = "blablabla"; $clie

  • When dropdown menu selected fill textbox with data from databaseDecember 2

    I have a problem with my code. I am trying to fill a textbox with data from the database. It needs to show the price of the selected item in my dropdownmenu. But it is not working. I can fill my dropdownmenu but when I select an item in it, my textbo

  • Need help to design PHP program architectureNovember 27

    I have a web application where users upload a text file. Application reads the text file and based on the file data, it has to perform 30 different tasks and show output to the user after few seconds. My approach is to write a php program which would

  • How to remove hidden code of PHP from websiteNovember 22

    guys I am facing the issue. I download WordPress temple from the web. but problem is that some hidden code is injected in top header section that hidden code is blow jobbing my full site ranking. My site is techmaniya

  • seo meta description issue in google searchNovember 20

    This is my first time to use Yoast SEO plugin in my website, I'm trying to add meta description to every pages and every post in my website. When I search it on google, seems like the meta description does not show at all, instead google take the con

  • Block specific email IDNovember 11

    I am sending an eamil to one account but that email is being sent to two id's.. eventhough i didnot write fro eamil to go fro second id, $mail2->AddAddress($leader_user[0]->email, ""); can anyone help me write a code so that emial will not

  • Laravel create method returning nullNovember 10

    I have this problem. I have a Group and Role models, with a Many-to-Many relationship setup. Group model public function roles() { return $this->belongsToMany('App\Role', 'group_roles'); } Role Model public function groups() { return $this->belongsT

  • Display text from post on WordPress loop without loosing the text formattingNovember 10

    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

  • Getting all CS:GO items from steam APINovember 6

    I know steam API has an option to get 1 item by using something like this: http://steamcommunity.com/market/priceoverview/?appid=730&currency=3&market_hash_name=StatTrak%E2%84%A2%20M4A1-S%20|%20Hyper%20Beast%20(Minimal%20Wear) There is a way to ge

  • Is there ever a reason to use variable variables in PHP rather than an array?September 27

    Is there any situation where an array is not suitable but a variable variable is? I cannot think of one or find one on any Stack Programmer Q&A. <?php $foo = array(); for($i = 0;$i < 3; $i++){ $foo[$i] = "bar ".$i; } var_dump($foo); //

  • Expect PECL for PHP 7September 26

    I just upgraded to PHP 7.0.3, but there is no support for expect. Does anyone know if is it possible to bypass the installation issue? It says: [email protected]:/home# pecl install expect-0.3.3.tgz pecl/expect requires PHP (version >= 4.0.0, version <= 5

  • How do I redefine wm_navigation() or wp_logo() within a theme that uses hooks?September 19

    What I want to do: Move the title of my website from it's current location to be in the "menu" div so that it is to the left of the menu/page list. Demo page: http://aaronmoore.me/visartsassignments/ The theme I am working from: http://www.webma

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