- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 11
- Posts with Upvotes
- 10
- Upvoting Members
- 10
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I'm web developer and programmer who has been working with computers for many years. I mainly specialise in web development with PHP. I have worked on projects which include content management systems with e-commerce and complex mass data analysis solutions.…
- Interests
- Pretty much everything techy - and obviously chocolate
88 Posted Topics
Re: This is a quality post, someone make it a sticky ;) | |
Hi, I decided that my operating system needs some graphics. I have seen loads of tutorials on drawing pixels, and I have used some. I now want to use 32bit protected mode (before I was using real mode) and I can't find any tutorials or documentation on drawing with VESA … | |
Re: Include the files???? if($some_kind_of_variable == 'some_value') include('go1.php'); else include('go2.php'); I don't really understand what you want to do. | |
Re: > $result = mysql_query("SELECT * FROM shop WHERE id IN(".join($products,',').")"); Something is wrong with your query. I assume your `join()` function does something... Without knowning what exactly your `join()` function does, I can't really tell you whats wrong with your query string... **Edit: oops, join is a built in php … | |
Re: I haven't really tried this myself, but I have a few ideas. $return = system('c:/wamp/wampmanager.exe -restart'); Note sure if it will work, I can't actually test it as I don't use WAMP (anymore). | |
Re: I'm not an expert at ASM myself but I know that this code is way bigger than it needs to be. What assembler do you use? Why are you using %??????? With the push and pop instructions, you add a value into the stack (like eax). I think you need … | |
Re: I don't think daniweb has much spam. I have seen forums that look like they are made for spam. Usualy spam about buying Viagra. hmmm. | |
Re: I have had a look at the videos, looks like you did a good job. ;) You could always post a link to a disk image (.iso), then the actual OS could be tested and reviewed. ^^ Just a suggestion. | |
Hello, I have looked all over the Internet for the answer to this question. I know that, to send data to the server using SSL, you encrypt it using the servers public key. I also know that the private key is used to decrypt it. What I don't understand is … | |
I am writing this thread not to ask how to make an operating system, but to say how to make an operating system. There always seems to be new threads created asking how to make an operating system. [b]The simple answer[/b] There is no simple answer. Making an operating system … | |
Re: Hi, Are you using PHP Short Tags (e.g. <? ...code... ?>)? If you are, this may be your problem. Just change '<?' to '<?php' and your problem should be solved. Doesn't Work? If it doesn't work then I have no idea of what the problem is. Hope this helps Kieran … | |
Re: Hi, Not sure if this is what your looking for but there was a code snippet posted not so long ago: [URL="http://www.daniweb.com/code/snippet340106.html"]http://www.daniweb.com/code/snippet340106.html[/URL] Hope this helps, Kieran :) | |
Re: Hello, You have misunderstood the error. It is referring to Line 3 in a MySQL Query. If this is what is causing it: [CODE] $uvquery = "SELECT * FROM uvphotos WHERE species_name = {$_SESSION["speciesname"]}"; [/CODE] You should try: [CODE] $uvquery = "SELECT * FROM `uvphotos` WHERE `species_name` = '{$_SESSION["speciesname"]}'"; [/CODE] … | |
Re: [QUOTE=scrapmac;1360633][B]You Idiots[/B] , you took beta or the latest version of every [B]other browser[/B] , and took [B]Firefox 3.6.9[/B] for testing , Is that even close to fair ??? , Take [B]Firefox 4 beta 6[/B] or the [B]latest nightly build[/B] and then do the testing , I bet Firefox will … | |
Re: It doesn't really matter if you use 64bit or not. Most programs will work fine. I am using 64bit and all of the programs I use work fine. For writing the programs (only) I use Notepad++ - It supports many different languages and is free! For assembling I use NASM … | |
Re: Hi, You have [B]mistaken[/B] PHP as a client-side scripting language. PHP is a server-side language, which means it does its stuff before it sends the page off. Well, sort of. You will need JavaScript to do this. I am not a complete expert at Javascript so I won't attempt to … | |
Re: You would need to use JavaScript, not PHP. PHP is for server-side scripting, not client-side like JavaScript. Kieran :) | |
Re: Hi, I can't see anything wrong, you should try using <?php ?> instead of <? ?> - it is not always enabled. Does [I]require_once('recaptchalib.php');[/I] send anything to the browser, like text? Anything sent before the [I]header()[/I] function will stop it from working. The large space at the beginning of the … | |
Re: Hi, This is what I say to everybody (there have been quite a few threads asking this question)... (Slight adapted to situation): [quote] Hello, It takes experience to write an operating system BUT you can certainly start. I have made my own with assembly, it doesn't do much but It … | |
Re: A dynamic title, do you mean using <title></title>????? | |
Re: Your code looks fine... [I]time()+3600[/I] = 1 hour, not 30 mins... I don't *think* you need to enable some ModSecurity thingy, although I haven't heard of it before... You should have a look at this site for more information on a HTTP 501 Error: [URL="http://mwolk.com/blog/501-error/"]http://mwolk.com/blog/501-error/[/URL] Also, I personally think you … | |
Re: Hi, You could try adding slashes to the string [I]addslashes();[/I] You might be using magic quotes to. Use [I]get_magic_quotes_gpc()[/I] and if it is false, using the [I]addslashes()[/I] function. Example: [CODE] if(!get_magic_quotes_gpc()) { $source = addslashes($_POST['source']); } else { $source = $_POST['source']; } [/CODE] For more on the [I]get_magic_quotes_gpc()[/I] function, check … | |
Re: Hello, I assume you need to redirect the page. If the validation bit is before the headers (that is, before any text is sent, including a space " " to the browser) then you can use the [I]header[/I] function with a [I]Location[/I] like this: [CODE] header("Location: /folder1/folder2/index.php"); [/CODE] You can/should … | |
![]() | Re: YES! 1000 variable can affect the web server a lot! It really depends on what they are being used for and when they are being used. If you use the correct MySQL (or other database) query, then you could get the variable you want without filling the entire server with … ![]() |
Re: Hello, Are you 10 years old, did I hear that right? Well, age doesn't bother me, much. It does take experience to write an operating system BUT you can certainly start. I have made my own with assembly, it doesn't do much but It works. When I first thought "I … | |
Re: Use PHP to include the script. Example: [CODE] <html> <head> <title>Login Script</title> </head> <body> <?php include("login.php"); ?> </body> </html> [/CODE] Hope this helps, Kieran :) | |
Re: This might be wrong, I have never really used fpdf but... Words have different lengths, so, for example a line with 5 words may only have 18 characters, it may also have 31, so surely you would have to use a character count as well? | |
Re: Hi, A Class and Function are VERY different. [B]Functions[/B] A function is a piece of code that can be called many times, they can do things like calculations without the need to re-write the code a trillion times. [B]Classes[/B] A class is like a group, it can hold it's own … | |
Re: That must be the best thread title yet! "[B]This is retarded!![/B]" Calm Down man! ![]() | |
Re: I might be able to help out but I need to know what assembler you are using (Nasm, Tasm, etc). | |
Re: Hi, First you would need to find some kind of database full of numbers and there addresses - not sure where you could find this. You would then need to cross-reference this information (which is easy). Just add the info into a database with the phone number(s), address, name, etc. … | |
Hi, Is it possible to write and compile a cross-platform C++ Program in Visual Studio (C++) Express or Professional? I only ask this question (before starting on a big project) because I would like to support other platforms without changing my coding environment, if you get what I mean. Kieran … | |
Re: You will need some knowledge of Assembly to make an operating system. You don't need to write it all in ASM but for some parts, its the only option. | |
Hi, I am developing a program which requires access to my websites' MySQL. I keep getting errors trying to connect to it. My firewall is allowing the connection but MySQL won't accept it. How can I solve this problem? Thanks in advanced Kieran :) | |
![]() | Re: Hi, I think it's just a typo in the code. [CODE] function watermarkImage($loaction) { //laster inn bildet som skal settes pÃ¥ bildet :) $watermark = imagecreatefromgif("copyright.gif"); $watermark_height = imagesy($watermark); $watermark_width = imagesx($watermark); $image = imagecreatetruecolor($watermark_width, $watermark_height); $image = imagecreatefromjpeg($location); [/CODE] Just change [i]watermarkImage($loaction)[/i] to [i]watermarkImage($location)[/i] You used [I]$loaction[/I] instead of … ![]() |
Re: Hi, I assume that the problem is with this line: [CODE]mysql_query("INSERT INTO main VALUES NULL, '$url')");[/CODE] The syntax is for an SQL insert is: [CODE] INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...) [/CODE] You should change it to: [CODE] mysql_query("INSERT INTO main VALUES (NULL, '$url')"); [/CODE] OH … | |
Re: I can't (of the top of my head) think of anything that would cause that. You must be doing something wrong with the session (e.g. closing it/clearing the variables). | |
Re: Hi, I think you are in need of a tutorial! Well, here you go: [URL="http://www.homeandlearn.co.uk/php/php4p11.html"]http://www.homeandlearn.co.uk/php/php4p11.html[/URL] Kieran :) | |
Re: Hi, I think I know what you are asking for. You will need to use the GD Library to create a thumbnail of an image. It should be easy to upload the image. [B]Creating a thumbnail[/B] You should check out this script: [URL="http://snipplr.com/view/753/create-a-thumbnail-maintaining-aspect-ratio-using-gd/"]http://snipplr.com/view/753/create-a-thumbnail-maintaining-aspect-ratio-using-gd/[/URL]. It can create a thumbnail maintaining the … | |
Re: Hi, You could always create a 404 error page that does the same job. Just get the script name and do whatever with it. You will need to make sure that the browser doesn't know that its a 404 error. Hope this help Kieran :) | |
Re: Hi, Just before I try to answer: [I]Can you please write in full English. It is a forum rule to do so.[/I] [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/URL] When you say "encode" I do you mean "encrypt". I am not sure exactly what your asking for. Do you want to make it so that the … | |
Re: This is the problematic line of code: [CODE] <td><a href="confirmdelete.php?recordID=<?php echo $row_ Recordset1 [' id ']; ?>">delete</a></td> [/CODE] Can you see the error? [I]<?php echo [B]$row_[/B] Recordset1 [' id ']; ?>[/I] You have a space between $row_ and Recordset1 So this is the working code: [CODE] <?php require_once('Connections/reservations.php'); ?> <?php … | |
Re: You would need JavaScript for this, not PHP. I'm no expert at JavaScript so I can't really help on that part. Kieran :) | |
Re: Hi, I have never worked with 1.7 million rows before but I know that to keep a database fast you will need to optimize it. You should have a CronJob / scheduled task to optimize that database about twice a day. I don't think having 10 queries will slow it … | |
Re: Im not exactly sure what you want but I think you will need to use the PHP GD Library. If you don't know what this is then you should check out the following links. [URL="http://php.net/manual/en/book.image.php"]http://php.net/manual/en/book.image.php[/URL] [URL="http://www.phptutorial.info/learn/create_images/"]http://www.phptutorial.info/learn/create_images/[/URL] | |
Re: Hi, Your dealing with an array ;) Assuming your array is named [i]$array[/i] all you would need to do it [i]$array['option1'];[/i] An example: [CODE] echo "Option 1: ".$array['option1']."<br />"; echo "Option 2: ".$array['option2']."<br />"; for($x=1; ( isset($array['option'.$x]) ); $x++) { echo "Option ".$x.": ".$array['option'.$x]."<br />"; } [/CODE] I hope this … | |
Re: Hi, You should read this tutorial: [URL="http://www.w3schools.com/PHP/php_file_upload.asp"]http://www.w3schools.com/PHP/php_file_upload.asp[/URL] The function you need to use is: [CODE] move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);[/CODE] Or, you could open/create a file and put the data in it: [CODE] $fileHandle = fopen("upload/test.txt", "w"); fWrite($fileHandle, $data); fClose($fileHandle); [/CODE] Kieran :) | |
Re: I think you would need to use the AdSense API but you need over 100,000 Daily views Try this like: [URL="http://code.google.com/apis/adsense/"]http://code.google.com/apis/adsense/[/URL] Hope this help, Kieran :) | |
Hi, Is it possible to stop the [i]fopen[/i] function from accessing a file or folder? My server uses linux but I have no control over [I].ini[/I] files as my host prevents me from accessing them. Is there any way from using a [I].htaccess[/I] or something to prevent [i]fopen[/i] from opening … | |
Re: Hi, You had an error (from what I can work out) by trying to define the function in the main class. [B]Edit:[/B] I am using Visual C++ 2010 Express, but [I]should[/I] work in other versions I only get warnings from this code (possible loss of data): [CODE] #include<iostream> using namespace … |
The End.