Re: [PHP] Form results sent to file

2001-11-19 Thread Brian Clark
Hi Ben, @ 6:08:20 PM on 11/19/2001, Ben Clumeck wrote: BC> Does anybody have an easy script that send form results to a .txt file in BC> comma separated format. Be careful with commas in any of the fields. You may want to separate the fields with something like | or :: instead.

Re: [PHP] [newbie] passing variables

2001-11-19 Thread Dean Householder
Well for one > echo "\t value='".stripslashes($first)."'>\n"; > echo "\t value='".stripslashes($last)."'>\n"; Both of these fields are called 'first' instead of 'first' and 'last' so the last name is actually overwriting your first name. Secondly, you are not using proper php variables int

Re: [PHP] phptriad / apache on windows question

2001-11-19 Thread Brian Clark
Hi Christian, @ 6:15:59 PM on 11/19/2001, christian calloway wrote: cc> I just downloaded phptriad, which installs apache/php/mysql/perl on a win cc> system. Im not sure on the language, but I want to be able to define virtual cc> directories. Currently everything under /apache/htdocs/ is access

Re: [PHP] configure problem

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 01:11, Chip wrote: > I am setting up a new system for a friend and am getting the following > error when running ./configure - > > /usr/libexec/elf/ld: cannot find -lgd. > error code 1 > > This machine is a default install of FreeBSD4.4, Apache-1.3.22, > MySQL-3.23.44 and PHP-4

RE: [PHP] exporting

2001-11-19 Thread Matthew Loff
I always stick with PHP for web apps, but I am in a similar situation, I have to write a script that generates statistics and item reports from a database... The client wanted them in Excel format... I could have done CSV, but for the sake of aesthetics, I decided to go with a native Excel export

Re: [PHP] IP Address Converted to Computer Name

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 04:08, Ben Clumeck wrote: > I am trying to convert an ip address to a computer name. Then I am > putting it into the mail() script. However, when I do this it come up > blank. I am putting $r_hostname in the mail() script. Can anyone tell > me why its not working? The scri

RE: [PHP] IP Address Converted to Computer Name

2001-11-19 Thread Ben Clumeck
Thanks for your response David. I am new to PHP. Are you saying that the code would look like this: Would I then put the $HOSTNAME into my mail() script. Sorry for the trouble. Ben -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 4:29 P

[PHP] Link Request

2001-11-19 Thread Stone Reuning
We at SEO Advantage have chosen to include your web site in the SEO Advantage Directory. While that was not done contingent upon your linking to our web site, we would really appreciate it if you would link to www.seoadvantage.com. We will be happy to provide you with any information you nee

php-general@lists.php.net

2001-11-19 Thread Fred
I have 17 boolean variables which need to be stored in a MySQL database. I created a SET Column to store each of the boolean values as bits in the column. I should be able to test for the truth of a particular variable by checking if the corresponding bit is set. For example, if the first four

Re: [PHP] IP Address Converted to Computer Name

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 11:38, Ben Clumeck wrote: > Thanks for your response David. I am new to PHP. Are you saying that > the code would look like this: > gethostname for $IPADDR; > if $HOSTNAME = $IPADDR > print "$HOSTNAME" > ?> > Would I then put the $HOSTNAME into my mail() script. Sorry for t

[PHP] PHP4 sessions and Netscape 4.75/Mac

2001-11-19 Thread Dennis Moore
Has anyone run into the following?     I have set up a site using PHP4.0.6 sessions.  Everything runs fine with IE and Netscape on PC and UNIX.  However, I lose the session when using Netscape 4.75 on Mac.    Any ideas or clues?   Thx...    -- PHP General Mailing List (http://www.php.net/)

php-general@lists.php.net

2001-11-19 Thread Fred
OK, it seems as though I was on the right track. I cast the variables as integers and all is well. Thanks to Rasmus and his msg: http://www.phpbuilder.com/mail/php-developer-list/199901/0485.php A question remains: why are variables that are initially set to numbers not cast as integers? Accor

[PHP] Re: PHP4 sessions and Netscape 4.75/Mac

2001-11-19 Thread jimmy elab
> Dennis Moore wrote: > > > Any ideas or clues? > Turn on cookies -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] configure problem

2001-11-19 Thread Chip
On Monday 19 November 2001 15:54, David Robley wrote: > On Tue, 20 Nov 2001 01:11, Chip wrote: > > I am setting up a new system for a friend and am getting the following > > error when running ./configure - > > > > /usr/libexec/elf/ld: cannot find -lgd. > > error code 1 > > > > This machine is a d

[PHP] From static to dynamic

2001-11-19 Thread Steven Katz
I have a site which consists of a few hundred catalog pages. The items in the catalog are pictured 9 to a page with accompanying descriptions. The homepage features an item-of-the-day, as well as the past 3 featured items. The entire site is static and regularly updated manually by me. I don't

php-general@lists.php.net

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 13:12, Fred wrote: > OK, it seems as though I was on the right track. I cast the variables > as integers and all is well. Thanks to Rasmus and his msg: > http://www.phpbuilder.com/mail/php-developer-list/199901/0485.php > > A question remains: why are variables that are initi

[PHP] Re: From static to dynamic

2001-11-19 Thread Fred
To answer your first question, some search engines, such as Google, will crawl URLs that contain GET variables. Others will not. There is a way around this by creating links such as index.php?/Men/Shirts/Blue/XLarge and using the $PATH_INFO variable to parse the URL and spit out the needed vari

[PHP] Strange variable.....

2001-11-19 Thread Gerard Samuel
Hey all. Im debugging a script that was written by someone else, and alot of the variable has 2 '$$' in it. For example a varible is intialised and used as $$string. I haven't been using php for that long, but I haven't seen anything like this. Whats the story with variables with $$ in the

Re: [PHP] configure problem

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 13:39, Chip wrote: > On Monday 19 November 2001 15:54, David Robley wrote: > > On Tue, 20 Nov 2001 01:11, Chip wrote: > > > I am setting up a new system for a friend and am getting the > > > following error when running ./configure - > > > > > > /usr/libexec/elf/ld: cannot find

Re: [PHP] Strange variable.....

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 14:13, Gerard Samuel wrote: > Hey all. Im debugging a script that was written by someone else, and > alot of the variable has 2 '$$' in it. For example a varible is > intialised and used as $$string. I haven't been using php for that > long, but I haven't seen anything like

php-general@lists.php.net

2001-11-19 Thread Fred
> Anything coming via get/post is a string, regardless of what it looks > like :-). > That is the conclusion I have drawn. However, the variables are automatically transformed based on the context in which they are used. Mathmatic operators and functions work flawlessly with numbers passed via G

[PHP] Re: Strange variable.....

2001-11-19 Thread Fred
Look in the Manual under Variable Variables. Fred Gerard Samuel <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hey all. Im debugging a script that was written by someone else, and > alot of the variable has 2 '$$' in it. For example a varible is > intialise

Re: [PHP] Strange variable.....

2001-11-19 Thread Gerard Samuel
That explains it all. Thanks David Robley wrote: > On Tue, 20 Nov 2001 14:13, Gerard Samuel wrote: > >>Hey all. Im debugging a script that was written by someone else, and >>alot of the variable has 2 '$$' in it. For example a varible is >>intialised and used as $$string. I haven't been usi

[PHP] \|/ $PHP_SELF

2001-11-19 Thread Gerry Figueroa Anadon
Does $PHP_SELF always get's the path of the document it resides in even if the document is an include? I'm trying to set one of those breadcrumb path navigation scripts and I don't want to copy the script to every directory, I just want to include it in my header.inc. As a result I only get th

[PHP] Re: \|/ $PHP_SELF

2001-11-19 Thread Fred
Gerry Figueroa Anadon <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does $PHP_SELF always get's the path of the document it resides in even if the document is an include? $PHP_SELF will always give the name and path of the main file, even if the variable is

[PHP] floating point exception after php 4 upgrade on raq 2

2001-11-19 Thread Paul Schreiber
Old config: Apache/1.3.12 (Unix) mod_auth_pam/1.0a PHP/3.0.15 configured New config: Apache/1.3.22 (Unix) mod_auth_pam/1.0a PHP/4.0.6 configured >From /var/log/httpd/error: [Mon Nov 19 19:53:19 2001] [notice] child pid 30261 exit signal Floating point exception (8) [Mon Nov 19 19:53:34 2001] [n

Re: SV: [PHP] fopen "r+" not working - how to add to beginning oftxt file

2001-11-19 Thread Brian Tully
not sure I know how to do this... do you mean to open the file twice? once to read it and put it into a variable and then close the file and open it again, this time for writing? I'm confused. this seems so much harder than it would be with Perl. But I really want to stick with PHP. Can anyone h

Re: SV: [PHP] fopen "r+" not working - how to add to beginning of txt file

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 14:41, Brian Tully wrote: > On 11/19/01 6:45 PM, "Phelps" <[EMAIL PROTECTED]> wrote: > > load the content of the file into an variable first and then add the > > new text part into it. > > > > something like this: > > > > $text = $newtext + $text; > > > > then save it... It sh

Re: SV: [PHP] fopen "r+" not working - how to add to beginning of txt file

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 14:41, Brian Tully wrote: > not sure I know how to do this... > > do you mean to open the file twice? once to read it and put it into a > variable and then close the file and open it again, this time for > writing? > > I'm confused. this seems so much harder than it would be wi

[PHP] MS Exchange

2001-11-19 Thread Benj Arriola
Hello Guys! On the php.ini, if there is no SMTP server and MS Exchange is used, what changes are needed to be done on the php.ini file? thanks, Benj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] MS Exchange

2001-11-19 Thread Kurt Lieber
On Monday 19 November 2001 10:19 pm, Benj Arriola wrote: > On the php.ini, if there is no SMTP server > and MS Exchange is used, what changes are needed > to be done on the php.ini file? MS Exchange has supported SMTP since (at least) version 4.0 and possibly even since the old MS Mail days.

RE: [PHP] From static to dynamic

2001-11-19 Thread Steven Katz
I've been asked by a few to explain further what I'd like to do. I'd like to accomplish the entire 183-page site with 2 pages: the home page and a catalog template. The home page, which features an item-of-the-day from the catalog and past 3 featured items, would choose a random item from the

[PHP] Re: Apache 2.0.28 module

2001-11-19 Thread Sebastian Bergmann
Jobarr wrote: > I need a build of PHP that can be used as a module with Apache 2.0.28 > beta. Please do not massively cross-post to the various php.net mailinglists or newsgroups. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I hel

Re: [PHP] Re: Apache 2.0.28 module

2001-11-19 Thread The Doctor
On Mon, Nov 19, 2001 at 11:34:41AM +0100, Sebastian Bergmann wrote: > Jobarr wrote: > > I need a build of PHP that can be used as a module with Apache 2.0.28 > > beta. > > Please do not massively cross-post to the various php.net mailinglists > or newsgroups. > > -- > Sebastian Bergmann

[PHP] Re: RPM Installation Did Not Install PHP Modules

2001-11-19 Thread Fredrik Wahlberg
Gabriel Richards wrote: > I installed PHP/Apache/MySQL via the Red Hat installation process (7.2), > but Apache isn't processing PHP files, they show up as plain text in the > browser. I checked with the FAQ and related documentation which said to > ensure that the AddModule and LoadModule direct

[PHP] Re: [PHP-DB] PHP/MySQL Question

2001-11-19 Thread RNie
Look at the MySQL manual that came along with it when you downloaded it: manual.html#String_comparison_functions or manual.html#Comparison_Operators May be that helps you. René www.comunica2.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] [newbie] passing variables

2001-11-19 Thread pjc
I just started playing with PHP and MySQL and am building an online phonebook for myself. >From my 'view_all_numbers.php' I have a link that looks something like this: DELETE Here is the code from delete_entry_confirm.php Are you sure you want to delete "; echo "".$first." ".$last.""; echo

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

2001-11-19 Thread Kodrik
you have You have twice "action" and are missing the "method". In your case, I guess it would be "get". I didn't read on, so you might have more errors. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

[PHP] mail charset conversion

2001-11-19 Thread Martín Marqués
I have a small script that recieves mails and does some work with it. What it has to do, it does it great, for now. The problem is that some lines come in encoded (at least thats my thought). For example: Martín Marqués -> =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= Does somebody know which type of

Re: [PHP] query works in mysql, but not from php

2001-11-19 Thread Martín Marqués
On Lun 19 Nov 2001 19:58, Olav Drageset wrote: > Hi > > $sql = "SELECT user FROM persons WHERE user = '$firstName' and domain = > '$domainName' ; "; $result = mysql_query($sql,$connection ) or > die(mysql_error()); > > Calling above lines from php returns: You have an error in SQL syntax > nea

Re: [PHP] mail charset conversion

2001-11-19 Thread Martín Marqués
On Lun 19 Nov 2001 17:45, you wrote: > I have a small script that recieves mails and does some work with it. What > it has to do, it does it great, for now. The problem is that some lines > come in encoded (at least thats my thought). For example: > > Martín Marqués -> =?iso-8859-1?q?Mart=EDn=20Ma

[PHP] Re: [PHP-WIN] Re: Read Session in ASP in PHP

2001-11-19 Thread George Pitcher
> Sorry, I'm a PHP newbie. The only way I know you can pass values to a php > script is the normal way, through the URL, as in: a > href=yourscript.php?var1=value&var2=value... etc. Not strictly true. I am primarily a Lasso developer and I can pass values (and do) using Form, URL and Cookies.

<    1   2