First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
finding the web root
Hi, i like to find the web root where the current file is. is there a better solution? it must work both on linux and windows machines... <?php $root = explode('/', $_SERVER['DOCUMENT_ROOT']); $cwd = explode(DIRECTORY_SEPARATOR, __DIR__); $web_root = '/' . implode('/', array_diff($cwd, $root)); echo $web_ro... 8 Jun 2010 18:24
Pagination?
I just spent the last 1/2 hour looking at many different solutions for this. Is there a universal favorite? Thanks. ... 9 Jun 2010 05:22
array key's: which is correct?
Hi, which one is correct or "better"? $array[3] = ''; or $array['3'] = ''; $i = 7; $array[$i] = ''; or $array["$i"] = ''; Br Tanel ... 8 Jun 2010 12:37
Blowfish Encryption
I've got a file of passwords I'd like to encrypt/decrypt using blowfish. I'd like to be able to do so with PHP and via the command line. I have a Linux utility call "bcrypt" which encrypts/decrypts files using blowfish. And I'm using the following code under PHP to do encryption/decryption: $raw_data = file('jun... 8 Jun 2010 10:20
Finding a font.
Sorry everyone, I know this isn't PHP related and I hope I'm not out of line, If I am I sincerly appologize. I don't know who else I could ask. What I want to know if anyone can reconize this font. I have searched the web high and low and can't find any matching letter "A's" in the font examples. I could have ... 9 Jun 2010 16:28
complex if statement for field validation
Hello, I've got a form with three fields that are not required for proper completion of it, ending month, day, year fields. If a user enters nothing no problem, but if those form fields are entered I need them validated. They have to be in the correct format YYYY-MM-DD date format and that value also has to be gre... 7 Jun 2010 21:06
Battle of Spam
Hey - It looks like a PHP form on my server is insecure and is being used to send spam. This is Rackspace's best guess. The problem is there are SO MANY forms on all the web sites on this server that it would be a nightmare task to try and look at them all to be sure they're properly secured. Is anyone aware of a wa... 7 Jun 2010 23:18
empty() and method return values
Hi, empty() cannot check the return value of the method or function. which would be the best workaround? empty($class->method()) // gets an error i could do $method_return_value = $class->method() and then run empty() on $method_return_value or is there an better option? i would like to do it in if ... 7 Jun 2010 16:38
Test [don't read]
-- ------- http://sperling.com http://ancientstones.com http://earthstones.com ... 7 Jun 2010 16:38
combo box validation
Hello, I've got a form with two combo boxes, one for the month one for the day. Both are required. I've got code that checks the post submission to ensure neither is empty. My problem is that if a user does not select anything in the combo boxes January first is sent, this i don't want. If they haven't selected an... 9 Jun 2010 04:17
First  |  Prev |  Next  |  Last
Pages: 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51