Re: [PHP] Re: Difference between $_POST[foo] and $_POST['foo']?

2003-06-17 Thread Tom Woody
t as $var= $_POST['foo']; before??? > The rule of thumb I follow with these and other Associative Arrays is: when setting the variable its $_POST['foo'] when accessing the variable its $_POST[foo] so it your example it would be: $sql = "select * from db where apple = &

[PHP] Setting Return-Path header for mail() on Linux

2003-06-13 Thread Tom Woody
Is it possible to change the Return-Path header in PHP on linux? I have seen all the posts about setting it in the php.ini with the -f switch to sendmail. But I need to set it based on the person logged into the page? Right now the Return-Path is set to a default that gets sent to me (the admini

Re: [PHP] mysql - get actual row

2003-06-10 Thread Tom Woody
On Tue, 2003-06-10 at 17:18, Harry.de wrote: > Hi, > if i insert into a mysql table a row e.g. >mysql_query("INSERT into TEST (testfield) VALUES ('This is a test')"); > and the first field is an auto increment (e.g. NR), > how can i get the value of the auto increment NR i've actually inserted?

Re: [PHP] Resending POST Variables

2003-05-29 Thread Tom Woody
On Wed, 2003-05-28 at 11:38, Shaun wrote: > ok, > > basically this is so I can implement page numbering on my search results, > the user submits the form and I want to be able to send the form results > back to the same page when the user clicks 'next' or 'previous'. > I do the very same thing as

Re: [PHP] What do I do wrong?

2003-03-13 Thread Tom Woody
... first off how are we supposed to help you with the problem if we don't know what is on line 202. Are we supposed to be clairvoyent, or should we divine the answer from tea leaves. Without the code, or at least the code around line 202 you are asking the impossible yes this would make

Re: [PHP] time() question

2003-03-13 Thread Tom Woody
date_format('%Y-%m-%d', field) from table where ...; -- Tom Woody Systems Administrator Don't throw your computer out the window, throw the Windows out of your computer! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions Tutorial [was: Re: [PHP] Another questions about usning session.]

2003-03-12 Thread Tom Woody
I have found this to the best tutorial I have seen yet on sessions...its very straight forward, and took care of a lot of questions that I had. http://www.sitepoint.com/article/319/95 -- Tom Woody Systems Administrator Don't throw your computer out the window, throw the Windows out of

[PHP] HTTP_REFERER security implications?

2003-03-10 Thread Tom Woody
I am working on a simple authentication script, where the user submits a login and password, the credentials are checked and the user is redirected to another script. The new script checks the HTTP_REFERER and if its the original script it continues, otherwise it stops with a message about being u

Re: [PHP] SSH change password!

2003-01-24 Thread Tom Woody
sswd command on that user to > change the password. Or maybe I am wrong, I never done something like > that. > > Thanks for any info! > > -mNTKz > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] Problem with Include

2002-12-24 Thread Tom Woody
of programs, you should be using Apache 1.3 if > you want to use PHP. > > There are a few combinations of versions that work together, but > unless you are willing to put a lot of extra effort and study into > using Apache 2, stick with 1.3 until the PHP developers announce >

Re: [PHP] Escaping '#' Sign

2002-12-11 Thread Tom Woody
Have to be a bit more specific, cause I can't reproduce your problem... Do you have some code examples that show it clearer? name for client is "COMPANY #1" in DB name; echo "This is the name: $name"; ?> Output: This is the name: COMPANY #1 A # sign is just another character in HTML, and all

Re: [PHP] Decrypt Password

2002-11-26 Thread Tom Woody
or.us > > "Life is a gift from God. Wasting it is like destroying a gift you got > from the person you love most." -- http://www.melchior.us -- Tom Woody Systems Administrator NationWide Flood Research, Inc. phone: 214-631-0400 x209 fax: 214-631-0800 Don't throw your compu

[PHP] Automatic file upload...

2002-11-21 Thread Tom Woody
I am trying to put together a script so that I can upload files to a php script, with just a URL and can't seem to get my brain around it. For example, The browser would have a url like: http://example.com/upload/fileupload.php?filename=C:\filename.txt Is there a way to do this and I'm ju

Re: [PHP] catching a robot or spider

2002-11-20 Thread Tom Woody
URL's for the robot. > > regards Wilbert > > > - > Pas de Deux > Van Mierisstraat 25 > 2526 NM Den Haag > tel 070 4450855 > fax 070 4450852 > http://www.pdd.nl > [EMAIL PROTECTED] > - -- Tom Woody Systems

[PHP] Specifying file to send in url...

2002-11-15 Thread Tom Woody
I may be way off base on this, but is it possible to specify a filename on a url as in... The user types in http://server/script.php?filetosend=filename.txt The script.php recieves that file and processes accordingly? Because of the way its specified it would be a GET but I am not sure if this i

Re: [PHP] how to generate ms-word files

2002-11-14 Thread Tom Woody
http://sourceforge.net/projects/php-doc-xls-gen/ On 14 Nov 2002 08:22:00 + BigDog <[EMAIL PROTECTED]> wrote: > You might want to do a search on google and see if someone has written > a class on creating word documents. > > I am almost certain that someone has created on. > > This will save

Re: [PHP] starting recompiled php as a cgi-interpreter

2002-11-11 Thread Tom Woody
I did a search for cgi in the online documentation, and the first item was this: http://www.php.net/manual/en/printwn/install.commandline.php On Mon, 11 Nov 2002 19:10:08 +0100 <[EMAIL PROTECTED]> wrote: > Hi Maxim, > > can you please be so kind to forward me the according link to > the manual

Re: [PHP] How do I check if a checkbox has been checked?

2002-11-01 Thread Tom Woody
processing script to determine whether the > checkbox was checked? > > Thanks, > Don > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Woody Systems Administrator NationWide Flood Resear

Re: [PHP] Plus sign changing to space in html form

2002-10-28 Thread Tom Woody
ndows it works as expected. > > Know someone how could i make the '+' left intact? Please help. > > > echo $_POST['test']; > ?> > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: h

Re: [PHP] How to get linefeed from textfields registered in mysql?

2002-10-28 Thread Tom Woody
-- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Woody Systems Administrator NationWide Flood Research, Inc. phone: 214-631-0400 x209 fax: 214-631-0800 Don't throw your computer out the window, throw the Windo