Hi,
I try to get the Live Delegated Authentication to work for the purpose of reading the email addresses.
Iam doing this in PHP with the help of the windowslivelogin library. The problem is that i get an error.
I'm not sure what i'm doing wrong, i registered my application on the Azure webpage and got the appid and the secret into t...
I am trying to display a time I have in my database. I managed to have it display a time in the correct format for what I need, but for some reason, it is only displaying '4:00' every time.
Here is my code:
date('g:i', strtotime($row['startTime']))
An example of I have the time displayed in my database is like this: 00:12:30
Why i...
I want to change the text of a label after an event.
e.g.:
<td><label id="labelId" for="error"></label></td>
if(isset($_POST['submit'])) {
// here i wanna to make label text = "something";
}
How can I do this?
Thanks in advance
...
Hello,
I have well-formed xml documents into string variables. I want to use preg_replace to add a defined attribute to every xml tags.
For example replace:
<tag1>
<tag2> some text </tag2>
</tag1>
by:
<tag1 attr="myAttr">
<tag2 attr="myAttr"> some text </tag2>
</tag1>
So I basically need the regex expression to find any start tag...
I have a draggable div, that needs to be dropped on a droppable. If it is dropped correctly, the droppable calls an AJAX request. If the draggable does not have a valid id or the AJAX request fails, the draggable should be reverted to it's original position. Is that something that can be done with jQuery?!
Any help is greatly appreciate...
A startup client of mine is looking to launch a SaaS with multiple features/options that would increase/decrease monthly billing.
The simplest solution would be best.
...
Hi,
I have a category structure like this in WordPress (that is echoed with wp _ list _ categories):
Works
Photos
1990-2000
Photo #1
Photo #2
Photo #3
2000-2010
Photo #1
Photo #2
Photo #3
Paintings
Watercolor
Painting #1
...
I have an xml file that is being used on a third party system, and I have no control over the third party system that is using the xml file.
The third party system fails because there are ascii in the xml file.
For example, it fails when it sees
,
when it wants a single quote ’
Is there a way to throw php code around the va...
I'm trying to create a multiline textarea in a php page, and I want to validate so that if the user can't insert more than 50 characters per line, or more than 50 lines.
The idea is that the user can paste something from a spreadsheet, but if one line has more than 50 characters, the rest will be discarded, and not inserted in the next l...
Hi folks,
I read all posts on HTTP over SSL. So far, I know how to get the data securely in a Web form. But I miss the part of recover and keep the data in the same way.
I need in my Website a form to collect sensible data from customers (may be also credit cards numbers for booking, but no credit card authorization process is required...
Hi all,
I've installed mcrypt on CentOS ( via yum ), but when I try to do a dl() call in A), I get the message in B).
A) dl( mcrypt.so ) or die('The Mcrypt
module could not be loaded ['.
$prefix . 'mcrypt.' .
PHP_SHLIB_SUFFIX .']');
B) The
Mcrypt module could not be loaded [
mcrypt.so ]
Now, I know that yum has installed mcryp...
Hi.. there have a way to block some of user agent via php script? Example on mod_security
SecFilterSelective HTTP_USER_AGENT "Agent Name 1"
SecFilterSelective HTTP_USER_AGENT "Agent Name 2"
SecFilterSelective HTTP_USER_AGENT "Agent Name 3"
Also we can block them using htaccess or robots.txt by example but I want in php. Any example co...
I'm trying to convert a encrypt/decrypt function from VB to PHP, but I'm having problems with this part:
Format$(Hex$(AscSrc), ″@@″)`
Is there a way to convert that to PHP? I couldn't find how to convert the @ symbol.
...
Hi Guys, I want to know when and where we use PDO's other than simple mysql_connect methods?
Is this PDO is faster ?
what are the advantages over other methods?
...
Coming from PHP with some Java Struts 2.0 experience any tips/tricks on learning GWT? I have been looking at some tutorials but just wanted to know if anyone has some great gems to pass along?
...
I have one file with a form, that includes another to process that form. The file with the form calls a function in the included file to write data to the database, and then I return an $insert_id from that post so I can reference it in the output.
For example, when you fill out the form on the page, the data is sent to the db from a s...
Hey SO,
I'm trying to include a premade messageboard, Phorum, into one of my Zend projects. Phorum is a relatively large and intricate web of PHP includes. My website already has a signup, so I'm trying to combine the two login systems into one.
What I've done is to make a controller that includes the Phorum index.php. This will l...
I'm having a strange issue: I've used Zend Dojo and Zend Form to great effect in the past, but on my most recent project Zend_Dojo refuses to enable unless forced to in the view, and even then won't import the appropriate libraries for the dijits I'm using. Here is the applicable code:
Bootstrap.php:
protected function _initViewHelper...
Hi,
I'm working on modifying some existing code for a payment gateway and I'm not sure what this means. Is it saying something like the 4th element of the array coming back from the gateway? If someone can tell me what it means it would be a big help.
$transactionID = (isset($authNetCodes[4])) ? $authNetCodes[4] : 0;
$transactionMessag...
I have a string like this:
event name|event description|event type|event date|event time|event details,
event name|event description|event type|event date|event time|event details,
event name|event description|event type|event date|event time|event details,
event name|event description|event type|event date|event time|event details,
Th...