-
Posts
11 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by The Reverend
-
-
I went straight from HTML and CSS to PHP and now Javascript. I think it really depends on what you plan on doing. If you are just generally building sites, I think you'll be using PHP more often than XML. It doesn't hurt to be familiar with XML though as it is a very useful tool.
-
I'm not sure what you're asking. I think you may be confused a bit. $_GET variables are transmitted through urls but they generally aren't big strings of data. Are you using a database?
-
I don't see anything wrong with it then. I setup a table to the same specs he's given on my XAMPP deal on my computer and ran the query, it works fine.I think of =& as buy in this case btw. My beer drinking class is a work in progress.
-
I don't know how it is on your server, but the one I use requires syntax using ` surrounding the table name and fields, like this:
INSERT INTO `site_uploads` (`uid`, `title`, `desc`, `file`, `uploaded`) VALUES ('1', 'Notepad 2', 'Try it!', 'Notepad 2.zip', '2006-08-03')
-
I've worked on a number of sites, but this one is mine and it's my baby. This is the third incarnation of it since I built it.http://www.ninercaphell.com
-
Thank you justsomeguy for explaining that, I probably should have in the first place. It's extremely easy to use, and it's not to hard to add new codes to if you follow the formatting carefully. This particular one is fairly customized for my own use. If you need to add tags it's fairly simple.start out with "/"Then I assume you're gonna have some kind of tag like this [r], simply escape the brackets\[r\]add the (.*?) in the middle, this is the wildcard.then close the tag the same way it's opened, but you have to escape the / as well\[\/r\]then simply end it with /isthe end result being'/\[r\](.*?)\[\/r\]/is'Hope this helps, this function has been a lifesaver for me.btw, if you didn't notice, this function will also convert \n to<br />
-
I'm a big fan of PHP. I've been using it a lot the last several months and it's been able to do just about everything I've needed.
-
Name: Chris JamesLocation: Bay AreaAge: 21How I roll: I wanna be the best at everything I doI know: XHTML, CSS, PHP, XML, SQLI know a bit: Javascript, XSL, FlashHobbies:Drums, Guitar, Football, web design, wasting time on the internet
-
Depends on what you want it to do with the webpage. You can have it read the page and do something with what it read. What is the purpose of reading it in your case?
-
Regex is the answer my children
function bb($str){ $str = htmlentities($str); $search = array( '/\[b\](.*?)\[\/b\]/is', '/\[center\](.*?)\[\/center\]/is', '/\[i\](.*?)\[\/i\]/is', '/\[u\](.*?)\[\/u\]/is','/\[video\](.*?)\[\/video\]/is', '/\[move\](.*?)\[\/move\]/is', '/\[img\=(.*?)\]/is', '/\[hr\]/i', '/\[s\](.*?)\[\/s\]/is', '/\[o\](.*?)\[\/o\]/is', '/\[font\=(.*?)\](.*?)\[\/font\]/is', '/\[url\=(.*?)\](.*?)\[\/url\]/is', '/\[url\](.*?)\[\/url\]/is', '/\[img\](.*?)\[\/img\]/is', '/\[img w\=(.*?)\](.*?)\[\/img\]/is', '/\[sup\](.*?)\[\/sup\]/is', '/\[sub\](.*?)\[\/sub\]/is', '/\[tr\](.*?)\[\/tr\]/is', '/\[td\](.*?)\[\/td\]/is', '/\[table\](.*?)\[\/table\]/is', '/\[tr (.*?)\](.*?)\[\/tr\]/is', '/\[td (.*?)\](.*?)\[\/td\]/is', '/\[table (.*?)\](.*?)\[\/table\]/is', '/\[code\](.*?)\[\/code\]/is', '/\[email\](.*?)\[\/email\]/is', '/\[email\=(.*?)\](.*?)\[\/email\]/is', '/\[quote\](.*?)\[\/quote\]/is', '/\[quote\=(.*?)\](.*?)\[\/quote\]/is', '/\n/i' ); $replace = array( '<strong>$1</strong>', '<center>$1</center>', '<em>$1</em>', '<u>$1</u>','<object width="425" height="350"><param name="movie" value="$1"></param><embed src="$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>', '<marquee>$1</marquee>', '<img src="$1" />', '<hr />', '<span style="text-decoration:line-through;">$1</span>', '<span style="text-decoration:overline;">$1</span>', '<span style="font-family:$1">$2</span>', '<a href="$1" target="_blank">$2</a>', '<a href="$1" target="_blank">$1</a>', '<img src="$1" />', '<img src="$2" width="$1"/>', '<sup>$1</sup>', '<sub>$1</sub>', '<tr>$1</tr>', '<td>$1</td>', '<table>$1</table>', '<tr $1>$2</tr>', '<td $1>$2</td>', '<table $1>$2</table>', '<b>Code:</b><br /><table class="code"><tr><td class="code">$1</td></tr></table>', '<a href="mailto:$1">$1</a>', '<a href="mailto:$1">$2</a>', '<table width=\'60%\' align=\'center\' border=\'1\' bgcolor="#999999"><tr><td><b>Quote:</b></td></tr><tr><td width=\'100%\'><i>$1</i></td></tr></table>', '<table width=\'60%\' align=\'center\' border=\'1\' bgcolor="#999999"><tr><td><b>Source: $1</b></td></tr><tr><td width=\'100%\'><i>$2</i></td></tr></table>', '<br />' ); $str = preg_replace ($search, $replace, $str); return $str; };
thumbnail
in PHP
Posted
Here's some code that will help you out:It's an object oriented thumbnail class.
You create these as ThumbnailImage.php and image.php. You can resize the image simply by refering with path and size as your $_GET variables.