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 #621
Ranked #540
~118.14K 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

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
137
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
281
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
179
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
101
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
160
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
155
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
263
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
206
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
238
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
255
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
311
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
219
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
143
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
775
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
221
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
243
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
175
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
613
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
203