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 it said no database settings
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 …
two values for one name in input
I have one input (type radio) that I want to insert it 2 values, something like that: And after draw each value seperated …
echo key and value of an array without and with loop
This is an array i have How do i get to echo something like this for individual one like and again how can i do this through a loop and echo all? Answer For ‘without loop’ version I’ll just ask “why?”
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/Zend_Reflection_File.html
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?
The image cannot be displayed because it contains errors
Why is this code not working ?
PHP unexpected result of float to int type cast
I’trying to convert a float to an int value in php: I can use ceil to make it work but can somebody explain this to me? Answer This is because numbers that have a finite representation in base 10 may or may not have an exact representation in the floating point representation PHP uses. See >php -r “echo var_dump(sprintf(‘%.40F’, 39.3
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 insensitive |||| | ||| |/ :