Re: [PHP-WIN] Transfering database

2004-05-26 Thread Jeroen Serpieters
On Wed, 26 May 2004, Sudeep Zamudra wrote: > > I have dumped my entire database into files with extension '.sql' (separate file for > each table). Now please tell me any function or statements if any to tranfer the > contents of the file(i.e table structure and table contents) into a new databas

Re: [PHP-WIN] Ampersand before function name

2004-05-25 Thread Jeroen Serpieters
On Tue, 25 May 2004, Ross Honniball wrote: > > function & funcname ($parm) {} > With the ampersand you return a reference to a variable instead of the value. -- Jeroen Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. --

Re: [PHP-WIN] Can someone tell me how to set an image transparent?

2004-05-23 Thread Jeroen Serpieters
On Sun, 23 May 2004, Daniel Anderson wrote: > > The PHP Documentation is all well and good, but not one person on it is talking > sense. > $color = imagecolorallocate( $img_resource, 255, 255, 255 ); // white imagecolortransparent( $img_resource, $color ); Al you have to do is say which color y

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Jeroen Serpieters wrote: > > e.g.: > > ob_start(); // start buffering > > system(); // execute your stuff > > ob_end_clean(); // silently discard the output > If you want to log the output you could grab the buffered output with ob_get_conten

RE: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Paul J. Smith wrote: > > Any other ideas? > If you just want to prevent the error showing up in the output of yout php script you could use output buffering. e.g.: ob_start(); // start buffering system(); // execute your stuff ob_end_clean(); // silently discard the o

Re: [PHP-WIN] Prevent error output from shell_exec

2004-05-22 Thread Jeroen Serpieters
On Sat, 22 May 2004, Paul J. Smith wrote: > I've tried >null and various other things to no > effect. Anyone know how to do this on a windows platform? > Redirecting to NUL (not null) should do the trick. -- Jeroen Like the creators of sitcoms or junk food or package tours, Java's designers w