
corbin
Staff Alumni-
Posts
8,102 -
Joined
-
Last visited
Everything posted by corbin
-
Yes, that's exactly what it is. The full syntax is FROM something AS alias
-
I think I'll pass on that one.
-
You can still see it on your profile page .
-
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
-
Well, I mean you still could.... Now you could drink until the post counts reappear .
-
I've yet to do a project where I haven't underbid it..... >.<
-
Help needed with PHP 5.3 and MS SQL Server 2000
corbin replied to jplanigan's topic in Microsoft SQL - MSSQL
You'll probably have to use FreeTDS. -
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.
-
[SOLVED] getting only HOTMAIL users' emails and NOT Yahoo?
corbin replied to samoi's topic in Regex Help
What do the rows coming from the query look like? Are they individual email addresses or chunks of text containing multiple? -
It's assuming it's a column name since it's not in quotes. (I suggest using single quotes around it.)
-
[SOLVED] Multidimensional Array - what am I doing wrong?
corbin replied to talknerdy2mee's topic in PHP Coding Help
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. -
Looks like the DNS resolution is failing (as the error blatantly states)..... Do host names resolve out side of a PHP environment?
-
[SOLVED] multiple monitors....got opinions?
corbin replied to fivestringsurf's topic in Miscellaneous
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). -
[SOLVED] multiple monitors....got opinions?
corbin replied to fivestringsurf's topic in Miscellaneous
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.) -
realfacebook.com would definitely lose. As far as trademark goes, no, it's not automatic, and no, it's not free.
-
Why do some search forms record the mouse x and y coordinates?
corbin replied to daydreamer's topic in Miscellaneous
>.< lol -
Errrr..... Can we see your rewrite rules?
-
Need a good book that has pagnation examples in it
corbin replied to Redlightpacket's topic in PHP Coding Help
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.) -
And if you don't have a PS3, you know that how?
-
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 .
-
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
-
/(<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="([^"]+)"[^>]*>~
-
Yes, Python and PHP can be integrated.