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
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
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
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
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
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 the
Hi All,
How do you split an email address sent via form post text field.
I.e.: split [EMAIL PROTECTED] into me@ hotmail .com
Its 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.
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
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
Its the domain bit I am interested in, not the username or tld.
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...
input name=manufacturer[] type=hidden multiple id=manufacturer[]
value=?php
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
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
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:
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...
input name=manufacturer[] type=hidden multiple id=manufacturer[]
value=?php $manufacturer ?
input
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 removes
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:
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...
input name=manufacturer[] type=hidden multiple id=manufacturer[]
value=?php
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 Storage10MB http://join.msn.com/?pgmarket=zh-hk
--
PHP
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
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$/, ,
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
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.
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.
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
-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');
If you
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
-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 variable
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.
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, I just
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
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 get the
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
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
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
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
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
--- Justin French [EMAIL PROTECTED] wrote:
form action='nextpage.php?manifacturer=?=$_GET['manufacturer']?'
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
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
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
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 kinds;
whoever
[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 differentiate
Disregard. having newsgroup trouble
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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 manual, but as
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
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
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML
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 needs.
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,
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 .\nThis
--- 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 explain
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.
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.
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
55 matches
Mail list logo