Hello all,
Here is a tutorial that indicates how to combine jQuery Form Validation with reCAPTCHA.
http://snipplr.com/view/15563/jquery-validating-recaptcha-with-ajax/
Based on my understanding, the above tutorial in fact does a client side validation through aJax that communicates with the server reCAPTCHA script.
After the validatio...
Hi, i am trying to return a list of users whose accounts have expired from my server to my iphone objective c app using CFPropertyLIst but the data returned in the NSURLConnection callback is always null. I think my use of CFPropertyList may not be correct but can't work out why not
$query="SELECT user, UNIX_TIMESTAMP(created) AS create...
Why does THIS not work when called via e.g. wd(1) (it always returns '-2')?
$zoom=$user['zoom'];
function wd($hrs){
return $hrs*$zoom-2;
}
But THIS works fine:
function wd($hrs){
return $hrs*30-2;
}
Assuming this was a casting problem, I tried all sorts of variations like
(int)$hrs * ((int)$zoom)
or
(int)$hrs * (float)$zoom...
Hi
How do i retrieve the email address from an email with imap_open?
If the sender name is known i get the sender name instead of the email address if i use the 'from' parameter.
Code: http://gist.github.com/514207
...
I am searching for the IMAP IDLE function in the Zend Framework. I would either like to know whether it is integrated or if it could be done. I have read that the IlohaMail library seems to have implemented the function - at least in a modified version used in roundcube.
...
Hi,
I'd like to filter phone numbers out of the users message. The problem is ofcourse that a phone number can be written in different ways. Like:
0612345678
06 123 45 678
+31 (0)612345678
+31 (0)6 12 34 56 78
But I've got absolutely no clue how to do this and I'm pritty stuck. Can anyone help me a bit?
Thanks!
Edit:
In the meanwhil...
I followed this tutorial (official documentation for symfony 1.4).
The project is created but the /web/main.css is empty. Is this normal?
I'm using Ubuntu 10.04
...
Hi how can i add one more class name to wordpress editor insert link style. Any wordpress plugin available for that?
...
The question sort of says it all - is there a function which does the same as the JavaScript function setTimeout() for PHP? I've searched php.net, and I can't seem to find any...
...
Following my last question again; This small script is supposed to grab my twitter friends feed and store the xml as a string. However, it keeps outputting all of the data (minus the xml, actually) to the browser. What am I doing wrong?
<html>
<head>
<title>Twitcap</title>
</head>
<body>
<?php
function twitcap()
{
// Set your us...
Hi,
I am new to php and currently I am reading Wrox Professional PHP 5.
Can anyone explain me the following code ?
<? php
abstract class PropertyObject
{
//Stores name/value pairs that hook properties to database field names
protected $propertyTable=array();
//List of properties that have been modified.
protected $changedProperties=...
I'm looking for some thin layer on top of handling HTTP requests that can easily do routing to different backends, based on the uri / rest verb / actual service location / .... This layer should also handle encoding into whatever the requested format is (xml / json / returning binary data / etc.).
The most important point though is to m...
Which are the basic plugins required to manage a website developed WordPress?
...
I have several files in a directory that require different types of authentication. For authentication we use cosign which means we have to define the user groups or users that have access to a directory in an .htaccess file. Is there a way that in my PHP code I can define different rules? I need to set a rule like Require user bjensen. ...
It may help if you are on a Mac and use TextMate, though not entirely necessary.
My php location:
$which php
/opt/local/bin/php
The script:
#!/opt/local/bin/php
<?php
shell_exec("echo -n 'my-string' > out.txt");
?>
The -n to echo suppress the newline that is automatically added to all shell echo commands.
If I run the ab...
Hello.
I have a login system.
With my login session stores and cookies (if you "remember me") and then you login. When you're inside the login system at home.php (you can only enter if session/cookie is registered), i want the status field in "user" table, to update to online and offline when you sign out.
I know how to do this, to upd...
I am currently using php and getting complete user details and displays it into a html table. The problem that I have is when I print 3 tables each of them are printed on each page perfectly. But when I try to print over 3 tables, each table moves upwards and the tables are printed partially on each page (1 ½ user details in each page). ...
Possible Duplicate:
How do you implement a good profanity filter?
I have a classifieds website, and when displaying a classified, users have the option of mailing a message to the poster of the classified.
I need to check this message against bad words and unseirousness before sending it.
Firstly, how can I check some text a...
I am learning PHP and I am at this point learning how to validate forms and client inputs.
Clearly I have misspelled, written something not related to PHP or anything like that, because I get nothing but a white screen, but I just can't find out where the error is generated.
A weird thing is, that even though I have turned on error rep...
I want to get value from php variable to review it in textbox
what I have to write in "value":
<input type="text" name="name3" size="25" maxlength="50" value=""> name:
...