329 Posted Topics
Re: The problem is that Crypt is automatically generating a salt with the password. You therefore need to compare it as follows: <?php $Password = "Password"; $Hash = crypt($Password); if (crypt($Password, $Hash) == $Hash) { echo "Password Match"; } else { echo "Password Failed"; } ?> Check out the documentation to … | |
Re: Depends what OS you are using, personally I would suggest the following, they aren't as advanced as Dreamweaver however they contain everything you need, including syntax highlighting, line numbering and end bracket identification: Windows - Notepad++ (a favourite of many) Linux - Gedit (Text Edit) | |
Re: Disable Indexing is also a good step if you're running Apache. This shall throw out a 403 if anyone attempts to access folders. ![]() | |
Re: What are you trying to validate? I see no If statements in your code at the moment. Equally, as you are new to PHP you may aswell get into good habits now, I would suggest you use MySQLi and Prepared Statements, simply using mysql_real_escape_string isn't enough now, and has been … | |
Re: Design or code? If you are simply designing then look firstly at a few key areas: * Who is it being designed for? * Are there any special requirements? * What is the theme? Is it sombre, is it designed to intruige etc. * Who is the audience? From these, … | |
Re: As others have said, nothing beats a good book which you can carry with you, and flick through. If you want to go digital however, I would recommend 'TheNewBoston' Youtube tutorial series, he has many and they are very good for the beginner. https://www.youtube.com/course?list=EC081AC329706B2953 Equally, he has a nice set … | |
Re: I hate to tell you but your CPU is well and truly dead. I'm suprised it has worked up to this point after the ordeal which you said it has been through. You certainly would need a new CPU, does the system POST at all when you turn it on? | |
Re: Depending on what OS you have (Linux is the Kernel), you can add many different desktop environments such as Gnome, KDE and XFCE. The chances are your OS has a pre-defined list of repositories (a bit like a big book of sources). Your OS shall also have a package management … | |
Re: Without seeing your CSS it is impossible to tell, but make sure you aren't defining widths for your DIVs unless they are defined properly, and check for elements within the DIV which could be causing them to expand. | |
Re: You can't call PHP code in JS, because JS will never see it. PHP code is executed server side meaning the only output from it shall be HTML. What you are trying to do can be achieved by using AJAX which is Asynchronous JavaScript and lets you dynamically communicate with … | |
Re: Go to 'My Computer' and from there you want to select the drive you want to work on. The first bit which JorgeM was talking about, clearing the temp files, can be done by right clicking the drive and going to properties. From here you shall want to click the … | |
Re: And also `substr($Word[0], 0);` which shall return letter 0 (first one) from an array of words. You can then iterate through the array and store it in whatever variable, or output directly to the screen as you please. | |
Re: Up to 1km, that is some serious WAP! I suggest you begin looking into Yagi Antennas, that is probably the best place to start and then move onto signal amplifiers. | |
Re: If you're storing it in a database, simply make a call to it (preferably using parametised statements) and then in your HTML do this: `<title> <?php echo($TitleFromDB); ?> </title>` Which is echoing out the variable that you retrieved. | |
I am baffled, I've been trying to get this piece of code to work for the past 30 minutes but with no luck. It should in theory be a simple registration script to check the user's input and then add it to the database however it won't add it to … | |
Re: In the spirit of all things techy, I found this one to be rather funny: http://www.theregister.co.uk/2013/04/01/unix_copyright_claim/ | |
Re: I like my code (although limited) to be perfect. As previously mentioned by someone, my code isn't really worth commenting due to the level it is at but I try to comment each section. As a web developer primarily, I shall write the code out and check it all works … | |
Re: Apart from a passion for computing, cycling would be my other major hobby. On a good ride, I probably average 15 mph on the flats and it wouldn't be uncommon for me to cover over 20 miles a trip. | |
Re: Do you hear any beeps when you startup the computer? If you do, these are the error return codes from what is called a POST (Power On System Test) and they are designed for this exact problem, when you might not have a monitor to be able to display the … | |
Re: Windows has massive overheads compared to a Linux based operating system, that would be the simple answer. In Windows, almost everything runs on the GUI which means you are use a huge amount of resources to do very simple tasks. Unlike Windows, in a Linux environment you have a lot … | |
Re: You clearly didn't read the rules when joining Daniweb? As a word of advice for your next post, make sure you are clear and informative, what doesn't work, what was supposed to happen and what happened instead. This way you can get an answer a lot quicker. So what is … | |
This post is a bit of a rant but also has legitimate purposes. I am currently developing a Question and Answer forum/website which will allow people to post questions... and receive answers (nothing new, but hopefully shall get a handful of visits). I have spent the past four days brain … ![]() | |
Re: Strange, no reason why I can see this would happen... My only suggestion would be to define the DIV heights specifically and see how this goes? | |
Re: Yep, it is called Geolocation. I don't know if Google Maps offers a direct API to be able to use Geolocation however I suggest you look into HTML5's geolocation feature and then overlay it on Google Maps/Bing Maps/Openstreet Map. Just a word of caution, if it is to find a … | |
Re: You can simply use the date function. An example would be `date("d-m-y H:i:s");` which at the moment (GMT) it would produce: 26-03-13 12:52:08 | |
Re: You can use one of two common languages, PHP or ASP.NET. These are two server side languages that allow you to communicate with a database (if using PHP, MySQL would be my advice) and also allows you to do the cool features you are wanting. I would however offer a … | |
Re: No, the only way you could dynamically pass it without submitting is to use some AJAX and JavaScript, unfortunately it cannot be done with PHP alone as it is rendered server side before the page is even displayed. | |
Re: What you are describing sounds like an 'Extranet' which is essentially a website, which a user can login to in order to access additional content that is not available to the public. Extranets are used widely whenever you have an account, however there is nothing to prevent it (and it … | |
Re: The problem with PHP is that PHP is executed server side, what this means is that it is run before the page is even loaded. In terms of your chat room problem, this means that it won't be real time, or live. It can only possible occur once a refresh … | |
Re: If you don't know the server IP then there is no way that the client can connect, unless the client has a fixed IP and the server makes the first connection. What I have done in the past when doing something like this is get the server to ping itself … | |
Re: Have you read the terms and conditions of Daniweb? Just a hint as you are new, Daniweb is not the place to ask for code to be written for you, instead you should ask for help on a specific part. It is very important you show what you have done … | |
Re: You have a variety of options, and it depends on the type of person you are, your knowledge and what sort of site you are making. If you are like me, and know your way around HTML, CSS, PHP and JavaScript then you may use a basic text editor such … | |
Re: Only the Queen of the (Dani)Web knows that, and if a mere mortal like us where to get hold of this information it would open a void into the deep web. Although I do sit in awe at those with 'Posting Guru' status. | |
Re: At the moment I am using, and would say they are really useful: **Firebug**, a must have for web developers, allows you to inspect source code etc. **NoScript**, you can selectively disable JavaScript on webpages, useful for long running or faulty scripts and adds a bit more security **Cookie Self-Destruct**, … | |
Hello, This is a bit of an unusual question, and I wasn't really sure where I should put it (Geeks Lounge or Hardware) but I decided to stick it here anyway. I've recovered an old PC, an Acer Aspire Desktop (not sure on the model, but it's certainly a form … | |
Re: Without actually knowing what your website is it is very hard to judge. Assuming that you have a decent, functioning website then I would suggest you firstly look at if you have a niche market, this is a small market which you shall specialise in (and although it is small, … | |
Re: The chances are it shall be local host, otherwise your hosting provider should have a help section, or it listed alongside your billing information. If you cannot find it then pop a support query, or email their technical staff who should beable to give it to you in a couple … | |
Re: I found Daniweb via a Google Search, and joined it so that I could get help with some problems which I couldn't find elsewhere on the internet. Since then it has been a great resource, and I've enjoyed getting stuck in with other user's questions. In terms of helping with … | |
Re: What are you talking about? Google Chrome isn't going to install a search engine, Google Chrome is a browser and it shall allow you to choose what search engine you use. If the default search engine is being changed automatically then you either have some malicious program executing (and I … | |
Re: * Food and Drink To eat, and drink. I'm hoping I can count this as a single one? * Multitool To use for anything you could possibly need it for, building shelters, skinning an animal for food etc. * Satellite Telephone Kind of self explanatory, to keep in contact with … | |
I have noticed a problem with advertisements on Daniweb, sometimes when scrolling they seem to 'break free' off their places. If I scroll down the page, or scroll up the page they move around, sometimes moving to the left and blocking the question, sometimes moving over the navigation bar etc. … | |
Re: You aren't linking to your style sheet correctly, instead of: `<link href="./css/style.css" type="style/css" charset="utf-8" rel="stylesheet">"` it should be `<link rel = "stylesheet" type = "text/css" href = "/css/style.css" />` Note the 'text/css' | |
Re: A Package Depandancy error normally suggests that a piece of software (the package) needs something else that isn't installed on the computer. As you've just installed Ubuntu then there is a chance that you haven't updated and upgraded to the latest patches etc. Not only shall this ensure that you … | |
Before I start, sorry if this is in the wrong place and also I am aware that this is not a legal forum and thus I should take proper legal advice but any heads up would be appreciated. Ok, So I am looking to create and host my own website … ![]() | |
Re: You cannot pay someone to complete your university work for you, not only is this plagerism but it is also fraud and is likely to have you thrown out of university and black listed. Seriously... consider the conseqeunces... I would suggest that you use the internet to look into your … ![]() | |
Re: Can I refer you to Daniwebs [Rules](http://www.daniweb.com/community/rules). They specifically mention that we shall not write code, or write your homework. If you need help on a content specific section then ask but you must show your own work when doing this. How much C do you know so far, official … | |
Re: Hold on, let me make sure I've understood this correctly: You have one laptop with one VGA Output, you have connected this to your monitors VGA Input, on that monitor you also have a second VGA Output which you have connected to a second monitors VGA Input? Unfortunately you won't … | |
Re: Hello shqiptari88, Unfortunately .db files aren't something that can be uploaded straight into a MySQL Database natively, furthermore it could be any type of database as .db is just a generic filename for storing database data. If you can work out what sort of .db it is, then it might … | |
Re: Interesting username, but other than that could we have a bit more information please? What sort of files/applications are you trying to shortcut to and what operating system are you using? How long has this been happening, when did it start? Is this the first time it has happened, how … | |
Re: PHP and MySQL won't have anything to do with your microphone not working. If you going into device manager and see if it is listed there, it might have a little cross/triangle next to it suggesting there is a fault. Once you've located it, right click on it and re-install … |
The End.