Jump to content

borfast

Members
  • Posts

    3,271
  • Joined

  • Last visited

Everything posted by borfast

  1. You may want to take a look at this thread and maybe keep the discussion there, to keep it together and organized.
  2. I usually use my Nokia 8210 to make notes with alarms. That way I'm not dependant on my computer to know what I have to do. If you want something for windows, these links I found on a quick google search might interest you: http://www.personal--organizers.com/index.htm http://www.lencom.com/desc/indexN9269.html http://www.loginor.qc.ca/enre_e.html
  3. borfast

    Mysql

    Yeah, I forgot about that. Sorry about the stupid question...
  4. borfast

    Mysql

    Server 15 is semi dedicated? But that's where my reseller account is too, and I don't have a semi-dedicated account, I have a standard reseller account... are you sure about the server number?
  5. Export your database as "Comma Separated Values" and then, using phpMyAdmin, import it into MySQL.
  6. Thanks for the tip, I am planning on installing that script on a friend's website, so it will save me some time But why the $x? Why don't you just do $page = $_GET['page']; ? Am I missing something? By the way, have you mentioned this to the script authors?
  7. I don't know which PEAR modules are installed but I'd like to be able to access them as well. If I just include("DB.php"), it won't work. I don't know if it's my mistake but I think PEAR, when installed, should be accessible globaly, right? At least that's how it works on my desktop computer... But don't take my word for it, I'm just starting to use PEAR now, so I could be wrong. Anyway, I still didn't investigate this due to lack of time so I came up with a temporary workaround. You can do what I did: upload all the PEAR files into a directory in your account and then, in each page that uses PEAR stuff, you just have to add the following: ><?php $my_pear = "/path/to/where/you/have/pear/"; ini_set("include_path", ini_get("include_path").":$my_pear"); // Rest of your script.... ?> That will allow you to include the PEAR files from anywhere.
  8. You can just delete the ipchat.php file. That's what I did on my instalations of IPB and it was fine. EDIT: I just tried replacing the ipchat.php file on another IPB instalation and didn't have any problem either.
  9. Oh crap... when will I start looking at the posts' dates before replying to them?... Head Bash
  10. cmuskett, wait, don't send it back yet! I can teach you to make this neat gray goo that goes "BOOM" when stimulated with a small electrostatic current - like the one resulting from tearing open a mail envelope...... Naughty You could put some of it into the envelope and send it all back! :D I really hate scammers... Whip
  11. I learned about that site in a funnier way than just going to the page: Go to http://google.com and type "Weapons Of Mass Destruction" (without the "") in the search box. Don't press the "Google Search" button. Instead, press the "I'm Feeling Lucky" button...
  12. Glad I could help About the PHP book, I'm really not the person to give you advice on that matter since I only bought one PHP book and I never finished reading it (I don't think I even got to the half of it). At the time, it seemed like a good buy - the publisher was on my college campus, offering 40% discount to all students, so I bought their book about PHP. It turned out to be the worst piece of... well, you get the idea Actually, all their books are bad. For all of you Portuguese guys out there, don't buy FCA books. They're full of spelling, grammatical and syntatical errors. I'm not Shakespear but I think I write better in English than their authors write in their mother tongue, Portuguese... On top of that, many (most?) of their authors aren't even good on the subject they write about! Anyway, enough ranting. After that stupid buy, I learned how to search for books on Amazon. For example, if I'm looking for books about PHP, I go to http://amazon.com(uk, whatever) and search for PHP in the books section. I order them by "Average customer rating" and then I read some of the reviews from each book, starting with the one with greatest rating. Based on both of those parameters (customer rating and reviews) I choose the one that seems to fit my needs.
  13. echo prints out immediately what you pass to it. It doesn't wait. That was just an example, it wasn't supposed to fit into your code. You should use the $quotes[$i] variable (which contains the randomly selected quote) just like you're using $http_user_agent. If you want, you can make it like this: $quote = $quotes[$i]; and then use the variable $quote just like you use the variable $http_user_agent to print it into the image. As for the database, yes, you'd probably want to use it only if you had a lot of quotes or wanted to do some other stuff with them. If you just want to print a random quote into the image, forget about that
  14. Mav, the random part is quite simple too. A lot simpler than what you have already done If you want to have all your quotes in a text file and then display one of them, do something like this: ><?php $quotes = file("quotes.txt"); // $quotes becomes an array in which each element // is a line of quotes.txt. $max = count($quotes) - 1; $i = mt_rand(0, $max); // Generate a random number between 0 and the last quote index echo $quotes[$i]; ?> That's it If you plan on getting your quotes from a database, it's quite easy too: ><?php $db = mysql_connect("localhost", "yourusername", "yourpassword") or die("Unable to connect to database:".mysql_error()); mysql_select_db("quotesdatabase", $db) or die ("Unable to select database."); $query = "SELECT quote FROM quotes WHERE id='RAND()*(COUNT(*)-1)'"; $result = mysql_query($query, $db); $count = mysql_num_rows($result); for ($i = 0; $i < $count; $i++) ?> I must say that query is probably the most weird SQL query I've ever written, so I'm not quite sure ti will work... And I don't have the time to try it out now - I'm late for a math exam. Give it a try, if you have get into trouble, post here and I'll take a better look at this when I return
  15. bycicle
  16. 1 (binary... OK, shoot me.. I'm spending too much time near computers ) (besides, it would have been better if I posted it after jslagle's "true"... ok, I'm off to bed... ) (too sleepy... arrgh... why do I keep editing this to add stupid comments?... )
  17. phone bills...
  18. dsdemmin, note that the code snippet you posted is not valid HTML. Every property value should be wrapped in double quotes, like this: ><BODY BGCOLOR="#CCCCCC" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" ONLOAD="preloadImages();"> Also, I prefer to use lowercase tags. But this is just a personal preference. I think it makes things clearer.
  19. Hey, glad you made it Sorry for not answering your previous posts but I went to bed after I posted the first time As for the text stuff, you want to take a look at PHP's text functions, especially stristr. If you want to check for IE, for example, you'd put all that browser agent string into a variable and then check for an occurrence of "MSIE". Here's a simple example: >$browserinfo = $_SERVER['HTTP_USER_AGENT']; if ( !strstr($browserinfo, "MSIE") ) // The string "MSIE" was found // output your stuff for IE else if ( !strstr($browserinfo, "Opera") ) // The string "Opera" was found // output for Opera else if......... This is just a very simple example, it will not work for everything but it should get you started.
  20. Yes, GD is something like ImageMagik and yes, that's basically what the script has to do. As t what you should look for, learn the basic rule: talk to google. I mean it! Just use the most basic words you can think of. For example, in this case you could try something like "adding text to images with PHP and GD" Or replace "GD" with "ImageMagik", if you prefer
  21. The hard part on this is to work with the image. I don't know which graphics package they're using for it but I think you can do it with GD and pretty much any other graphics package for PHP/PERL/etc The idea is to make a script that gets the browser's information and then, using GD (or whatever graphics package you choose), you open the basic image file and add the client's browser data. You will want to save this script as a .jpg, .png or .gif file to add the extra l33t touch - you could leave it as a plain .php, .pl or .cgi file but it wouldn't be as funny The only thing left for you to do is add a .htaccess file to the directory where your "image" is, containing something like this: ><Files secret_info.jpg> ForceType application/x-httpd-php </Files> This will tell Apache to treat the file "secret_info.jpg" as a PHP script, meaning it will be parsed through PHP and it's output sent to the browser. The only thing I can't really tell you how to do is the image related operations, since I only worked with that kind of thing once (using PHP and GD) but I really don't know how to do it anymore. But it shouldn't be difficult for you to find some information about this on the web, using google
  22. Yes, that's a great idea indeed! Thanks for the tip, Virtual Imager!
  23. micro-machines
  24. Felipe, I can assure you that TCH's support is by far the best you can find in the whole webhosting world. I have been with several other webhosting companies and I can tell you from experience that you will have a hard time finding a company that provides such a good customer support as TCH does. I'd even say it's impossible. I'm with TCH since the beggining of this year and I don't have the slightest complaint about their support. Of course that sometimes there are problems with the servers but that can happen anywhere. The big difference here is that TCH solves the problems in a very short time, sometimes it's a matter of minutes! I have a "starter plan" account just like you and every time I had a problem- even if TCH had nothing to do with it, as seems to be your case - someone was always there to help me out and solve my problem in a matter of minutes. As far as I see it, the problem is not on TCH's end. Maybe you have a misconfigured MX record? It happened to me once. And talk to your domain registrar, maybe it's them that have it messed up. See that? Do you think many other webhosting companies would do that? I don't. And I think you need to waste some of your money on some other companies for a couple of months, so you can learn the value of TCH's service.
  25. What I meant with "backdoor" was that people usually worry too much about just one thing and completely forget about others. In this case, I was trying to tell fivetofollow that he should worry about what he has in his site, like scripts made by him and such stuff, not about TCH's security measures
×
×
  • Create New...