Jump to content

corbin

Staff Alumni
  • Posts

    8,102
  • Joined

  • Last visited

Everything posted by corbin

  1. No problem .
  2. Yes, that's exactly what it is. The full syntax is FROM something AS alias
  3. I think I'll pass on that one.
  4. You can still see it on your profile page .
  5. I'm guessing you're running on Windows.... Uhm, I suggest using the imagemagick command line tool and using exec unless you want to compile the PECL extension. It's not particularly hard to compile an extension, but it would involve about 100MB (more if you don't already have MSVC) of downloads and maybe 20 minutes to an hour. http://www.imagemagick.org/script/binary-releases.php#windows
  6. Well, I mean you still could.... Now you could drink until the post counts reappear .
  7. I've yet to do a project where I haven't underbid it..... >.<
  8. You'll probably have to use FreeTDS.
  9. I would essentially come up with how long you think it will take you, add some padding on, then think of how much you think your time is worth per hour and multiply.
  10. What do the rows coming from the query look like? Are they individual email addresses or chunks of text containing multiple?
  11. It's assuming it's a column name since it's not in quotes. (I suggest using single quotes around it.)
  12. list($red, $white)=someFunc($x); list($redArr[$x], $whiteArr[$x])=someFunc($x); You're using that incorrectly for how you're using it later. The syntax: list(a, b, c, d) = array(0, 1, 2, 3) Would set: a = 0 b = 1 c = 2 d = 3 In other words, it matches value to variable. So, the variables do not contain what you think they do. Do var_dump() on the vars to see what's in them.
  13. Looks like the DNS resolution is failing (as the error blatantly states)..... Do host names resolve out side of a PHP environment?
  14. Yeah, I still rock a CRT screen . lol. It's from the computer before this one oddly enough. As far as onboard goes, I'm 99% sure that won't work. In fact, if I remember correctly the onboard video card usually has to be entirely disabled so that it doesn't conflict with the graphics card (driver issues, as KingPhilip said).
  15. Yeah, I must second his suggestion to get matching monitors.... I have a 23" LCD and a 16" CRT.... It's pretty weird. lol. (But of course the difference in most monitors wouldn't be that drastic.)
  16. realfacebook.com would definitely lose. As far as trademark goes, no, it's not automatic, and no, it's not free.
  17. Errrr..... Can we see your rewrite rules?
  18. I wouldn't buy a book just to read the pagination chapter. It can make your head hurt a bit, but really it's simple if you think about it mathematically: Page: p, number of results per page: a min = a(p-1) max = pa (Or, max = the number of results if the number of results is less then max.)
  19. And if you don't have a PS3, you know that how?
  20. Oh, I didn't stop to think that he wanted the img tag of that ID lol.... I just assumed the string he had only had an img tag in it .
  21. An easy solution would be to forward jpgs that don't exist to the other page: RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)\.jpg$ pic.php?i=$1 Or, to just match 4 characters: RewriteRule ^(.{4})\.jpg$ pic.php?i=$1
  22. /(<img.*id=\"uniqueid\".*/>)/ Since / was used to start your pattern, it will also be used to end your pattern. The basic syntax of a regexp is: <start/end character><actual pattern><start/end character><modifiers> Since you have /(<img.*id=\"uniqueid\".*/>)/ The .*/ is seen as the end of the pattern, thus the regexp engine thinks that >)/ are all modifiers. When ever you use the start/end character in a pattern, you must escape it (and in PHP, the escape sequence is \<char to be escaped>). /(<img.*id=\"uniqueid\".*\/>)/ Or, you can always use a start/end char that you don't think you're likely to use in the pattern: ~(<img.*id=\"uniqueid\".*/>)~ Anyway, on to why the pattern isn't working. Let's assume your pattern were ~(<img.*id=\"uniqueid\".*/>)~. When ever you use (), the pattern matched inside the () are captured into a result, but in this case, your entire pattern is in the same set of capturing parenthesis. So, assuming the string matches the pattern, your result will be the entire string. Not very useful. Anyway, you basically want to capture just the src part, so you should think about what an img tag is: <img attributes> Technically src is an attribute just like style, height, width, border, so on, so technically it can be in any order, not always <img src="...">. Because of that, I would look at it this way: <img{stuff here}src="{what you want to get}"{anything that's not >}> So, since you don't care about the {stuff here} and {other stuff here}, you can just blindly match that: ~<img.*?src="([^"]+)"[^>]*>~
  23. corbin

    python?

    Yes, Python and PHP can be integrated.
×
×
  • 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.