Search Results

Showing results 1 to 40 of 348
Search took 0.03 seconds.
Search: Posts Made By: paradox814
Forum: PHP Aug 12th, 2009
Replies: 7
Views: 320
Posted By paradox814
I think the safe bet is to say there's always going to be someone who figures out a way around any security setting. Then the question is how often does your hosting company update it's PHP server?...
Forum: PHP Aug 7th, 2009
Replies: 5
Views: 392
Posted By paradox814
Your absolutely right omniuni, I would use utf-8 instead. $headers.= 'Content-Type: text/html; charset=UTF-8' .' "\r\n"; Since my site is completely in English, it hasn't made a difference (to me). ...
Forum: PHP Aug 7th, 2009
Replies: 5
Views: 392
Posted By paradox814
You only need the first 2 lines of the headers below, but there's some additional headers in case you wanted to see how to add those as well. Also, make sure to "\r\n" in double quotes, not single...
Forum: PHP Aug 7th, 2009
Replies: 7
Views: 326
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: 326
Posted By paradox814
try adding readfile at the end
.....
header('Content-Disposition: attachment; filename="'.$name.'.'.$ext.'"');
readfile($file);
?>
Forum: PHP Jul 20th, 2009
Replies: 9
Views: 349
Posted By paradox814
This sounds like a homework problem to me, maybe you should to a little more studying. Why else would you include the "answer."
Forum: PHP Jul 11th, 2009
Replies: 32
Views: 1,469
Posted By paradox814
Oops, the
$grade = 5;
is supposed to
$grade = $grade + 5;
Forum: PHP Jul 11th, 2009
Replies: 32
Views: 1,469
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,469
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: PHP Jul 10th, 2009
Replies: 5
Views: 502
Posted By paradox814
You would need a SELECT statement in SQL to do this, the same way you inserted all of your friends to the database just ...SELECT id,firstName,lastName FROM Profiles WHERE isVisible='1'of course you...
Forum: Java Aug 28th, 2008
Replies: 4
Views: 1,231
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: C++ May 11th, 2008
Replies: 3
Views: 485
Posted By paradox814
I am stuck on something that I know is so simple that I can't figure it out...

I have a BST class, and a private item:
Node<K> *root; // root pointer


//and in a seperate class I have......
Forum: Windows NT / 2000 / XP May 7th, 2008
Replies: 4
Views: 925
Posted By paradox814
woohoo, thanks thunderstorm, worked like a charm!
Forum: Windows NT / 2000 / XP May 7th, 2008
Replies: 4
Views: 925
Posted By paradox814
When you press the ALT button, a letter will usually appear underlined so that you can press ALT+letter that is underlined to do a certain shortcut. My question is, I remember finding a way so that...
Forum: C++ Mar 17th, 2008
Replies: 2
Views: 1,748
Posted By paradox814
Thanks! I guess I should have been able to figure that out!
Forum: C++ Mar 17th, 2008
Replies: 2
Views: 1,748
Posted By paradox814
I am working with a function declaration of:
int func1(char *, unsigned int)

to the best of my understanding, I am not allowed to modify this. Now my question is that when I actually write this...
Forum: Java Dec 3rd, 2007
Replies: 6
Views: 748
Posted By paradox814
well then I can pass it as an Integer and a Float
Forum: Java Dec 3rd, 2007
Replies: 6
Views: 748
Posted By paradox814
well I have either an int or a float all the calculations are the same except for the constructor, where I need to call either java.util.Random nextInt or nextFloat
Forum: Java Dec 3rd, 2007
Replies: 3
Views: 10,775
Posted By paradox814
use a csv extenion on any text file
for example, a file named output.csv
with the following data:
a,b,c
1,2,3
x,y,x

would produce the following in excel,
cell a1: a
cell b1: b
Forum: Java Dec 3rd, 2007
Replies: 6
Views: 748
Posted By paradox814
I am using generics in java, and I want to know how I can test to see if I have a int or a float? Is there some sort of type-testing? I'm sure there is, I just need someone to help point me in the...
Forum: C++ Nov 7th, 2007
Replies: 4
Views: 2,692
Posted By paradox814
aah thanks, so it's kinda of like overloading without actually overloading!
Forum: C++ Nov 7th, 2007
Replies: 4
Views: 2,692
Posted By paradox814
what does it mean when you say z=1? Does it ignore what value you pass into the function? What is this called?
Forum: Java May 15th, 2007
Replies: 6
Views: 1,892
Posted By paradox814
I was talking about the other component, those two I already knew
Forum: Java May 13th, 2007
Replies: 6
Views: 1,892
Posted By paradox814
I have been searching for a long time, and I cannot remember the name of this swing component that I attached in the image.

It's the one that is captioned "Please input the...." I don't need help...
Forum: OS X Mar 8th, 2007
Replies: 7
Views: 2,992
Posted By paradox814
I agree joe, but given that there is only 1 user in this group (and assuming that's the way it stays) then i'm not too worried about this, but thanks for the info, as I'm more of a windows guy.
Forum: OS X Mar 8th, 2007
Replies: 7
Views: 2,992
Posted By paradox814
ok I think I am going to have to go to my "Plan B" route, I created a new regular user. I chmod that users documents folder (using sudo) to 770 and created a softlink to that folder in my documents...
Forum: OS X Mar 8th, 2007
Replies: 7
Views: 2,992
Posted By paradox814
again this wouldn't work because I just want to share say 2 or 3 folders on the network that you can see when you login, I do not want to see everything that I would have access to if I was in front...
Forum: OS X Mar 8th, 2007
Replies: 7
Views: 2,992
Posted By paradox814
Actually the entire hd is there. If you log in as guest, you can only see that a drop box exists (of course you can't see the contents of the drop box).

But I'm talking about when you login as a...
Forum: OS X Mar 8th, 2007
Replies: 7
Views: 2,992
Posted By paradox814
I want to share files between two mac osx computers, connected in the same network.

These computers are password protected etc...

so after I enable Personal File Sharing in the System...
Forum: PHP Mar 6th, 2007
Replies: 2
Views: 2,707
Posted By paradox814
you can use commands such as fopen to open files on the internet$handle = fopen("http://www.example.com/", "r");then if you need more data use regular expressions to parse through whatever data you...
Forum: IT Professionals' Lounge Feb 1st, 2007
Replies: 2
Views: 2,891
Posted By paradox814
macromedia flash 8
Forum: PHP Jan 13th, 2007
Replies: 5
Views: 5,004
Posted By paradox814
why not just use exec( 'php /home/username/routine_task.php > /home/username/routine_task.log &' );

using php allows you the ability to keep the code away from website so the code is not public...
Forum: PHP Jan 11th, 2007
Replies: 5
Views: 5,004
Posted By paradox814
a cron job would be the ideal case, check with your host to see if they allow them.
Forum: PHP Jan 8th, 2007
Replies: 11
Views: 3,652
Posted By paradox814
actually i believe the max execution time of a script wouldn't matter in this case, because uploading a file as far as php cares is not part of the script execution time.
Forum: IT Professionals' Lounge Jan 3rd, 2007
Replies: 2
Views: 2,891
Posted By paradox814
I have been trying to get a flash application to load with a mod_rewrite url, but it doesn't get any of the arguments passed to it.

for instance suppose this works just fine:...
Forum: Website Reviews Dec 29th, 2006
Replies: 2
Views: 1,565
Posted By paradox814
there are still a lot of links that don't work, for instance most of these images are broken:
http://www.hotcoding.com/photoshop/cm/25445.html
also every single link i clicked on in the php...
Forum: Website Reviews Dec 29th, 2006
Replies: 4
Views: 1,541
Posted By paradox814
the menu bar doesn't display correctly in firefox
Forum: PHP Dec 29th, 2006
Replies: 4
Views: 11,071
Posted By paradox814
that looks good, except that only letters, numbers, and hypens are allowed in a domain name (underscores are not allowed), and due to ICANN limitation domain names are limited to 64 characters. This...
Forum: PHP Dec 27th, 2006
Replies: 11
Views: 3,652
Posted By paradox814
to see your PHP upload size limit, make a file called phpinfo.php
and inside of it, place the following php code:

<? phpinfo() ?>then access that page from your browser and press Ctrl+F to...
Forum: Windows NT / 2000 / XP Dec 21st, 2006
Replies: 7
Views: 4,819
Posted By paradox814
if my previous post doesn't work, then I would recommend doing a system restore to a week ago, or at least 2 days before your little "house guest" ruined your computer

click...
Showing results 1 to 40 of 348

 


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

©2003 - 2009 DaniWeb® LLC