39,326 Topics
| |
Hi, I tried to generate a script which can download youtube video on server end, I only need to provide the video url ... I serached alots but <?php // Check download token if (empty($_GET['mime']) OR empty($_GET['token'])) { exit('Invalid download token 8{'); } // Set operation params $mime = filter_var($_GET['mime']); … | |
Hi, I'm new with WordPress plugin development, I try to login and install a plugin with the WP user credentials without using login panel just like managewp.com people do.., they ask me for my site name,username,pwd then they automatically install their own plugin to my WordPress and one more thing … | |
Hey All, I think I messed up.. I went to PhpMyAdmin and clicked export and exported all my databases with the default options to a sql file. And I downloaded a bzip file with my sql file in it. If I open the sql file it looks like BZh41AY&SYò)É<91>^@B"_<80>P^Pz÷ÿúÿÿÿðÿÿßð`4^^òPÇ»w^Fç-îä»o11ãwÞ|ú^AÜ^Aëo¨ú½Ðî^Nï:.Ó§;Såñݱèó¦ô<9b>ÓÎÞe·<92>ó»7×Ú;<98>£§Nɤ)lÓFP<94>^Tå<8b>Û^T'<86>Çܦî°:n±@÷Þ=öõôût[Àûî÷¼>D<94>}5D7¸ÏyÕ^]zâªR<90><<9c>$P@Ð^H^B50§<94>{Th&Ò<£F<9a>^L^SLF^F<99>^@¢<9a>(hh^Y^@^F<9a>^@^@Ð^@^@^BA$^R<9e><89>詵=ªm4<99>4^Y^@^OPô<9a>h^Z^@^@^Rz©(ÔÊz£ÔñA£&<8d>© ^M^@È^M^@^@^@^H<92>^P #!4ÒzL<9a><9b>Q<99>SÄ<8d>1<88><9b>@<9e><8d>C@ … | |
I am not a jquery guru in any sense, so I am seeking some help with the below code. What I am trying to do, is populate two input fields, based on what is selected from a dropdown field via a database call. When I select a term from the … | |
The below code displays correctly, I need an "IF" statement that prevents displaying rows with 0% in the percent column and I've tried several conditions. None are working. I only want to display rows that has at least 1% in the percent column. Here is the code: $result = mysql_query("SELECT … | |
| Here is my snippet for which am trying to understnad output of var_dump(). echo "<br> <br> Part2: "; $query1="select * from student"; $result=mysqli_query($con,$query1) or die(mysqli_error($con)); var_dump($result); if ($result) { $num1=mysqli_num_rows($result); var_dump($num1); echo $num1." rows affected."; } OUTPUT: ![d13507ba3998569ccd8376c851b1d753](/attachments/small/4/d13507ba3998569ccd8376c851b1d753.jpg "align-left") <---- Any explanation for this output? |
Hello, I'm wondering if I can get help to understand the behaviour of a PHP function: `dns_get_record()`. This returns an array with DNS records for the given domain name, here is an example of the output: php > print_r(dns_get_record('php.net', DNS_TXT)); Array ( [0] => Array ( [host] => php.net [type] … | |
I need to develop Feedback module in PHP/MySQL. **I would like to know the database design and flow to manage this system.** > There are questions for 2 tools which i need to store in my databse and need to create report like %of Positive Response, % of Negative Response, … | |
Hello , everyone ! I have a question about XML & MySQL . So .. First , what I want to do : I have a Excel file ( .xml saved ) and I want to create a script that insert the XML file in MYSQL Database without any CPanel … | |
so i have followed this tutorial and i stuck into the activate section of this here's the tutorial. what went wrong? http://youhack.me/2010/04/01/building-a-registration-system-with-email-verification-in-php/comment-page-3/ | |
Hi Master, I cant unlink or update my uploaded image. I can successfully upload image bt i cant use unlink function or Any body help me how can i remove / Update uploaded image. Here is my Controller: public function addProfileLogo() { $data = array(); $errors = ''; if ($_FILES['logo_image']['name'] … | |
| I have this following question about different behaviour of result set for SELECT command and INSERT,UPDATE,DELETE command. My Script: //Part 1: $query="Insert into student values($roll,'$name')" ; $result=mysqli_query($con,$query) or die(mysqli_error($con)); if ($result) { $num=mysqli_affected_rows($con); var_dump($num); echo $num." rows affected."; } //Part 2: $query1="select * from student"; $result=mysqli_query($con,$query1) or die(mysqli_error($con)); if ($result) … |
Hi, I have a extension in my opencart store that uses a .csv file to import data into products. The .csv file is a stock inventory list from a tyre manufacturer. The extension uses a string value of the image filepath that get inserted into the database. The issue I … | |
i have a problem with this website after i added this piece of code to the .htaccess file #Rewrite .php to .html RewriteEngine on RewriteBase / RewriteCond %{THE_REQUEST} (.*)\.php RewriteRule ^(.*)\.php $1.html [R=301,L] the code was suppose to rewrite all the name of my pages that ends with .php to … | |
Hello, So I am a php novice. The company I work for has been getting a lot of spam via our contact form lately so I need to secure it, which I have done with adding a hidden field that if the form is autofilled it will not send. But … | |
| A simple login script that won't be much trouble for members in here. But query within is getting fired up for wrong credentials. My Script. <?php require("C:\wamp\www\Onex\connect_db.php"); if(isset($_POST['login']) && !empty($_POST['login'])) { $uname=$_POST['uname']; $pass=$_POST['pass']; $login_query="select * from register where username='$uname' and password='$pass'"; $result=mysqli_query($con,$login_query); if($result) { echo "Login granted. <br>"; while($row=mysqli_fetch_array($result)) { … |
Hi Everyone. I have the follwing htaccess file working just great. Basically it rewrites .php to .html and also rewrites none www. urls to www. My question is how can is remove a directory from the .php to .html rewrite rule? My pages are correctly being rewritten to .html files, … | |
My code looks like this: if (!empty($foo)) { $doc = new DOMDocument(); $doc->loadHTML($foo); $images = $doc->getElementsByTagName('img'); } And this is happening: DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Document is empty in Entity, line: 2 | |
Hi , I am creating a search page where searching from databaes against a field .From the string "**Birdnesting is the common hobby with the English boys**.And boys are playing in the ground .Again the boys are playing in the ground. **But Birdnesting is not a cake** . " if … | |
hello images not display in live server when uploading from localhost to live server. It is properly work in local server thanks in advance | |
i just wanted to know for future which language is good php or java thanku..:) | |
Hello, How to create advertising pop up that appears like this : [Agent Ads](http://www.indovision.tv/) at the very first time users opening the homepage. | |
I want to make user profile picture who only have account. But I dont know how to insert and display in the page that image form database, please support. | |
user 'Logout' is not working in my website after migrating to new server. before it was good. here is the code in member.php // Log-out part if (isset($_GET['logout'])){ $pass = ""; setcookie ("pwd","",time()-3600); $pwd = ""; setcookie("name","",time()-3600); $name=""; setcookie("type","",time()-3600); $type=""; header("Location: member.php"); } Looking for help Thank you | |
Hi, I'm trying to substract the hours of the time with the hours of the begining of an event, and print how many time is left. Can someone help me? //Preço Viagens $partida=$viagens['HoraPartida']; $horapartida = explode(":", $partida); echo $horapartida[0]; $horasistema = date("G"); //hora sistema $difhoras=$horasistema - $horapartida; | |
Hi i have this query that search data between two date range `select RA, Name, Model, Plate, Service, Grand_total, Payment_type from advance WHERE SDate BETWEEN '" . $from . "' AND '" . $to . "' ORDER BY Payment_type` which is working great but i need to alter it so … | |
I can not get a page to load from the following php program. When I load the page in the browser all I get is a blank white page. I also looked in the /var/log/apache2/error.log file and found this line -> [Sun Aug 25 21:36:37 2013] [error] [client 127.0.0.1] PHP … | |
<?php // PHP script to allow periodic cPanel backups automatically, optionally to a remote FTP server. // This script contains passwords. KEEP ACCESS TO THIS FILE SECURE! (place it in your home dir, not /www/) // ********* THE FOLLOWING ITEMS NEED TO BE CONFIGURED ********* // Info required for cPanel … | |
so i have the following script: <?php /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* … | |
Im trying to pass a session variable $_SESSION['id'] form one page to another. But in the page im trying to pass it to I get this error Undefined index id The pages are in different dirs but in the same parent dir obviously, would this have anything to do with … |
The End.