Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
wwfc_barmy_army's code should work, but I would sort it ascendingly.
-
[code]<?php header("Location: http://zycoworld.com/{$_GET['user']}"); ?>[/code] is better.
-
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.
-
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)
-
What is phpfox? Is it this: http://www.phpfox.com (first result on Google)?
-
[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.
-
Check this topic out: http://www.phpfreaks.com/forums/index.php/topic,109411.0.html
-
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.
-
[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
-
[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.
-
Try this: http://www.google.com/search?q=xhtml+reference+download
-
I believe this belongs in the Apache forum.
-
[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.
-
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.
-
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
-
You can do it remotely if you can control the scanner from the command line.
-
Create the download dynamically. See this topic: http://www.phpfreaks.com/forums/index.php/topic,95433.0.html
-
Do you want to discuss wether it's good or bad to use OOP?
-
It is simply just a forum system.
-
Yeah... I think so. Thanks.
-
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 >_>
-
Cookies and Serialize()... not good in the morning.
Daniel0 replied to mewhocorrupts's topic in PHP Coding Help
Which results do you get? -
You could run system commands.
-
You could make a security options that says that users are allowed to send x mails within x hours.