SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schodt
nl2br is not working in this case. It does put a with every new line, but it does not remove the new line. The string will still have the line changes and it will not work in Javascript. Jens -Oprindelig meddelelse- Fra: Artwithin [mailto:[EMAIL PROTECTED]] Sendt: 20. august 2001 20:09

SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schodt
$temp = str_replace("\n","test",$temp) is doing the same thing. It is still a string in several lines if you look in the source :-( jens -Oprindelig meddelelse- Fra: Tyler Longren [mailto:[EMAIL PROTECTED]] Sendt: 20. august 2001 20:20 Til: Jens Cc: [EMAIL PROTECTED] Emne: Re: [PHP] con

[PHP] Re: ADODB?

2001-08-21 Thread Jarosław Jankowski
Jochen Kaechelin wrote: > is there a source for further information > connecting to databases with ADODB for PHP4? > > I only know http://php.weblogs.com/ADODB > > -- I thing this is the only one, but you can try asking on php.weblog.com Jarek -- PHP General Mailing List (http://www.php.net

RE: [PHP] converting str with \n to one line str??

2001-08-21 Thread Lawrence . Sheed
just a thought - \r\n? try stripping out \r's as well. windows does \r\n (carriage return, line feed) for text, unix only \n's -Original Message- From: Jens Schodt [mailto:[EMAIL PROTECTED]] Sent: August 21, 2001 3:20 PM To: 'Tyler Longren' Cc: '[EMAIL PROTECTED]' Subject: SV: [PHP]

Re: [PHP] Importing a GIF image and making it transparent

2001-08-21 Thread David Robley
On Tue, 21 Aug 2001 16:24, Ben Quinn wrote: > Hi Chris, > > Thanks for the speedy reply. In the GD section here > http://www.bsch.au.com/admin/phpinfo.php > it says "GIF support - enabled" > > I'm starting to wonder though if PHP can do this? I looked up the > imagecolourtransparent function on t

Re: [PHP] multiple select question

2001-08-21 Thread David Robley
On Tue, 21 Aug 2001 15:38, Raphael Pirker wrote: > Hi, > > I have a dynamic multiple select where data is added to using the > JavaScript found here: > > http://javascript.internet.com/forms/menu-swapper.html > > I have a question: How do I read all the values into an array or > something else? My

Re: [PHP] converting str with \n to one line str??

2001-08-21 Thread David Robley
On Tue, 21 Aug 2001 16:49, Jens Schodt wrote: > $temp = str_replace("\n","test",$temp) is doing the same thing. It is > still a string in several lines if you look in the source :-( > > jens > > -Oprindelig meddelelse- > Fra: Tyler Longren [mailto:[EMAIL PROTECTED]] > Sendt: 20. august 200

Re: [PHP] basename()

2001-08-21 Thread Renze Munnik
On Mon, Aug 20, 2001 at 03:42:34PM -0400, Gerard Samuel wrote: > $file = basename ($path); > $file = $file.php3; > You might want to consider using, $file = basename ($path); $file = "$file.php3"; // <-- ! instead, if you don't like warnings. $file = $file.php3 isn't the way to do

[PHP] mime types

2001-08-21 Thread Evan Nemerson
Well, I hope nobody will ever have to do what I just did, so here you go. I got them from the apache/conf/mime.types Have fun! $extensions = Array("ez" => "application/andrew-inset", "hqx" => "application/mac-binhex40", "cpt" => "application

Re: [PHP] mime types

2001-08-21 Thread Brad Hubbard
On Tue, 21 Aug 2001 18:01, Evan Nemerson wrote: > Well, I hope nobody will ever have to do what I just did, so here you go. I > got them from the apache/conf/mime.types > > Have fun! > > > > $extensions = Array( "ez" => "application/andrew-inset", What are you using them for Evan? Brad -- PH

[PHP] Re:

2001-08-21 Thread PHP Accelerator
Yes, and it works fine. It basically replaces the parser/compiler with a cache lookup when it determines that it can, and so the real scope for error is if it doesn't correctly restore the original post compilation/pre execution state from when the compiler was run. But at the moment it seems

Re: [PHP] basename()

2001-08-21 Thread Gerard Samuel
Oh yes, I dont like warnings. Thanks for pointing that out Renze Munnik wrote: > On Mon, Aug 20, 2001 at 03:42:34PM -0400, Gerard Samuel wrote: > >>$file = basename ($path); >>$file = $file.php3; >> >> > > You might want to consider using, > > $file = basename ($path); > $file = "$file.php3";

[PHP] Re: flash and php

2001-08-21 Thread Tribun
I can't describe it very well in english, but I try it once again: 1. You cant combine Flash and MySQL. 2. Therefore you must add an interface. 3. You can fabricate this interface using a PHP-File, which reads out the Database and send this data to Flash. 3.1. Use a normal php-code to read out

[PHP] begginer how to make integer ?

2001-08-21 Thread Andras Kende
Hello, I have a query but it not creating integer result: $saleprice=$amyrow["saleprice"]+$saleprice; $squarefeet=$amyrow["squarefeet"]+$squarefeet; $dom=$amyrow["dom"]+$dom; result: Total listings: 18 -- Average Price: $339166.6667 Average Square Foot: 1596.61 Average DOM:

[PHP] RE: How to download an entire dynamic website?

2001-08-21 Thread Tim Ward
Do you mean make an html copy? If so this is a simplified copy of what I use as the start of building a search engine database for my web site, I think it'll only work on the local database and in this case needs to be in the document root directory to work... Tim function GetPage($file, $root,

Re: [PHP] begginer how to make integer ?

2001-08-21 Thread
On Tue, Aug 21, 2001 at 02:08:06AM -0700, Andras Kende wrote: > Hello, > > I have a query but it not creating integer result: > > $saleprice=$amyrow["saleprice"]+$saleprice; > $squarefeet=$amyrow["squarefeet"]+$squarefeet; > $dom=$amyrow["dom"]+$dom; > result: > Total listings: 18 -- Av

SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schødt
Yes!! This was the solution... With str_replace you can use an array as the search argument. Like this $arrReplace = array ("\n","\r"); $temp = str_replace($arrReplace,"",$temp); $temp = addcslashes($temp,"'"); // just to make sure that the string will work as my JS string thanks for the help :-

SV: [PHP] converting str with \n to one line str??

2001-08-21 Thread Jens Schødt
Allmost, but you have to look for the \r ass well! With str_replace you can use an array as the search argument. Like this $arrReplace = array ("\n","\r"); $temp = str_replace($arrReplace,"",$temp); $temp = addcslashes($temp,"'"); // just to make sure that the string will work as my JS string th

[PHP] RE: Multi-dimensional array issue

2001-08-21 Thread Tim Ward
The first thing is that 2-dimensional arrays don't really exist in php. Any element of any array can be another array. The second important point is that all php arrays are associative. If you don't declare the key of an element (e.g. $out[] = "fred") when creating it you get the next integer ava

[PHP] Returning a string from a function

2001-08-21 Thread Richard Kurth
Could somebody tell me way this function will not work I know the script inside the function works because I have tested it but when I put it in a function all I get back when I call it is a 1 function &getpath($search) { Global $search,$path; $a = `/bin/ls -al /home/sites/ | awk {'print $9" "$1

Re: [PHP] RE: Multi-dimensional array issue

2001-08-21 Thread Nick Davies
> -- > From: Ken Hopkins [SMTP:[EMAIL PROTECTED]] > Sent: 20 August 2001 21:02 > To: [EMAIL PROTECTED] > Subject: Multi-dimensional array issue > > Hi from a recent PHP convert, > > Having a heck of a time declaring and accessing 2 dimensio

[PHP] Security implications - CGI vs module

2001-08-21 Thread Daniel Baldoni
G'day folks, It's been mentioned that the module approach to installing PHP4 has some security implications (as compared to the separate interpreter and using CGIs). My question is: For sites which do not have user-installed files (i.e. all web- content is provided by the site-o

[PHP] pdflib+pdi

2001-08-21 Thread Jonathan S
Hi, we recently purchased the whole PDFlib+PDI package, however I've been having trouble installing it. Many of the different installation instructions i've found have told me contradictory things. I have tried using both the binary distribution aswell as the source. After many rounds of recompili

Re: [PHP] Importing a GIF image and making it transparent

2001-08-21 Thread Ben Quinn
Thanks to those who replied, i finally worked it out - the script has been pasted below just incase anyone is sifting through the list archives looking for the same thing. One thing though, my server doesn't allow me to open a GIF file through HTTP - ie this doesn't work $image = ImageCreateFro

RE: [PHP] Function to Build Trees

2001-08-21 Thread Chris Hayes
Antwoord naar: <[EMAIL PROTECTED]> Van:"Dan Harrington" <[EMAIL PROTECTED]> Onderwerp: RE: [PHP] Function to Build Trees > Or you could just buy from http://www.plumbdesign.com/ > or write a PHP SDK for them. > :-) sorry? what does that horrible coldf

[PHP] how to discover cause of php crash under win98?

2001-08-21 Thread Chris Hayes
hi, i am trying to install the thousands-of-lines big postnuke.com website thingie. Unfortunately it won't start and the community does not seem to recognize the problem. I get this message: PHP caused an invalid page fault in module PHP4TS.DLL at 015f:1008e884. (PHP4 on win98)

Re: [PHP] Importing a GIF image and making it transparent

2001-08-21 Thread Chris Lambert
Did you use quotes around the URL when trying to access the image? /* Chris Lambert, CTO - [EMAIL PROTECTED] WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */ - Original Message - From: Ben Quinn <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP] Re: Creating images on the fly

2001-08-21 Thread _lallous
Yes... get inspired from this simple HTML example even! Inline Image generation (via JavaScript)