Re: [PHP] Getting an include file into a string after PHP evaluates the vars?

2002-01-29 Thread Jim Lucas [php]
yes, there is a way out, you can use readfile(). capture the output using ob_*() functions and then parse/eval that string listed here are the functions you'll need. http://www.php.net/manual/en/function.readfile.php http://www.php.net/manual/en/function.ob-start.php

Re: [PHP] Book database (slightly OT)

2002-01-29 Thread Egon Schmid
From: Steve Edberg [EMAIL PROTECTED] Perhaps the Library of Congress?? http://www.loc.gov/z3950/ You could hack the web interface, but it would be more efficient to query the database directly using the Z.39.50 stateful protocol: see http://lcweb.loc.gov/z3950/gateway.html#about and

[PHP] PHP Mysql

2002-01-29 Thread Uma Shankari T.
Hello , I am trying to connect mysql using php script like this $link= mysql_connect('$servername','$username','$password'); but it is giving Fatal error call to undefined function mysql_connect() I have checked wheather php is installed properly by using this phpinfo(); Everything is

Re: [PHP] Session updates ok first time only.

2002-01-29 Thread Floyd Baker
On Tue, 29 Jan 2002 12:11:02 +0800, you wrote: On Tuesday 29 January 2002 06:36, Floyd Baker wrote: Yes I have a c:\tmp directory and I see the session being created in it. And the page_view value of 1 after the first increment. The editor wants to reload each time I hit the submit button

Re: [PHP] PHP Mysql

2002-01-29 Thread Jim Lucas [php]
you must make sure that the version of PHP that is being used was built with mysql support and/or that the drivers are being loaded for mysql. Jim Lucas - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 29, 2002 6:24 PM Subject:

Re: [PHP] PHP Mysql

2002-01-29 Thread Uma Shankari T.
Hello, How do i recompile with mysql support -Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP Mysql

2002-01-29 Thread Frederic Trudeau
./configure --with-mysql... which is build-in with PHP 4.0.* I think. Frederic Trudeau [A]dvanced [S]upport [A]gent Colocation/Customer Support Agent CAM Internet - http://www.cam.org My God ! It's full of stars On Wed, 30 Jan 2002, Uma Shankari T. wrote: Hello, How do i

Re: [PHP] PHP Mysql

2002-01-29 Thread Viper
If you recompile that will no effect any of the data in your DB if that is what you mean? -=Adam=- Quoting Uma Shankari T. [EMAIL PROTECTED]: Hello, Already i am having so many details in my mysql database.If i do this it won't affect the previous one.. -Uma -- PHP

[PHP] How? :)

2002-01-29 Thread jtjohnston
Let's say I have two fields TNum and AU. TNum is a selectoptionBritishoptionAmericanoptionCanadian AU input name of an author. I want to sort them as follows. British Shakespeare American Joyce Samuels Twain Canadian

RE: [PHP] How? :)

2002-01-29 Thread Martin Towell
-- $news = mysql_query(select * from bookmarks ORDER by TNum,AU asc); $old_TNum = ; while ($mydata = mysql_fetch_object($news)) { if ($old_TNum != $mydata-TNum) #when TNum occurs the first time, echo it once only.

[PHP] Change Text to CAPS.

2002-01-29 Thread Philip J. Newman
Is there anyway that I can change a string with lettle letters to caps? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

[PHP] '' and \ - How do you avoid removing these?

2002-01-29 Thread Jon
Okay, I'm trying to read in a form with and ' in it. The problem is that PHP automatically changes these to \ and \' without asking :( If I read in a file with or ' in, it's fine and outputting to the screen is no problem. It's only when I read in from a form that a problem appears. All I want

RE: [PHP] Change Text to CAPS.

2002-01-29 Thread Martin Towell
strtoupper() -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: [PHP] Change Text to CAPS. Is there anyway that I can change a string with lettle letters to caps? Philip J. Newman Philip's

Re: [PHP] Change Text to CAPS.

2002-01-29 Thread Frederic Trudeau
strtoupper($string) Voila ! =) Frederic Trudeau [A]dvanced [S]upport [A]gent Colocation/Customer Support Agent CAM Internet - http://www.cam.org My God ! It's full of stars On Wed, 30 Jan 2002, Philip J. Newman wrote: Is there anyway that I can change a string with lettle letters to

Re: [PHP] How? :)

2002-01-29 Thread jtjohnston
Couldn't do it fast than that :o) ! Thanks, J Martin Towell wrote: -- $news = mysql_query(select * from bookmarks ORDER by TNum,AU asc); $old_TNum = ; while ($mydata = mysql_fetch_object($news)) { if ($old_TNum

RE: [PHP] '' and \ - How do you avoid removing these?

2002-01-29 Thread Martin Towell
there's a directive in the php.ini file, something like magic_quotes or something (too lazy to look...), set that to 0 (zero) or use stripslashes() (this might have an underscore in the name, again too lazy to check) on the vars Martin -Original Message- From: Jon [mailto:[EMAIL

RE: [PHP] How? :)

2002-01-29 Thread Douglas Maclaine-cross
$news = mysql_query(select * from bookmarks ORDER by TNum,AU asc); $old_TNum = ; while ($mydata = mysql_fetch_object($news)) { $new_TNum = $mydata-TNum; if ($new_TNum != $old_TNum) #when TNum occurs the first time, echo it once only. { $old_TNum = $new_TNum; $body .= b.$temp.:/b;

Re: [PHP] Editing uploaded file

2002-01-29 Thread Jason Wong
On Wednesday 30 January 2002 05:32, will hives wrote: Please do not use HTML mail, thanks! I have produced an admin area which allows users to add, edit and delete stories plus images. Everything has gone great, thanks to all of you who answered previous postings. Just stuck on the very

[PHP] Martin: [PHP] How? :)

2002-01-29 Thread jtjohnston
Martin, Are you guys getting yours by email or monitoring a newsgroup reader? John Works wonderfully:) http://DELETETHISccl.flsh.usherb.ca/bookmarks/DELETETHIS Martin Towell wrote: -- $news = mysql_query(select * from

RE: [PHP] John: [PHP] How? :)

2002-01-29 Thread Martin Towell
Through email - Y? -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Martin: [PHP] How? :) Martin, Are you guys getting yours by email or monitoring a newsgroup reader? John Works wonderfully:)

[PHP] Swapping BR for \n... ?

2002-01-29 Thread Jon
I'm processing a form but all the functions I've found on the web only seem to add the BR after the \n. I need to remove the \n altogether - anyone know how I can kill the \n and put a BR in it's place? Cheers, Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Jason Murray
I'm processing a form but all the functions I've found on the web only seem to add the BR after the \n. I need to remove the \n altogether - anyone know how I can kill the \n and put a BR in it's place? Sounds like you want a simple ereg_replace(\n, BR, $sourcestring); Jason -- PHP

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Martin Towell
Isn't there a function br2nl() and it's relative nl2br() ?? -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 3:14 PM To: 'Jon'; [EMAIL PROTECTED] Subject: RE: [PHP] Swapping BR for \n... ? I'm processing a form but all the functions

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Douglas Maclaine-cross
Or an even simpler str_replace(\n, BR, $sourcestring); -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 15:14 To: 'Jon'; [EMAIL PROTECTED] Subject: RE: [PHP] Swapping BR for \n... ? I'm processing a form but all the functions I've

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Jason Murray
Isn't there a function br2nl() and it's relative nl2br() ?? There's nl2br, but I don't believe there's one that goes the other way. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Lars Torben Wilson
On Tue, 2002-01-29 at 20:19, Douglas Maclaine-cross wrote: Or an even simpler str_replace(\n, BR, $sourcestring); Which will also be much faster than the ereg_replace(), to boot. Cheers, Torben -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: [PHP] Swapping BR for \n... ?

2002-01-29 Thread Gerard Onorato
On this page at php.net http://www.php.net/manual/en/function.nl2br.php# You will find a function by [EMAIL PROTECTED] which is a great implimentation of replacing the /n in a line. I would suggest you take a look. Gerard At 03:19 PM 1/30/2002 +1100, Jason Murray wrote: Isn't there a

RE: [PHP] Attachments with mail() function

2002-01-29 Thread Boaz Yahav
Class to send a file as an attachment with the php mail() function. http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1583 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Rafael Perazzo B Mota

[PHP] Re: Swapping BR for \n... ?

2002-01-29 Thread Jon
Nevermind, I found some code at last which actually works : $txt = preg_replace(/(\015\012)|(\015)|(\012)/,BR,$txt); Jon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm processing a form but all the functions I've found on the web only seem to add the BR

RE: [PHP] Book database (slightly OT)

2002-01-29 Thread Boaz Yahav
Why not simply look the ISBN up in one of the big online shops and take the data from there? Amazon? BN? It all depends on what you will do with the data I guess... Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message-

RE: [PHP] mailing to 19000 users

2002-01-29 Thread Boaz Yahav
For a Win32 based solution check out : http://www.infacta.com/ I'm extremely happy with this software, what it can do and the price. Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Mostafa Al-Mallawani

RE: [PHP] Re: Swapping BR for \n... ?

2002-01-29 Thread scott
That regex is equivilent to: /(\r\n)|(\r)|(\n)/, you don't need to use the numeric values. -Original Message- From: Jon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 11:22 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Swapping BR for \n... ? Nevermind, I found some

RE: [PHP] Re: How do I use a confirm box to confirm before deletion from adatabase

2002-01-29 Thread Boaz Yahav
Using JavaScript to show an OK/Cancel confirmation window http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1364 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Lerp [mailto:[EMAIL PROTECTED]]

Re: [PHP] mailing to 19000 users

2002-01-29 Thread Manuel Lemos
Hello, Boaz Yahav wrote: For a Win32 based solution check out : http://www.infacta.com/ I'm extremely happy with this software, what it can do and the price. This looks like a spammer tool that was not meant to use with live databases of Web sites. Is it able to automatically extract

Re: [PHP] Help! (How are sessions intended to work?)

2002-01-29 Thread Sukumar S.
Dear Adam, Are you using 'realm' authentication setup? with regards Sukumar .S On Tue, 29 Jan 2002, Adam wrote: Date: Tue, 29 Jan 2002 14:47:42 -0600 From: Adam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Help! (How are sessions intended to work?) My Setup Specs

[PHP] Installing Apache on WinXP

2002-01-29 Thread Ben Clumeck
Does anyone know of any conflicts or problems? I am installing it and went to the conf file and changed the setting to localhost. But it says that there is an Error 1067. Any help would be greatly appreciated. Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Could somebody PLEASE explain this one to me

2002-01-29 Thread Aric Caley
Why, oh WHY doesnt this work. I get the error: Fatal error: Call to a member function on a non-object in c:\home\digerati\www\classtest.php3 on line 23 If I try to make any assignments, anywhere, it dies. What the HELL is going on? Obviously I must be missing something really obvious,

RE: [PHP] Could somebody PLEASE explain this one to me

2002-01-29 Thread Martin Towell
dunno if this'll help, but try changing these two lines $this-$obj = new test1; $test = new test2; to these $this-$obj = new test1; $test = new test2; see if that helps - other than that - anyone else? -Original Message- From: Aric Caley [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

Re: [PHP] Could somebody PLEASE explain this one to me

2002-01-29 Thread Lars Torben Wilson
On Tue, 2002-01-29 at 07:25, Aric Caley wrote: Why, oh WHY doesnt this work. No panic, it's just a typo. :) I get the error: Fatal error: Call to a member function on a non-object in c:\home\digerati\www\classtest.php3 on line 23 If I try to make any assignments, anywhere, it

Re: [PHP] Installing Apache on WinXP

2002-01-29 Thread Brian Clark
* Ben Clumeck ([EMAIL PROTECTED]) [Jan 30. 2002 01:05]: Does anyone know of any conflicts or problems? I am installing it and went to the conf file and changed the setting to localhost. But it says that there is an Error 1067. Any help would be greatly appreciated. Go into your Apache

Re: [PHP] '' and \ - How do you avoid removing these?

2002-01-29 Thread Jason G.
Set this: magic_quotes_gpc=0 in your php.ini or use stripslashes on all your data. -Jason Garber IonZOft.com At 02:58 AM 1/30/2002 +, Jon wrote: Okay, I'm trying to read in a form with and ' in it. The problem is that PHP automatically changes these to \ and \' without asking :( If I

[PHP] Re: Swapping BR for \n... ?

2002-01-29 Thread Daniel Grace
Jon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Nevermind, I found some code at last which actually works : $txt = preg_replace(/(\015\012)|(\015)|(\012)/,BR,$txt); rather than using a regular expression, try: $txt = strtr($txt, array(\r\n = br /, \n =

[PHP] Re: HOWTO Q: detect browser's script enabled? - II

2002-01-29 Thread Ivo Stoykov
Thank you very much Arve. Ivo Arve Bersvendsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ivo Stoykov wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: Hello again earlier today I asked about detecting whether javascript is enabled on the

<    1   2