[PHP] Mailing list addon for PHP-Nuke-type app

2003-03-19 Thread David Russell
Hi all, I am looking for a PHP-Nuke/Slashdot -type of php-based application, which can run on an Interbase database. On drawback I currently have with the others is that it does not seem to have a listserv type of interface, with subscription/unsubscription requests/archives/digests/etc. Does any

[PHP] PHP receiving e-mail

2003-01-14 Thread David Russell
assumption would be that there should be a class out there somewhere that handles it well. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com smime.p7s Description: application/pkcs7

[PHP] Dumb POST Array question

2002-11-25 Thread David Russell
Hi all, I have a multiple select called Consultants[] In one page. On the target page, how would I reference it? Would it be: $_POST['Consultants'][0] $_POST['Consultants'][1] Etc Or something else? Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel:

[PHP] File uploads...

2002-11-25 Thread David Russell
tually saves the attachment into a database. How would I re-do this? What I would preferably do is have the script AddAttachment for each $_FILES[] there might be. If I need to change it from an array type ($userfile[]) in the calling script, I can easily do this. Can someone help me? Thanks

[PHP] Preg_replace question

2002-11-21 Thread David Russell
ref="blah" onmouseover="blah">" with "" What would be a good preg_replace string for this? Preg_replace('/(<A)/i', ', but drop everything else. I will be googling on this too, but a reply from this group is always quicker Thanks David Russell

RE: [PHP] character ' in switch

2002-11-21 Thread David Russell
Hi Ernest, I stand corrected. (I tend to standardise on double quotes where possible, and rarely use singles) Thanks for correcting me on this. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web

RE: [PHP] Session not Registering

2002-11-21 Thread David Russell
I assume that you do have a sesion_start() on the second (Target) page It needs to be present on each page using your session. David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com

RE: [PHP] character ' in switch

2002-11-21 Thread David Russell
need to put it into quotes (as I have above) For newer versions of PHP, you would also want register globals off, and thus you would probably want to use $_GET['action'] as I have above. If you are using OLD PHP, then use HTTP_GET_VARS instead. David Russell IT Support Manager Barloworld

[PHP] Stripping HTML tags, but keeping entities...

2002-11-20 Thread David Russell
entity, but how can I do both of these? Thanks for any advice. David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com smime.p7s Description: application/pkcs7-signature

RE: [PHP] Get

2002-11-18 Thread David Russell
Like this: http://fqdn.domain.com/path/path/page.php?var1=value1&var2=value2&;... Page.php can then reference $var1 and $var2 if register globals is on (bad idea) or $_GET['var1'] and $_GET['var2'] hth David Russell IT Support Manager Barloworld Optimus (Pty)

RE: [PHP] Problem with header redirect with register_globals off

2002-11-12 Thread David Russell
Could you post some code? David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com -Original Message- From: pig pig [mailto:pigpig8080@;yahoo.com.sg] Sent: 12 November 2002 03:52 PM To

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hi Erwin, Great thanx, my brain is cleared . Well, a little more... Where would I be able to find more info about regexp's? TIA David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimu

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
uot;, I want Forward, not forward. David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com -Original Message- From: David Russell [mailto:DavidR@;BarloworldOptimus.com] Sent: 04 Novem

RE: [PHP] Battling with highlighting search criteria

2002-11-04 Thread David Russell
Ok, this works. Just one more thing, How can I get the return in the same case as it was originally? Ie if I have $string = "Forward" , and $search = "for", I want Forward, not forward. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hi Erwin, Yep, this does exactly what str_replace does. How can I make the whole thing case insensitive: $result= "This Is A Test, Isn't It?" $search= "IS" It will include the 'is' in 'This', and also the 'Is' and the 'is'

RE: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread David Russell
Hey there I told you my brain was feeling fuzzy :) This works great. Only one problem... I would like it to be case insensitive... Any way? I assume that it would be a ereg/preg replace, but I have no clue with regexp at all. Anyone who could help?? David Russell IT Support Manager Barloworld

[PHP] Battling with highlighting search criteria

2002-11-04 Thread David Russell
;is" Into $result = "this is a test, is'nt it" Now I can easily see how to change the FIRST occurrence of the word, but how can I change every occurance? Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +271

RE: [PHP] phpinfo

2002-11-03 Thread David Russell
Been there, done that. Didn't help... I was told (off list) that it is because php4.2.3 is compiled with Apache 1.3.24. is this possible? It is definitely Apache 1.3.27 (404 error message returned the version number), but php is not reporting as such. Thanks again David Russell IT Su

[PHP] phpinfo

2002-11-01 Thread David Russell
? Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com smime.p7s Description: application/pkcs7-signature

[PHP] New Server advice

2002-10-31 Thread David Russell
4.2.3 work properly with Apache 2.0.43? In a production server? 2. Are there features in Apache 2.0 that would be beneficial? 3. What is the learning curve line from moving to installing, configuring and running Apache 1.3 to 2.0? Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd

RE: [PHP] Unsetting Session Variables

2002-10-30 Thread David Russell
--Original Message----- > From: David Russell [mailto:DavidR@;BarloworldOptimus.com] > Sent: 30 October 2002 14:32 > > I am having problems unsetting Session Variables - where I know it > should work. > > I have a form. It contains both links with GET variables, and also a > PO

[PHP] Unsetting Session Variables

2002-10-30 Thread David Russell
available later in other scripts) What can I do? David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com smime.p7s Description: application/pkcs7-signature

[PHP] File upload problem...

2002-10-29 Thread David Russell
bal array, and start narrowing down the problem. One caveat - I currently have no internet access (e-mail only). Could people please e-mail me information especially if they want to include links to relevant websites. Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711

[PHP] Sessions problem and unsettling Session variables

2002-09-11 Thread David Russell
this not work? I refresh the page. I am using PHP 4.2.2. Register Globals - Off, Track Vars - on. Any ideas why the session variables refuse to be unset? Thanks David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com smime.p7s Description: application/pkcs7-signature

[PHP] Classes Constructor syntax

2002-07-17 Thread David Russell
Hi all, I am finally spending some time converting a million and one functions into a class - this is for a software issue tracking system. I have: class issue { var var ... function issue() { //default constructor //initialise all variables to defaults, and start getting the

[PHP] replacing multiple spaces with one

2002-07-15 Thread David Russell
Hi all (easy one - I think) I need to replace all instances of multiple spaces in a string with a single space. I tries the following: $ArticleText = str_replace(' ', ' ', $ArticleText); but if I have four spaces, I am left with two - this is wrong... I am sure that I am really looking fo

[PHP] Editing Word Documents

2002-07-08 Thread David Russell
Hi all I have just had a request about editing Word Documents... I have an intranet, which provides access to, amongst others, Word Documents about policies, etc. What the guys are looking for is a way to do the following: 1. Show a list of files available for editing 2. If a file is clicked,

[PHP] Stock Prices

2002-07-03 Thread David Russell
Hi all How would I get recent stock prices in a page? I obviously need to get this from some source. I am looking for local (South African) and international share prices for a portal-type system. What I will probably do (for the sake of speed) is have a cron job periodically fetch the releva

[PHP] Database Abstraction Suite

2002-06-13 Thread David Russell
experience with DB Absteraction suites. If so, I need one that supports InterBase/Firebird and also supports MySQL. I would like to know what they are like in terms of ease of learning the generic things, etc, etc. Thanks in advance David Russell -- PHP General Mailing List (http

[PHP] Header variables

2002-04-24 Thread David Russell
Hi there, Each time I look at code from websites/etc, I notice a different set of headers that get sent to the browser. Amongst others, there are: location : content-type : content-disposition : attachment Is there anywhere where I can find a standard set of headers available to me? I had

Re: [PHP] Database and files

2002-04-22 Thread David Russell
Hi all, Another bug bites the dust... Thank you so much for your responses... As for the DB/filesystem issue, we need to be able to easily replicate this at some time to another server as the system may easily become a distributed intranet system. We made the decision to use a database as th

[PHP] Database and files

2002-04-22 Thread David Russell
Hi all, I have a database. It receives from my users files - which could be word documents, Adobe PDF files, text docs, anything... I store these in a BLOB field of the database. On a certain page, I include a link to these files which have been saved into the blob. The link is Document. Now