Skip to content

Tag: php

Handling a SAML response

I’m new to SAML 2 and I’m working on a tool that requires SSO, but I’m clueless on how to go about it. Here’s the flow: 1) User accesses main website and chooses to log in. 2) User enters login information and submits 3) System validates credentials, generates a SAML response and redir…

codeigniter, result() vs. result_array()

I use both result() and result_array(). Usually i like to get my result as array thats why i use result_array() mostly.. But i want to know which is the better approach that i should follow, Which one of them is more efficient to use in regards to performance? Here is the Example i am talking about in codeign…

PHP Regular Expression for Bengali Word/Sentence

I am developing a web application using PHP 5.3.x. Everything is working fine, but unable to solve an issue due to regular expression problem with Bengali Punctuation. Following is my code: Whether I pass Bengali word or not, it always returns false. In JavaEE application I used this Regular Expression But in…

Undefined variable argc PHP

I’m trying to execute this code: But I’m getting the following error: PHP Notice: Undefined variable: argc in /home/me/test.php on line 15 I thought that $argv and $argc were global variables. How can I get rid of this error? I’m running this from command line. Answer Add a after Those varia…