Jump to content

EthanV2

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by EthanV2

  1. Maybe your server is slow. Do you hose the site yourself or do you pay for it? If your site is slow for everyone, then it's an issue with your hosting.
  2. I made a simple library to resize images a while ago. You specify the input file max size, say 250px, and the lib does all the work for you. It'll resize the image in proportion by working out which side is bigger, changing it to your specified size and changing the other side in proportion. http://pastebin.com/4DWreHXC Includes example code and documentation.
  3. That's perfect, thanks. This is a huge help for me.
  4. Hi, just wondering if anyone could help me out with this. I just need a piece of code, or a function, that will search a string for any images, then put the list of images into an array. So far all of my Google'ing hasn't shown up any results, so any help would be much appreciated. I'll be using the function to scan an HTML page, and generate a list of images embedded on that page (using the <img> tag), but I just can't seem to get it to work.
  5. Sorry to bump my thread, but I was wondering how I could make the function generate strings with capital letters and numbers. So it could work like 0 1 2 ... 9 a b c d ... z A B C and so on I have tried everything I can think of, but I simply can't get it to work.
  6. I modified that to function alphagen($start, $len) { foreach (range($start ,$len) as $i) { $string = num2alph($i); } } So that I can define an offset (so alphagen(11, 11) will return the 11th character that can be generated) How can I make the variable $string accessible outside of the function? EDIT: Never mind, I was doing it wrong EDIT2: Wait, no. I still need the character generated to be a variable that can be accessed outside of the function
  7. I have asked this on god knows how many forums, and so far no answers. But hopefully you guys will be able to help me. I was wondering how I would generate a set of Alphanumeric strings with PHP. So the script would run and output something like: a b c d .. x y z aa ab ac ad ...and so on. Alpha would be good, although Alphanumeric would be much better. Also the option to define how many characters long the string can be would be a plus. If anyone can show me how this is done, or even an idea on how I could do it, I would be very happy. All help is appreciated.
×
×
  • 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.