Jump to content

The Reverend

  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About The Reverend

  • Rank
  1. The Reverend


    Here's some code that will help you out:It's an object oriented thumbnail class. <?php//requires GD 2.0.1 or higherclass ThumbnailImage{ private $image; //not applicable to gif private $quality = 100; private $mimetype; private $imageproperties; private $initialfilesize; public function __construct($file, $thumbnailsize = 100){ //check path is_file($file) or die ("File: $file doesn't exist."); $this->initialfilesize = filesize($file); $this->imageproperties = getimagesize($file) or die ("Incorrect file type."); // new function image_type_to_mime_type $this->mimetype = image
  2. 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.
  3. 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?
  4. 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.
  5. 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')
  6. 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
  7. 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\]
  8. 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.
  9. 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
  10. 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?
  11. 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',
  • Create New...