- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 8
- Posts with Upvotes
- 8
- Upvoting Members
- 4
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
- PC Specs
- WINXP
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 />"; … | |
Re: 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/ | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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? | |
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, … | |
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 … | |
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; } … | |
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. | |
Hi.... Anyone have the idea about Load Testing Tool for Mobile APPS? | |
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' ); … | |
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 … | |
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 | |
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"); … | |
Re: 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 … | |
Re: 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. | |
Re: 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" /> | |
Re: Which data type r u using for hindi data? | |
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 … | |
Is it possible to run an exe file which is saved on server machine using exec() function? I | |
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 | |
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 … | |
Re: 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" . | |
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"; } } … | |
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 … | |
Hi.. Any PHP code to display the IPaddress of all systems which are connected in a LAN ? Thanks in advance | |
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 … |