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
$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
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
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]
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
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
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
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
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
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
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
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";
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
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:
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,
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
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 :-
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
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
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
> --
> 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
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
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
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
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
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)
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:
Yes...
get inspired from this simple HTML example even!
Inline Image generation (via JavaScript)