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/)
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
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
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
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
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
$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
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
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
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
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
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
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\'
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
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
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 =
$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,
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
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
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
I'm trying if(eregi(+,$variable)){, but it gives me an error. What do I
do?
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
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
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
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);
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
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]
-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
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
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]
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.
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
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
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
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
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
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
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
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
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 =
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
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
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
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
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]
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
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
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
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
101 - 149 of 149 matches
Mail list logo