Jump to content

glenelkins1984

Members
  • Content Count

    19
  • Joined

  • Last visited

Community Reputation

0 Neutral

About glenelkins1984

  • Rank
    Member

Recent Profile Visitors

953 profile views
  1. Hi man This doesn't work, $c for example is never 0 and even if i take that out nothing is ever applied to the image. I have attached 2 images i am using, shape-5.png is the one with the transparent pixels, and the other one is the texture i want applying to the non transparent pixels. Can you adivse? (the shape image is white with transparent text)
  2. I'm not sure this is helpful? I'm looking for code to make this happen, your images are correct, but the text in the middle of my image won't necessarily be just a solid colour, we need a way to apply the texture ignoring transparent pixels on the text image so the text ends up with the texture like your third image. Can you help out?
  3. I’m trying to work out how I can use php gd to take an image, in this case it’s a rectangle that has text in the middle and the rest is transparent, so it’s a png with just text in the centre. I have another image which is a texture. Its also a rectangle of the same size. I have managed to merge the two together so the texture on top of the text image but it covers the entire image rather than just the text in the middle. what I need it to do it apply the texture to the text in the image and ignore the surrounding transparent pixels.
  4. I suppose the easiest way would to be completely strip off the http:// or https:// and then add it back again, something like this: if (strpos($nueva,“http://”)=== FALSE) { $nueva = “http://” . $urlc . $nueva; } REPLACE THAT CODE ABOVE WITH THE FOLLOWING: $nueva = 'https://'.preg_replace('/http[s]*:\/\/.*/','',$nueva); So it now doesn't matter if http or https is present they will be stripped out completely and then you can add whatever you want at the beginning (in this case i added https)
  5. Hello everyone Currently our business is expanding and we are in need of a part time developer. We aren't rich so we need reasonable quotes for 3 days every week, 8 hours per day, to complete any work we provide. Essential Skills/Experience: PHP (Including Namespaces experience and preferably PHP7) MySql JavaScript jQuery GIT HTML CSS Composer Coding for CLI PDO Experience coding for API (including Google api) Experience working from task lists, ideally on Asana but if you've never used Asana you'll need to learn (easy enough) Communication is very important, we expect an update ea
  6. We are a small UK team of developers who have been serving businesses, large and small, over the years with web development and software services, including mobile applications. We are looking to take on some new clients at the moment for long term, monthly, contracted work. We can offer three days of work each week at £100 per day (8-9 hours) We have worked as developers since 1997 and have worked on many different kinds of development projects with more recent work specialising in Wordpress themes and plugins as well as mobile applications and desktop software - including many API integr
  7. Using PSD.js the colours for text characters don't match RGB,RGBA or CMYK, there are 5 numbers in the a colour arrays, they don't even match the text colour in the photoshop file if you try to compare any of the numbers to the RBG or CMYK values. An example what PSD.js is showing for colours of a particular part of text shows this array: [3] => Array ( [0] => 27 [1] => 185 [2] => 116 [3] => 0 [4] => 255 ) You can clearly see these have no relevance to any colour codes I have seen before. These numbers are supposedly representing this colour: #db6971 - but none of the numbe
  8. I have now employed an additional member of staff so we are able to accommodate more, please email at contact@nibbr.co.uk
  9. You might be better off building up the details you want using PHP rather than trying to bash your head in with the mysql. So select your teachers from the database with relevant details, loop over them all with PHP and pull the details of classes for each teacher on their own. Depending on how large your data is going to become for a single teacher this could work, or it could be very inefficient. So just a bit of an example: $teachers=[]; foreach($teacherDB as $t){ $teacherClasses = pull the classes in a db query $teacher = (object)[ 'details'=>$t, 'cla
  10. Hey I'm not quite sure i understand what you're asking but going on a whim here, if you just want 1 record why don't you add a limit to the db query? LIMIT 1 ? You can also use the PDO fetch() rather than fetchAll() to get a single row - you maybe could also use PDO::FETCH_OBJ instead of PDO::FETCH_ACCOC to get yourself a nice single object? Maybe i am misunderstanding what you're asking?
  11. This depends on what you're using to connect to the database, is $conn a PDO object or a mysql connection resource? The code I used was just an example i would use with PDO
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.