this months free sample article in PHP Architect - A monthly magazine for PHP
Professionals. http://www.phparch.com/
- Original Message -
From: Sebi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 11:47 AM
Subject: [PHP] RSS
Hi,
Does some one know where I can
use html br instead of \n
or
echo nl2br(This spans\nmultiple lines. The newlines will be\noutput as
well.);
Best Wishes
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Martin Purdy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 09
just post once
- Original Message -
From: Jeff Busby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 9:30 PM
Subject: [PHP] mail() vs sockets
Question regarding php's mail function.
I've created a targetted mail system for a client, that uses the mail()
so how about
With INSERT ... SELECT statement you can quickly insert many rows into a table from
one or many tables.
INSERT INTO tblTemp2 (fldID) SELECT tblTemp1.fldOrder_ID FROM tblTemp1 WHERE
tblTemp1.fldOrder_ID 100;
from the mysql manual
Best Wishes
Paul Roberts
[EMAIL PROTECTED
that means there's an error in your sql,
what's the sql your using.
Best Wishes
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Johannes Schlueter [EMAIL PROTECTED]
To: Todd Barr [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 7:25
another one for you
function removeaccents($string) {
return strtr($string,
SOZsozY¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ,
SOZsozYYuAAACDNOOYsaaaconooyy);
}
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED
Hi
I want to store some discount codes in mysql, i was thinking of putting
$price = $price - ($price *.i);
in a mysql field that can be looked up via the coupon number
what's the best way to do this and return $price with the discount applied.
Thanks
Best Wishes Happy New Year
Paul Roberts
I should have used
return($price = $price - ($price *.1)); in the db
and eval($str);
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Paul Roberts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 10
some times more than 100 bcc's are treated spam and dropped by the server, try it with
a limit in the query.
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Cesar Aracena [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday
same here win 2K apache php4.21
output
0,0,0,10,0,1998 = 90711
0,0,0,10,00,1998 = 90711
0,0,0,10,1,1998 = 907196400
0,0,0,10,01,1998 = 907196400
0,0,0,10,2,1998 = 907282800
0,0,0,10,02,1998 = 907282800
0,0,0,10,3,1998 = 907369200
0,0,0,10,03,1998 = 907369200
0,0,0,10,4,1998 = 907455600
, I'm on a virtual host, Cobalt raq, apache )
any pointers to what might could cause the error.
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED]
there's a nice article in this months (Feb. 2003!!!) PC world (UK) (www.pcw.co.uk) on
this.
see www.nigelwhitfield.com for details.
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Michael J. Pawlowsky [EMAIL PROTECTED
what mailserver are you using and how is it called in php.ini?
and what else is in the message causing the problem.
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Ben Edwards [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL
try this
mail($form['recipient'], $form['sublect'],$mailbody, From:Web User
[EMAIL PROTECTED]');
Best Wishes Happy New Year
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Anil Garg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 26
be available if the user returns during the cookies life and is
this on a per session basis.
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is advisory to the browser. It is easy to circumvent this maximum.
So don't count on it that the browser obeys your wish! The PHP-settings for
maximum-size, however, cannot be fooled.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Jason Wong [EMAIL PROTECTED
what version of php are you using?
- Original Message -
From: Miro Kralovic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, December 14, 2002 3:52 AM
Subject: RE: [PHP] File Upload
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile
variable at all in
why don't you submit it to a php script (instead of using the mailto ) and get mail()
to email it to you, you could also process it and save the info somewhere.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Karl James [EMAIL PROTECTED]
To: [EMAIL
], the subject, $message,
From: webmaster@$SERVER_NAME, -fwebmaster@$SERVER_NAME);
from http://us.php.net/manual/en/function.mail.php
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: Brad Dameron [EMAIL PROTECTED]
To: 'PHP
the list as replies asking you to confirm your email before allowing the post, this
was brought in to stop people spamming the lists.
so to post you need a subscribed email or a confirmed email.
Paul Roberts
- Original Message -
From: Justin French [EMAIL
just use css to define separate styles for each media
e.g.
style type=text/css media=screen,projection
!--
// screen style
--
/style
style type=text/css media=print
!--
// print style
--
/style
then the print style will be applied when the user clicks print.
Paul Roberts
http://www.paul
why not just get creative, pop up a window on submit with an animated gif of a dot
moving back and forth or similar and an uploading message and then close it when the
page reloads.
most of these things on have nothing to do with progress of what's really happening in
my experience.
Paul
and then close it when the page reloads.
Just a few ideas.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: David Buerer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 7:20 PM
Subject: RE: [PHP] Upload
is to use preg_replace to swap out all the smart tags etc.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: DL Neil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, August 31, 2002 12:02 AM
Subject: Re
try $REQUEST_URI
The URI which was given in order to access this page; for instance, '/index.html'.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Friday, August 23
.
i can do this fine by using popen() and adding the parameters to the path so i can't
see why it doesn't play with the mail function.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: Manuel Lemos [EMAIL PROTECTED
Okay i found a bug report on this
http://bugs.php.net/bug.php?id=15509
Apparently it was changed to only allow one parameter for security reasons.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: Manuel Lemos [EMAIL
the imap function will do this.
http://za2.php.net/manual/en/ref.imap.php
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 04, 2002 1:06 AM
Subject: [PHP] Decode
have a look at the @page spec in the css docs at w3c.org
I use this for A4 paper, you can set the margins as well:
@page{
size : 21.0cm 29.7cm ;
}
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Manuel' [EMAIL
i usually click no to the read receipts i get, maybe I'll make an exception in this
case.
- Original Message -
From: Daniel Negron/KBE [EMAIL PROTECTED]
To: Erik Hegreberg [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, July 09, 2002 8:28 PM
Subject: Re: [PHP]
in evals before you have to watch the quotes.
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think I misunderstood your question. You have a Perl script that
returns HTML and SSI and you want that string, returned to PHP, to be
parsed by Apache, so the SSI is evaluated, right?
you can do this with apache 2 but not apache 1
Paul Roberts
[EMAIL PROTECTED
works for me on win2k
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 29, 2002 6:43 PM
Subject: Re: [PHP] need to change $ char in string
On Sunday 30 June 2002 01:24, Beverly Steiner wrote:
Thanx for your suggestion but I tried it
try
$str = preg_replace(|\[details\].*?\[/details\]|si,, $str);
drop the i if you want it case sensitive.
Paul
Richard Davey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi all,
I've been having a wonderful night trying to solve this one, but I'm going
.
when online i get
Now, hopefully your message has been sent.The return value of mail() is 1.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: Lazor, Ed [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 21
.
bcc is faster but will usually end up getting binned as Spam as they are not addressed
to the recipient and fail junk mail filters as used by hotmail.
if 1 of your 100 emails is bad the whole lot can be rejected by the server and not
sent.
Paul Roberts
[EMAIL PROTECTED
just use php to do it
getcwd()
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Shane Wright [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 6:45 PM
Subject: [PHP] get pwd on windows
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
how about using the FTP functions that php has, look it up in the man, i haven't used
it.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Chris Hewitt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 3:33 PM
Subject: Re: [PHP] PHP
try
eval(?$footertext);
also take the code out of the function and try it, you may need to global some more
variables.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Leif K-Brooks [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 20, 2002 6
/
in the file. If it's 97 then you need the border=1 in the table though.
have fun.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Jay Blanchard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, May 06, 2002 3:25 PM
Subject: RE: [PHP] Formatting
install a webserver (apache?) on your machine and then set up server mappings in
homesite so when you switch to browse in homesite your code is parsed.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Pag [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent
search zend.com for breadcrumbs
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 27, 2002 2:01 PM
Subject: Re: [PHP] Directory System Splitter
On Saturday 27 April 2002 20:34, Randum Ian wrote:
[snip]
For example:
$a.br;
}
?
So if you want to crash your server with an infinite loop there's plenty of ways to do
it. g
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Jason Soza [EMAIL PROTECTED]
To: Jason Murray [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday
when i enter sZZsçe in to a form it's changed to s#377;Z#351;ç#281; I didn't code
it to change it to html special characters, is php doing this?
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Is there a quick way to set all variables as global so that they are avalible to a
function, i'm doing an eval inside, so i need all the submitted variables to be
avalible, or do i have to decalre them individualy.
Paul Roberts
[EMAIL PROTECTED]
--
PHP General
it's METHOD=POST already, I'm trying to find out why a Polish address was changed!
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Cal Evans [EMAIL PROTECTED]
To: Paul Roberts [EMAIL PROTECTED]; php [EMAIL PROTECTED]
Sent: Saturday, April 13, 2002 6:37
the html is wrong, option doesn't have an attribute of name, select has the name,
option has the value.
try it like this, the result will be in $files
?php
$dir_name = /path/to/images/directory/;
$dir = opendir($dir_name);
$file_list .= pFORM METHOD=\post\ ACTION=\index_done.php3\
SELECT
'
'--enable-track-vars' '--enable-versioning' '--enable-bcmath'
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok
for lynx, at the command prompt i get
bash: lynx: command not found
I've also looked in all the obvious places for php but can't find it.
the server is a cobalt raq 3 and i have a virtual host account so i can't recompile
php.
maybe I'll rewrite it in Perl.
Paul Roberts
[EMAIL PROTECTED
wget http://your.server.address/phpscript.php
did the trick
thanks
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Bruce S. Garlock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 22, 2002 8:55 PM
Subject: Re: [PHP] cron with php
it arrives.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Erik Price [EMAIL PROTECTED]
To: DL Neil [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 07, 2002 8:53 PM
Subject: Re: [PHP] Rasmus, O'Reilly, Programming PHP
On Thursday
You can do
eval(?$fp);
this will echo the evaluated $fp data. as you exit php mode before the eval,
so any php in the file needs to be in ? ? tags
you can also catch it with output buffering if you need to.
Paul Roberts
[EMAIL PROTECTED]
- Original Message
i should use for int setting
the man is not clear on this.
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
how do i do two things at the same time, i'm thinking of the equivalent of fork in perl
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I deleted everything in the php dir and reinstalled it all.
- Original Message -
From: Hunter, Ray [EMAIL PROTECTED]
To: 'Jeremy Reed' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, February 21, 2002 4:32 PM
Subject: RE: [PHP] unable to load dynamic library etc. etc.
Place all
is there a way to monitor bandwidth use of a script
any ideas welcome.
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
where am i going wrong
i used
$mail = preg_replace(/p[^]*?/i,\n\n$0, $mail,-1);
and
$mail = preg_replace(/p[^]*?/i,\n\n\\1, $mail,-1);
but i get $0 or \1 inserted, but only on the linux server
not on my win 2000 dev machine!
Paul Roberts
[EMAIL PROTECTED
try using
// set up query
$sql = UPDATE thistable
SET FNAME = \$esc_fname\, LNAME = \$esc_lname\, EMAIL
= \$esc_email\, WEB = \$esc_web\
WHERE ID = \$id\
;
variables aren't expanded inside ' so you need to use
Paul Roberts
[EMAIL PROTECTED
I think you mean that you want to display the total as text but have the total on the
form hidden so they can't edit it (and give themselves a discount), you can use a
hidden form field, sessions or cookies.
input type=hidden value= name=total
Paul Roberts
[EMAIL PROTECTED
what are you doing a while on
if while never ends and you reset the time out each loop and use
ignore_user_abort(true), it will still be going 13 hours latter.
maybe if you send the full code so we can look at it.
Paul Roberts
[EMAIL PROTECTED]
- Original
Don't you pay them for the very difficult stuff!
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Malcolm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 25, 2002 11:04 AM
Subject: [PHP] WinNT extensions
Hi all
I am
a nice starter on encryption
http://www.onlamp.com/pub/a/php/2001/07/26/encrypt.html?page=1
Paul Roberts
[EMAIL PROTECTED]
Hawk [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Ok, even if I don't need encryption I t
have a look at eval()
Paul Roberts
[EMAIL PROTECTED]
From: Lauri Vain [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 11:44 AM
Subject: [PHP] multiple replaces...
Hello there,
I have about 30 markers in the text which need to be replaced
yes you can connect via ODBC.
- Original Message -
From: Matt Friedman [EMAIL PROTECTED]
To: 'gendeng' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, January 02, 2002 3:32 AM
Subject: RE: [PHP] connect MS Access
Please do not send html emails to this list.
Send only plain text
I'm on PHP/4.0.2
i'm getting
Fatal error: Call to undefined function: is_uploaded_file()
how can i emulate the function
will also nag my host but...
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
no it's move_uploaded_file and it's 4.03 or greater as well.
i'm using empty() as i just want to see if i uploaded a file or not
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: Paul Roberts [EMAIL PROTECTED]
Cc
yep it all works on my dev server but the host only has 4.02 installed these
functions are php 4.03+
- Original Message -
From: Andrey Hristov [EMAIL PROTECTED]
To: Paul Roberts [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 28, 2001 3:26 PM
Subject: Re: [PHP
can this be set in the php file or htaccess with
sendmail_path =pathtosendmail/sendmail -oi -t -odq;
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Peter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 27, 2001 6:02 PM
Subject: Re
how do I do that on a virtual server? (Linux+apache, I'm just a user not
admin)
the con is that I can't afford the phone bill, I'm on a dial up (56K).
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: jimtronic [EMAIL PROTECTED]
To: Paul Roberts [EMAIL
out)
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
To: bain [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 11, 2001 8:39 AM
Subject: [PHP] Sending out mass mail without having timeout problems ..
--
PHP General Mailing List (http
Hi
I'm trying to pre-fill a form ( the data is passed via sessions or from
another script).
i have some check boxes on the form that i would like checked if the
variable is present.
any ideas
Paul Roberts
[EMAIL PROTECTED]
--
PHP General Mailing List (http
on the odbc
applet.
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not
found and no default driver specified, SQL state IM002 in SQLConnect in
c:\my documents\\links\hs~links.php on line 48
thanks in advance.
Paul Roberts
[EMAIL PROTECTED
me too and as the max execution time is 30 secs and there's no code to
override it.
- Original Message -
From: nick [EMAIL PROTECTED]
To: 'nick' [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, September 02, 2001 1:56 PM
Subject: RE: [PHP] php's future
| Haha I tried its code
I'm using preg_replace and getting the following error
parse error, expecting `T_VARIABLE' or `'$''
anyone know where I can find out abut them, I did a search of the manual but
nothing came up.
Paul Roberts
[EMAIL PROTECTED]
+
--
PHP General Mailing List (http
74 matches
Mail list logo