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

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

[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. &g

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

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

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

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

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

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

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&#

[PHP] Re: AYUDA..Actualizar txt

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

[PHP] Re: upgrade issues

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

[PHP] Re: Config problems

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

Re: [PHP] Client Side PHP

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

[PHP] Re: Question on PHP

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

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

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

[PHP] Re: Help Needed

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

[PHP] Re: HTML if no PHP

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

[PHP] Re: iframes and php

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

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

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

[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.ph

Re: [PHP] Which link was selected?

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

[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/memb

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 dire

[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 acce

Re: [PHP] authentication

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

[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 >> >

[PHP] Re: include_path problem on RH 8

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

[PHP] Re: mail function

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

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

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

[PHP] Re: include_path problem on RH 8

2003-02-04 Thread 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 \/ --

[PHP] Re: Converting links in strings

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

[PHP] Re: Variable objects?

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

[PHP] Re: Problem with include PHP 4.3.0

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

[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 acce

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

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

[PHP] Re: restricting acces to files

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