Skip to content

CodeIgniter without a Database?

Sorry if this is a simple question, is it possible to load codeigniter without a db setup? I have sess_use_db set to false in the config, I tried renaming database.php to something else but it still wants to load it, I turned active records off also. I tried commenting everything out in the database.php and i…

shell_exec() timeout management & exec()

I’m running a third party script by using a wrapper class I’ve written which calls shell_exec() and pipes into a file I parse later using php code. I should mention that this is working, but I am …

Match a PHP class with a Regular Expression

I wanna catch Php classes from a file: and the result matches must be and Answer regexps are poor at parsing programming languages’ grammars. Consider tokenizer functions instead. e.g. http://php.net/manual/en/function.token-get-all.php see also this http://framework.zend.com/apidoc/core/Zend_Reflection…

array replace function not working for me

is there any array replace function in php .. in php manual there is a function called array_replace but its not working… Tell me some example… for array replace.. Answer output the question is: what exactly isnt working for you?

What are namespaces?

What are PHP Namespaces? What are Namespaces in general? A Layman answer with an example would be great.

preg_match() and username

Easy one.., i have this, can you explain what it checks for? I know it checks if the username have length between 2-20, what more? Thanks Answer It searches for text containing only alphanumeric and underscore characters, from 2 to 20 characters long. /^[a-zd_]{2,20}$/i |||| | ||| ||| |||| | ||| ||i : case in…