Search Results

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: paradox814
Forum: PHP Aug 7th, 2009
Replies: 7
Views: 342
Posted By paradox814
also just to optimize the php code you have, I would switch to a switch statement instead of going through a ton of if statements.

Also, the code you entered didn't parse correctly, did it? I...
Forum: PHP Aug 7th, 2009
Replies: 7
Views: 342
Posted By paradox814
try adding readfile at the end
.....
header('Content-Disposition: attachment; filename="'.$name.'.'.$ext.'"');
readfile($file);
?>
Forum: PHP Jul 11th, 2009
Replies: 32
Views: 1,516
Posted By paradox814
Oops, the
$grade = 5;
is supposed to
$grade = $grade + 5;
Forum: PHP Jul 11th, 2009
Replies: 32
Views: 1,516
Posted By paradox814
It looks like you're calculating them to have full credit if they haven't taken the exam, if that's the case...
if ($_POST['Quiz1'] >= 0 && $_POST['Quiz1'] <= 100)
$grade = $grade +...
Forum: PHP Jul 11th, 2009
Replies: 32
Views: 1,516
Posted By paradox814
Something simple and straightfowrd...

$grade = 0;
if ($_POST['QUIZ1'] >= 0 && $_POST['QUIZ1'] <= 100)
$grade = $grade + $_POST['QUIZ1'] * 0.05;
if ($_POST['Mid-Term'] >= 0 &&...
Forum: Java Aug 28th, 2008
Replies: 4
Views: 1,280
Posted By paradox814
Cookies should never contain passwords. You can have a cookie contain a session id. The session id can then point to a user in a database. From the database you can easily cross reference the user's...
Forum: PHP Mar 12th, 2005
Replies: 6
Views: 2,452
Posted By paradox814
yes I think that PHP does support some ftp functions (i have no idea how to use those) so that you could log into another off site server and access these files, although this would probably be too...
Forum: PHP Mar 11th, 2005
Replies: 6
Views: 2,452
Posted By paradox814
the other thing you could do with the private section is restrict downloads. Suppose you only want to let your members download certain videos from your website (or any other content) then you can...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC