Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. wwfc_barmy_army's code should work, but I would sort it ascendingly.
  2. [code]<?php header("Location: http://zycoworld.com/{$_GET['user']}"); ?>[/code] is better.
  3. It would be something like this: download?id=16 then it could check it the user has permissions to download the file. I'm not really going to make a script that does this, I just wondered what would be the best option. I would actually choose option 1, but I wondered if option 2 was better since databases are designed to handle data.
  4. I would create yet another table for the options that is "attached" to the questions table. Something like this: oid tinyint(11) o_key varchar(255) o_text text o_question_id tinyint(11)
  5. What is phpfox? Is it this: http://www.phpfox.com (first result on Google)?
  6. [quote author=redbullmarky link=topic=109962.msg443741#msg443741 date=1159542921] it also makes it easier to access your files directly should you need to, without extracting them from your database with a script first. [/quote] The point is that they would [i]not[/i] be accessed directly.
  7. Check this topic out: http://www.phpfreaks.com/forums/index.php/topic,109411.0.html
  8. This is something I have been thinking about. Which would be the best option to store files (such as attachments)? [b]Option 1:[/b] Have a database table called something like attachments where you store the mime-type, path of the file on the disk and other things about the file. The file is stored in a folder specified by a configuration file with a random filename generated like: [code]uniqid(md5(microtime()));[/code] [b]Option 2:[/b] Same as for the database option 1, except that there will be one more field called data, which is where the contents of the file is stored in.
  9. [quote author=businessman332211 link=topic=109816.msg443628#msg443628 date=1159531597] I don't however know what ssh stands for [/quote] SSH = [b]S[/b]ecure [b]SH[/b]ell
  10. [quote author=businessman332211 link=topic=109816.msg443325#msg443325 date=1159480877] ssl means https [/quote] SSL do not mean HTTPS... it means Secure Sockets Layer. SSL is used in other places than HTTP. It is used for eg POP3 and SMTP as well.
  11. Try this: http://www.google.com/search?q=xhtml+reference+download
  12. As you need help with third party software you would have to post this post in the forum for third party software help.
  13. I believe this belongs in the Apache forum.
  14. [quote author=Flukey link=topic=109789.msg442932#msg442932 date=1159435482] You're forgetting about checking the input for SQL injection. [/quote] No I didn't... you cant check for SQL injection as there is no variables in the query.
  15. Nothing... what is difference between 1+2=3 and 3=1+2? (nothing) Here is it rewritten: [code]<?php if(empty($_GET['act'])) { $result = $db->query("GET title FROM table1"); while($row = mysqli_fetch_array($result, MYSQL_ASSOC)) { echo <<<EOF <html> <head>....Update Data <input type="text" value="{$row['title']}" /> <input type="submit" value=""> EOF; } } else if($_GET['act'] == "update") { $msg = $db->query(".....") ? "Sucessful" : "Unsucessful"; echo <<<EOF <html> <head>....Data Results {$msg} </body> </html> EOF; } ?>[/code] You might want to consider using a switch instead. And you need to work on your HTML.
  16. Yeah, and perhaps three: [u]article[/u] article_id int4 not null article_title varchar(255) article_author varchar(255 (may not be needed depending on what you mean with article) article_body text [u]question[/u] question_id int4 not null question_wording text question_article_id int4 [u]answer[/u] answer_id int4 answer_question_id int4 answer_value varchar(255) answer_is_correct boolean
  17. You can do it remotely if you can control the scanner from the command line.
  18. Create the download dynamically. See this topic: http://www.phpfreaks.com/forums/index.php/topic,95433.0.html
  19. Do you want to discuss wether it's good or bad to use OOP?
  20. It is simply just a forum system.
  21. Yeah... I think so. Thanks.
  22. Do anyone know where the boot file (I think it's called boot.ini on Windows XP) is on Windows Vista? It locked me out of my Linux installation >_>
  23. Which results do you get?
  24. You could run system commands.
  25. You could make a security options that says that users are allowed to send x mails within x hours.
×
×
  • 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.