Re: a little help here please... :)

From: Date: Fri, 01 Dec 2000 02:10:58 +0000
Subject: Re: a little help here please... :)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28159@lists.php.net to get a copy of this message
> Second: > I can't open files with absoulte paths right? like in C... > include("/home/whatever/www/something.htm") works but > include("/something.htm"); doesn't... altough in HTML I can link that way... > why is that? can someone exaplain it to me? In order to allow the inclusion of files outside your web-tree, PHP uses a full pathname from the root of the whole machine when an include path starts with "/" rather than just from the root of your web-tree. As a result, no, you can't use /something.htm when you want your web-rooted file to be included. However, you can alter include_path in your php.ini to have your web-tree root in it, and then something.htm would work. I also recommend having "./" as your first entry in your include_path so files "next to" the main file can be included. > Third: > Is there a minimum word-size for GET and POST vars? > cuz I tried to build a little script with the vars email and p1... p1 > didn't return anything... not even isset() returned true... > but parm1 worked fine... There is no minimum. p1 should work fine, AFAIK.

« previous php.general (#28159) next »