Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
75% Quality Score
Upvotes Received
8
Posts with Upvotes
8
Upvoting Members
4
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
4 Commented Posts
2 Endorsements
Ranked #621
Ranked #540
~119.83K People Reached
PC Specs
WINXP
Favorite Tags

190 Posted Topics

Member Avatar for divyakrishnan

I want to count files from a directory which is stored in a remote server . I used the following code . But obtained warning <?php $url='192.168.0.138/img/12/12N69/'; $dir = opendir($url); //List files in images directory while (($file = readdir($dir)) !== false) { echo "filename: " . $file . "<br />"; …

Member Avatar for vijay_21
0
1K
Member Avatar for gogs85

Hope this will help you .. https://www.leaseweb.com/labs/2015/10/creating-a-simple-rest-api-in-php/ http://blog.ijasoneverett.com/2013/02/rest-api-a-simple-php-tutorial/

Member Avatar for divyakrishnan
0
138
Member Avatar for divyakrishnan

Hi , I am using following script to get the values of the language details. <FORM action="final.php" method="post"> <div align="center"> <table width="434" border="0"> <tr> <td>Languages Known</td> <td>Speak</td> <td>Read</td> <td>Write</td> <td>Delete</td> </tr> <tr> <td> <select name="lang[]" id="select"> <option value="">-Select-</option> <option value=1>Hindi</option> <option value=2>English</option> <option value=3>Tamil</option> <option value=4>Telugu</option> <option value=5>Kannada</option> </select></td> <td><input …

Member Avatar for p@user
0
284
Member Avatar for divyakrishnan

Hi All, I am using php to create a Webservice API calls. I am checking all the service calls in Chrome's Postman and sending the data in JSON format. I want to upload an image in JSON format with other datas.Actually I have converted the image to base64 before uploading.Its …

Member Avatar for cereal
0
2K
Member Avatar for divyakrishnan

Hai Everyone.. Could someone please tell me that is there any jquery plugin to upload an image with editing functionality like resize,drag position as in shown Facebook profile picture upload?

Member Avatar for diafol
0
188
Member Avatar for divyakrishnan

Hi.. I setting start date and end date in my php page using javascript with following options. Start date options mindate-today maxdate-end date(after selecting end date) End date options min date - start date Its working correctly.But I want to change the date format from yy-mm-dd to dd-mm-yy. I changed …

0
103
Member Avatar for divyakrishnan

Hi.. I am using Google map to show the route path between the longitude and latitude points. Here the default stroke color of the route path is blue. I want to set it into different colors. That is,from point A to B is reb,B to C is green,C to D …

Member Avatar for almostbob
0
4K
Member Avatar for divyakrishnan

Hi, I want to get current position of cursor in a text box using asp.net. Its very urgent for me. any one can help me?

Member Avatar for Amita Negi
0
164
Member Avatar for divyakrishnan

Hi.. I want to reset the multiple file input field. Actually my file input field is an array. I used the following code and it works if the input field is not an array. <script> $(function() { $('input[type=file]').change(function () { var regex = new RegExp("(.*?)\.(jpg|jpeg|png|pdf)$"); var f = this.files[0]; $.each(this.files, …

Member Avatar for minitauros
0
2K
Member Avatar for divyakrishnan

I am using uploadify to upload images in php. After uploading the files, showing the progress bar as completed but the uploads folder is showing as empty. I have downloaded the script and just added a new folder to upload files as uploads folder. Here is my code index.php <!DOCTYPE …

Member Avatar for network18
0
2K
Member Avatar for divyakrishnan

Hi I have added a custom form validation in codeigniter. The callback function returns true/false & the value of validating field. // JavaScript Document class Test extends CI_Controller { /*custom validation function*/ function _checkdate() { $post = $this->session->userdata('post'); echo $fdate = $post['frmDt']; if (preg_match('/^[0-9-: ]*$/', $fdate)) { return true; } …

Member Avatar for cereal
0
156
Member Avatar for divyakrishnan

Hi.. How to get the difference between two dates using C#.NET web application in form of days? If anybody knows plz help me..Itz very urgent.

Member Avatar for AMBIgainathan
0
3K
Member Avatar for divyakrishnan
Member Avatar for Kelly Burby
0
264
Member Avatar for divyakrishnan

Hi.. I want to call mysql Stored procedure with OUT parameter. Its worked in phpamyadmin But in php it returning empty result. I have used the following php script. Can anyone help me? <?php include("dbcon.php"); $countryname="india"; $rs1 = mysql_query( 'CALL countCountry($countryname,@totalcount)' ); $rs = mysql_query( 'SELECT @totalcount as totalcount' ); …

Member Avatar for divyakrishnan
0
4K
Member Avatar for divyakrishnan

Hi How to get the Id of an element after firing the event from another element which is located before first element. Actually I have dynamically created <select> and a <span>. I want to get the id of the <span>,after the onchange event of the <select> Span is located after …

Member Avatar for Taywin
0
99
Member Avatar for divyakrishnan

Hi I want to assign a smarty array to Javascript array I used the following code <script type="text/javascript"> var arr = {/literal}{$a.ins_status|@json_encode}{literal}; alert(arr); </script> But the arrray is showing as Null

Member Avatar for veedeoo
0
2K
Member Avatar for divyakrishnan

Hi.. I want to open an existing popup and append the content to the pop up. I have used the following code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script> function disimage() { var WindowObject = window.open('p1.html', "PrintWindow", "width=750,height=650,top=50,left=50,toolbars=no,scrollbars=yes,status=no,resizable=yes"); …

Member Avatar for divyakrishnan
0
207
Member Avatar for softwareconsl

Try this <?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement($string); $xml->asXML()."<br>"; //echo "<c>".(string)$child."</c>"; foreach( $xml->children() AS $child ) { //run any query you want on the children.. they are also nodes. $name1 = $child; //echo "<pre><c></pre>".$name1."<pre><c></pre><br>"; foreach( $name1->children() AS $child1 …

Member Avatar for briele
0
239
Member Avatar for filipgothic

Refer [Click Here](http://www.php.net//manual/en/function.sort.php) for array sorting . Use a for loop to iterate the array elements and create hexadecimal color value for display.

Member Avatar for filipgothic
0
270
Member Avatar for aseel_1

Checkout the form.php Page. Line no 20 should be if(document.frm.userNameTxt.value=='') Like that you have check for every if condition.It should be like document.formname.fieldname.value id attribute for all input fields are missing. Replace like this. <input type="text" value="" name ="nameTxt" id="name" />

Member Avatar for aseel_1
0
316
Member Avatar for jacob21
Member Avatar for divyakrishnan

I want to get the width and height of an image before uploading using javascript. I used The code shown below. But its returning 0 value <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script> function form_image() { var v=new …

Member Avatar for divyakrishnan
0
221
Member Avatar for divyakrishnan

Is it possible to run an exe file which is saved on server machine using exec() function? I

Member Avatar for hriti
0
146
Member Avatar for divyakrishnan

Hi..I have a problem on database insertion:( How to prevent duplicate record insertion on database while refreshing a webpage? I had tried the following code,but it also resubmitting the form data. [CODE] if(isset($_REQUEST['add_cat'])) { //code for db insertion } [/CODE] Thanks in advance

Member Avatar for Szabi Zsoldos
0
777
Member Avatar for divyakrishnan

Hi.. I am trying to download a file using FTP Server . fI used the ollowing script for file downloading. FTP connection is success. But while calling ftp_get() Getting an error like Warning: ftp_get() [function.ftp-get]: File not found in C:\xampp\htdocs\test\ftp_check2.php on line 4 <?php $conn = ftp_connect("192.168.1.20") or die("Could not …

Member Avatar for pritaeas
0
222
Member Avatar for snadboy6371

Try to execute the exe of apache & mysql. Go to "C:\wamp\bin\apache\Apache2.2.17\bin" ,then run "httpd.exe" and go to "C:\wamp\bin\mysql\mysql5.5.8\bin\" run "mysql.exe" .

Member Avatar for veedeoo
0
245
Member Avatar for divyakrishnan

Hi all, I want to block some of the special charcters using preg_match. I used following code.It works fine with including ' and ". After including ' and " it willnot working <?php if($_REQUEST['sub']) { $Data=$_REQUEST['data']; $regexp = '/[#$%^&*+={}<>'\"]+$/'; echo preg_match($regexp, $Data); if (preg_match($regexp, $Data)) { echo "ERROR"; } } …

Member Avatar for diafol
0
177
Member Avatar for divyakrishnan

Hi, I want to upload a file from one machine to another server ie application is in server A and path of the uploaded file is in server B. How can I implement this without using curl, ftp and ssh. The code which I have used is shown below. But …

Member Avatar for pritaeas
0
628
Member Avatar for divyakrishnan

Hi.. Any PHP code to display the IPaddress of all systems which are connected in a LAN ? Thanks in advance

Member Avatar for |-|x
-1
3K
Member Avatar for divyakrishnan

Hi.. I am using tinymce editor for mathematical and graphical functions. The graph in editor content which is inserted into the database is not showing in firefox and chrome. But it can be viewed in Explorer. I have downloded script from http://www.imathas.com/editordemo/demo.html There is demo is provided in the above …

Member Avatar for Larry_Singleton
0
208
Member Avatar for divyakrishnan

Hi... I am using xampp-win32-1.7.3.I want to use Adodb.I had seen that adodb is included on xampp package(xampp/php/pear/adodb).I had used the following code to retrieve data from mysql database. [CODE]<?php include("adodb.inc.php"); $db = NewADOConnection('mysql'); $db->Connect("localhost", "root", "", "emp"); $result = $db->Execute("SELECT * FROM employ"); if ($result === false) die("failed"); while …

Member Avatar for son.anh.963
0
3K
Member Avatar for divyakrishnan

Hi.. I am doing an online quiz software.I have total 100 questions with 5 in each page.I want to go to a particular question number and I want to fix the focus on that question(Not on the top of the page).Each question is inside a label.I am calling a function …

Member Avatar for ajbest
0
125
Member Avatar for divyakrishnan

Hi.. I have a group of checkboxes and I want to apply a style to checked checkbox and remove the style of all other boxes.Here only one checkbox should be cheked at a time. The code I used as follows <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $(".item").click(function(e) { //$(".item").each( …

Member Avatar for diafol
0
1K
Member Avatar for divyakrishnan

Hi.. I used the following code to download a file from fedora 14 FTP configured(VSFTP) to local machine(Fedora 14). The same code worked fine in windows machine. In fedora machine it listing all the files,but not downloading the files.Showing the error like following "There was a problem". <?php $countfiles = …

Member Avatar for pritaeas
0
203
Member Avatar for divyakrishnan

HI.. I need a progress bar foe downlaoding a file from host serevr using CURL The downloaded script is working fine. can anyone suggest code for a progress bar for curl downlaod?

Member Avatar for LastMitch
0
3K
Member Avatar for divyakrishnan
Member Avatar for diafol
0
444
Member Avatar for divyakrishnan
Member Avatar for pritaeas
0
72
Member Avatar for Joey_Brown
Member Avatar for bkkrishna
0
160
Member Avatar for divyakrishnan

How to change collation of a mysql table which is created on MYSQL 4.1.22 ? I used following query ALTER DATABASE `testdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ALTER TABLE `testtab` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci It displaying following error messages ****Error SQL query: ALTER DATABASE `testdb` DEFAULT CHARACTER …

Member Avatar for pritaeas
0
264
Member Avatar for divyakrishnan

Hi... I am using following query to get data from a table *select * from emp where ename regexp 'rajkiran'* It will return only the rows with ename=rajkiran but I want to select all the rows with ename =raj kiran & ename=rajkiran using a single query

Member Avatar for pritaeas
0
157
Member Avatar for divyakrishnan

Hi.. I used following regular expression "/^[0-9]{1,2}\-\[0-9]{1,2}\-\[0-9]{4}$/" for email validation. It won't check the mail id like "testmail@gmail" . It will work "testmail@gmai" Can anybody suggest solution for this?

Member Avatar for pritaeas
0
84
Member Avatar for divyakrishnan

Hi,, Is it possible to get IP of server where the script is running. I used following code <?php echo $ip=$_SERVER['REMOTE_ADDR']; echo $_SERVER['SERVER_ADDR']; ?> But it outputing as "127.0.0.1". Is there any way to print IP ?

Member Avatar for pritaeas
0
200
Member Avatar for divyakrishnan

Hi, I want to upload files from one remote server to another using CURL I used following to upload a text file in "localhost/uploads/example.txt" to another machine http://192.168.0.202/example/ <?php $ch = curl_init(); $data = array('name' => 'Foo', 'file' => '@localhost/uploads/example.txt'); curl_setopt($ch, CURLOPT_URL, 'http://192.168.0.202/example/'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_exec($ch); …

Member Avatar for ainosilva
0
1K
Member Avatar for divyakrishnan

Hi, I want a regular expression to validate only numbers(0-9) , dot(.),slash(/) in javascript/JQuery .

Member Avatar for blocblue
0
64
Member Avatar for divyakrishnan
Member Avatar for divyakrishnan
Member Avatar for gurusubramaniam

Use <?php session_start(); session_destroy(); ?> for clearing all sessions

Member Avatar for menukadevinda
0
79
Member Avatar for anjaliv

Try following example image_ajax.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title></head> <body> <script type="text/javascript" src="jquery-1.3.1.min.js"></script> <script type="text/javascript"> function get1() { alert('inside fun'); var dgroup=$("#int_entry_id").val(); alert(dgroup); $.post("test1.php",{dval:dgroup},function(data) { alert("ajax_loaded"); //alert("data="+data); var image = new Image(); image.onload = function(){ document.body.appendChild(image); }; image.src = data; }); } </script> <form name="f"> <select …

Member Avatar for divyakrishnan
0
113
Member Avatar for kaleem_ullah

Redirect to another page other than header("Location:http://bannistermarketinggroup.co.uk/site_optimization/"); Write down the thank u message and use a button or hyper link to redirect to header("Location:http://bannistermarketinggroup.co.uk/site_optimization/"); page.Or use a timer to redirect to header("Location:http://bannistermarketinggroup.co.uk/site_optimization/"); after printing message.

Member Avatar for divyakrishnan
0
302
Member Avatar for divyakrishnan

Hi, I have used the following code to load data from a php page using AJAX with JQuery.The script running well in all browsers except Firefox. The script I used is as follows. test_ajax.php <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title></head> <body> <script type="text/javascript" src="jquery-1.3.1.min.js"></script> <script type="text/javascript"> function …

Member Avatar for asaretitilope
0
245

The End.