Jump to content

Toshiba23

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

About Toshiba23

  • Birthday 02/27/1991

Contact Methods

  • AIM
    Gsur6
  • Website URL
    http://www.thirdoctave.com

Profile Information

  • Gender
    Male
  • Location
    San Diego (The place on fire)

Toshiba23's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. you can use move_uploaded_file() or it's alias, copy()
  2. nevermind, did some php.net research: dirname($PHP_SELF) returns the directory after document root, so technically... require($_SERVER['DOCUMENT_ROOT'] . dirname($PHP_SELF) .'file.php'); would be the same thing as... require('file.php');
  3. How could I find the directory name of a folder I'm in by not including the full path? for example: dirname(__FILE__); gives full path (document root) I just want... /home/thirdoct/public_html/test/ I just want the test directory, not the whole thing...
  4. htaccess and have a .php file read it from SSI and output it (with the correct MIME-type)
  5. www.thirdoctave.com/register.php Please do whatever you like to it, just need to see if it's secure...
  6. I suggest you use only alphanumeric for logos... You need to ignore whitespace though... (unfortunately) $logo = explode(" ", $logo); for($i=0;$i<sizeof($logo);$i++){ if(!ctype_alnum($logo[$i])){ die("Only lets and numbers please!"); } } $logo = implode(" ", $logo); Something like that...
  7. well chances are, someone will have the same score as another person, therefore you can't have an honest rank 1 (sometimes), thats why a simple solution, is just use a mysql "ORDER BY" in the query...
  8. use the php substr function $news->title = substr($row['news_title'], 50, 0);
  9. well when you output the memberlist just lie to people (if someone has the same score as another, they don't need to know it) just have "ORDER BY rank DESC"
  10. There is none, javascript is a client-side language, that's why it can bring up a windows dialog box. PHP on the other hand, is a server-side scripting language, that can only do server-side functionality. (with the exception of headers) You can use PHP to output an alert() in javascript in a .php file, but other than that... PHP can't make a alert box (like javascript) come up by its self.
×
×
  • 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.