Forum: PHP Oct 26th, 2008 |
| Replies: 7 Views: 2,158 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 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 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 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 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 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 Views: 1,562 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 Views: 1,562 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 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 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 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 Views: 1,014 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 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 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 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... |