The php.net documentation for the sleep and usleep functions has me
confused. I'm using shared hosting and I need to email my whole mailing
list while not clogging the shared mail server. What I'm trying to do is
put a pause between each email sent (like 10 seconds) so I can set it up to
send a t
Allowing scripts to run without some kind of time limit may not be prudent,
but settling for the timelimit imposed on online web pages is not reasonable
either. I would recommend you reset the time limit to something reasonable
to perform your email tasks on the computer you have available.
http:
Dear All,
I would like to setup a mailing list for my company.
I have a database containing email address of my clients along with other
details.
How can I send them mails ?
If i write a script containing the mail function and loop the address, I
think that might generate a script timeout error. I
--- Justin French <[EMAIL PROTECTED]> wrote:
> Can someone show me a simple, clean way to apply one function (eg
> stripslashes()) to every element in an array (eg $_POST)?
[snip]
> I've also seen http://www.php.net/array_walk, but couldn't
> determine how/if it suited my needs.
Maybe you can ex
On Mon, 3 Nov 2003 12:29:10 +0900, you wrote:
Without running the code, I can see two immediate problems.
>$subject = "EigoImprov Newsletter for " .member[1];
should be
$subject = "EigoImprov Newsletter for " . $member[1];
Also rewrite
>$mailcontent = "Dear " .$member[0] .",\n".$message ."\nT
Thank you Lief, Hanuska and Jay for your comments and advice.
> (it automagically knows which result it's on)
This was the piece of information that I was missing. I did not
know PHP had any "automagic" in it's handling of arrays.
However, now that I think I know what's going on,
>Can someone show me a simple, clean way to apply one function (eg
>stripslashes()) to every element in an array (eg $_POST)?
>
>I've been doing it with a foreach() loop, but there has to be a better
>way. I've also seen http://www.php.net/array_walk, but couldn't
>determine how/if it suited my ne
Hello,
Below is a boiled-down example of the problem I'm having. I'm trying to
extract rows randomly from MySql, but I keep getting the same one. It
works if I query MySql directly from the command line, so it seems like
a php problem.
Thanks,
Scott
--
PHP General Mailing
try the resize copy function (can't remember the exact name ATM)
Set the destination's first colour to the desired background colour, then
copy/resize the image to it.
Martin
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, 3 November 2003 12:36 PM
To: [EMAIL PROTEC
>>I have tried basically copying and pasting this, and adding a foreach
>>loop. Inside this foreach loop, the array is split apart and I tried
>>using unnset, but I couldn't get it to work, so I deleted the code.
>
>unset ($array[$index])
>
>http://uk.php.net/unset
There are examples in the manua
Hi,
Can someone show me a simple, clean way to apply one function (eg
stripslashes()) to every element in an array (eg $_POST)?
I've been doing it with a foreach() loop, but there has to be a better
way. I've also seen http://www.php.net/array_walk, but couldn't
determine how/if it suited my
Hey guys. I have read a lot of different option to resize images.
What about a script that will resize an image, constrain proportions,
and add a background color to whatever is left.
For example, I have a picture that is 600 (width) by 300 (height) and I
want to constrain proportions, and resi
On Sun, 2 Nov 2003 14:06:31 -0500, you wrote:
>I have an array variable that is set, then put into a session
>variable. All is good so far, but how can I remove a specific variable
>from the array?
unset()
>I have tried basically copying and pasting this, and adding a foreach
>loop. Inside this
Disregard. having newsgroup trouble
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<[EMAIL PROTECTED]>
Adam Plocher:
> Hello, I'm using Apache 2.0 on a Linux box and I'm trying to figure
> out how to run PHP5 (beta2) and PHP4 co-existantly. I have compiled
> both of them with --enable-versioning, but I can't figure out what I
> need to put in my httpd.conf to make it differentia
> "Joachim" == Joachim Krebs <[EMAIL PROTECTED]> writes:
Joachim> Perhaps it is time to break the record.
Joachim> Evan Nemerson wrote:
>> How can you forget the Hurd???
Xinu Is Not Unix
also
MT XINU is UNIX TM backwards
--
no toll on the internet; there are paths of many kind
Hello, I'm using Apache 2.0 on a Linux box and I'm trying to figure out how to run
PHP5 (beta2) and PHP4 co-existantly. I have compiled both of them with
--enable-versioning, but I can't figure out what I need to put in my httpd.conf to
make it differentiate the two versions.
Ideally I would
Steve Turner wrote:
I have a frustrating problem. I have a shopping cart class that creates
session variable arrays to store the product_id and quantity. My development
machine is running windows 2000 with PHP 4.3.3 and my script is working
perfectly on my machine. When I upload to the remote
--- Justin French <[EMAIL PROTECTED]> wrote:
> '
> method='get'>
Unless I'm mistaken (which is possible), this won't work. When the
form method is GET, the query string is constructed using the form
fields. Therefore, the manufacturer will be lost.
Hope that helps.
Chris
=
My Blog
http
php-general Digest 2 Nov 2003 23:04:04 - Issue 2392
Topics (messages 168326 through 168357):
passing variables to subsequent pages
168326 by: Robb Kerr
168327 by: Justin French
168328 by: David Otton
168332 by: Robb Kerr
Dissecting an email address
16
hi !
i'm working in a calendar software, web based with php and a windows client.
i can write appointments to my mysql database with the windows client
independent
from daylight savings. it always shows the appointments at the right time.
if i
create appointments with my php web frontend e.g.
1st
I have a frustrating problem. I have a shopping cart class that creates
session variable arrays to store the product_id and quantity. My development
machine is running windows 2000 with PHP 4.3.3 and my script is working
perfectly on my machine. When I upload to the remote host running FreeBSD
Perhaps it is time to break the record.
Evan Nemerson wrote:
How can you forget the Hurd???
http://www.gnu.org/software/hurd/hurd.html#name:
"According to Thomas Bushnell, BSG, the primary architect of the Hurd:
`Hurd' stands for `Hird of Unix-Replacing Daemons'. And, then, `Hird' stands
for `
How can you forget the Hurd???
http://www.gnu.org/software/hurd/hurd.html#name:
"According to Thomas Bushnell, BSG, the primary architect of the Hurd:
`Hurd' stands for `Hird of Unix-Replacing Daemons'. And, then, `Hird' stands
for `Hurd of Interfaces Representing Depth'. We have here, to my kn
On Sun, 02 Nov 2003 16:33:03 -0500, Lowell Allen wrote:
>> I'm trying to pass an array variable from a search page to the results page
>> via GET. The $NAMES variable contains an array which is obtained from the
>> URL. Per a previous suggestion I've been trying SERIALIZE/UNSERIALIZE but
>> can't
> I'm trying to pass an array variable from a search page to the results page
> via GET. The $NAMES variable contains an array which is obtained from the
> URL. Per a previous suggestion I've been trying SERIALIZE/UNSERIALIZE but
> can't get the variable to pass correctly. To take a look at my test
Hi,
can you give us some lines from your error_log-file?
Usually found in /var/log/apache[2]/.
Thanks,
Simon
> -Original Message-
> From: Teren [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 8:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP and Apace setup
>
>
> Hi,
Hi, I just loaded up all of the packages using the packages from Openbsd
since i was having issues with ports, and then I activated them all and
that worked fine. However, when I put the line to load the php4 module
in to httpd.conf, apache won't start. It finds the module fine, but
that's it.
> -Original Message-
> From: Robb Kerr [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] more proplems with passing arrays
>
>
> I'm trying to pass an array variable from a search page to
> the results page via GET. The $NAMES v
I'm trying to pass an array variable from a search page to the results page
via GET. The $NAMES variable contains an array which is obtained from the
URL. Per a previous suggestion I've been trying SERIALIZE/UNSERIALIZE but
can't get the variable to pass correctly. To take a look at my test files
f
> -Original Message-
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 2:03 PM
> To: Robin Kopetzky
> Cc: PHP General
> Subject: Re: [PHP] JavaScript question
>
>
> Would Refresh header work for you?
>
> header('Refresh: 15; url=slides.php?page=2');
>
I have an array variable that is set, then put into a session
variable. All is good so far, but how can I remove a specific variable
from the array?
I have tried basically copying and pasting this, and adding a foreach
loop. Inside this foreach loop, the array is split apart and I tried
using unns
Hi, I just loaded up all of the packages using the packages from Openbsd since i was
having issues with ports, and then I activated them all and that worked fine. However,
when I put the line to load the php4 module in to httpd.conf, apache won't start. It
finds the module fine, but that's it. W
Would Refresh header work for you?
header('Refresh: 15; url=slides.php?page=2');
If you send this header the browser will navigate to slides.php?page=2
after 15 seconds without user intervension.
Robin Kopetzky wrote:
Good morning.
I know this may be off-topic but I don't know where to turn.
Good morning.
I know this may be off-topic but I don't know where to turn.
I'm building a dynamic web page system with PHP and need to figure out in
JavaScript how to do something. I have the timer figured out in JavaScript
but what I need is a way to automatically submit a request back to the we
On Sunday 02 November 2003 11:50 am, Simon Stiefel wrote:
> Sorry, one correction:
> the 'chop()'-function only removes the whitespaces an the END of the
> string.
>
> But if you want to remove the newline (and only this) at the end of the
> string try this:
>
> $new_string = preg_replace("/\n$/",
http://it.php.net/manual/en/function.fwrite.php
On Sun, 2003-11-02 at 19:25, Yeung Koala wrote:
> Hi,
>
> Silly question of beginner:
> Is is possible to write a script to create and write a text file on server?
> How?
>
>
> P.S. Thanks Simon Stiefel for the "chomp" stuff
>
>
Hi,
Silly question of beginner:
Is is possible to write a script to create and write a text file on server?
How?
P.S. Thanks Simon Stiefel for the "chomp" stuff
_
Hotmail Extra Storage讓你獲得10MB 額外儲存空間,請即申請! http://join.msn.com/?pgmark
Robb Kerr wrote:
I'm trying to pass a variable from a search page to the results page via
GET. The $MANUFACTURERS variable contains an array and is obtained from the
URL. I've tried the following to no avail...
>
[snip]
Then to get the array back on the receiving page:
$manufacturer = unserializ
Sorry, one correction:
the 'chop()'-function only removes the whitespaces an the END of the string.
But if you want to remove the newline (and only this) at the end of the
string try this:
$new_string = preg_replace("/\n$/", "", $old_string);
HTH,
Simon
> -Original Message-
> From:
Thanks a lot
I'd like to remove newline only.
Is there any simple way?
Koala
From: "Simon Stiefel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: [PHP] How to remove new line character?
Date: Sun, 2 Nov 2003 17:25:53 +0100
Hi,
try it with the 'chop()'-function.
Note, that this also re
I'm trying to pass a variable from a search page to the results page via
GET. The $MANUFACTURERS variable contains an array and is obtained from the
URL. I've tried the following to no avail...
>
>
Except for the last two entries, in the URL, the others all passed
"...&manufacturer%5B%5D=
Hi,
try it with the 'chop()'-function.
Note, that this also removes any other whitespace-characters like tabulators
and spaces.
HTH,
Simon
> -Original Message-
> From: Shu Hung Yeung [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 02, 2003 5:14 PM
> To: [EMAIL PROTECTED]
> Subject
Hello,
I am a beginner of PHP.
I know a little about Perl.
In Perl, there is a chomp() function to remove newline (return) character in
a long string.
How about PHP? Can I do the same in PHP
Thankyou
_
Linguaphone : Learning Engl
Hi there,
First, we have to realize that in an email there can be more than one
period, but we only want to remove the top level domain. The solution?
Remove the top level domain to begin with - You may be able to do that
using explode() and the limit argument, but this was easier, in my opinio
Both suggestions were very helpful. But, I've still got a problem. The
$MANUFACTURERS variable contains an array. I'm trying to pass this array
with either the GET or POST method. I've tried the following to no avail...
>
>
'> //as per Justin's suggestion
Except for the last two entries
RTFM
http://www.php.net/explode
-Filip
On Sun, 2003-11-02 at 15:04, Dave Carrera wrote:
> Hi All,
>
> How do you split an email address sent via form post text field.
>
> I.e.: split [EMAIL PROTECTED] into me@ hotmail .com
>
> Itʼs the domain bit I am interested in, not the username or tl
Hi,
We tried to keep PHP 5 as much backwards compatible as possible.
However, due to the object model change and major improvements in the XML
extensions there might be some issues which you'll need to address.
IIRC, mysqladmin runs out of the box with PHP 5 and so do many other
applications.
In a
Hi All,
How do you split an email address sent via form post text field.
I.e.: split [EMAIL PROTECTED] into me@ hotmail .com
It’s the domain bit I am interested in, not the username or tld.
Any help is appreciated.
Thank you in advance
Yours
Dave C
---
Outgoing mail is certified Virus Free.
On Sun, 2 Nov 2003 07:44:29 -0600, you wrote:
>I have a two page search. The first page queries a database and creates a
>list of MANUFACTURERS from which the visitor can select all, one or
>multiple entries. The page is submitted via GET to the second page of the
>search. The second page uses
On Monday, November 3, 2003, at 12:44 AM, Robb Kerr wrote:
I have a two page search. The first page queries a database and
creates a
list of MANUFACTURERS from which the visitor can select all, one or
multiple entries. The page is submitted via GET to the second page of
the
search. The second p
I have a two page search. The first page queries a database and creates a
list of MANUFACTURERS from which the visitor can select all, one or
multiple entries. The page is submitted via GET to the second page of the
search. The second page uses the array of selected MANUFACTURERS to create
a se
php-general Digest 2 Nov 2003 11:00:46 - Issue 2391
Topics (messages 168291 through 168325):
mail function error - win32
168291 by: orlandopozo.icnet.com.ve
168292 by: orlandopozo.icnet.com.ve
168293 by: Julien Wadin
168296 by: Manuel Lemos
Re: recursive acro
This time your script is ok, the connection to the SMTP server is
established, but because the host name of the machine that executes your
php script is not a valid host name in the SMTP server's local network,
the server refuses to accept your request for security reasons (smtp
relaying blocke
G'day Ken
> I tried your suggestion but the system won't let me modify it even with
> su permissions. I'm too tired and frustrated to continue tonight.
> Clearly, the installer must have messed something important up so I'm
> just going to reinstall Panther tomorrow (have to partition my drive
> a
55 matches
Mail list logo