Jump to content

taith

Members
  • Posts

    1,514
  • Joined

  • Last visited

Everything posted by taith

  1. 4 ways of passing infromation from one page to another... post, get, session, cookie... easiest way, is get... <p><a href="main.php?variable=string">Main</a></p> then on your next page... $var=$_GET[variable];
  2. aah ;-) thanks ohya! c) it'd take longer and just for the notice... even if a programmer signs away rights to a certain program, they know it better then anyone... i'd be suprised if they wouldnt be able to replicate a similar product in a very short amount of time... needless to say, it would have some differences, the programmer may have learned a new trick, did some upgrades, forgotten something, may not work exactly the same... but in essence... its still very close to the original... not to say that an NDA wouldnt prevent them from redistributing the same program, but that programs are "easily" replicateable after its done.
  3. well... from the source spashed across your page... it seems like your webhost doesnt support php...
  4. ...? for those of us who dont know what NDA means...?
  5. a) it'd cost more b) tell them it will be copyright'ed... they make it, you buy it off them, and they destroy all copies... not to be redistributed.
  6. ahoy! while($dbField = mysql_fetch_object($result)) you need array()/assoc()
  7. a) its the $result line not $query b) try this... i've had issues with some names of columns left on their own... therefore go `! [s]$result = mysql_query("SELECT id,title FROM `news_article` WHERE authorized='1' ORDER BY `id` DESC LIMIT 1"); if (!$result) { die(); }[/s] $result = mysql_query("SELECT `id`,`title` FROM `news_article` WHERE `authorized`='1' ORDER BY `id` DESC LIMIT 1") or die();
  8. it is in kb... but it'd limit it swell :-) make sure it'd be before the file upload boxes... or it no work lol <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
  9. that would be because <tr>d<tr/> is not proper code... <tr><td>d</td><tr/>
  10. more then likely... the reason why they require logins, and cookies, and all these other security measures... is to prevent just what your trying to do... also... creating bots, which access secured information, to use on your own page, is more then likely, against their copyrights(illegal on your behalf), let alone morally dubious...
  11. and what are you getting from the $usercheck?
  12. the folder your making it in... it has read/write privilages?
  13. just on your query... put $_POST[var].'.gif';
  14. um... ??? your not stripslasses()ing in there... ???
  15. taith

    IPV6

    LOL i cant wait! ipv6 is sick! 8.4 octillion ip addresses... we can then go connect near every nut and bolt onto the internet, the world over... LOL... there'll be no need of DHCP servers then... lol
  16. call that email provider, tell them to unblock your email servers... (make sure you have your servers ip address first)
  17. <input type=hidden name="name" value="<?=serialize($array)?>">
  18. means that "sendWelcome" isnt a function in that class...
  19. this also works... <?php function file_emtpydir($dirname){ if(is_dir($dirname)){ $handle=opendir($dirname); while(($name=readdir($handle)) !== false){ if($name!="." && $name!=".."){ return false; break; } } closedir($handle); return true; }else return false; } ?>
  20. yup... what you do, is go up to microsofts HQ, slap everybody up the head, and tell em to make their software css compliant...
  21. yup! switch() is a great function! just put that tag at the very top of your page... before everything(save session_start())
  22. <?php function set_timezone($timezone="0"){ switch($timezone){ case "-12": date_default_timezone_set('Etc/GMT+12'); break; case "-11": date_default_timezone_set('Etc/GMT+11'); break; case "-10": date_default_timezone_set('Etc/GMT+10'); break; case "-9": date_default_timezone_set('Etc/GMT+9'); break; case "-8": date_default_timezone_set('Etc/GMT+8'); break; case "-7": date_default_timezone_set('Etc/GMT+7'); break; case "-6": date_default_timezone_set('Etc/GMT+6'); break; case "-6": date_default_timezone_set('Etc/GMT+5'); break; case "-4": date_default_timezone_set('Etc/GMT+4'); break; case "-3": date_default_timezone_set('Etc/GMT+3'); break; case "-2": date_default_timezone_set('Etc/GMT+2'); break; case "-1": date_default_timezone_set('Etc/GMT+1'); break; case "0": date_default_timezone_set('GMT'); break; case "1": date_default_timezone_set('Etc/GMT-1'); break; case "2": date_default_timezone_set('Etc/GMT-2'); break; case "3": date_default_timezone_set('Etc/GMT-3'); break; case "4": date_default_timezone_set('Etc/GMT-4'); break; case "5": date_default_timezone_set('Etc/GMT-5'); break; case "6": date_default_timezone_set('Etc/GMT-6'); break; case "7": date_default_timezone_set('Etc/GMT-7'); break; case "8": date_default_timezone_set('Etc/GMT-8'); break; case "9": date_default_timezone_set('Etc/GMT-9'); break; case "10": date_default_timezone_set('Etc/GMT-10'); break; case "11": date_default_timezone_set('Etc/GMT-11'); break; case "12": date_default_timezone_set('Etc/GMT-12'); break; } } set_timezone('+10'); ?> and voila! your server thinks its in sydney! lol
  23. http://www.phpfreaks.com/forums/index.php/topic,115581.0.html
  24. the first one... prolly wont work... as php is server side it would empty the contents of that file, into that string, if anything is even the teenyest bit out of place... errors... now the second one is much less complex, and prolly will work... however for both... you need onclick="javascript:document...;"
×
×
  • 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.