190 Posted Topics

Member Avatar for divyakrishnan

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 …

Member Avatar for broj1
0
113
Member Avatar for divyakrishnan

How to count number of files in a directory from a remote server using **curl**?

0
74
Member Avatar for divyakrishnan

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 …

Member Avatar for pritaeas
0
291
Member Avatar for divyakrishnan

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" /> …

Member Avatar for ko ko
0
2K
Member Avatar for divyakrishnan

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.

Member Avatar for divyakrishnan
0
144
Member Avatar for divyakrishnan

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 ?

Member Avatar for divyakrishnan
0
2K
Member Avatar for divyakrishnan

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" />**

Member Avatar for vibhaJ
0
352
Member Avatar for divyakrishnan

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"

Member Avatar for AleMonteiro
0
97
Member Avatar for aquamarine_kath

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.

Member Avatar for sbhavin
0
2K
Member Avatar for harsha.netpem
Member Avatar for Fest3er
0
749
Member Avatar for abhi10kumar

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 ?

Member Avatar for dean8710
0
84
Member Avatar for divyakrishnan

Hi.. Is it possible to set a email server on localhost? Thanks, Divya Krishnan

Member Avatar for dean8710
0
95
Member Avatar for divyakrishnan

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 …

Member Avatar for adam_k
0
1K
Member Avatar for divyakrishnan

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 ?

0
76
Member Avatar for cskinittest

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

Member Avatar for cskinittest
0
162
Member Avatar for munna_90

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]

Member Avatar for munna_90
0
155
Member Avatar for xtra333

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" …

Member Avatar for xtra333
0
210
Member Avatar for dr.4030

Use for loop to access tables. [CODE] for($i=1;$i<=12;$i++) { $q="SELECT * FROM table".$i; /* Do ur table processing */ }[/CODE]

Member Avatar for divyakrishnan
-1
70
Member Avatar for bangla

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.

Member Avatar for divyakrishnan
0
75
Member Avatar for desmond_ckl

Use AJAX technologies. It helps u to call a php page from javascript. Also u can pass the values from javascript to php.

Member Avatar for stbuchok
0
178
Member Avatar for divyakrishnan

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: …

Member Avatar for emiola
0
118
Member Avatar for kwamba

refer the following links http://www.hscripts.com/scripts/JavaScript/slide-show-software.php http://www.javascriptkit.com/script/script2/jsslide.shtml

Member Avatar for divyakrishnan
0
69
Member Avatar for Dolphinboy

Use AJAX. Refer following Sites. http://www.w3schools.com/php/php_ajax_database.asp http://www.ajaxf1.com/tutorial/ajax-php.html

Member Avatar for diafol
0
126
Member Avatar for davy_yg

Check out the spelling of kategori and id'.It should be match with table field name.

Member Avatar for pritaeas
0
145
Member Avatar for Josem

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.

Member Avatar for suley04
0
101
Member Avatar for davy_yg

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.

Member Avatar for raj2719
0
99
Member Avatar for davy_yg

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) { …

Member Avatar for pritaeas
-2
177
Member Avatar for akasekaihime

Also Refer following link http://www.w3schools.com/php/php_forms.asp

Member Avatar for divyakrishnan
0
108
Member Avatar for sewanti

Change is as [CODE] } }</form> ?> </body></html> [/CODE] to [CODE] } } ?> </form> </body></html>[/CODE]

Member Avatar for diafol
0
134
Member Avatar for Shernykens
Member Avatar for divyakrishnan
0
180
Member Avatar for vampshay
Member Avatar for nikita.chandra

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

Member Avatar for diafol
0
238
Member Avatar for jacksantho

Change the code [CODE]$arr=unserialize($_REQUEST['pname']); [/CODE] to [CODE]$arr=unserialize(clean_slweg($_REQUEST['pname']));[/CODE]

Member Avatar for diafol
0
281
Member Avatar for terrymold

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; …

Member Avatar for ko ko
0
148
Member Avatar for sibymary
Member Avatar for Lakshmi24

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]

Member Avatar for Lakshmi24
-1
145
Member Avatar for divyakrishnan

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 …

0
126
Member Avatar for divyakrishnan

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"> …

0
77
Member Avatar for uselessninja

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> …

Member Avatar for uselessninja
0
146
Member Avatar for ougesh

Visit following links. http://www.w3schools.com/ http://www.tizag.com/

Member Avatar for ougesh
0
124
Member Avatar for thanhdo49th

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" …

Member Avatar for divyakrishnan
0
62
Member Avatar for divyakrishnan

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"; …

Member Avatar for sDJh
0
102
Member Avatar for devindamenuka

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]

Member Avatar for HITMANOF44th
0
154
Member Avatar for MichaelFL

Check Out the condition instead of || you have put | [CODE] empty($BusDesc) == TRUE | empty($WelcomeMsg) == TRUE [/CODE]

Member Avatar for MichaelFL
0
370
Member Avatar for PinoyDev

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]

Member Avatar for PinoyDev
0
115
Member Avatar for karthik_ppts

Try this Query [CODE]SELECT date( date_time_field ) FROM DATA WHERE DATE( date_time_field) = DATE( NOW( ) )[/CODE]

Member Avatar for karthik_ppts
0
149
Member Avatar for haimz

What you want?Want to print your output with color ?Or want to use a colorful editor fro coding?

Member Avatar for cereal
0
283
Member Avatar for utpal23

Did u set file permissions for the project folder? If your server is a Linux server definitely you have to set the file permission.

Member Avatar for ko ko
0
301
Member Avatar for alfredferg
Member Avatar for sosooo25

The End.