190 Posted Topics
I have tried to connect to ftp server it windows. It works well with. But when I used the same with red hat i was unable to connect to server. ftp service is already running in redhat. $con_id=ftp_connect("192.168.0.8")or die("Couldn't connect to"); ; $login_result = ftp_login($con_id, "newuser", "wampp"); // check connection … | |
How to count number of files in a directory from a remote server using **curl**? | |
I used the code given below to take the count of files in a folder which is in another machine. On my localhost the glob() is working fine, BUT on the server it displays the array size as 0. $dir_path ="http://192.168.0.202/img/$sub_code/$sub_code".N."$churunano/*.jpg*"; $count = count(glob($dir_path)); How to find the count of … | |
Hi... I want to display associative using variable as its key value. I used the following script. But it is not functioning. <body> <?php if(isset($_POST['st'])) { while ($item = current($_POST)) { echo $_POST[$key]; next($_POST); } } ?> <form id="form1" name="form1" method="post" action="mysql_inj.php"> <p> <label for="textfield"></label> <input type="text" name="t1" id="textfield" /> … | |
Hi.. How to count no of files in a directory which is in another machine? I used the following code.But it is not working. <?php $dir_path ="file://192.168.0.138/img/$sub_code/$sub_code".N."$churunano/*.*"; $count = count(glob($dir_path)); $files = glob($dir_path); ?> The above code returns the count as 0. | |
Hi.. I want to hide/rewrite the URL of my php project. I found many forums regarding this. I have a doubt in .htaccess file. Is it need to create a new .htaccess inside my project folder ? | |
I have a shared folder with images in a machine. How can I display images from that machine in a web page in another machine. I used the follwing code but obtained no output ** <?php $img_src="file://192.168.0.138/E:/img1/12/12N69/12N69$0001A1.JPG"; ?> <img src="<?php echo $img_src ?>" alt="" width="1000" height="220" id="myimg" />** | |
Hi.. Anyone please help me to find the duration between two date-times in following format? format is Date1="23-03-2012 04:25PM" Date2="26-09-2013 08:26AM" I want to find out the diffence between Date1 and Date2 in following format. The Result ="no of Years:no of Days:no of Hours:no of Mintues:no of Seconds" | |
Re: U just find out whether your MYSQL server is running or not. Go to control panel,Administrative Tools,then click Services.There u can find out the MYSQL service.You can start or restart it.After that run the project. | |
Re: Print all your query statements and execute it using phpmyadmin(or any mysql browser). | |
Re: You can send it using localhost. I have an example code. But it is too large. can you send your mail id as a private message ? | |
Hi.. Is it possible to set a email server on localhost? Thanks, Divya Krishnan | |
Hi, I[B] have a problem with the following query select tbl_employee.E_Name,sum(tbl_Salary.Amt),tbl_Dpt.DeptName from tbl_employee inner join tbl_Salary on tbl_employee.eid = tbl_Salary.eid inner join tbl_Dpt on tbl_Salary.eid = tbl_Dpt.eid where tbl_employee.eid ='E101' When the query is executed,the following error is displayed "Column ' tbl_employee.E_Name' is invalid in the select list because it … | |
Hi... I want a to print a receipt using dot matrix printer such that the paper should not eject fully out from printer after printing. Any idea ? | |
Re: You can refresh the page by using meta tag [CODE]<meta http-equiv="refresh" content="5; url=home.html">[/CODE] This will refresh the current page after 5 seconds and will load home.html | |
Re: Try this code [CODE]<body> <form id="form1" name="form1" method="post" action="display.php"> <table width="200" border="1"> <tr> <td>Name</td> <td><input name="t1" type="text" id="t1" /></td> </tr> <tr> <td colspan="2"><div align="center"> <input type="submit" name="Submit" value="Submit" /> </div></td> </tr> </table> </form> </body>[/CODE] display.php[CODE]<?php $name=$_REQUEST['t1']; echo $name; ?>[/CODE] | |
Re: Use the PHP delimiters before starting HTML tags.Change your code as to [CODE] <?php if ($_POST["page"] == "confirm") { confirmPage (); } else { orderForm(); } function orderForm() { $script = $_SERVER['PHP_SELF']; ?> <html> <head> <title> Online Sign Up </title> </head> <body> <h3> Online Sign Up</h3> <form method = "post" … | |
Re: Use for loop to access tables. [CODE] for($i=1;$i<=12;$i++) { $q="SELECT * FROM table".$i; /* Do ur table processing */ }[/CODE] | |
Re: This means that your user account does not have the necessary privileges to create a database.Contact the administrator.Try to create the database using phpMyadmin or SQL YOG. | |
Re: Use AJAX technologies. It helps u to call a php page from javascript. Also u can pass the values from javascript to php. ![]() | |
Hi... I want to move an uploaded file to another machine.I had given the file path to move_uploded_file() function including IP address .The folder is a shared folder.My code shown below. [ICODE]<?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: … | |
Re: refer the following links http://www.hscripts.com/scripts/JavaScript/slide-show-software.php http://www.javascriptkit.com/script/script2/jsslide.shtml | |
Re: Use AJAX. Refer following Sites. http://www.w3schools.com/php/php_ajax_database.asp http://www.ajaxf1.com/tutorial/ajax-php.html ![]() | |
Re: Check out the spelling of kategori and id'.It should be match with table field name. | |
Re: It is difficult to extract the address into three components.Because all the words are separated by space character.There is no other character is for string extraction. Add , to your address like 252 westend drive, Sommerset west, 0185 before insertion. Then split the string into array elements using explode() function. | |
Re: I suppose you are misspelled the form fields "kategori","id". Check out your previous page for correct spelling. It is clear , if you post the previous page code. | |
Re: There is an error in your query . So the mysql_query function returns a boolean, and not a resource. mysql_fetch_array() cannot works with a boolean value. You can check the error in mysql query by using following code [CODE] $result = mysql_query("SELECT * FROM event"); if ($result != false) { … | |
Re: Also Refer following link http://www.w3schools.com/php/php_forms.asp | |
Re: Change is as [CODE] } }</form> ?> </body></html> [/CODE] to [CODE] } } ?> </form> </body></html>[/CODE] ![]() | |
Re: Submit your form and retrieve the check box value as [CODE] $store_id=$_REQUEST['store_id']; [/CODE] | |
Re: Where r u calling class functions?Can you post entire code? | |
Re: PHP will runs on Netbean's glassfish server.No need of installing LAMP .Have you installed the netbeans with php ?If not download and install netbeans with php.The project creation is similar to creating java projects. For More reference visit following link http://netbeans.org/kb/trails/php.html ![]() | |
Re: Change the code [CODE]$arr=unserialize($_REQUEST['pname']); [/CODE] to [CODE]$arr=unserialize(clean_slweg($_REQUEST['pname']));[/CODE] ![]() | |
Re: You are trying to displaying 2 divs on same location.Second one is hiding first div .Use any other css class for second div.Try 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=iso-8859-1" /> <title>Untitled Document</title> <style> .messText { position: absolute; width: 600px; … | |
Re: Do u want to check the register no in member table before inserting it into student table? | |
Re: Do simple works like JavaScript Clock (to display different time zones),JavaScript Calender ,Photo gallery ,Mouse trails Or do some games like sudoko , n-queens problem etc. Visit Following sites for java script examples. [url]http://javascript.internet.com/games/[/url] [url]http://www.javascriptkit.com/script/cutindex22.shtml[/url] [url]http://www.w3schools.com[/url] [url]http://www.tizag.com[/url] [url]http://www.jsmadeeasy.com/javascripts/games/list_test.asp[/url] [url]http://www.webresourcesdepot.com/25-amazing-javascript-games-some-fun-and-inspiration/[/url] [url]http://www.devscripts.com/category/browse/286/JavaScript.html[/url] [url]www.hscripts.com/tutorials/html[/url] | |
Hi.. I want to show a progress bar when downloading a file. In my script I am clicking a hyperlink and waiting for a while to appear the download box. I want to display a progress bar before appearing the download box. I had seen many examples for displaying the … | |
Hi.. I want to run an exe file without saving from the server by clicking a hyper link. My code works fine with internet explorer .But with fire fox it showing save button . I used the following code [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"> … | |
Re: Hopes this may help you [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 name_dis() { var str=document.f.t1.value; var lett=str.charAt(0); document.f.t2.value=lett; } </script> </head> <body> <form id="form1" name="f" method="post" action=""> <label> <input type="text" name="t1" id="t1" onkeyup="name_dis()"/> </label> <p> <label> … | |
Re: Visit following links. http://www.w3schools.com/ http://www.tizag.com/ | |
Re: Try this code [CODE]<body> <?php if(isset($_POST['s'])) { $a=array(); for($i=0;$i<3;$i++) { $c='c'.$i; if(isset($_POST[$c])) { echo "R"; $a[$i]=1; } else { $a[$i]=0; } } print_r($a); } $ck="c"; $i=1; $name=$ck; ?> <form id="form1" name="form1" method="post" action="chk_bx.php"> <input name="<?php echo $name.'0'; ?>" type="checkbox" id="c" value="checkbox" /> ASP <input name="<?php echo $name.'1'; ?>" type="checkbox" id="c" … | |
Hi... I want to find out whether a file is existing or not The file is stored on another machine in the same network . I tried the following code.But always showing "The file is not existing". [CODE] <?php $filename = 'file://192.168.0.15/E:/PDF/p.pdf'; if (file_exists($filename)) { echo "The file $filename exists"; … | |
Re: What is your issue? Want to send multiple parameters via hyperlink? For that Change your hyper link as[CODE]<a href="editComment.php?var1=<?php echo $cmId?>?var2=<?php echo $poId ?>" id="link<?php echo $cmId.$poId?>">Edit</a> [/CODE] | |
Re: Check Out the condition instead of || you have put | [CODE] empty($BusDesc) == TRUE | empty($WelcomeMsg) == TRUE [/CODE] | |
Re: Try this script..[CODE] <head> <script> function windowCenter(pageURL, title,w,h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } </script> </head> <body> <a href="#" onclick="windowCenter('pop_up_window_center.html', 'POPUP',400,400);">OPEN POPUP</a> </body>[/CODE] | |
Re: Try this Query [CODE]SELECT date( date_time_field ) FROM DATA WHERE DATE( date_time_field) = DATE( NOW( ) )[/CODE] | |
Re: What you want?Want to print your output with color ?Or want to use a colorful editor fro coding? | |
Re: Did u set file permissions for the project folder? If your server is a Linux server definitely you have to set the file permission. | |
Re: Use session variables or temporary files to store data. | |
Re: Did u checked whether it going inside the if conditions? |
The End.