Hello Friends,
How are you ?Hope you are well I am unable to update my blog due to time constraint
Here are the links for php interveiw questions you can find
http://www.geekinterview.com/Interview-Questions/Programming/PHP
http://www.kyapoocha.com/category/php-interview-questions
http://www.allinterview.com/Interview-Questions/PHP.html
http://blog.assembleron.com/2007/05/23/php-interview-questions-from-yahoo
http://www.devbistro.com/tech-interview-questions/Web-Dev.jsp
Upload Share and Earn
Friday, February 8, 2008
PHP Interview Questions Links
Posted by admin at 10:46 PM 2 comments
Labels: mysql interview questions, php interveiw questions, php questions
Thursday, November 22, 2007
Zend certified Guide
hai friends here is the link to download zend certified guide
http://www.ziddu.com/download.php?uid=ba6flZmqabGb4palabGWlZWia6yh9&refcode=NQ
Wednesday, November 14, 2007
How to determine a Web site done in particular language
Hai friends i am little busy unable to update my blog for little while now
I have an interesting tip for you if you want recognise a website done in some technology just type this in google
filetype:php site:google.com
filetype:jsp site:google.com
http://www.google.com/search?hl=en&rls=GFRD%2CGFRD%3A2007-38%2CGFRD%3Aen&q=filetype%3Ajsp+site%3Agoogle.com+
filetype:asp site:google.com
http://www.google.com/search?hl=en&rls=GFRD%2CGFRD%3A2007-38%2CGFRD%3Aen&q=filetype%3Aasp+site%3Agoogle.com+
filetype:cfm site:google.com
http://www.google.com/search?hl=en&rls=GFRD%2CGFRD%3A2007-38%2CGFRD%3Aen&q=filetype%3Acfm+site%3Agoogle.com
filetype:py site:google.com
http://www.google.com/search?hl=en&rls=GFRD%2CGFRD%3A2007-38%2CGFRD%3Aen&q=filetype%3Apy+site%3Agoogle.com
Thank you
This may help you
Monday, October 22, 2007
PHP Code Optimization Tips
(1) If a method can be static, declare it static. Speed improvement is by a factor of 4. echo is faster than print.
(2) Use echo's multiple parameters instead of string concatenation. Set the maxvalue for your for-loops before and not in the loop.
(3)Unset your variables to free memory, especially large arrays.
(4) Avoid magic like __get, __set, __autoload
(5)require_once() is expensive
(6)Use full paths in includes and requires, less time spent on resolving the OS paths.
(7)If you need to find out the time when the script started executing, $_SERVER[’REQUEST_TIME’] is preferred to time()
(8)See if you can use strncasecmp, strpbrk and stripos instead of regex
(9)str_replace is faster than preg_replace, but strtr is faster than str_replace by a factor of 4 (10)If the function, such as string replacement function, accepts both arrays and single characters as arguments, and if your argument list is not too long, consider writing a few redundant replacement statements, passing one character at a time, instead of one line of code that accepts arrays as search and replace arguments.
(11)It's better to use select statements than multi if, else if, statements.
(12)Error suppression with @ is very slow.
(13)Turn on apache's mod_deflate
(14)Close your database connections when you're done with them
(15)$row[’id’] is 7 times faster than $row[id]
(16)Error messages are expensive
(17)Do not use functions inside of for loop, such as for ($x=0; $x < count($array); $x) The count() function gets called each time.
(18)Incrementing a local variable in a method is the fastest. Nearly the same as calling a local variable in a function.
(19)Incrementing a global variable is 2 times slow than a local var.
(20)Incrementing an object property (eg. $this->prop++) is 3 times slower than a local variable.
(21)Incrementing an undefined local variable is 9-10 times slower than a pre-initialized one. (22)Just declaring a global variable without using it in a function also slows things down (by about the same amount as incrementing a local var). PHP probably does a check to see if the global exists.
(23)Method invocation appears to be independent of the number of methods defined in the class because I added 10 more methods to the test class (before and after the test method) with no change in performance.
(24)Methods in derived classes run faster than ones defined in the base class.
(25)A function call with one parameter and an empty function body takes about the same time as doing 7-8 $localvar++ operations. A similar method call is of course about 15 $localvar++ operations.
(26)Surrounding your string by ' instead of " will make things interpret a little faster since php looks for variables inside "..." but not inside '...'. Of course you can only do this when you don't need to have variables in the string.
(27)When echoing strings it's faster to separate them by comma instead of dot. Note: This only works with echo, which is a function that can take several strings as arguments.
(28)A PHP script will be served at least 2-10 times slower than a static HTML page by Apache. Try to use more static HTML pages and fewer scripts.
(29)Your PHP scripts are recompiled every time unless the scripts are cached. Install a PHP caching product to typically increase performance by 25-100% by removing compile times. Cache as much as possible. Use memcached - memcached is a high-performance memory object caching system intended to speed up dynamic web applications by alleviating database load. OP code caches are useful so that your script does not have to be compiled on every request
(30)When working with strings and you need to check that the string is either of a certain length you'd understandably would want to use the strlen() function. This function is pretty quick since it's operation does not perform any calculation but merely return the already known length of a string available in the zval structure (internal C struct used to store variables in PHP). However because strlen() is a function it is still somewhat slow because the function call requires several operations such as lowercase & hashtable lookup followed by the execution of said function. In some instance you can improve the speed of your code by using an isset() trick.
Ex. if (strlen($foo) < 5) { echo "Foo is too short"; }vs.if (!isset($foo{5})) { echo "Foo is too short"; }
(31)Calling isset() happens to be faster then strlen() because unlike strlen(), isset() is a language construct and not a function meaning that it's execution does not require function lookups and lowercase. This means you have virtually no overhead on top of the actual code that determines the string's length.
(32)When incrementing or decrementing the value of the variable $i++ happens to be a tad slower then ++$i. This is something PHP specific and does not apply to other languages, so don't go modifying your C or Java code thinking it'll suddenly become faster, it won't. ++$i happens to be faster in PHP because instead of 4 opcodes used for $i++ you only need 3. Post incrementation actually causes in the creation of a temporary var that is then incremented. While pre-incrementation increases the original value directly. This is one of the optimization that opcode optimized like Zend's PHP optimizer. It is a still a good idea to keep in mind since not all opcode optimizers perform this optimization and there are plenty of ISPs and servers running without an opcode optimizer.
(33)Not everything has to be OOP, often it is too much overhead, each method and object call consumes a lot of memory.
(34)Do not implement every data structure as a class, arrays are useful, too
(35)Don't split methods too much, think, which code you will really re-use
(36)You can always split the code of a method later, when needed (37)Make use of the countless predefined functions
(38)If you have very time consuming functions in your code, consider writing them as C extensions
(39)Profile your code. A profiler shows you, which parts of your code consumes how many time. The Xdebug debugger already contains a profiler. Profiling shows you the bottlenecks in overview
(40)mod_gzip which is available as an Apache module compresses your data on the fly and can reduce the data to transfer up to 80% Excellent Article about optimizing php by John Lim
SRC:http://reinholdweber.com/?p=3
Posted by admin at 6:05 AM 1 comments
Labels: PHP Code Optimization Tips, php tips php advantages and disadvantages
Wednesday, October 17, 2007
List Of PHP frame works
'Cake PHPhttp://cakephp.org/
Achievo Toolkithttp://www.achievo.org/atk
AjaxAChttp://ajax.zervaas.com.au/
Ambivalencehttp://amb.sourceforge.net/
binarycloudhttp://www.binarycloud.com/index.php/Links/HomePage
Biscuithttp://bennolan.com/biscuit/
Blue Shoes PHP Frameworkhttp://www.blueshoes.org/en/framework/
Core Enterprise for PHPhttp://jaxn.org/blog/categories/6-cep
Easy PHP Frameworkhttp://epf.molhanec.net/
eZ Componentshttp://ez.no/products/ez_components
FastFramehttp://codejanitor.com/wp/apps/fastframe/
Green Orange PHP Frameworkhttp://www.apple.com/downloads/macosx/unix_open_source/green orangephpframework.html
Interjinnhttp://www.interjinn.com/
ISMOhttp://ismo.sourceforge.net/
Ksysalishttp://www.interakt.ro/products/Krysalis/index.php
Logicreatehttp://www.logicreate.com/
Medusahttp://medusa.tigris.org/
Mojavihttp://www.mojavi.org/
PEARhttp://pear.php.net
Phramehttps://www.phrame.org/
php.MVChttp://www.phpmvc.net/
PHP On Traxhttp://phpontrax.com/
Popoonhttp://www.popoon.org/
Prado PHP Frameworkhttp://www.xisc.com/
Seagull Frameworkhttp://seagull.phpkitchen.com/
Sitellitehttp://www.sitellite.org/
SMART3 PHP Frameworkhttp://smart.open-publisher.net/
Sourdoughhttp://sourdough.phpee.com/
Studshttp://www.mojavelinux.com/projects/studs/
Web Application Component Toolkit (WACT)http://www.wact.org
Zend Frameworkhttp://www.zend.com/collaboration
ZNFhttp://znf.zeronotice.com/
Zoophttp://www.zoopframework.com/
Wednesday, October 3, 2007
Tab Based Browsing Navigation in Web Application
Tab Bassed Browse Navigation
If you want tab based Browse Navigation In a web application
you need to use a Ajax based javascript code to implement that
For more info Click Here http://www.activewidgets.com/
Posted by admin at 6:27 AM 0 comments
Labels: Javascript tab Based Browsing Navigation in Web Application
Wednesday, September 26, 2007
Ajax Tutorial
Ajax Tutorial
Ajax is simple known asynchronous javascript and xml which is new technique of writing web applications more user friendly.This is first started using by
big companies like google,yahoo etc