Re: [PHP] Scripts not running on OS X 10.3

2003-11-02 Thread Kim Kohen
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

Re: [PHP] mail() another example - error

2003-11-02 Thread Boyan Nedkov
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 -0000 Issue 2391

2003-11-02 Thread php-general-digest-help
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

[PHP] passing variables to subsequent pages

2003-11-02 Thread Robb Kerr
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

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread Justin French
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

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread David Otton
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

[PHP] Dissecting an email address

2003-11-02 Thread Dave Carrera
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.

Re: [PHP] PHP 5

2003-11-02 Thread Andi Gutmans
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

Re: [PHP] Dissecting an email address

2003-11-02 Thread Filip de Waard
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.

[PHP] Re: passing variables to subsequent pages

2003-11-02 Thread Robb Kerr
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

[PHP] Re: Dissecting an email address

2003-11-02 Thread Joachim Krebs
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

[PHP] How to remove new line character?

2003-11-02 Thread Shu Hung Yeung
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

RE: [PHP] How to remove new line character?

2003-11-02 Thread Simon Stiefel
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:

[PHP] passing an array via GET and a hidden form element

2003-11-02 Thread Robb Kerr
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

RE: [PHP] How to remove new line character?

2003-11-02 Thread Koala Yeung
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

RE: [PHP] How to remove new line character?

2003-11-02 Thread Simon Stiefel
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:

Re: [PHP] passing an array via GET and a hidden form element

2003-11-02 Thread John W. Holmes
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

[PHP] A question about file creation

2003-11-02 Thread Yeung Koala
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

Re: [PHP] A question about file creation

2003-11-02 Thread Ian Firla
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

Re: [PHP] How to remove new line character?

2003-11-02 Thread Gerard Samuel
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$/, ,

[PHP] JavaScript question

2003-11-02 Thread Robin Kopetzky
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

Re: [PHP] JavaScript question

2003-11-02 Thread Marek Kilimajer
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.

[PHP] Problem with apache and php on OpenBSD 3.4

2003-11-02 Thread Teren
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.

[PHP] How to remove a variable from an array

2003-11-02 Thread Jake McHenry
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

RE: [PHP] JavaScript question

2003-11-02 Thread Jake McHenry
-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

[PHP] more proplems with passing arrays

2003-11-02 Thread Robb Kerr
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

RE: [PHP] more proplems with passing arrays

2003-11-02 Thread Jake McHenry
-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

[PHP] PHP and Apace setup

2003-11-02 Thread Teren
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.

RE: [PHP] PHP and Apace setup

2003-11-02 Thread Simon Stiefel
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

Re: [PHP] more proplems with passing arrays

2003-11-02 Thread Lowell Allen
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

Re: [PHP] more proplems with passing arrays

2003-11-02 Thread Robb Kerr
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

Re: [PHP] recursive acronym - PHP

2003-11-02 Thread Evan Nemerson
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

Re: [PHP] recursive acronym - PHP

2003-11-02 Thread Joachim Krebs
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

[PHP] scalar value as array problem

2003-11-02 Thread Steve Turner
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

[PHP] time() daylight savings

2003-11-02 Thread philip lehmann
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 -0000 Issue 2392

2003-11-02 Thread php-general-digest-help
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

Re: [PHP] passing variables to subsequent pages

2003-11-02 Thread Chris Shiflett
--- 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

Re: [PHP] scalar value as array problem

2003-11-02 Thread John W. Holmes
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

[PHP] How to run PHP4 and PHP5 side-by-side

2003-11-02 Thread 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 the two versions. Ideally I would

Re: [PHP] recursive acronym - PHP

2003-11-02 Thread Lee Doolan
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

[PHP] Re: How to run PHP4 and PHP5 side-by-side

2003-11-02 Thread Comex
[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

[PHP] Test.

2003-11-02 Thread S. Cole
Disregard. having newsgroup trouble -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to remove a variable from an array

2003-11-02 Thread David Otton
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

[PHP] Image resize with background.

2003-11-02 Thread Chris
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

[PHP] applying one function to all array elements

2003-11-02 Thread Justin French
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

Re: [PHP] How to remove a variable from an array

2003-11-02 Thread David Otton
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

RE: [PHP] Image resize with background.

2003-11-02 Thread Martin Towell
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

[PHP] Extracting random rows

2003-11-02 Thread Scott
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

Re: [PHP] applying one function to all array elements

2003-11-02 Thread Mike Migurski
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.

RE: [PHP] Endless 'while' loops?

2003-11-02 Thread Dave G
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,

Re: [PHP] Endless 'while' loops?

2003-11-02 Thread David Otton
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

Re: [PHP] applying one function to all array elements

2003-11-02 Thread Chris Shiflett
--- 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

[PHP] Mailing List

2003-11-02 Thread PHPLover
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.

RE: [PHP] Mailing List

2003-11-02 Thread Warren Vail
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.

[PHP] Sleep Function

2003-11-02 Thread Glenn Gasner
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