AX_FILE_SIZE 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 -
F
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
o still 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
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:
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" <
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"
problem on the server
(shared, 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]
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 => 907
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:
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 Y
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]>
try looking at sessions,
if they don't have a login session id send them to the login page otherwise they are
logged in so let them see the page.
works for me
Best Wishes & Happy New Year
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
Fro
another one for you
function removeaccents($string) {
return strtr($string,
"SOZsozY¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ",
"SOZsozYYuAAACDNOOYsaaaconooyy");
}
Best Wishes & Happy New Y
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]>; <
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 PROTEC
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() fu
use html 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: <[E
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
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
S
em to
work that way.
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: "Manue
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&quo
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" <[E
but your best option 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]>; <[EMA
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.
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:2
just use css to define separate styles for each media
e.g.
<!--
// screen style
-->
<!--
// print style
-->
then the print style will be applied when the user clicks print.
Paul Roberts
http://www.paul-roberts.com
[EMAIL PROTECTED]
- Orig
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&quo
EMAIL PROTECTED]", "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 -
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" <[EM
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 SI
t too busy.
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
of mail() is 0.
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 PROT
hes 3 numbers
(\d{4}) =$3 or \\3 matches 4 numbers
which we use to make the replacement
($1)$2-$3
http://za2.php.net/manual/en/function.preg-replace.php
so that's the phone number, I'll leave the cc to you.
Paul Roberts
[EMAIL PROTECTED]
Phone Number:
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
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 trie
>> 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 Robert
t;;
eval("?>$code");
which will echo the outut
or catch it with output buffering
$content_output = "logo.gig";
$code = "";
ob_start();
eval("?>$code");
$evaled_code = ob_get_contents();
ob_end_clean();
I have
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]
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 P
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: Thu
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-ma
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: &
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, Decem
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 p
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 whi
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
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] Win
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
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.
Paul Roberts
[EMAIL PROTECTED]
- Ori
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
where am i going wrong
i used
$mail = preg_replace("/]*?>/i","\n\n$0", $mail,-1);
and
$mail = preg_replace("/]*?>/i","\n\n\\1", $mail,-1);
but i get $0 or \1 inserted, but only on the linux server
not on my win 20
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
want to crash your server with an infinite loop there's plenty of ways to do
it.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: "Jason Soza" <[EMAIL PROTECTED]>
To: "Jason Murray" <[EMAIL PROTECTED]>; <[EMAIL PROT
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:
>
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: &
. 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: [
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: <[EMA
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, 200
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.
>
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 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
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]
- Ori
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,
' '--with-mysql'
'--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 Robe
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: R
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
";
while ($file_name = readdir($dir)) {
if (($file_name != ".") && ($file_name !="..")) {
$file_list .= "$file_name";
}
}
$file_list .
when i enter sZZsçe in to a form it's changed to sŹZşçę 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://www.php.net/unsub.php
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 Ge
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]>; "ph
er and file dsn 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
[
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
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 Gene
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 P
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 G
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 i
76 matches
Mail list logo