Re: anything faster than include()?

From: Date: Fri, 15 Dec 2000 17:47:20 +0000
Subject: Re: anything faster than include()?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30550@lists.php.net to get a copy of this message
require() should be faster. both are basically not functions, but language constructs, and differ in one aspect: include checks whether it's in an actually executed branch of the code (inside if(), switch() branch etc.), and only if it is, it loads the file. require(), on the other hand, doesn't do any checks, and reads the file. if the contents of the file end up in a branch of the code that isn't executed, it's not executed. the above description is what I've seen on one of PHP mailing list about a year ago... At 22:53 14.12. 2000, Police Trainee wrote the following: -------------------------------------------------------------- >is there a function that is faster at reading in files >than include()? > > > >===== >***************************************************** >* WebHosting from $15/mo! (25mb) * >* CGI,PHP,SSL,MySQL,SSI,Perl,C/C++,PGP,PGP mail, * >* shopping cart,stats,counter,mailing list manager, * >* online web-based control panel,ftp,anon ftp,more! * >* NO SETUP FEES! NO TRANSFER FEES! * >* Visit www.policetrainee.com for more information! * > >__________________________________________________ >Do You Yahoo!? >Yahoo! Shopping - Thousands of Stores. Millions of Products. >http://shopping.yahoo.com/ > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz ICQ: 2808 2505

« previous php.general (#30550) next »