[PHP] Re: restricting acces to files

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: How to check for refresh in PHP

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: restricting acces to files

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Goetz Lohmann
'); ^^ 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

[PHP] Re: Variable objects?

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: Converting links in strings

2003-02-04 Thread Goetz Lohmann
... 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

[PHP] Re: include_path problem on RH 8

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: Getting key of value added to array with []?

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: mail function

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: include_path problem on RH 8

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Goetz Lohmann
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

Re: [PHP] authentication

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: restricting acces to files

2003-02-04 Thread Goetz Lohmann
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

Re: [PHP] authentication

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: restricting acces to files

2003-02-04 Thread Goetz Lohmann
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

Re: [PHP] Which link was selected?

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: Problem with include PHP 4.3.0

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: Is there a way to retrieve an entire source code from a php file?

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: iframes and php

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: HTML if no PHP

2003-02-04 Thread Goetz Lohmann
://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

[PHP] Re: Help Needed

2003-02-04 Thread Goetz Lohmann
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

[PHP] Re: How to get a certain line from a file

2003-02-04 Thread Goetz Lohmann
[$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

[PHP] Re: Question on PHP

2003-02-06 Thread Goetz Lohmann
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

Re: [PHP] Client Side PHP

2003-02-06 Thread Goetz Lohmann
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

[PHP] Re: Config problems

2003-02-06 Thread Goetz Lohmann
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

[PHP] Re: upgrade issues

2003-02-06 Thread Goetz Lohmann
://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

[PHP] Re: AYUDA..Actualizar txt

2003-02-06 Thread Goetz Lohmann
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

Re: [PHP] Re: Config problems

2003-02-06 Thread Goetz Lohmann
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

[PHP] Re: Stupid question, sorry...

2003-02-06 Thread Goetz Lohmann
- 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

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Goetz Lohmann
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

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread Goetz Lohmann
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

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Goetz Lohmann
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

[PHP] Re: Solutions need for resizing images (Thumbnail) on the fly..

2003-02-06 Thread Goetz Lohmann
++; // 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