Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JamesGMills

    mod_rewrite help

    Hi, I am really struggling with this I am looking to do the following: Direct www.domain.co.uk to domain.co.uk Direct domain.co.uk to website.php Direct admin.domain.co.uk to admin.php and direct every other subdomain to box.php This is what I have so far... miles off I think RewriteCond...
  2. JamesGMills

    hex to real name

    Hi, This looks more efficient. My only issue with this version is that it does not return shadeHex like the other one did in the final result set. James ------------------------ www.jamesmills.co.uk
  3. JamesGMills

    hex to real name

    Hi, I think you have overdone yourself with what you have done so far. Do you think this would be useful to others? I think it would! I searched high and low to find something like this... do you think we should put in a public page some place? Thanks again for your time, I will be sure to...
  4. JamesGMills

    hex to real name

    Hi, Whatever you did in the last version has fixed the issue of getting black back. http://www.jamesmills.co.uk/screen_shots/2010-12-09_0932.png In that screen shot you can see (on the right hand side) the new table generated from the version. You will see that compared to the table on the...
  5. JamesGMills

    hex to real name

    Hi, So if it makes a match does it the stop looping? So are you saying that if I specify to skip 000000 and FFFFFF then it would then find the next closes colour? That would make more sense because for some reason some colours are coming back as black which really are not. Cheers James...
  6. JamesGMills

    hex to real name

    Hiya, Thanks for comments on site. It's not been designed yet it's just build using a CSS framework. I do not have a list of colours that are failing really. If you see in the screenn shot, for example, you will see some came back as black when they are not really... Not sure what this is...
  7. JamesGMills

    hex to real name

    Hi Justin, Thought you might like to see your code at work! http://www.jamesmills.co.uk/screen_shots/2010-12-08_1702.png You were right about the array/object issue. Sometimes I am blind as a bat! Things like that take so much of my time, its like when you miss a comma or something and yours...
  8. JamesGMills

    hex to real name

    Hi, Works perfectly. I have created a Codeigniter library class file http://pastie.org/1359249 and I am calling this from my upload page. I am uploading an image and then processing it. Part of the process I am getting the top ten colours from the image. I am then looping through and running...
  9. JamesGMills

    hex to real name

    Gosh I think we have a winner! Its kicking an error if I put 000000 or FFFFFF into it but for everything else it looks to be returning a good result. I think you have proved your point! I am going to see if I can figure out why I am getting an error for 000000 (Fatal error: Call to undefined...
  10. JamesGMills

    hex to real name

    Hi, No not working, no matter what colour I give it the result is always the same. James ------------------------ www.jamesmills.co.uk
  11. JamesGMills

    hex to real name

    Just testing now... sorry been out... James ------------------------ www.jamesmills.co.uk
  12. JamesGMills

    hex to real name

    Five minutes! If you can do that in five minutes I will buy you a pack of beer! ------------------------ www.jamesmills.co.uk
  13. JamesGMills

    hex to real name

    Hi, Javascript to PHP... you would not have write it all again but you would have to port the javascript toa php function. James ------------------------ www.jamesmills.co.uk
  14. JamesGMills

    hex to real name

    Hi, Your right... unfortunately I do not have time to do this myself. It would take me days to do this... I understand its nothing too clever, in fact the code is very clean and well written (http://www.colblindor.com/js/ntc.js). I am going to have to think of a different way of getting what I...
  15. JamesGMills

    hex to real name

    Hi, How can I use that directly in a php page? I would have to use curl or something to call another page to get the result into my php script right? James ------------------------ www.jamesmills.co.uk
  16. JamesGMills

    hex to real name

    Hi guys, I am currently working on a website which is for artists to upload and showcase their artwork. I have created the script to upload the images of the artwork. From these images I work out the top ten hex colours found in the image. Now what I want to do is run those hex colour codes...
  17. JamesGMills

    Filling in missing hours from array

    Hi, Great reply. Thaks for detail and explination... When looking at these things it looks so easy... so much of programming is not just knowing the functions but being able to visulise the data and understand how to use what function the right way to get the data your after... Thanks...
  18. JamesGMills

    Filling in missing hours from array

    Hi, I have the follow array returned from my database query. Array ( [0] => Array ( [Hour] => 1 [Hits] => 8 ) [1] => Array ( [Hour] => 8 [Hits] => 11 ) [2] => Array ( [Hour] => 9...
  19. JamesGMills

    preg_match

    You are right and once I sorted that everything is working a dream. Thank you for your help! James ------------------------ www.jamesmills.co.uk
  20. JamesGMills

    preg_match

    <?php $handler = opendir("services/"); while ($file = readdir($handler)) { if ($file != '.' && $file != '..') { $tokens = token_get_all(file_get_contents("services/" . $file)); $comments = array(); foreach($tokens as $token) { if($token[0] == T_COMMENT || $token[0] ==...

Part and Inventory Search

Back
Top