Search Results

Showing results 1 to 15 of 15
Search took 0.06 seconds.
Search: Posts Made By: scru ; Forum: PHP and child forums
Forum: PHP Oct 26th, 2008
Replies: 7
Views: 2,158
Posted By scru
1: Posting your phpinfo() on the web is a bad idea.

2. Does PHP give you an error or warning on move_uploaded_file()? What does it say?
Forum: PHP Oct 24th, 2008
Replies: 7
Views: 2,158
Posted By scru
What error are you receiving? Is it apache or IIS (don't know if this matters, but / works on my apache in windows).

Does the snaps directory already exist? Because you might get an error...
Forum: PHP Oct 18th, 2008
Replies: 3
Views: 1,298
Posted By scru
No. Session start must always come before headers are sent, and that means before that code there.
Forum: PHP Oct 15th, 2008
Replies: 4
Views: 722
Posted By scru
Bitwise operations are binary. I couldn't really explain how this particular one works that easily because it's a bit hard to grasp. Just know that:

$var & 1 is equivalent to $var % 2

ie, the...
Forum: PHP Oct 14th, 2008
Replies: 4
Views: 722
Posted By scru
The functions odd and even are predicates, ie, callbacks. odd returns true if the number passed in is odd, and even returns true if the number passed in is even. (Note: the & is a bitwise AND...
Forum: PHP Oct 9th, 2008
Replies: 6
Views: 615
Posted By scru
Try http://recaptcha.net for a free captcha library. Using this library aides in the digitizing of books. Also, the image generation is handled by their servers, not yours.
Forum: PHP Oct 9th, 2008
Replies: 26
Solved: php email help?
Views: 1,562
Posted By scru
Ah, sorry, didn't read the script at all, I admit. It now comes to my attention that the code I posted above is totally irrelevant.
Forum: PHP Oct 9th, 2008
Replies: 26
Solved: php email help?
Views: 1,562
Posted By scru
The variable $attn would only work if he has register_globals on, which is turned off by default in PHP => 4.3.0 since it is a security vulnerability.

krauz2, you can try something like:
...
Forum: PHP Aug 17th, 2008
Replies: 3
Views: 528
Posted By scru
php function time() returns the server time in the timestamp format you need (or at least, easiest and probably best to work with in this case)
Forum: PHP Aug 17th, 2008
Replies: 3
Views: 528
Posted By scru
No, the column is to simple. Change it to store a timestamp of the last activity on the site. Everytime the user visits a page, the time stamp gets updated to the current time. When checking for what...
Forum: PHP Apr 24th, 2008
Replies: 3
Views: 2,706
Posted By scru
Are you sure it is a system dsn and not a user dsn? You must you the system tab in ODBC in the Administrative Tools to set up a system dsn.

HTH
Forum: PHP Dec 16th, 2007
Replies: 9
Solved: math help
Views: 1,014
Posted By scru
you are doing the assignments in the reverse order.

When you are assigning a vaule to a variable, you must put the variable first, followed by an equal sign, followed by the value that you are...
Forum: PHP Dec 11th, 2007
Replies: 3
Views: 839
Posted By scru
Use php to prepare the preview text and echo some javascript that will display the teaser.

My suggestion if you are as unskilled in javascript as I am, would be to first let php echo some...
Forum: PHP Dec 10th, 2007
Replies: 12
Views: 7,063
Posted By scru
This what you mean?


$data=array();
$data["foo"]=3;
$data["bar"]=4;

$three = $data["foo"];
$four = $data["bar"];
Forum: PHP Dec 9th, 2007
Replies: 3
Views: 973
Posted By scru
Do you mean like a terms and conditions / membership agreement?

using a txt file is the easiest for this purpose. When it's time to display, you use php fgets to read it and then echo it to a...
Showing results 1 to 15 of 15

 


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

©2003 - 2009 DaniWeb® LLC