[PHP] Conversion number two?

2001-11-20 Thread Brandon Lamb
Here is the php version $required = array('name','address','phone'); Here is the perl version @required = qw( name address phone ); So is there an easy way in perl for us lazy people so i dont have to use commas and enter every variable name in single quotes? -- PHP General Mailing List (htt

[PHP] ODBC to Access with Autonumber Field

2001-11-20 Thread Greg Sohl
Hi, Does anyone have an example of Inserting a record to a table in an Access database where one of the fields is an Autonumber field, and most importantly, retrieving the value of the newly inserted Autonumber field? I'm looking for the equivilant of mysql_insert_id() for ODBC. Thanks. Greg Soh

RE: [PHP] Re: A tricky one?

2001-11-20 Thread John Monfort
Try This approach: $msg = " I want to order: "; if(!empty($pizza)) { $msg .= $pizza."Pizza"; } if(!empty($chips)) { $msg .= $chips."Chips "; } if(!empth($hamburgers)) { $msg .= $hamburgers." Hamburgers"; } //Note: PHP has a one-line if statement, which slips my mind f

Re: [PHP] Conversion number two?

2001-11-20 Thread Steve Werby
"Brandon Lamb" <[EMAIL PROTECTED]> wrote: > Here is the php version > $required = array('name','address','phone'); > > Here is the perl version > @required = qw( name address phone ); > > > So is there an easy way in perl for us lazy people so i dont have to use > commas and enter every variabl

Re: [PHP] Conversion number two?

2001-11-20 Thread Philip Olson
perhaps you want to do the following: function foo($str) { return explode(' ',$str); } $required = foo('name address phone'); regards, Philip Olson On Tue, 20 Nov 2001, Brandon Lamb wrote: > Here is the php version > $required = array('name','address','phone'); > > Here is the perl ver

RE: [PHP] Conversion number two?

2001-11-20 Thread Johnson, Kirk
> So is there an easy way in perl for us lazy people so i dont > have to use > commas and enter every variable name in single quotes? Not that I know of. Of course, one can't be all that lazy if one has learned perl ;) Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-m

[PHP] A new exchange launches: Yachts & boats for sale or charter, holidays afloat and more....

2001-11-20 Thread The team @ yacht-search.net
If you have any interest in yachting, boats, sailing or holidays afloat... Visit >> www.yacht-search.net << the new international boat & yacht charter & sales system - FREE OF CHARGE FOR ALL USERS... Free advertising or enquires using $1.5 Million USD (£1M) of technology! > CREATING NEW M

[PHP] textarea, carriage returns and formatting

2001-11-20 Thread Chris Aitken
Hi, Something ive been trying to find out but cant seem to get the wording right to find the answers in the archives. What I have is a mysql database, and in that DB I have a field which is just a 'text' field. What I want to be able to do is write whatever text is typed from the webforms textar

Re: [PHP] textarea, carriage returns and formatting

2001-11-20 Thread Jim Lucas
not sure what you're getting at. when you pull the text back out of the DB, it should be formatted the same as when it was put in the DB. the \n's should still be intack are you processing the text before it gets entered into the DB? You should be able to do this: Jim - Original Message

[PHP] Setting title via included file

2001-11-20 Thread Chris Lott
I have a page that includes a file in the middle, but I wish to set the title of the page based on a variable set in the included file-- is this possible? PHP processes the page sequentially, so if I have $foo = Title in the included file, it is too late to use it for the title of the main doc

Re: [PHP] Setting title via included file

2001-11-20 Thread Jim Lucas
try it the other way around. capture the output of the included file before you send/display the title Jim - Original Message - From: "Chris Lott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 3:44 PM Subject: [PHP] Setting title via included file > I hav

[PHP] auto form submit

2001-11-20 Thread wm
hi all, if i pass data through a form (post) to a php script(script must be separate from form) is there a way that this php script can then forward that data to another script without attaching it to the end of the url? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Cookies and Variables

2001-11-20 Thread Mike Eheler
$HTTP_COOKIE_VARS['someWord']; $HTTP_GET_VARS['someWord']; :P Mike Richard S. Crawford wrote: > Consider this code, in page1.php: > > setcookie("someWord","I am a cookie"); > ?> > > ...and this code, in page2.php: > > setcookie("someWord",$someWord); > print ("someWor

Re: [PHP] Re: A tricky one?

2001-11-20 Thread Christian Dechery
switch the isset() with !empty() At 21:51 20/11/01 +0100, Raymond Lilleodegard wrote: >It works after modifying it a little. BUT... :) It lists all the variables >even if they aren't given any value. Is it possible to only get the defined >ones? > >Regards Raymond > > >"Matthew Luchak" <[EMAIL PR

[PHP] encrypt and decrypt functions kaput

2001-11-20 Thread Michael J. Seely
HI Folks, I'm trying to use the encrypt and decrypt functions in PHP3. I get a fatal error "Call to unsupported or undefined function encrypt() ... Is this a configuration issue or I'm I doing something wrong? Thanks -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Michael Seely 408-777-9

[PHP] Address Standardization

2001-11-20 Thread Jeff Lacy
Hello, Does anyone have a good function or ideas about address standardization? I need some form of it in a web-app I am trying to write, but I don't know where to begin. Thanks, Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] auto form submit

2001-11-20 Thread JSheble
When POST data is sent to a page, it's as if somebody typed the text into a textarea and hit a submit button. Even though this is being done programmatically, the POST method will behave the same. SOmebody in their (your)code will have to write something similiar to: $postData = "xVar=" . rawu

RE: [PHP] odbc with access on win2k

2001-11-20 Thread Andrew Hill
Paul, Use a System DSN. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -Original Message- > From: Paul Roberts [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November

[PHP] mail() function

2001-11-20 Thread Ben Clumeck
I am new to PHP. I am trying to specify the email address in the "From" field. Right now it gives me my host name. Can anyone help? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

Re: [PHP] mail() function

2001-11-20 Thread Avdija A . Ahmedhodziæ
@mail( "[EMAIL PROTECTED], "$subject", "$body", "From: $fromemail\nContent-Type: text/plain; charset=\"windows-1250\" "); - Original Message - From: Ben Clumeck <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 21. studeni 2001 01:58 Subject: [PHP] mail() function > I am new to PHP. I

Re: [PHP] mail() function

2001-11-20 Thread Avdija A . Ahmedhodziæ
@mail( "[EMAIL PROTECTED]", "$subject", "$body", "From: $fromemail"); - Original Message - From: Avdija A. Ahmedhodziæ <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 21. studeni 2001 02:06 Subject: Re: [PHP] mail() function > @mail( "[EMAIL PROTECTED], "$subject", "$body", "From: $fr

Re: [PHP] mail() function

2001-11-20 Thread Philip Olson
See: http://www.php.net/manual/en/function.mail.php an example lives there. The key here is that additional headers, such as From: will go in the optional additional_headers parameter. Regards, Philip Olson On Tue, 20 Nov 2001, Ben Clumeck wrote: > I am new to PHP. I am trying to specify

[PHP] Authenticating Users with their Windows Login

2001-11-20 Thread Feroze Md. Arif
Hi, First of all, my apologies if this question has been asked earlier. I am in a hurry and I haven't checked the archives (Actually, I am in the process of doing it but am trying to cover all the bases). I know that PHP has functions which will allow Users to be authenticated off a NIS Server

Re: [PHP] Address Standardization

2001-11-20 Thread Philip Olson
What do you mean, a postal address? If so, a good place to start would be: http://directory.google.com/Top/Reference/Directories/Postal/ Not sure how to do it, perhaps some research through the above will help. If you do come up with something, don't hesitate to let me know :) regards, Phili

Re: [PHP] encrypt and decrypt functions kaput

2001-11-20 Thread David Robley
On Wed, 21 Nov 2001 10:49, Michael J. Seely wrote: > HI Folks, > > I'm trying to use the encrypt and decrypt functions in PHP3. I get a > fatal error "Call to unsupported or undefined function encrypt() ... > >Is this a configuration issue or I'm I doing something wrong? > > Thanks If you ar

[PHP] Re: auto form submit

2001-11-20 Thread Fred
I know of no way to do this automatically with PHP. I think you can pull it off with some javascript. Wm <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hi all, > > if i pass data through a form (post) to a php script(script must be > separate from form) >

RE: [PHP] Re: auto form submit

2001-11-20 Thread Chris Kay
How about storing it in a db or a file and retrieve it from the 2nd php script.. Chris Kay - Tech Support - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 --

RE: [PHP] Re: auto form submit

2001-11-20 Thread Richard S. Crawford
The second script would still need some way of knowing what data to pull from the database. Some sort of unique key could be generated by the first script when the data is inserted into the database, and that key used to pull the data in the second page. Of course, the key would probably have

[PHP] Piping into script...

2001-11-20 Thread Ashley M. Kirchner
If I want to pipe, say an incoming email to a PHP script (assuming I have php compiled as a cgi binary), how do I deal with when it needs to receive the stream of data, how to figure out when there is no more coming before it actually start to parse the information? And how do people dea

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > If I want to pipe, say an incoming email to a PHP script (assuming I > have php compiled as a cgi binary), how do I deal with when it needs to > receive the stream of data, how to figure out when there is no more > coming before it actually sta

Re: [PHP] Piping into script...

2001-11-20 Thread David Robley
On Wed, 21 Nov 2001 13:04, Ashley M. Kirchner wrote: > If I want to pipe, say an incoming email to a PHP script (assuming > I have php compiled as a cgi binary), how do I deal with when it needs > to receive the stream of data, how to figure out when there is no more > coming before it actuall

[PHP] catching parse error.

2001-11-20 Thread Aaron
ok what I want to do if possible is i have file index.php then I include the file x.class now. index.php calls x.class IF x.class has a parse error just return false to index.php? or just return nothing, But dont stop the execution of index.php Is this possible? -- PHP General Maili

Re: [PHP] Piping into script...

2001-11-20 Thread Ashley M. Kirchner
David Robley wrote: > The OS will take care of this by firing up another instance of > your script. All you need to do is be aware of the possibility of > multiple instances doing ?things? at around the same time and make sure > that you don't have say several instances all writing to the same fi

Re: [PHP] Piping into script...

2001-11-20 Thread David Robley
On Wed, 21 Nov 2001 14:52, Ashley M. Kirchner wrote: > David Robley wrote: > > The OS will take care of this by firing up another instance of > > your script. All you need to do is be aware of the possibility of > > multiple instances doing ?things? at around the same time and make > > sure that y

Re: [PHP] Setting title via included file

2001-11-20 Thread Chris
[posted and mailed] Jim Lucas addressed php.general and spake thusly: >> I have a page that includes a file in the middle, but I wish to set >> the title of the page based on a variable set in the included file-- >> is this possible? >> >> Basically, I was doing this for the output buffering:

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"David Robley" <[EMAIL PROTECTED]> wrote: > On Wed, 21 Nov 2001 14:52, Ashley M. Kirchner wrote: > > David Robley wrote: > > > The OS will take care of this by firing up another instance of > > > your script. All you need to do is be aware of the possibility of > > > multiple instances doing ?thin

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
You don't need to use the $has_empty variable, but I thought it would be better to just display the message once. Robin [EMAIL PROTECTED] wrote: > > I am a perl user trying to convert to php > > how would i turn this perl into php? > > use CGI; > > $name = param(name); > $address = param(a

Re: [PHP] Piping into script...

2001-11-20 Thread Ashley M. Kirchner
Steve Werby wrote: > Exactly. It sounds like you're doing INSERTs so unless you're doing an > UPDATE or SELECT that can give unexpected results if another instance of the > script is running at the same time or you have other scripts accessing the > same files/tables that may run at the same tim

Re: [PHP] How do I convert from perl to php?

2001-11-20 Thread Robin Chen
Oops, I didn't mean to post the same code that's been posted. The subject sorter doesn't work correctly on Netscape Messenger. I thought I had finished reading the thread. My apologies, Robin Robin Chen wrote: > > > $required = array('name','address','phone'); > $has_empty = 0; > > foreac

Re: [PHP] Piping into script...

2001-11-20 Thread Steve Werby
"Ashley M. Kirchner" <[EMAIL PROTECTED]> wrote: > Steve Werby wrote: > > > Exactly. It sounds like you're doing INSERTs so unless you're doing an > > UPDATE or SELECT that can give unexpected results if another instance of the > > script is running at the same time or you have other scripts acces

[PHP] Doubt in script to upload files to server

2001-11-20 Thread Vedha Kannan
Hi, I'm new to this group. I have a problem with a php script that I'm creating to upload files to the server. The uploaded files have their owner as "apache" and not me as the owner. Hence I'm not able to delete the files that are uploaded. How do I solve this problem? Thanks,

[PHP] Re: Doubt in script to upload files to server

2001-11-20 Thread Fred
You have two options. If you have root access you can login as root and delete them. If it is something you will be doing on an ongoing basis you can add a cron job as root to chrgp and chown the files in the upload directory every so often. You would then be able to delete them as whatever use

[PHP] Re: catching parse error.

2001-11-20 Thread _lallous
hmm...never tried it but maybe this works: try to include the class via eval() like: @eval("include ('$filetoinclude');"); and use the control operators w/ them? "Aaron" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ok what I want to do if possible is >

[PHP] Date Problem

2001-11-20 Thread MindHunter
Hi, I am reading a date from an input in format 'DD-MM-' ex. 10-11-2001. Now I want to add 3 months to the date. I have tested mktime and strftime etc and no matter what I do I get the year as 1970. (Systemdate works fine). How would I go about adding 3 months to a date in that format? Th

Re: [PHP] PHP & Oracle9i

2001-11-20 Thread Thies C. Arntzen
On Tue, Nov 20, 2001 at 09:20:19PM +0100, Steve Haemelinck wrote: > Is it possible to use Oci-functions with Oracle 9i database ? yes. configure --with-oci8 should do the trick. tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] Piping into script...

2001-11-20 Thread Attila Strauss
hi check this: http://www.linuks.net/robot.phps best regards attila strauss > > If I want to pipe, say an incoming email to a PHP script (assuming I > have php compiled as a cgi binary), how do I deal with when it needs to > receive the stream of data, how to figure out when there is n

[PHP] Re: [PHP-DB] [newbie] passing variables

2001-11-20 Thread Russ Michell
I can see a few bodges: 1). > echo "\n"; should be: echo "\n"; 2). You have two vars named the 'first' but with different values: > echo "\t value='".stripslashes($first)."'>\n"; > echo "\t value='".stripslashes($last)."'>\n"; 3). Careful what you print in your posts, some may find it offen

[PHP] PHP4 & Win2k 'Application Error'

2001-11-20 Thread Jason Reid
I'm running Windows 2000 Advanced server w/ SP2, with IIS and apache 1.3.22. When i run some scripts(PEAR webinstaller.php for example) i get a Application Error stating that php.exe (if trying under IIS) or apache.exe (when trying under apache) have caused a error, saying: ' The instruction at "

<    1   2