Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

stdClass in PHP

"stdClass" is an void class of PHP. It can be as a act of the alternative of a associative array but works only on PHP 5 and more Any associative array. You thought it of a object as same in java or python. $info = array("question" => "sc...

How to write PHP code to select specific column and display rows respectfully??

I have wrote code for sqlite to select specific columns and display rows .. id condition lat long 1 Good 0.0 0.0 2 Poor 0.0 0.0 3 Good 0.0 0.0 When I select Good, It should display my lat & l...

android google map is showing only one marker using volley library

I am using Google Map inside the "Fragment" using sqlite database connection through volley library. I have 4 location, but my map is showing only one marker. I don't know where exactly getting wrong. Where do I need to change in my code to...

How to get selected number of indexes/key from a array

If you need to get some limited key values of an array then you can use function array_slice used in PHP Let see the example I'm having an array of 400+ values $exp = array("34", "45", "45", "554", "2".......); Now I'm limiting my thi...

How to remove blank spaces from Request using recursive in CakePHP

Removing the white spaces from a string is a easy task, but for doing this in whole of you website you need the recursive function in Cakephp The 'array_walk_recursive()' will recursively get the request(GET/PUT) data and remove the white/blan...

What are the different errors in PHP

There are basically 4 different type of errors in Php. Parse Error It stops the execution of php script . Commonly caused due to syntax mistakes in codes E.g. Unclosed single double quotes, missing parentheses or adding extra parentheses...

General idea how ATM Machine Works

This blog will help the readers to understand that how ATM machine dispatches the money. Lets have a look on the ATM code in PHP: <?php $amount = $_REQUEST['amount']; $rupees = array(1000,500,100,50,20,10); $count = array(0,0,0,0,0); ...

How to correct error "Header already sent"

Hello readers. On developing the website the error 'Header already sent' is very likely to occur. This is cause by PHP when it receives outputs like echo or html tags now it can take the data but then further passing it to HTTP will be very diff...

errror come on run time to connect my android app with mysql

my code this AllProductsActivity Class public class AllProductsActivity extends ListActivity { // Progress Dialog private ProgressDialog pDialog; // Creating JSON Parser object JSONParser jParser = new JSONParser(); ArrayList<H...

How to add watermark in image using PHP script.

Hi guys ,it really helps to add watermark on images . In this code you will see that we get the position of watermark .png image where you want to place then copy to the watermark image on the main images. /* * PHP GD * adding watermark to a...

How to sort table columns using Table Sorter

Follow the given steps: 1) Add the script in your page <script type="text/javascript" src="/path/to/jquery-latest.js"></script> <script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script> 2) I...

Play youtube video on web page and remove references of other youtube videos at the end of video

Hello Readers, When we play a video on our webpage at the end of the of video it provides reference links of other videos so, if you want to play video and do not want to provide any reference links, below code will make this possible. **H...

How to delete duplicate rows in a table set MySql

Hello readers!. If you having the much of redundant/duplicate data growing in your database you can delete it with just a single query as I wrote here. Let say I have a table Address and want to delete the all the duplicate records whose city...

Android How to upload image into the server using Volley library

I want to upload my captured images from camera to my 000webhost.com server using the volley library. I want where I am getting wrong and suggest me full code solution. I have tried to write the code, But its not working. I am getti...

How to use caching in codeigniter

Web page caching Lets we use the caching in codeigniter to achieve the maximum performance. While CodeIgniter is quite fast, the amount of dynamic data you display in your hypertext pages will correlate directly to the server resources, memory...

How to get specific part of a URL

Hi Readers! If you having a useful URL and want to extract the specific part from it you learn the logic below Lets have a example $yoururl = "http://www.abc.com/usefulinfo/"; Here I'm getting only the /usefulinfo/ word. For getting th...

PHP Code to connect to MongoDB

To connect MongoDB with PHP you need to install MongoDB php driver. After you successful install MongoDB php driver, you need to create connection with MongoDB. MongoDB default port is 27017. To connect with localhost and default port $conn...

Php WP how to send a mail to the admin from a logged user

Hello, I would like to know if in WP PHP is possible to make something like that: I need for the logged user a form which when compiled and submitted, send a mail to the admin with the all data of the user from db and the message he/she write. ...

Introduction to Cookies and Sessions in PHP

What is a Cookie? A cookie can contain different data that is stored on the client browser with server specific information like user id and or user preferences. What are Sessions? Sessions are used to store information in the form of va...

Installing PHP module on Apache2

One can install PHP with apache2 in two ways, either by compiling from source code or from repositories by using a package manager. Both ways are discussed below. Installing from repositories : This is very simple and straight forward method ...

In Wordpress, How user can fill pdf forms online and after that do online signature and send?

Hi In Wordpress, How user can fill pdf forms online and after that do online signature and send? Thanks in Advance.

query regarding PHP

HI I got a reference of this forum from one of my friend .. i am new to PHP and i have made a clender in PHP and now i wanna display birthdays in the calender by changing th edate color and on tooltip wanna display name of student(s) of having...

Is there anyone who is expert in MasterCard Integration??

I have downloaded the Mastercard SDK for PHP but it's my first time to Mastercard Integration , I am confused about the Config.ini file gasp emoticon , how I change these values given in the picture

Project Details

Hi mates! Actually i am working on woo-commerce site and i want build site like http://www.mysmartprice.com/ so suggest me how should i build that site? should i build in wordpress or yii-framework? if wordpress then which theme or plugin is bett...

My code Not Working On Hosting Server

Hi, My code working in my locahost wamp server. But if I uploaded it to my hosting server it's not working. Please give solution. Or reason for this problem. Thanks Here is my code : <?php session&#95;start(); if(!isset($&#9...

in php for user login from facebook

i want the code in php for user login from facebook

send an event calender request through gmail in php

i wantt to send an event calender request through gmail in php...please help me in this....

multiple video play

Hello, i want to select the video from database fetch it and wanna play in loop all videos one after the other in a single player in html 5/ php . plzz help >>>>

Product Advertising API Error

Hi mates! I am trying to create Product Advertising API then in last step it showing "We're sorry! There was an error processing your changes. Please try again." I am trying since a day but its not working. plz help me guys...

Edit Exisiting pdf using fpdi

Im using FPDI library for writing existing pdf file but my code is writing only 1 page ..why? please require_once '../includes/fpdf/fpdf.php'; require_once '../includes/fpdf/fpdi.php'; $pdf = new FPDI(); $pageCount = $pdf->setSour...

Website Problem

Hi mates! actually I am working on woo-commerce site but i want to display product of other sites like amazon and want to earn money. is some one have any idea, how should i build that site??

FirePHP

Debugging means finding out the bugs.We all need to be sure that our applications is bug free, so here we have another tool for debugging our application that is "FIREPHP". Firephp is a Firefox extension, similiar to FireBug. It enables you t...

SMS Gateway

Hi gays please tell me is there any free SMS API Gateway? If you know a free gateway then please suggest me.

Retrieve WordPress root directory path?

Wordpress provides different powerful functions which are useful for different prospective. We are going to discuss one function named get_home_path(). Through this function we can get the path of root directory in your wordpress setup. We can si...

How to pass a variable from php to javascript

Hello reader! There are mane ways to pass a variable from one technology to another technology but if you do want to use PHP, always encode with json_encode before outputting. lets see this quick example <script> var jsvariable ...

Send an Email using email component in cakephp

Hello reader if you want to send email using the email component in cakephp you need to run the email component of cakephp ex You should place email send routine in your AppController: function _sendMail($to,$subject,$template) { $th...

How to calculate distance from Latitude and longitude

Hello readers!, If you are having a project in PHP and need to calculate the distance from lat and longs you can use the code below:- Here all the entries are saved in table('business') (SELECT name, ACOS(SIN(RADIANS($latitude))*SIN(RADIANS...

How to get any File Name to PHP File using Command Line?

In Ubuntu system, first check for the PHP. For checking open the terminal, using command **Ctrl +Alt +T** and type whereis php If PHP present in system, above command display the path of PHP Make a PHP file from where you can acce...

File Handling in PHP - Tutorial 8

This blog explains about various functions used for File Handling in PHP.

Date and Time in PHP - Tutorial 7

This blog explains different functions used for date and time manipulation in PHP.

Debugging techniques for PHP programmers

Error messages area unit your 1st line of defense as a developer. you do not need to be developing code in PHP on a server that's not organized to show error messages. However, confine mind that once your code is debugged and prepared to travel ...

eliminate php5 Strict standards errors

Hello readers! If you have recently upgraded you PHP from PHP 5.3 to PHP 5.4 . Then it might be possible that your script is displaying a lot of error messages. If you want to hide these error you just need to change in your cakephp setup Th...

Integrating Twitter with Magento

Social media... Now a days social media is a part of life or requirement of time. We are here to discuss integration of twitter with magento. We all have twitter account. Am I right?. We can integrate twitter to magento with different ways. Like ...

Creating Non Default Themes in Magento

Welcome to this blog. Today we are going to discuss non-default themes in magento. We all knows magento is a powerful eCommerce platform where you can easily build your stores. If you want to work on magento then you need to understand it's fil...

How to Use AJAX in a WordPress Shortcode?

We are going to process ajax request in wordpress shortcode on button click. First of all you need to add the shortcode in wordpress. Kindly write below code in function.php <?php function callback_listing($atts, $content = null) { e...

OAuth 2.0 Authentication on Wordpress site

We are here to discuss OAuth 2.0 Authentication in wordpress. Do you know about OAuth?. What is OAuth?. OAuth is nothing but a open protocol which is useful to allow authorization by easy and secure methods from web/mobile/software applications. ...

Rename files during upload within Wordpress backend

If you want to rename the file name at the time of upload, it is a right place to know the solution. Let's discuss this requirement. We all know there are many hooks available in Wordpress. We will use the filter named sanitize_file_name. You ...

Wordpress: How to call a plugin function with an ajax call

In web development field we face different situations in order to fulfil the requirements. Sometimes we have to customize the well managed CMS/frameworks. Today we are going to take an sample example of wordpress plugin development. There is one ...

Page Processing in PHP

PHP has three types of modules which are as following. A) Core PHP : This modules handles requests, error handling as well as file streams. B) Zend Engine: It convert the php code into machine tokens or opcode and it will execute it in a vi...

autocomplete function with php

Jquery is a powerful library and it is heart of web develepment. It includes different types of functions. Today we are going to discuss function named autocomplete() which is useful to auto populate the suggestions as user types, filtering a...
1 14 16 17
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: