RE: [PHP] Active Directory

2002-03-04 Thread Kearns, Terry
Active Directory has an LDAP interface (from what I hear). Anyway, I use the LDAP interface with our M$ Exchange server here at work to make a phonebook application. As it happens, the LDAP service is listening for requests by default (so you shouldn't have to set it up). The annoying thing is t

Re: [PHP] ploblem with safe_mode_include_dir

2002-03-04 Thread Rasmus Lerdorf
There is no such feature. On Mon, 4 Mar 2002, Renato Lins wrote: > Sorry, I may not haven been clear. > > What should I do to include from a safe area (/myuser/safe) when I have > open_basedir set to other path (/myuser/public_html) ? > > Rasmus Lerdorf wrote: > > >open_basedir doesn't take a li

[PHP] file upload problem (files > 7.5mb)

2002-03-04 Thread stefan
i wrote a php uploadscript and it works fine till the file is not larger then 7.5mb. is set the max upload file size in the upladfrom as well as in php.ini to 100mb. but it still doesn't work! system is linux red hat and php 4.0.6 (with mysql) is there anyone who had the samestefa problem and know

[PHP] Re: session garbage collection & save path

2002-03-04 Thread Kenneth Chau
STOOPID me >.< !! I forgot to chmod the save path. That's why it didn't work! bah! Let this be a lesson for all - chmod everything correctly :) Best regards! -Ken Kenneth Chau wrote: > So, it says in the manual that gc doesn't occur if the save path depth is > more than 2. This is true in the m

[PHP] permissions

2002-03-04 Thread John Gurley
Can someone pleas tell me if there is something funny when it comes to unix permissions and PHP. When php creates a file in unix the owner is nobody...does this raise any issues, and if it does could someone please tell me a web site where I could read more about this. Thanks alot. John __

RE: [PHP] MySQL Query

2002-03-04 Thread Matt Schroebel
> This tutorial was my introduction to the concept, but you can > find this > information in a hundred other places: > > http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html I'd recommend that tutorial only as a guideline for using mySQL and php. Don't try to use the

RE: [PHP] permissions

2002-03-04 Thread Cal Evans
Apache, and therefore PHP are running under the nobody account on your machine therefore files are created by the nobody user. You can read up on permissions by using man chmod, man chown, man chgrp. Check www.apache.org's excellent documentation for more info on how Apache interacts with the OS

Re: [PHP] A Small Bug Giving Me A Big Headache

2002-03-04 Thread Harry Yu
Does any of your values has an apostrophe in them? If there is, you will get a syntax error. Hope this helps, Harry __ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com -- PHP General Mailing List (http://www.ph

Re: [PHP] MySQL Query

2002-03-04 Thread Erik Price
On Monday, March 4, 2002, at 03:29 PM, Matt Schroebel wrote: > I'd recommend that tutorial only as a guideline for using mySQL and > php. Don't try to use the obfuscated logic in the final example as a > good way to code an add/change/delete page. It's much easier if there > are radio butt

Re: [PHP] How to run a script leaving screen output of previous script

2002-03-04 Thread hugh danaher
Alex, If your link.php page has zero output to the screen, then you can do your database action and return to your main page by using a header command. header("location: mypage.php"); On your link.php code, there should be no lines of code nor blank lines before the To: <[EMAIL PROTECTED]> Sent

RE: [PHP] MySQL Query

2002-03-04 Thread Matt Schroebel
> I don't really remember the tutorial very well. I thought it > did a fine job of explaining some of the basics... I spent a few hours > with it and felt pretty good. However, I agree that it's not a good > intro to PHP's basic features. I stumbled on php a few years ago, and that was my

Re: [PHP] A Small Bug Giving Me A Big Headache

2002-03-04 Thread Dr. Shim
Matt Schroebel suggested I echo "$SQLString"; The echo statement returned INSERT INTO Movies (Title, Actors, Review, Reviewer, Short) VALUES (, , , , ,) So, clearly, the error lies in the form that passes the values to this script. Thanks Matt, we're getting closer. "Dr. Shim" <[EMAIL PROTE

Re: [PHP] A Small Bug Giving Me A Big Headache

2002-03-04 Thread Dr. Shim
OK. Is "Short" a keyword? The "Short" part in "INERT INTO Movies (Title, Actors, Review, Reviewer, Short)" is giving me the "Syntax Error" message. I will rename my tables with a "mv" suffix. Lets see if that solves the problem. "Dr. Shim" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP] Re: file upload problem (files > 7.5mb)

2002-03-04 Thread Joe Van Meer
Hi there:) Are you using the hidden form field with the max file limit set? Cheers, Joe :) Stefan <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > i wrote a php uploadscript and it works fine till the file is not larger > then 7.5mb. > is set the max upload file size in the uplad

[PHP] Re: Using php as a backend bridge between smtp and mysql

2002-03-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > I need to have php called from sendmail. I have set up an address to be > aliased to "|/usr/local/bin/proc-mail" but I get an error saying "service > unavailable". All permissions correct. See php code below. This is just a > test

[PHP] Re: Multiple browser instances - is it possible to determine which browser?

2002-03-04 Thread George Whiffen
Neil Kimber wrote: > We have an application framework that tidies up application session > variables as you traverse from page to page. It works really nicely - until > a user opens up 2 instances of a browser. Our code cannot distinguish > between different browser instances, so browser instan

[PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread Erik Price
PHP's mktime() function uses a timestamp that is the number of seconds since the Unix epoch. MySQL uses the MMDDhhmmss format for its TIMESTAMP column type. I'm not complaining that they're not the same, but curious as to which I should use for storing timestamps -- does it matter? PHP h

[PHP] Form element names as array

2002-03-04 Thread Chris Boget
I know you can set up some form elements as array names so that when the form is submitted, you can access the values of those form elements, you can iterate through the array. So you can set up a bunch of form elements with the name form_elements[] and then when the form is submitted, you can

RE: [PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread Alastair Battrick
Just make sure that whichever way you choose, you always use the same style, so things don't get messy. Personally, I always use INT(11) MySQL columns and store the unix timestamp and this makes things easy for me. The only exception is when storing dates that are before 1970, but I very rarely h

RE: [PHP] Is it correct having number of forms in the same html page?

2002-03-04 Thread Martin Towell
if that's what's required, then it's okay -Original Message- From: Balaji Ankem [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 11:55 PM To: Php-General Subject: [PHP] Is it correct having number of forms in the same html page?

RE: [PHP] Form element names as array

2002-03-04 Thread Martin Towell
with checkboxes, the value of the checkbox is sent to the serveronly if it's checked - if it's not chesked, then it's value does go to the server HTH Martin -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 9:13 AM To: PHP General Subject: [PHP

Re: [PHP] permissions

2002-03-04 Thread andy thomas
On Mon, 4 Mar 2002, John Gurley wrote: > Can someone pleas tell me if there is something funny when it comes to unix > permissions and PHP. When php creates a file in unix the owner is > nobody...does this raise any issues, and if it does could someone please > tell me a web site where I could

Re: [PHP] permissions

2002-03-04 Thread Jim Jagielski
andy thomas wrote: > > PHP will always run as the same user as Apache runs as. > true in Apache 1.3 and 2.0's prefork and worker mode. Not so in perchild (once it starts working :) ) -- === Jim Jagielski [|] [EMAI

Re: [PHP] MySQL Query

2002-03-04 Thread George Whiffen
Erik Price wrote: > I haven't seen yet a tutorial that teaches coding from the perspective > of using register_globals off, which I think is pretty important > (personal opinion). It's not that hard to pick up, though, once you've > gotten started. Still, I think it makes alot more sense to

Re: [PHP] how to: variable = php parsed file include

2002-03-04 Thread George Whiffen
Terry Kearns wrote: > I'm not sure I understand you 100% but it sounds like you want to get the > static HTML results of your dynamic PHP script and and do something with it. > Happily, PHP is one of the few languages that can do this with ease :-) > > The feature you want is "output buffering"

RE: [PHP] Form element names as array

2002-03-04 Thread Kevin Stone
One suggestion may be to use two radio buttons in place of one check box so the "true" and "false" values are sent regardless of which is chosen. -Kevin -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 3:28 PM To: 'Chris Boget'; PHP General S

Re: [PHP] pages will not refresh publically

2002-03-04 Thread George Whiffen
I had this kind of old/new page problem because of proxy cacheing. The failsafe is to send out the full set of don't cache headers e.g. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-cache,must-revalidate"

Re: [PHP] Form element names as array

2002-03-04 Thread Matt
> with checkboxes, the value of the checkbox is sent to the serveronly if it's > checked - if it's not chesked, then it's value does go to the server And, because of that, checkBox[0] is the first box *checked*, not the first in the html. -- PHP General Mailing List (http://www.php.net/) To un

[PHP] ClibPDF

2002-03-04 Thread Don
Does any one know how I use ClibPDF with PHP? I assume I have to recompile PHP with a switch but I can't find anyting in the docs. Thanks, Don

[PHP] session_destroy won't work, PHP 4.0.3pl Win95

2002-03-04 Thread Ken
I am able to create a session. A cookie is set in the browser. The variables I registered are in the session. I can access it. But I can't do anything that would modify or destroy the session. Example: If I have a script: PHP gives me this error: "Warning: Session object destruction faile

[PHP] Does anyone follow?

2002-03-04 Thread jtjohnston
Does anyone follow what I'm trying to do? I have a list of authors I explode from a field called AUS. I sort them sort($authors); The layout is agreeable. What I would like now to do is change: array_push($authors,$singleauthor); for array_push($authors,$singleauthor,$mydata->id); But

[PHP] 4.1.2 binary for Windows?

2002-03-04 Thread Joshua Hoover
I went to get the PHP 4.1.2 binary for Windows in order to address the security issues that were most recently announced. Unfortunately, I don't believe php.net or zend.com has PHP 4.1.2 binaries for Windows available for download, is this correct? Can someone point me to a place to download 4.1

RE: [PHP] Does anyone follow?

2002-03-04 Thread Martin Towell
I think the easiest way would be to use two arrays, one for counting, the other for displaying -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 10:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Does anyone follow? Does anyone follow what I'm tryin

Re: [PHP] Does anyone follow?

2002-03-04 Thread jtjohnston
Can you show me how :) ? I'm in over my head. I get working with arrays, but need more practice, examples etc. to learn how to code from. How would two arays work? John > Does anyone follow what I'm trying to do? > > I have a list of authors I explode from a field called AUS. I sort them > sort(

Re: [PHP] Re: Using php as a backend bridge between smtp and mysql

2002-03-04 Thread Ken Tossell
I got the sendmail part to work, but how do you process a pipe? I just need the variable name of yyy in "echo yyy | proc-mail.php" On 3/4/02 5:05 PM, "David Robley" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... >> Hi, >> I need to have php called from se

[PHP] Odd problem using sendmail - possibly to do with set_time_limit?

2002-03-04 Thread Alexis Birkill
Hi, I'm trying to track down an odd problem in a script I'm writing, the purpose of which is below: The script takes data of a subject and a body for an e-mail from an HTML form, and sends this out to a list of recipients stored in a datafile parsed by the PHP. The size of the e-mails can be

[PHP] Does function ImageTTFText work with php 4.1.2 and freetype 2.0.5?

2002-03-04 Thread Ziying Sherwin
We installed php 4.1.2 with freetype 2.0.5 library support on our Solaris 2.8 machine using gcc 2.95.2. However, the php function ImageTTFText() stopped to work properly with the new installation. We used the following sample code from php web site for testing: TTF result "; echo " ";

[PHP] PHP exploits

2002-03-04 Thread Michael P. Carel
Hi to all, I've been seing some exploits issue in the list but i have'nt read yet what it is. Could any one tell me what this exploits are or refer me to a page were i can read all about it, im using php 4.0.5. Regards, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] PHP and SQL help

2002-03-04 Thread Yuan Lu
I am new to PHP and MySQL, and appreciate your help greatly. I create a simple one table database to list the seminar list. The fields are name of the speaker and the title along with other information. I used phpMyAdmin-2.2.1 to input the data and see that all the fields , including the fields t

Re: [PHP] mktime() into TIMESTAMP ?

2002-03-04 Thread DL Neil
Erik, > PHP's mktime() function uses a timestamp that is the number of seconds > since the Unix epoch. MySQL uses the MMDDhhmmss format for its > TIMESTAMP column type. > > I'm not complaining that they're not the same, but curious as to which I > should use for storing timestamps -- does it

[PHP] Parsing out attachments in mail.

2002-03-04 Thread Seth Northrop
Does anyone know the best method for quickly extracting the various parts of an email message read from /dev/stdin, say into an array? Basic functionality is to strip out everything (including headers) except for plain/text data, but, ultimately I may want to work with binary and/or html attachm

[PHP] Reading unusual stdin

2002-03-04 Thread Ken Tossell
How would you read a multi-line stdin in php? The scripts I see all break after one line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parsing Content

2002-03-04 Thread Jonathan Duncan
I want to make a web site that displays news headlines from my favorite news sites. So the theory is that I fopen their web page, fread the contents of the page, look for the sections that have the news headlines (with regex I assume) and their href link information, paste that into an include fi

[PHP] live Counter

2002-03-04 Thread olev rumm
Hello How can I monitor how many visitors are currently on line, with out refreshing the frame - like a live monitor. Olev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Parsing Content

2002-03-04 Thread Philip Hallstrom
You're best bet might be to see if your favorite sites have RDF/RSS files that you can use... See here for more info... http://www.devshed.com/Server_Side/PHP/PHPRDF/page1.html On Mon, 4 Mar 2002, Jonathan Duncan wrote: > I want to make a web site that displays news headlines from my favorite

[PHP] Re: Parsing out attachments in mail.

2002-03-04 Thread Philip Hallstrom
http://www.phpguru.org/pear/contents.html and look at the mimeDecode.php script. Or browse through the PEAR files that come with PHP... Or, if your PHP is compiled with imap support check out some of the imap functions. -philip On Mon, 4 Mar 2002, Seth Northrop wrote: > > Does anyone know th

[PHP] Re: Reading unusual stdin

2002-03-04 Thread Philip Hallstrom
(not tested) $fd = fopen("php://stdin", "r"); while( !feof($fd) ) { $line = fgets($fd, 8192); } fclose($fd); On Mon, 4 Mar 2002, Ken Tossell wrote: > How would you read a multi-line stdin in php? The scripts I see all break > after one line. > > > > -- > PHP General Mailin

[PHP] form variables

2002-03-04 Thread Craig Westerman
The above form passes $quote to the page quotestest.php How can I also pass the $quote to the URL so that the page with variable can be bookmarked? Do I have to modify both pages or just the input form? Thanks Craig ><> [EMAIL PROTECTED]

Re: [PHP] live Counter

2002-03-04 Thread Greg Donald
On Mon, 4 Mar 2002, olev rumm wrote: >Hello >How can I monitor how many visitors are currently on line, with out >refreshing the frame - like a live monitor. >Olev PHP is a server side scripting language, once it leaves the server it is static text, usually html and other stuff. To have somethin

Re: [PHP] form variables

2002-03-04 Thread Greg Donald
On Mon, 4 Mar 2002, Craig Westerman wrote: > > > > > > > > >The above form passes $quote to the page quotestest.php >How can I also pass the $quote to the URL so that the page with variable can >be bookmarked? > >Do I have to modify both pages or just the input form? -- -

[PHP] PHP on Novell Netware 6?

2002-03-04 Thread Miles Thompson
Has anyone installed PHP for Apache running on a Novell Netware server(module or CGI)? I searched on Google and got the general impression that it has not been done and there is not much demand for it. It looks like the best solution in this situation will probably be a Linux box outside the N

RE: [PHP] form variables

2002-03-04 Thread Craig Westerman
Thanks Donald, I tried that before and this is URL returnedquotestest.php?quote= Craig ><> [EMAIL PROTECTED] -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 7:17 PM To: Craig Westerman Cc: php-general-list Subject: Re: [PHP] form variabl

RE: [PHP] form variables

2002-03-04 Thread Dan Vande More
Do you mean to have the extra '=' in there? Should it be: instead of ? -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 6:27 PM To: php-general-list; Greg Donald Subject: RE: [PHP] form variables Thanks Donald, I tried that before and t

Re: [PHP] form variables

2002-03-04 Thread Tom Rogers
hi Use This will work as long as the form is not too big Tom At 11:14 AM 5/03/2002, Craig Westerman wrote: > > > > > > > > >The above form passes $quote to the page quotestest.php >How can I also pass the $quote to the URL so that the page with variable can >be bookmarked? > >Do I have to

RE: [PHP] form variables

2002-03-04 Thread Martin Towell
change "post" to "get" -Original Message- From: Dan Vande More [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:48 PM To: php-general-list Subject: RE: [PHP] form variables Do you mean to have the extra '=' in there? Should it be: instead of ? -Original Message- Fr

[PHP] Can I authenicate user with the accounts in passwd and shadow??

2002-03-04 Thread Zenith
I know that, I can use HTTP, or just normal HTML to prompt for user id and password. And check against the plain text, encrypted text or Database for the user account. But I wonder if I can check the user account against with the /etc/passwd, i.e. use the system accounts. For example, in the sys

[PHP] Is there any existing project doing this??

2002-03-04 Thread Zenith
Hello everybody. I have try to find out a existing solution for my needs, by fails. Hence I post this message. Most of the times, I surf the net and got a lot of useful materials. Right, I think you should have same experience!! However, I found that I have gather to much of things and I can't o

[PHP] Re: .htaccess settings

2002-03-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > Under PHP3 I was able to do the following within an .htaccess file: > > php3_magic_quotes_runtime off > php3_magic_quotes_gpc on > > How do I achieve the same thing under PHP4? > > -- > H | "Life is the art of drawing withou

[PHP] Re: Question about fopen()

2002-03-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi, > > Does fopen() work similar to open in CGI ? ?? CGI ?? Some new language? > If the file doesn't exist will > it create it? Depends on the parameters you feed to fopen for 'mode'; w, w+, a and a+ will attempt to create the fil

RE: [PHP] form variables

2002-03-04 Thread Craig Westerman
OK, changing from post to get gets me what I'm after. Thanks guys. Something odd though. If I type in RHAT and hit enter, I get this URL which is what I want. quotestest.php?quote=RHAT If I type in RHAT and click submit button, I get this URL which I don't like. quotestest.php?quote=RHAT&submitq

RE: [PHP] form variables

2002-03-04 Thread Martin Towell
remove the "name" from the submit so it's just: -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:52 PM To: php-general-list; Tom Rogers Subject: RE: [PHP] form variables OK, changing from post to get gets me what I'm after. Thanks guys

Re: [PHP] Does function ImageTTFText work with php 4.1.2 and freetype 2.0.5?

2002-03-04 Thread Tom Rogers
Hi The following worked for me with gd gd-2.0.1 php-4.1.2 freetype-2.0.5 (putting html in the jpeg output didn't work for me :) for other people having trouble getting this to work here are the various settings that worked for me on linux: gd-2.0.1 Makefile... CFLAGS=-g -DHAVE_LIBPNG -DHAVE

[PHP] storing tables into memory (that won't deconstruct after every page)

2002-03-04 Thread Jon Feldhammer
I have a rather large hash table (consisting of about 1000 different key/value combinations) that I want to use on every web page. This table will rarely be updated, but I will need to update it time to time. How do I do this *efficient* in php? I assume include "table.php" won't stick it (

[PHP] RE: Hardware ?

2002-03-04 Thread Feroze Md. Arif
Hi, This is not an answer to Patrick's question but a question similar to it. I have been asked to propose the hardware for a PHP / MySQL Website. The site will be used to store and retrieve question papers for school students (a question bank). The questions will be stored in the MySQL databa

Re: [PHP] PHP and SQL help

2002-03-04 Thread Bogdan Stancescu
Take a look at the source HTML in your browser - you may be getting some "<" for example which would do that. I really can't tell what it is for sure, but looking at the HTML source is generally a good idea... Bogdan Yuan Lu wrote: >I am new to PHP and MySQL, and appreciate your help greatly

[PHP] Re: ClibPDF

2002-03-04 Thread Justin Garrett
http://www.php.net/manual/en/install.configure.php --with-cpdflib[=DIR] Include cpdflib support (requires cpdflib >= 2). DIR is the cpdfllib install directory, defaults to /usr. Justin Garrett "Don" <[EMAIL PROTECTED]> wrote in message news:000c01c1c3d5$03b92440$[EMAIL PROTECTED].; Does any o

[PHP] FORM RELATED QUESTION - I

2002-03-04 Thread karthikeyan
Hi Everybody, In my somename.cgi file there are few hidden fields like this with the tag: Now in my php file (somename.php) i somehow need to get that hidden name and value and put it inside my php form like this : Note : I cannot change

Re: [PHP] form variables

2002-03-04 Thread Jason Wong
On Tuesday 05 March 2002 10:52, Craig Westerman wrote: > OK, changing from post to get gets me what I'm after. Thanks guys. > Something odd though. > > If I type in RHAT and hit enter, I get this URL which is what I want. > quotestest.php?quote=RHAT > > If I type in RHAT and click submit button, I

Re: [PHP] FORM RELATED QUESTION - I

2002-03-04 Thread Jason Wong
On Tuesday 05 March 2002 10:39, karthikeyan wrote: > how do i accomplish the same in php. > > I have one solution using GET method but I would really like to have it > in POST because I am passing lots of values to this php file. > > == > $ar=explode('&',$QUERY_STRING); > >

[PHP] Re: Can I authenicate user with the accounts in passwd and shadow??

2002-03-04 Thread Paul A. Procacci
It's easiest to do this using apache, and not php. It's called mod_auth_pwcheck. You can find information from http://www.chel.com.ru/~anton/projects/mod_auth_pwcheck/.; Hope this helps. Paul Zenith wrote: >I know that, I can use HTTP, or just normal HTML to prompt for user id >and passwor

[PHP] PHP and mySQL

2002-03-04 Thread Max Mouse
I have a little problem when trying to count the number of results returned in a mysql query. I was using mysql_num_rows() to do it with no problems, but this isn't as quick as using mySQL's COUNT(*), or so I have been told so I swtiched. Here's a snipit of the code... $sqlinfo = "SELECT username

[PHP] Ifrst

2002-03-04 Thread jtjohnston
Is this over kill? Is there a "better" way? I have an array. I want to display all occurences of strings that start with "a" or "A". http://www.php.net/manual/en/function.substr.php $rest = substr($mystring, 0, 1); // returns "a" ? -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] php and form mails

2002-03-04 Thread [EMAIL PROTECTED]
I have this simple formmail written out in PHP, and it checks for required fields before sending out the email. If there is an empty required field, it shows the form again, but with the fields filled out (if any). A coding example for a filled-out input field: or even as a pulldown menu:

RE: [PHP] php and form mails

2002-03-04 Thread Martin Towell
value="male">male value="female">female -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 4:21 PM To: [EMAIL PROTECTED] Subject: [PHP] php and form mails I have this simple formmail written out in PHP, and it checks for required fields

[PHP] case insenstive

2002-03-04 Thread jtjohnston
I need to make this case insensitive. This seems like over kill? if((substr($author, 0, 1) == "a") or (substr($author, 0, 1) == "a")) { } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] case insenstive

2002-03-04 Thread Jason Murray
> I need to make this case insensitive. This seems like over kill? > > if((substr($author, 0, 1) == "a") or (substr($author, 0, 1) == "a")) > { > } if((strtolower(substr($author, 0, 1)) == "a") { } :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

RE: [PHP] case insenstive

2002-03-04 Thread Niklas Lampén
if (eregi("^a", $author)) { print "blah!"; } Niklas -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: 5. maaliskuuta 2002 8:08 To: [EMAIL PROTECTED] Subject: [PHP] case insenstive I need to make this case insensitive. This seems like over kill? if((substr

Re: [PHP] case insenstive

2002-03-04 Thread Kevin Stone
Use strtolower() or strtoupper() to change the case of a string. And yes doing the same thing twice in the same statement is overkill! :) if((substr(strtolower($author), 0, 1) == "a") || (substr(strtolower($author), 0, 1) == "a")){} - Original Message - From: "jtjohnston" <[EMAIL PROTEC

[PHP] Re: php and form mails

2002-03-04 Thread mojo jojo
Hi Try it like this name="form[gender]" value="male">male name="form[gender]" value="female">female Cheers Mojo [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > I have this simple formmail written out in PHP, and it checks for required > fields before sendin

[PHP] sort()

2002-03-04 Thread jtjohnston
Thanks! Has this ever been improved? It sorts but case insensitively. Is this over kill :) usort($authors, create_function('$a,$b','return strcasecmp($a,$b);')); D'Alpuget, Blanche d'Alpuget, Blanche da Silva e Orta, Teresa Margarida Dabydeen, Cyril de Campos, Haroldo De Certeau, Michel de Certe

[PHP] data into an array

2002-03-04 Thread Craig Westerman
I'm retrieving data from a service. The data is in the following format. RHAT 6.82 3/4/2002 3:59pm 0.32 6.59 6.99 6.53 932400 How can I insert the data values into an array? Thanks Craig ><> [EMAIL PROTECTED]

RE: [PHP] Re: Can I authenicate user with the accounts in passwd and shadow??

2002-03-04 Thread Sebastien DIDIER
I suggest mod_auth_pam if you're running PAM on your Unix box, You could find information about it from http://pam.sourceforge.net/mod_auth_pam/.; After HTTP authentification (BASIC), the $PHP_AUTH_USER must be set. I don't know if a PAM module exist for PHP . Regards, Sebastien > -Messag

RE: [PHP] data into an array

2002-03-04 Thread Rudolf Visagie
Hi Craig You need to use the XML DOM functions (see the PHP manual) and it should be a well formed XML document e.g. RHAT 6.82 3/4/2002 3:59pm 0.32 6.59 6.99 6.53 932400 Rudolf Visagie Principal Software Developer Digital Healthcare Solutions Tel: 011 2655478 Cel

Re: [PHP] case insenstive

2002-03-04 Thread Frank
if ($author[0]=='a' || $author[0]=='A') { ... } or (much slower) if (strtolower($author[0])=='a') { ... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2