Re: i think im crazy..

From: Date: Thu, 21 Dec 2000 23:25:37 +0000
Subject: Re: i think im crazy..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-31494@lists.php.net to get a copy of this message
Require doesn't return the contents of the file. In fact, it doesn't return anything. So setting a variable equal to require is going to leave the variable empty (actually, the manual says you should get a parse error... don't know why you're not, unless I'm misinterpretting). Try uncommenting the print $werd; line, it should get rid of the 0. Toby Butzon [ criticism spurs improvement ] ----- Original Message ----- From: "enthalpy" <enthalpy@core.com> To: <php-general@lists.php.net> Sent: Thursday, December 21, 2000 6:17 PM Subject: [PHP] i think im crazy.. : : ok.. i have a javascript that i wrote and because of problems ive had to : resort to doing the following : : <?php : $werd = require("javascript"); : print "$werd"; : ?> : : i go to a browser and bring this up.. and its fine except there is a : "0" at the bottom of the page.. ive gone through all my code and i cant : find what is printing this. however when i changed the require() to : include() i get a "1" at the bottom of the page. does anyone know what is : going on? : : <-----CoreComm-Internet-Services--http://core.com/-----> : (Jon Marshall CoreComm Services Chicago) : (jonathon.marshall@core.com Systems Engineer II) : (enthalpy@core.com Network Operations) : <-----Enthalpy.org------------http://enthalpy.org/-----> : (enthalpy@enthalpy.org The World of Nothing) : <------------------------------------------------------> : : : -- : 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 : :

« previous php.general (#31494) next »