Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+6
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 #620
Ranked #540
~116.13K People Reached
PC Specs
WINXP
Favorite Tags
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

Hi, i have was make small social network website and now i need to use RESTful API for hybrid application. Social network website i make in php, mysql. How to make API now? Do you have some tutorial for API that integrate in existing website? Thanks!

Member Avatar for divyakrishnan
0
136
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
274
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
164
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
100
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
154
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
1K
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
154
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
260
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
96
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
204
Member Avatar for softwareconsl

<?php $string = <<<XML <a> <b> <c>text</c> <c>stuff</c> </b> <d> <c>code</c> </d> </a> XML; $xml = new SimpleXMLElement($string); echo $xml->asXML(); $result = $xml->xpath('/a/b/c'); while(list( ,$node) = each($result)) { echo $node->asXML($result); } need this output: <c>text</c> <c>stuff</c> <>code</c>

Member Avatar for briele
0
238
Member Avatar for filipgothic

I need array with 10 words, then I need to sort that from a to z and display each in different color can anyone help with that? thanks in advance

Member Avatar for filipgothic
0
228
Member Avatar for aseel_1

Hi all why this code doesn't work correctly but php validate without js work correctly and js without php validate work correctly ?! form.php <html> <head> <title>Registration Form</title> <script language="JavaScript" type="text/javascript"> Function validate () { var str=true; document.getElementById("name").innerHTML=""; document.getElementById("username").innerHTML=""; document.getElementById("pass1").innerHTML=""; document.getElementById("pass2").innerHTML=""; document.getElementById("email1").innerHTML=""; document.getElementById("web").innerHTML=""; if(document.frm.nameTxt.value=='') { document.getElementById("name").innerHTML="Please Enter your name"; str=false; …

Member Avatar for aseel_1
0
304
Member Avatar for jacob21

Hi, I stored hindi data in my my sql table through Php form. While fetching,it is not coming in hindi but some unusual symbols like गिरधर गोपाल रायतानॠis coming. using below code also [CODE]mysql_query('SET character_set_results=utf8'); mysql_query('SET names=utf8'); mysql_query('SET character_set_client=utf8'); mysql_query('SET character_set_connection=utf8'); mysql_query('SET character_set_results=utf8'); mysql_query('SET collation_connection=utf8_general_ci'); [/CODE] Need help..

Member Avatar for diafol
1
7K
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
217
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
141
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
772
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
218
Member Avatar for snadboy6371

I have got wamp server installed i was running perfectly but now suddenly it is nt starting it is showing loading process. I have uninstalled it and again installed still same problem... plz help me

Member Avatar for veedeoo
0
242
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
174
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
594
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
202