[PHP] Re: Mail stopped working - Somewhat Urgent

2002-02-07 Thread Martin C. Petersen
Bryan Gintz wrote: All of a sudden Mail through PHP just stopped working, we can do it through the command line, but refuses to work in PHP. Any ideas? Does the maillog mention any errors? How about the webserver log? Best regards Martin -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Using functions before they're defined

2002-02-07 Thread Martin Towell
I've found that you can specify a function anywhere in the page and call it anywhere in the page so: ? foobar(); function foobar() { echo in foobarbr\n; } foobar(); ? would work and display the text twice, without errors/warnings I haven't looked at the php's source code, but maybe it's a two

[PHP] DreamWeaver/PHP ability?

2002-02-07 Thread Luke Crouch
I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quote in input tag value?

2002-02-07 Thread Erik Price
On Thursday, February 7, 2002, at 04:54 PM, Rick Emery wrote: I prefer: print input type=text value=\My Quote\; -Original Message- If there is a quote mark in an input tags value what is the correct way to print the quote? input type=text value=quotMy Quotequot or input

[PHP] modDb Contribution

2002-02-07 Thread Vincent - D. Ertner
Hi PHPers, in late 2001 I had a customer that was interested in a kind of universal (my)SQL module for PHPNuke / phpWebsite. Thus I ordered the development and - as fair as life is - the customer went straight into bankruptcy. Now I have a first beta of modDb - as we call it - and almost

[PHP] Regex function needed

2002-02-07 Thread Michael Kimsal
Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Regex function needed

2002-02-07 Thread Douglas Maclaine-cross
$string = ereg_replace([A-Za-z']{1,3}, , $string); // don't forget I'm I haven't checked but something like this. -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:59 To: [EMAIL PROTECTED] Subject: [PHP] Regex function needed Looking

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
I don't know if this is the best way but: $str = This is or was a test for short words; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z]{1,3} , , $str); } print $str; this replaces all occurences of a space followed by 1,2 or 3 alphabetic characters followed by a space... the

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
this might even work beter, to take comma's and periods etecetera into account to: $str = This is or was a test for short words, although an, should be deleted to.; while (ereg( [a-z]{1,3} , $str)) { $str = eregi_replace( [a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}|[:]{1}), \\1, $str); } or even this

RE: [PHP] Regex function needed

2002-02-07 Thread Martin Towell
what about words at the start of the string?? eg $str = One can see this is or was a test for short words, although an, should be deleted to.; -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:47 AM To: [EMAIL

Re: [PHP] Regex function needed

2002-02-07 Thread Bas Jobsen
Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal: Looking for a regex (preg or ereg) to remove all 1, 2 and 3 character words. ? $string=over deze regex loop ik nu al de hele dag en een uur te piekeren. 't wil niet! of wel! l'a.; $string= .$string; while

Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT
after some puzzling I came to this: $str = One as a start. This is or was a test for short words, although an, should be deleted to.; $str = preg_replace(array(/\b[A-Za-z']{1,3}\b/, /[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/), array(, \\1), $str); print $str; which means: first: replace all 1,2

RE: [PHP] Regex function needed

2002-02-07 Thread Douglas Maclaine-cross
I don't know about preg but how about this monster? $str = I'm okay now aren't I. Do I work? 'mm; while(eregi(' [a-z\']{1,3} ', $str)) $str = eregi_replace(' [a-z\']{1,3} ', ' ', $str); while(eregi(' [a-z\']{1,3}([^a-z\' ])', $str)) $str = eregi_replace(' [a-z\']{1,3}([^a-z\'

[PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Gary
There is no PHP support in Dreamweaver UltraDev. Gary Luke Crouch wrote: I know Dreamweaver UltraDev has nice site management features for using a JSP/SQL type serverdoes it have similar capabilities with PHP/MySQL? Does anyone know? -L -- PHP General Mailing List

[PHP] Complex Version Checking

2002-02-07 Thread Alan McFarlane
Does anyone know of a method of testing the minimum version of PHP required for a particular job? - Assume I'm developing a web-site for a customer who has PHP 4.0.5 installed. Now, I tend to use the latest version (4.1.1), so I have to be a little careful in certain aspects, but it would be

RE: [PHP] Regex function needed

2002-02-07 Thread Martin Towell
what about? $str = a bc def ghij klmno p qr i'd do, it. stu vwxy a; $az = [a-zA-Z']; $str = str_replace(,, , , $str); $str = str_replace(., . , $str); $str = trim(preg_replace(array(/ $az /, / $az$az /, / $az$az$az /), , $str )); // couldn't get / [a-zA-Z]{1,3} / to work :( $str =

[PHP] RE: [PHP-DB] Need to delete charcters from a string

2002-02-07 Thread Rick Emery
$str = substr($str,0,-3); -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 1:57 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] Need to delete charcters from a string I need to delete the last 3 character of a string,

[PHP] PHP Group in NY

2002-02-07 Thread PHP NY
Hi, I'm getting together a PHP group in New York, NY. If interested, please send me an email. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: How to keep form inputs from being cleared

2002-02-07 Thread Joe Van Meer
Probably the easiest way is to not get to that point at all in the first place. Just use a client-side javascript form validation script to prevent un-filled fields from even occurring. Another way around ths is to create tempory session variables on the processing page, and if some of the form

[PHP] New York PHP Group

2002-02-07 Thread PHP NY
Hi, I'm getting a PHP group together in the New York, NY area. Please email me if insterested. __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Checking for plus signs?

2002-02-07 Thread Leif K-Brooks
I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do?

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Tyler Longren
What's the error? Tyler - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 7:40 PM Subject: [PHP] Checking for plus signs? I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General

Re: [PHP] Quote in input tag value?

2002-02-07 Thread Jim Lucas [php]
you might want to check your coding, but that is a parse error waiting to happen. Jim Lucas - Original Message - From: Rick Emery [EMAIL PROTECTED] To: 'Nathan Cassano' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 1:54 PM Subject: RE: [PHP] Quote in input tag

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Jeff Sheltren
The plus is a special character for regular expressions. You need to escape it in order to search for a literal + Try this: eregi(\\+, $variable) Jeff At 08:40 PM 2/7/2002 -0500, you wrote: I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I do? -- PHP General

[PHP] Re: array variable passing in session.

2002-02-07 Thread Joe Van Meer
Hi Peter, are you limited to using arrays? If not, try msql_fetch_row() since you are only looking for the one record, ie: the corresponding username and password record for the username and password that was passed. Hope this helps, Joe :) ?php session_start(); include(config.php);

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Jim Lucas [php]
try this if(eregi(/\+/,$variable)) Jim Lucas - Original Message - From: Leif K-Brooks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 5:40 PM Subject: [PHP] Checking for plus signs? I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I

Re: [PHP] Checking for plus signs?

2002-02-07 Thread Tyler Longren
Actually, all you need is this: if(eregi(\+,$variable)) You only need to escape the + sign once. Tyler - Original Message - From: Jim Lucas [php] [EMAIL PROTECTED] To: Leif K-Brooks [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 7:39 PM Subject: Re: [PHP]

RE: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Edward R. Bailey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Actually Ultradev does support PHP if you buy a php application server extension. A company in Romania (The name escapes me) makes the extension and I have heard it works very well. I am sure somebody can find the name of the company by searching

RE: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread [EMAIL PROTECTED]
That would be InterAKT Online (http://www.interakt.ro/), and the products you're talking about is the PHAkt (open source) and the ImpAKT (commercial version). Another product worth looking into is NeXTensio as well. I've heard good things, but I've never tried it yet. -- Laurie Landry [EMAIL

RE: [PHP] Checking for plus signs?

2002-02-07 Thread Martin Towell
remember to escape the escape character so php passes it onto the reg.ex. function correctly, so: if(eregi(\\+,$variable)) -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Jim Lucas [php]; Leif K-Brooks; [EMAIL PROTECTED]

[PHP] HTTP_POST_VARS problem

2002-02-07 Thread ejfs
Hi. I'm a newbie at this and am having problems understanding how this works. I have a form with method=post. The server program does display REQUEST_STRING as I expect (e.g., choice=yes but displaying HTTP_POST_VARS[choice] is null). However, displaying HTTP_GET_VARS[choice] does display yes.

[PHP] Re: array variable passing in session.

2002-02-07 Thread Peter Ruan
Hi Joe, The record has other information as well, names, phone, and etc. I like to store everything in an array and reference to it later. That way I don't have to do another mysql_xxx() later for the subsequent pages...that should save sometime, right? The problem has gone away once I

Re: [PHP] HTTP_POST_VARS problem

2002-02-07 Thread ejfs
Please ignore my question - I just figured it out. I had the method=post in the input type=submit tag rather than in the form tag. It works! However, if one has an HTML select/option menu scrolling list with multiple selections, how does one get the number of values for the same name with

[PHP] http://

2002-02-07 Thread jtjohnston
I'm looking for a function that will find occurences of urls in any given string and do this: http://www.nowhere.com/ becomes a href=http://www.nowhere.com/;http://www.nowhere.com//a Could, should also look for mailto:[EMAIL PROTECTED] telnet:blah.blah or even news:blaj.blah Does such a thing

[PHP] Execing problems

2002-02-07 Thread Jason Rennie
Hi all, I have a seperate perl script that I need to start running from a php script. The script does a fork into the backgroup and exits. when i do an exec(funky script stuff here); The page just hangs trying to load again, apparently after I call the exec. I've also tried exec(script

RE: [PHP] http://

2002-02-07 Thread Martin Towell
try this: $str = $s24; // this is the string you want to look at... $dst = 'a href=\\1\\1/a\\2'; foreach (array(http://;, mailto:;, telnet:, news:;) as $src) { $str = ereg_replace((.$src.[^ ]*)( *), $dst, $str); } echo $str; -Original Message- From: jtjohnston [mailto:[EMAIL

RE: [PHP] Execing problems

2002-02-07 Thread Martin Towell
does using system() work? what about back-ticks? - `funky script stuff here`; -Original Message- From: Jason Rennie [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Execing problems Hi all, I have a seperate perl script that I

RE: [PHP] Execing problems

2002-02-07 Thread Jason Rennie
does using system() work? what about back-ticks? - `funky script stuff here`; I'll give it a go, i hadn't tried that Although I thought system would return the output. I was using exec because it didn't (oops I think I forgot to mention that.) Jason -- PHP General Mailing List

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Gary
I did try an extension with it once with terrible results. I do not know if it is the same one. The extension would take all the includes and make them the same name, not every time but often enough to scrap it. I don't use Dreamweaver much anyway, Homesite with server mapping enabled works

Re: [PHP] http://

2002-02-07 Thread Analysis and Solutions
Hi John: jtjohnston wrote: I'm looking for a function that will find occurences of urls in any given string and do this: http://www.nowhere.com/ becomes a href=http://www.nowhere.com/;http://www.nowhere.com//a ?php $Val = body of text you want to process...; $Val =

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Dr. Shim
Would this happen to be the one? http://www.interakt.ro If it is, then the extension can be found here: http://www.interakt.ro/products/PHAkt/index.php This place also has several othe extensions: http://www.udzone.com/index.asp?TypeId=3CatId=68 Found these links using Google. God bless

Re: [PHP] Using functions before they're defined

2002-02-07 Thread Jason Wong
On Friday 08 February 2002 06:17, Martin Towell wrote: I've found that you can specify a function anywhere in the page and call it anywhere in the page so: ? foobar(); function foobar() { echo in foobarbr\n; } foobar(); ? would work and display the text twice, without errors/warnings

Re: [PHP] How to keep form inputs from being cleared

2002-02-07 Thread Jason Wong
On Friday 08 February 2002 04:33, CompMan86 wrote: I posted about this a few days ago. I received several responses but none of them were very helpful (thanks for the effort though). I finally figured out what it was by process of elimination. At the top of my registration form, I put

[PHP] determining script url

2002-02-07 Thread sean
Hi all, How can I get the full URL of the currently running script? $DOCUMENT_ROOT is not what I need, instead I need the url (be it domain if exists, or ip if not). $SERVER_NAME works but if a domain isn't paired with the server, I could get some useless information (right?). Thanks, Sean

RE: [PHP] determining script url

2002-02-07 Thread Martin Towell
I think what'll you'll need to do is look through the phpinfo() output and piece together all the parts, eg $HTTP_HOST (or should that be $_HTTP[HOST] ?), $PHP_SELF, etc. If anyone knows of a better way, I'd like to know too Martin -Original Message- From: [EMAIL PROTECTED]

[PHP] call stack

2002-02-07 Thread Martin Towell
I know this comes up again, and again, and I'm bringing it up again now :) There's been requests for a function that displays the current heirachy of calls I was just thinking about this - php must maintain a stack so that it knows what function to return to when another function exits, why can't

[PHP] keyword search help

2002-02-07 Thread Arun K . V
hello sir, we are creating a cdrom database in postgresql wherein we have cd rom titlename,author,year etc and keywords as fields. we will store a set of keywords for each record. i want to know how to enter those keywords in to database (whether to have comma between keywords or

Re: [PHP] keyword search help

2002-02-07 Thread Jeff Sheltren
Not really a php question, is it? But what I would do is have two tables, a cdrom table and a keyword table. Each cd in the cd table would have a cd_id, and then the keyword table could have two attributes, cd_id (foriegn key from cdrom table) and keyword. Make the primary key for the

Re: [PHP] Re: DreamWeaver/PHP ability?

2002-02-07 Thread Philippe Saladin
I use DreamweaverUltraDev with the Interackt extension for several months. It was interesting for me at the beginning, to see how a functionnality could be coded in PHP (prev next, dynamic drop list, etc...), and because other people in my company, working on static pages, use Dreamweaver. But

<    1   2