Jump to content

DJTim666

Members
  • Posts

    212
  • Joined

  • Last visited

    Never

Everything posted by DJTim666

  1. I don't think you can. They're encrypted for a reason. -- DJ
  2. Anyone?
  3. Hello. I am starting up my own file hosting website and I need to know how to make files download instead of running. Like a PHP file will run once it is uploaded instead of downloading when viewed. Any suggestions? -- DJ
  4. I clicked logout in IE and it worked. But it won't work in my other browsers...
  5. Yes, it's correct . It just doesn't want to unset itself o_O
  6. Still not working
  7. I have tried to use; setcookie("lala", "lalala", time() - 1); and it doesn't work...
  8. I am building a control panel for a hosting website, and I was wondering if there is a way to display all the files in a directory . -- DJ
  9. Is it possible to get the contents of a file; display the contents in a textbox; and edit the contents of that file. Then click a button and change the contents to the new updated file. The reason I want to know this is because I have programmers on my site and I don't want them to have access to the FTP or cPanel. They will jus enter the name of the file, click submit, be able to edt and replace that file. All without FTP or cPanel . I hope this is possible. -- DJ
  10. put this at the top of your file. <?php ini_set("stmp_port", "80"); ?> -- DJ
  11. I am trying to calculate 0.01%. What I have now VV <?php $num_for = number_format($userinfo['bank']); $bank_interest_action = ceil($userinfo['bank'] / 1000); $bank_interest = number_format($bank_interest_action); ?> -- DJ
  12. Ok I figured it out and now it works. Is there any way to display regular hours instead of the 24 hour clock? EDIT: FIXED. TOPIC SOLVED.
  13. I have coded a javascript servertime clock, but it doesn't seem to be working. <script type="text/javascript"> <!-- var currenttime = '<?php echo $currentime; ?>'; var montharray=new Array('Jan','Feb','March','April','May','June','July','Aug','Sept','Oct','Nov','Dec'); var serverdate=new Date(currenttime); function padlength(what){ var output=(what.toString().length==1)? '0'+what : what; return output } function displaytime(){ serverdate.setSeconds(serverdate.getSeconds()+1); var timestring=padlength(serverdate.getHours())+':'+padlength(serverdate.getMinutes())+':'+padlength(serverdate.getSeconds()); document.getElementById('servertime').innerHTML=timestring+' EDT'; } window.onload=function(){ setInterval('displaytime()', 1000); } //--> </script> -- DJ
  14. Yeah. I know you can see the password there. That's no good. I am going to have to do this server-side *sigh*. Javascript is so awesome, yet so limited.
  15. The users at my site have suggested that I allow them to add passwords to their forums topics. So if they only want to limit the topic to a few friends then they can. I want to know if the following code will work. <html> <head> <script type="javascript/text"> <!-- function checkPassword(password){ var prompt = prompt('This forum has been password secured by the creator. Please enter the password below.'); if (prompt == password){ alert('You have entered the correct password. Press OK to continue'); } else { alert('That was the wrong password. Sorry.') return false; } } //--> </script> </head> <body> <?php $getForums = mysql_query("SELECT * FROM forum_topics WHERE forum=" . $id . ""); echo "<table>"; while ($row = mysql_fetch_array($getForums)){ echo "<tr><td>"; if (empty($row['password'])){ echo "<a href='viewtopic.php?t=" . $row['id'] . "'>" . $row['topic_name'] . "</a></td>"; } else { echo "<a href='viewtopic.php?t=" . $row['id'] . "' onClick='checkPassword("" . $row['password'] . "")'>" . $row['topic_name'] . "</a></td>"; } echo "</tr>"; } echo "</table>"; ?> </body> </html> And I just thought of a problem when I was almost done coding it. If a user clicks view source they will be able to see the password... Any way around this? -- DJ
  16. That works perfect Huggie. Thank you very much for that.
  17. The tagbox here takes you to the bottom of the screen and shows the newest tag at the bottom. nvm, you cant see it unless you are logged in anyways. i'll figure it out someday =).
  18. id, message, username, ip
  19. I can't order by DESC because it will show the newest tag at the top of the page. I want the newest post to be shown at the bottom (like most tagboxes do). Can I use DESC and still be able to show the newest tag at the bottom of the screen? so an example would be; old old old old new
  20. If I order by DESC then will show the newest tag at the top... Is there any way to reverse DESC?
  21. I am having trouble ordering by ASC. I made a tagbox, and when it loads up it takes you to the bottom of the page, and it should show the newest comment first, but it doesn't. It shows the first 25 tags then stops... mysql_query("SELECT * FROM {table} ORDER BY id ASC LIMIT 25"); Any suggestions? -- DJ
  22. Wow, I never knew CSS was so powerful. I guess I can use CSS to limit these things. Thank you VERY much Evan.
  23. I have a very good knowledge of PHP which is why this 'was' posted on the PHP Help board. I wanted to know how to limit it in PHP. The CSS could be helpful for the actual post message though. Thanks for that. Could you please explain limiting with PHP =D. -- DJ
  24. How can I stop an image from stretching a table? I am allowing users to use BBCode to add images to their profiles/forum signature, and if the image is big it stretches the table and makes everything look like crap. Does anyone know of a way to stop this? Or would i just have to limit the width upon inserting it into the database? This is the preg_replace I am using for images... <?php $done = preg_replace("/\[img\](.+?)\[\/img\]/", '<img src="$1">', $done); ?> Any suggestions? -- DJ
×
×
  • 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.