take a look at http://httpd.apache.org/docs/mod/core.html
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation
hours afterwards.
Another option is to store this info in cookies or sessions ...
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him, until he
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 accessing HTML files in that
directory (which they can easily do so by typing
');
^^
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 ...
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
outputs In
a_class.:
?php
class a_class{
function a_class(){
echo 'In a_class.';
}
}
$foo = 'a_class';
new $foo();
?
take a look at
http://www.php.net/manual/en/ref.classobj.php
;-)
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
... please be more precise in your question !
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--
PHP General
version of PHP resists and is always there also without an include_path
entry of php.ini
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him
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 wonder what he does and
|| why the company needs him, until he
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
\/ --
() He's the fellow
type
$ vim /etc/php.ini
search for include_path with
:/include_path/
search twice with
://
quit with
:q
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why
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
include('./inc/inc1.php');
^^
same thing: Failed
for an .htacces file
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--
PHP General Mailing List (http
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 accessing HTML files in that
directory (which they can easily do so by typing
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 directives.
snip
On Mon, 3 Feb 2003
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/members/index.php
however, how do I restrict people from accessing HTML files in that
directory (which they can
but that's
just freaky to discuss which one might be better ...
;-)
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes
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.php as you suggested, but
inc1.php. With a modified testinclude.php:
? include ('./inc/inc1
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 plaintext.
--
@ Goetz Lohmann, Germany
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 | Web-Developer Sys-Admin
://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 him, until he goes on vacation.
--
PHP
also instead of
?php
echo bla bla bla:
?
you always can do
?php
...
?
bla bla bla
?php
...
?
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why
[$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
\/ --
() He's the fellow
different ... SUSE, Red Hat, FreeBSD ... but maybe you could use RPM
package to update your system which also tell you which modul is used
by another ... after all note
never change a running system !
if there are no needs (security bug) to be always near the developement
branch.
--
@ Goetz
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
\/ --
() He's the fellow
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 suppport)
from /usr/local/include (or whatever you told him) and the .so
modul like libpng.so out of /usr/lib (or whatever you told him) !
regards
--
@ Goetz Lohmann, Germany
://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 Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow
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 needs him, until he goes on vacation.
--
PHP General Mailing
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'm having some issues.
NOTE: once compiled, this PHP package
- new line
\r - carriage return
\t - tab
\- escape sign for the special characters
\\ - backslash itself
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does
is in $thumb
?
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs him, until he goes on vacation.
--
PHP General Mailing List (http://www.php.net
the php.ini which is used (maybe there might be
more than one php.ini in your system but only one is use ... find this
out with phpinfo !)
[phpinfo.php]
?php
phpinfo();
?
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's
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.
I pull the image through these tags
++; // next image
}
?
maybe there might better ways but thats just a fast hack to work ...
--
@ Goetz Lohmann, Germany | Web-Developer Sys-Admin
\/ --
() He's the fellow that people wonder what he does and
|| why the company needs
33 matches
Mail list logo