1,741 Posted Topics
Re: Can you show us your code ? | |
Re: Welcome to Daniweb Jane. I guess the problem is with the harddisk. Bad sectors maybe! Cant boot from a disc ? Have you changed the boot order in the bios ? Check this [url=http://www.pcfixreview.com/blog/2007/07/12/bad-pool-caller/] link. [/url]. This might be of some help to you ! Cheers, Naveen | |
Re: Sir or ma’am, I am a web developer from the Philippines do you need a website? For just $1200 you can give me, and I will make a great and nice website layout for you. You can contact me @ mailto: >snipped< or please visit my personal website, and you … | |
Re: [code=php] <?php $reg = '/<div class=\"value\">(.*)<\/div>/s'; $data='<td width="55%"><div class="value"> £6.99 <font size="3"> </font></div> </td>'; preg_match($reg,$data,$matches); print $matches[1]; ?> [/code] That works. Cheers, Naveen | |
Re: Its more of a css issue. Post it [url=http://www.daniweb.com/forums/forum143.html] here[/url]. Cheers, Naveen | |
Re: hmm.. I dont see any infinite loop ! You can debug this script by putting your custom message after few lines followed by an exit. Repeat this step until you find an infinite loop! Also check the files you are including for an infinite loop. Cheers, Naveen | |
Re: Do you want to download an uploaded word document ? or upload and download a word document ? | |
Re: [code=php] <?php if(isset($_POST['submit'])){ $selectedoption=$_REQUEST['select1']; //use $selectedoption in your query. } ?> <html> <body> <form method="post" action="test.php"> <select name="select1"> <option value=1>1</option> <option value=2>2</option> <option value=3>3</option> </select><br /> <input type="submit" name="submit" value="submit"> </form> </body> </html> [/code] :) retrieving the option value and using it in a query. | |
Re: [QUOTE=ipban;525884]IP Guardian is designed to be an easy to use IP filtering system to secure your ASP pages against unauthorized visitors. You simply enter the IP addresses into the program and it does the rest. Statistics will show you how many times a banned IP has attempted to visit your … | |
| |
Re: Using menus ? If a user is valid, redirect him to the next page which has a menu to navigate to all the pages. You can use the same header function to redirect the user after successful login. [code=php] <? // Check if session is not registered , redirect back … | |
Re: As you can see, theres a difference in style and font. As far as I know, most people dont use it ! [quote] <b>Note:</b> These tags are often used to display computer/programming code. [/quote] Ref: The example in the link provided by you. Maybe they use it in code examples … | |
Re: Your validation is fine. And you can use the same for all 3 files that you want to read. | |
Re: umm.. I am not sure about this. But shouldn't [inlinecode]system("tar xvf /home/trial/x.tar");[/inlinecode] be [inlinecode] system("tar xvf /home/trial/x.tar.gz"); [/inlinecode] ? | |
Re: [code=php] <?php echo "<table border=1>"; echo "<th bgcolor=\"red\">test</th>"; echo "</table>"; ?> [/code] Hope that helps. | |
Re: Take a look at [url=http://hudzilla.org/phpwiki/index.php?title=Access_control_modifiers] this [/url]. | |
| |
Re: Since you are using classes in your script, its kinda difficult to make out what it does. (fetch_GET, fetch_POST, authenticator, etc. ). The best way to debug your code would be to print or echo messages to check the flow of your script. You can use print_r($_POST) in login_check.php to … | |
Re: [QUOTE=anthmaina;523481]There are a number of attacks beside sql injections,others are like cross scripting flaws,session theft.You can take a look at [URL="http://www.sklar.com/page/article/owasp-top-ten"]http://www.sklar.com/page/article/owasp-top-ten[/URL] Also a good place you can learn more about php security is [URL="http://phpsec.org"]http://phpsec.org[/URL][/QUOTE] Thats a good link ! :) | |
| |
Re: [quote]'m not sure if this would be the best way to do it... [/quote] Exactly. Its not the best way. Its not safe. And, btw, file_put_contents only works if your php version is >= 5. Even I suggest you to use mysql database. But, if you can't have a database, … | |
Re: [code=php] if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { //do whatever you want... } else { echo "The file you uploaded is not application/ocet-stream. Or the filesize is > 400000"; exit; } [/code] Cheers, Naveen | |
Re: [code=php] <? $file = isset($_POST['file']) ? $_POST['file']:"testfile.php"; $newstring = '<!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> </head> <body> <form action="newfile.php" method="post" name="new">'; echo $file; $newstring.='<input name="file" type="text" size="30" maxlength="60" /><input name="" type="submit" value="CREATE FILE" /> </form> </body> </html>'; $newfile … | |
Re: Try this. This lists all the images in the specified folder. [code=php] <?php $jpgdir = "./uploads/jpg/"; $dh = opendir($jpgdir); echo "JPG FILES"; print("<table border=2>"); while (($file = readdir($dh)) !== false) { if($file!='.' && $file!='..') { print( "<tr><td>"); print("<form name=del method=post action=\"del.php\">"); echo "<A HREF=\"$jpgdir/$file\"><IMG src=\"$jpgdir/$file\"/ height=70 width=70></A><BR>\n"; echo "<input type=\"hidden\" … | |
Re: Actually, its not $virtual_page="Main_Page". Its because, You have opened the double quote and you are closing it at the end. (after </html>). And you are having a php tag within a php tag ! [code=php] <?php echo " <br /> </td> </tr> <tr> <td align=\"right\" ></td> <td align=\"right\" valign=\"top\"> <table … | |
Re: [url=http://webyog.com/en/downloads.php]mysql yog[/url] is really good ! | |
Re: umm.. my question is, do you really need this complicated code to generate random password ? The user is going to reset it anyway. Well, for small purposes like this one, I would rather use something like [url=http://www.laughing-buddha.net/jon/php/password/] this. [/url] This will generate random password. Send a link to the … | |
Re: Have you created a user called dorcas ? Have you given the user "dorcas" all permissions ? If your answer is no, [url=http://dev.mysql.com/doc/refman/5.0/en/adding-users.html] this [/url]might help you. | |
Re: [code=php] <?php mysql_connect('localhost','root'); mysql_query("CREATE DATABASE IF NOT EXISTS employees"); mysql_query("USE employees"); mysql_query("DROP TABLE IF EXISTS employees"); mysql_query("CREATE TABLE employees ( SSN varchar (30) NOT NULL, firstName varchar (30) NOT NULL, lastName varchar (30) NOT NULL, birthday date NOT NULL, employeeType varchar (30) NOT NULL, departmentName varchar (30) NOT NULL, PRIMARY … | |
Re: [QUOTE=Jx_Man;522107]SELECT * FROM Customers where EmailAddress like '%" @ "%'"[/QUOTE] Why do we need double quotes around @ ? ("@") PS. I tried it and it gave me an error. We can use [inlinecode]SELECT * FROM customers where emailaddresses like '%@%';[/inlinecode] | |
Re: umm.. He wants to count the number of child entries for a particular parent. For example, for mainid=1(description John), there are 2 entries in child. He wants to calculate the entries of each parent, put it in the first column named Total child. Then the sum of Is_important in the … | |
Re: You dont need phpbb for this. Save the user's messages in a table.. You can have 2 tables.. users and messages. user_id -> foreign key for messages. Whenever the user saves a message, save it in messages table which references the user_id of that user. List all the messages of … | |
Re: You are outputting something on line 11 of checkout.php . As naju has mentioned, either call header function before outputting anything or comment line 11 ! | |
Re: Use [url=http://www.w3schools.com/jsref/jsref_onload.asp]onload[/url] event. Call a function when the body loads. In that function, [url=http://www.w3schools.com/htmldom/prop_select_disabled.asp?output=print] disable [/url] all those textboxes you want to disable. | |
Re: Check [url=http://www.javascriptkit.com/script/script2/timestamp.shtml]this[/url] or [url=http://www.javascriptkit.com/script/script2/tengcalendar.shtml] this[/url].. |
The End.