t;
...
wrong login !";
}
}
?>
note that the the /usr/home/.htpasswd file must include all usernames and
passwords as MD5. You can create a line of this file with:
maybe you also can use "mod_auth_db" ... but this is apache specific so
take a lo
it again first check if this IP viewed this news lately.
Remove all IP which been older than maybe 8 hours afterwards.
Another option is to store this info in cookies or sessions ...
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ -
Goetz Lohmann schrieb:
> Shams schrieb:
>
>>Hi,
>>
>>i've written a secure PHP login script which will allow users to login to a
>>directory such as this:
>>
>>smezone.com/members/index.php
>>
>>however, how do I restrict people from acce
ing
like
include('./inc/inc1.php');
^^
instead. The "include_path" tells PHP only where to look for the file
. = same directory
.. = parent directory
if it is a single file or relativ path, but '/inc/inc2.php' is an absolute path
from the root ...
--
@
xample of them working, the following outputs "In
> a_class.":
> class a_class{
>function a_class(){
>echo 'In a_class.';
>}
> }
> $foo = 'a_class';
> new $foo();
> ?>
>
take a look at
http://www.php
ry:
$string1";
?>
or a link in a string ?
with
$string[1]; // protocol type (http,https,ftp)
$string[2]; // hostname (domain)
$string[3]; // port if available like 80 for http
... please be more precise in your question !
--
@ Goetz Lohmann,
;t panic ... the last part "/usr/share/pear" is the path where the command
line version of PHP resists and is always there also without an include_path
entry of php.ini
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
$erg = end($foo); // get the last element of array $foo
instead of foreach you can also use array_walk($arr, 'func');
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
() He's the fellow that people
is
> prohibited
>
this is an error of sendmail not from PHP ! ... take a look at the
/etc/mail/sendmail.cf or /etc/mail/access of your box and enable
relaying for maybe localhost ...
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
ini and
take a look at that ... is there any information when apache/php is started ?
maybe did you changed "/etc/php.ini" or something else ?
are there two lines in "/etc/php.ini" with include_path ?
at command line type
$> vim /etc/php.ini
search for include_path with
:/incl
Jean-Pierre Gallou schrieb:
> Thank you for your reply. Goetz Lohmann wrote :
>
>> Failed opening '/inc/inc2.php'
>
>
> Yes, I don't understand the reason of the leading slash in the error
> message.
>
>> ... maybe try something like
>>
>
abase. Maybe you might use mod_auth_db
instead of mod_auth.
With instead of you only protect files
not the way/method how to get them. With the line above
all .html files are protected and .php files are not.
In combination with you could also make a
special definition range ...
you
Goetz Lohmann schrieb:
> Shams schrieb:
>
>>Hi,
>>
>>i've written a secure PHP login script which will allow users to login to a
>>directory such as this:
>>
>>smezone.com/members/index.php
>>
>>however, how do I restrict people from acce
Goetz Lohmann schrieb:
> [EMAIL PROTECTED] schrieb:
>
>>I don't think the process is an extra step at all. In fact, it's just a
>>trade off using one or the other. You can either login using php and a
>>database backend or just authenticate using .htaccess dire
Goetz Lohmann schrieb:
> Goetz Lohmann schrieb:
>
>>Shams schrieb:
>>
>>
>>>Hi,
>>>
>>>i've written a secure PHP login script which will allow users to login to a
>>>directory such as this:
>>>
>>>smezone.com/memb
se its easyer to change HTML code afterwards without hacking \" everywhere
and you could preview styles in browser if you looking for a file but that's
just freaky to discuss which one might be better ...
;-)
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ -
Jean-Pierre Gallou schrieb:
> Goetz Lohmann wrote :
>
>> wich means that "testinclude.php" includes "inc/inc1.php"
>> and "inc/inc1.php" includes "inc/inc2.php" ?
>
>
> Right. I'm sorry, I didn't modify testinclude.ph
nt from this file and show it on the response page.
>
> Is this possible? Can anyone show me the right direction?
>
> Rodrigo.
>
if you wish to sniff other peoples code from their web site ... no way by
default ... and thats quite good, cause sometimes there are passwords
stored in
,
> Eddie
>
this depends on your browser ... cause PHP will always do the same thing if
you call it ... maybe you got another charset, another browser version,
another character style at work ... but thats not the fault of PHP ;-)
--
@ Goetz Lohmann, Germany | W
page.
take a look at:
http://httpd.apache.org/docs/mod/core.html#errordocument
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs
nto a php script using
this mean, that this page is like being copyed in the php file
also instead of
you always can do
bla bla bla
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
() He's the fe
lines
while (!feof($fp) && $i<$numlines) {
$str[$i]=fgets($fp, $maxlength); // read line into Array
$i++; // next line
}
// now all lines from 232 till 238 are in the array $str[]
...
?>
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/
ver change a running system !"
if there are no needs (security bug) to be always near the developement
branch.
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
() He's the fellow that people wonder what he does
it will ever go so this is a dead end. And who realy needs it ?
The browsers and HTML lacks on other problems than on possibilys to manage
somethin with a good scripting tool.
;-)
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
/usr/local' '--prefix=/usr/local/www' 'i386--freebsd4.4'
>
> which is exactly what I'm trying to duplicate with the new install
> (4.3.0)
>
>
> Not sure what to do here...
Note: to compile he needs the .h (example "png.h" for PNG supppo
"pagetop.inc.php";
> ?>
> Stuff
>
>
>
look at http://www.php.net/manual/en/tutorial.oldcode.php
it is cause $id isn't set to the value of your uri anymore !
set "register_globals on" in your PHP.INI or use $_GET['id']
--
@ Goetz Lohma
?campaign=tag
please post english and please wrap your lines at 80 characters !!!
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company need
Brian V Bonini schrieb:
> On Thu, 2003-02-06 at 10:03, Goetz Lohmann wrote:
>
>>Brian V Bonini schrieb:
>>
>>>Been using PHP for some time but never have actually compiled my own,
>>>the version my provider compiled always sufficed, anyway, I
>>>I
print out a "\n" then you
have to write it like "\\n".
This is true for all special characters like:
\n - new line
\r - carriage return
\t - tab
\- escape sign for the special characters
\\ - backslash itself
--
@ Goetz Lohmann, Germany | Web-Developer &
esize image
ImageCopyResized($thumb,$img,0,0,0,0,$new_w,$new_h,$w,$h);
// new thumbnail is in $thumb
?>
--
@ Goetz Lohmann, Germany | Web-Developer & Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why t
oad and does not provide any errors. I set the
> error log to go into the /tmp directory, after trying /var/log and also
> my own home directory, it just will not be created in any of them.
change php.ini NOT php.ini-dist which not will be loaded !!!
and be sure you change the
Goetz Lohmann schrieb:
> Geckodeep schrieb:
>
>>Hi there I have this problem wondering how to define the size of my images.
>>I have this page that has 9 images coming from the database. These images
>>are uploaded into a folder and the names are referenced in the DB.
&g
ry as jpg
@imagepng ($thumb,"$folder/$tumbnail"); // hope we could write
// leave the temporary data ...
ImageDestroy($img);
ImageDestroy($thumb);
// finished work
// ---
// show image
echo "";
}
$nr++; //
33 matches
Mail list logo