1,376 Posted Topics

Member Avatar for chris.aaker

[QUOTE=;][/QUOTE] I do not believe that you will be able to find a IDE that converts php code to assembly however you would be more likely to find a converter for php to C if you look hard enough since php was written in C. The reason why I say …

Member Avatar for chris.aaker
0
207
Member Avatar for pool_89

Please follow the rules as posted on daniweb otherwise in future you may have to suffer the consequences such as point deduction or banning. So please keep your code tidy by placing it in the appropriate code tags and it isn't nice when long sentences are purely in caps. So …

Member Avatar for cwarn23
0
251
Member Avatar for dornaled

SimpleXML is a object oriented PHP module for dealing with interpreting XML code. So if your not using XML code or not Pre-Processing XML code then you can probably ignore this module. Like always the manual is a good place to start and perhaps a few tutorials might even help. …

Member Avatar for cwarn23
-1
63
Member Avatar for jacob21

You need the table name conjoined to the column name. For example: [CODE=sql]SELECT * FROM admin INNER join category on category.cat_id=admin.cat_id where category.cat_id=5[/CODE]

Member Avatar for cwarn23
0
31
Member Avatar for Ancient Dragon

[QUOTE=kaninelupus;966087]As soon as I see "Linux" and "Ubuntu" in the same comment, immediately tune out. If you want to use the [B]poor-man's OS X[/B], be my guest; but please don't ply it as a [B]real[/B] Linux distro, as it ain't![/QUOTE] Well Ubuntu if my Favourite OS as Windoze is too …

Member Avatar for jwenting
0
587
Member Avatar for kuteinheart

It is possible to use no submit buttons and instead just have a regular button [ICODE]<input type="button"[/ICODE] and use a javascript function onclick to submit the two forms. An example is as follows. [CODE=html] <script> function sender() { document.forms["form1"].submit(); document.forms["form2"].submit(); return true; } </script> <form id="form1"> <input type="text" value="test" name="test1"> …

Member Avatar for jessica007
0
6K
Member Avatar for cwarn23

Hi, I am rendering a bunch of cg images but now I need to make an applet that will view them. More specifically these images are very much like the first generation of google street view where you have a picture and you can get a camera to crop a …

Member Avatar for mKorbel
0
177
Member Avatar for cwarn23

Below is a paragraph based on a true story of how floods rule the world 2011 to 2012. [story] The year is 2010 and everybody seems to be on top of the moon with great wealth when scientists monitoring the sun discover a potential solar burst from the sun which …

Member Avatar for GrimJack
2
358
Member Avatar for cwarn23

Hi, I was surfing the web looking at what technology is around then I found the below link and quotes the following: [QUOTE]how fast do you need it? because the magny-cours amd 12 cores come out early next year, and with an 8 socket motherboard you'd have 96 cores, whereas …

Member Avatar for cwarn23
0
199
Member Avatar for cwarn23

Hi, I have just created an algorithm and could this be the greatest algorithm invented for calculating square roots? Perhaps the answer is yes with 100% accuracy unlike some algorithms that round the last digit up. Below is the algorithm I have created and I used php. Also this algorithm …

Member Avatar for mrnutty
0
843
Member Avatar for Borzoi

If you were a pie then what would your last ord(chr(X)) be? Answer 0 as pi as in 3.14159265 ends in 0.

Member Avatar for Borzoi
0
745
Member Avatar for jake1496

I think the best 3d game made is Duke Nukem 3D Atomic Edition followed by Doom 1. I know many of you's will say that's a 2.5D game but how can be as it can't have half an axis. Anyways back on topic, my friend recently introduced me to a …

Member Avatar for davidlouis88
-8
863
Member Avatar for slash49er

You may want to note that if you are on a proxy server or on a Virtual Private Network and sometimes if you are on a Local Area Network then you will need to configure those settings into your web browsers. So in Internet Explorer, open the Options window then …

Member Avatar for More28
0
273
Member Avatar for cwarn23

Or at lease one disease - Malaria. Human trials have already proven successful by injecting some Mosquitos with a bacteria to disable the harmful chemicals the Mosquito would normally inject into a human then sends a bunch of these mutant Mosquitos into an active population of Mosquitoes where the offspring …

Member Avatar for vegaseat
0
222
Member Avatar for Blacklister

Alternativley there is Adobe Flash but I myself prefer ajax and if you post some code then I shall try and embed the ajax.

Member Avatar for ketan_156
0
605
Member Avatar for whiteyoh

May I suggest following my [URL="http://syntax.cwarn23.net/PHP/Pagination_made_easy"]pagination tutorial[/URL] because your code looks like a mess and needs a rewrite.

Member Avatar for vivekdizzal
0
218
Member Avatar for Silkywings

[QUOTE=Sudo Bash;1430035]External hard drives and flash drives are much slower than the internal hard drive(s). Unless you have USB 3.0 ports then I would go with the internal hard drive but, bear in mind, writing and re-writing things on your hard drive will wear it out. I can't wait until …

Member Avatar for cwarn23
0
189
Member Avatar for cwarn23

Hi, I am looking forward to getting the new i9 core when it comes out and I hear one of the cpu's that are going to be available is 4GHz 6 core 12 threaded. I'm going to wack two of those cpu's with dual sockets into my new computer. I …

Member Avatar for Sudo Bash
0
191
Member Avatar for cwarn23

Hi, I'm trying to get a new computer but even the computer techi is stuck on this one. The basic situation is I'm buying a custom built computer and I need to find an appropriate motherboard. The thing that makes this request different is that the motherboard needs to be …

Member Avatar for saxmaster49
0
352
Member Avatar for qazplm114477

That is what I like to call cybercrap or cyberjunk. It's the sort of thing that should be displayed in the Mosaic browser within a museum.

Member Avatar for cwekeybb2351
0
666
Member Avatar for cwarn23

Hi, I was thinking of buying an 8 core Xeon 3.0GHz (16 threaded) cpu but still want more. Is it possible to buy two of these cpu's and stick them both in the same computer sharing the same power supply, graphics card etc. I know this might be a silly …

Member Avatar for cwarn23
0
63
Member Avatar for The Dude

This test said I had an IQ of 100.99. Well I guess this makes me average.

Member Avatar for The Dude
-1
127
Member Avatar for happygeek

Hi and I'm a [LIST] [*]RTFM geek [*]Computer geek [*]Algorithm geek [/LIST]

Member Avatar for Chatterbox721
0
758
Member Avatar for cwarn23

Hi everybody. I have a question about the best way to retrieve a list of possible source values from the & operator without checking every combination between the range required. The basic problem I face is I have [B](a&b)=c[/B] I know the values of b and c but need to …

Member Avatar for TrustyTony
0
219
Member Avatar for cwarn23

Hi, I have been working on a way to reverse bitwise Xand with c++. I have managed to do most of it but can anybody tweak this script I made so it works to its full potential. At the moment this script tries to return the variable x from ((12 …

Member Avatar for cwarn23
0
112
Member Avatar for cwarn23

Hi, I have just started python as after a chat with a friend I have discovered it would be the most suitable language for my latest project. The problem I have come across is I need a sha1 function written in python. I don't want to use the built in …

Member Avatar for cwarn23
0
173
Member Avatar for cwarn23

Hi, I have just got my computer back from the shop and to my surprise a 1TB harddrive which is dedicated to the root partition is nearly full. I'm using Ubuntu 9.10 64 bit and according to the command "du -hc" there is only 157M total in there. But when …

Member Avatar for rch1231
0
125
Member Avatar for GrimJack

Nice picture and can't wait until I get to the white chocolates. They taste so good. I wonder if a rabbit trap will catch the bunny this year.

Member Avatar for Nick Evan
3
57
Member Avatar for nathenastle

Hi, I have made a function that will resize images and is as follows: [CODE=php]<?php function resize_image($filename,$newwidth,$newheight) { if (!file_exists($filename) || !in_array(preg_replace('/(.*)[.]([^.]+)/is','$2',basename($filename)),array('png','jpg','jpeg','gif','xbm','xpm','wbmp'))) { //note .wbmp is 'wireless bitmap' and not 'windows bitmap'. return false; } else { $ext=preg_replace('/(.*)[.]([^.]+)/is','$2',basename($filename)); if ($ext=='jpg') { $ext='jpeg'; } $ext='imagecreatefrom'.$ext; list($width, $height) = getimagesize($filename); $thumb = …

Member Avatar for red_ruewei
0
344
Member Avatar for Syntax12

Also it is possible to reorder the date in a different format than it is recorded. So say you had Year-Day-Month, you would use the following to order it and display it as Day-Month-Year while in order: [CODE=php]//set date array to list of dates in y-d-m format $date=array('2009-01-05','2009-01-15','2009-01-14'); for ($i=0;isset($date[$i]);$i++) …

Member Avatar for EvolutionFallen
0
154
Member Avatar for jasha

If your trying to embed a login system or are using the url rewrite module and don't want the user to access the real location you could allways assign a cookie check if the cookie exists. For example: [CODE]<?php setcookie('google_analytics',time(),time()+(60*60*24)); if (isset($_COOKIE['google_analytics'])) { die('Access denied!'); }[/CODE] This will allow the …

Member Avatar for CEVGames
0
259
Member Avatar for cwarn23

Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at [URL="http://www.computersciencelab.com/MultithreadingTut1.htm"]http://www.computersciencelab.com/MultithreadingTut1.htm[/URL] but I …

Member Avatar for Ancient Dragon
0
725
Member Avatar for BestJewSinceJC
Member Avatar for Dante2

Try the following: [CODE]<?php session_start(); $_SESSION['number'] = $_GET['number']; if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } $counter = $_SESSION['count'];[/CODE] But be sure to delete cookies before testing so you have a fresh start and new sessions.

Member Avatar for cwarn23
0
126
Member Avatar for Setvir

[QUOTE]I want to know if I am on the right track.[/QUOTE] Hi, From the code snippet you have sent it appears you are on the right track but just keep in mind that regex otherwise known as the preg_ functions take up a lot of cpu. So in that code …

Member Avatar for Setvir
0
150
Member Avatar for noellieb

Try something along the lines of the following: [CODE]<?php $_COOKIE['visits']=(isset($_COOKIE['visits']))?$_COOKIE['visits']++:1; setcookie('visits',$_COOKIE['visits'],time()+3600*24*365); if (isset($_GET["firstname"]) && $_GET["lastname"]) { #if data is set if (!empty($_GET["firstname"]) && !empty($_GET["lastname"]) { $Fname= $_GET["firstname"]; $Lname= $_GET["lastname"]; $User= $Fname . " " ."$Lname". ; /* Set cookie to last 1 year */ setcookie("username", $User, time()+(60*60*24*365)); //if (isset($_COOKIE[['username'])) //echo …

Member Avatar for cwarn23
0
1K
Member Avatar for tunde011

[QUOTE=arturs.daudiss;1379433]In some way I would disagree with gizgiz, because MD5 hash can be unhashed, for example, by using [url]http://www.md5-online.com/[/url] project. If security is primar - I would suggest using salt. Even better, if there is unique salt value for every user.[/QUOTE] Agreed and perhaps this function is the best hashing …

Member Avatar for cwarn23
0
307
Member Avatar for eovogt

[QUOTE=eovogt;1370760] PS. I have had this working on another site put was using the form function POST instead of GET. Would that make a difference?[/QUOTE] Let me be the first to say welcome to daniweb. Also I would like to give you some credit as a first time poster as …

Member Avatar for eovogt
2
121
Member Avatar for cwarn23
Member Avatar for ana12
Member Avatar for jacktb
-7
335
Member Avatar for Ancient Dragon

[QUOTE=Ancient Dragon;1118887]How to fix you broken computers [url]http://www.youtube.com/watch?v=PFcL6hiyyuc&NR=1[/url][/QUOTE] I watched the video and while your at it why don't you add some C4 along with TNT.

Member Avatar for dexter737
0
164
Member Avatar for cwarn23

Ok, so I was getting my daily dose of Stargate Atlantis then in the final episode atlantis lands in the atlantic ocean. Then I think to myself, haven't I seen an [URL="http://www.youtube.com/watch?v=bKhLD0uBv0s&feature=fvw"]unrelated youtube video[/URL] coming to the same conclusion. In this youtube video which I saw a long time ago …

Member Avatar for dexter737
0
203
Member Avatar for ryan-t

Try the following. Index.php [CODE]<?php $variable='this is a test.'; include('function.php');[/CODE] And Function.php [CODE]<?php echo $variable; ?>[/CODE]

Member Avatar for ryan-t
0
119
Member Avatar for showman13

[QUOTE=quasipickle;1371072]To be honest, simply doing [url]www.domainname.com/username/[/url] would be much simpler.[/QUOTE] I beg to differ and say it's just as simple to get a subdomain for the user as it is for a subdirectory. I just happened to come across this issue a couple of years ago and already know the …

Member Avatar for showman13
0
190
Member Avatar for cwarn23

Hi, I thought I would ask "what do you think the average computer will be like in 2020?". I have read about Moors Law which says we should have 25.6GHz 32 core cpu with over 256GB of ram. But is this totally correct or are we expected to see more …

Member Avatar for happygeek
0
155
Member Avatar for gptArun

This error usually means the username and password specified are either invalid or have insufficient permissions to the database. So perhaps try your regular cpanel details in the mysql_connect() function as that gives you full permissions associated to your cpanel account provided your using cpanel. If your not using cpanel …

Member Avatar for gptArun
0
408
Member Avatar for jamesyrawr

It means that the 'price' column does not exist. Keep in mind php is case sensitive so make sure that it's not 'Price' or 'PRICE' or something else other than 'price'. You can always do print_r($row2) to find out what it is.

Member Avatar for cwarn23
0
232
Member Avatar for MDanz

Here is 2 examples of how to do it in the one script. Just delete the Option A section or the Option B section to view each example individually. As they both share the code at the top. [CODE]<?php $items=array('apple','apple','poison','fruit','fruit','banana','veg','veg','veg','strawberry'); $count=array(); foreach($items AS $val) { if (!isset($count[$val])) { $count[$val]=1; } …

Member Avatar for cwarn23
0
272
Member Avatar for niths

I think what you are after is the str_split(), unset(), and implode() functions. Below is an example of how I would do it. [CODE]<?php function parts($string) { $tmp=str_split($string,3); $a=$tmp[0]; unset($tmp[0]); $b=implode('',$tmp); return array($a,$b); } /////////////////////////////////////// //Do Not Edit Above $data = parts(1234567890); echo $data[0]; echo '<br>'; echo $data[1];[/CODE]

Member Avatar for cwarn23
1
112
Member Avatar for cwarn23

I borrowed a friends computer and needed to make an online payment. So I looked at the box then placed my credit card into the floppy drive to make the payment. The payment didn't work but now my credit card is stuck in a friends computer. Does anybody know how …

Member Avatar for efmesch
1
175

The End.