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

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] 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

[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]

[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] 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

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

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 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

[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] 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] 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:

[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 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] 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

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); > >

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

[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

[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

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: 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

[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 (

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] 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

[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

[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] 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] 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

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

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 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 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

[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 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? -- -

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

[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]

[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] 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: 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] 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] 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] 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 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

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

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] 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

[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] 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

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

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] 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

[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

[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] 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] 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

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

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 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] 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] 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] 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] 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] 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] 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] 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

[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

[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] 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] 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: 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] 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 " ";

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

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] 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] 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 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] 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] 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] 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

[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 __

[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] 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

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

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 Renato Lins
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 list of paths. > >On Mon, 4 Mar 2002, Renato Lins wrote: > >>Some one can help me

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

2002-03-04 Thread Kearns, Terry
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". Output buffering _traps_ the o

Re: [PHP] MySQL Query

2002-03-04 Thread Erik Price
On Monday, March 4, 2002, at 02:26 PM, Jason Whitaker wrote: > OK, I need to know is there a place where i can find out how to pull > information(TEXT) from a MySQL DB table and print where i place a > variable > in a php page? > > This tutorial was my introduction to the concept, but you can

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

2002-03-04 Thread Dr. Shim
Nope, all my values are strings. "Markas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; $SQLString = "INSERT INTO Movies (Title, Actors, Review, Reviewer, Short) VALUES ('$Title','$Actors','$Review','$Reviewer','$Short')"; As the manual says: Note: Unlike the two other synta

[PHP] Re: MySQL Query

2002-03-04 Thread Kenneth Chau
Jason Whitaker wrote: > OK, I need to know is there a place where i can find out how to pull > information(TEXT) from a MySQL DB table and print where i place a variable > in a php page? I have NO idea what your question is... did you just want to echo something from your MySQL db table inside

[PHP] MySQL Query

2002-03-04 Thread Jason Whitaker
OK, I need to know is there a place where i can find out how to pull information(TEXT) from a MySQL DB table and print where i place a variable in a php page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session garbage collection & save path

2002-03-04 Thread Kenneth Chau
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 manual at php.net, but not zend.com. I have tested this, and seems like there is no gc occurring if I DID have the save path elsewhere (i.e. where the directory depth is > 2). Is there any

Re: [PHP] Upload a CSV file to MySQL

2002-03-04 Thread Steven Deaton
You may want to take a look at phpmyadmin, as it has this functionality. - Original Message - From: Philip J. Newman <[EMAIL PROTECTED]> To: DL Neil <[EMAIL PROTECTED]>; Ben C. <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 11:15 AM Subject: Re:

Re: [PHP] Upload a CSV file to MySQL

2002-03-04 Thread Philip J. Newman
- Original Message - From: "DL Neil" <[EMAIL PROTECTED]> To: "Ben C." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 8:04 AM Subject: Re: [PHP] Upload a CSV file to MySQL > Ben, > > > Is there an easy way to upload a CSV file into a MySQL table? Is > there als

RE: [PHP] Re: time limit ?

2002-03-04 Thread Darren Gamble
Good day, That won't submit the form, unfortunately. It'll just redirect the user to the page without submitting the contents of the form. If the browser supports it, one can use javascript to submit the form after a certain amount of seconds have elapsed. Darren G

Re: [PHP] Upload a CSV file to MySQL

2002-03-04 Thread DL Neil
Ben, > Is there an easy way to upload a CSV file into a MySQL table? Is there also > a way to export the MySQL file into a CSV file? I would like to make a form > using PHP to do import a CSV file into an existing table. Any advise would > be appreciated. Manual: 6.4.9 LOAD DATA INFILE Synta

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

2002-03-04 Thread Sumesh Nair
I am looking for exactly the same thing. There must be a way to handle this problem from php. Doing it from javascript makes sense only if you have a simple website. Besides I don't use frames, so even with javascript I can't solve the problem. Maybe there's a way to find a browser's unique id!

[PHP] php & GD2

2002-03-04 Thread Duncan
Hi again, i just saw that others seem to have the same problem while trying to compile php with GD2. I saw the link to Rasmus's php & GD2 install guide and tried it that way, but still get the same error as before. In file included from gd.c:36: php_gd.h:69: warning: static declaration for `gd

RE: [PHP] Upload a CSV file to MySQL

2002-03-04 Thread Dan Vande More
I'm not sure if you're talking just PHP, but this is the best database tool I've ever used: http://anse.de/mysqlfront/ /* Key-Features With MySQL-Front you can... create/drop databases create/drop tables edit/add/delete fields edit/insert/delete records edit BLOBs and MEMOs with Bitmap/GIF/J

[PHP] Re: time limit ?

2002-03-04 Thread George Whiffen
ÁC¬P wrote: > How can I set a time limit for a form made by PHP (i.e.the value will auto > transfer after a certain time) > -- > Ác¬P¤u§@«Ç > http://fansing.hk.st/ > ACG¤¬°Ê°Ï°ì(¤j®a¦h¨Ç¨Ó¶K¹Ï§a!) > http://acgzone.hk.st/ HTML forms execute in the client's browser, which does not care at all wh

RE: [PHP] Re-Compiling PHP HELP

2002-03-04 Thread Dan Vande More
Are you just compiling and installing php? Because you have to make clean,make, stop apache, and make install apache as well. No need to configure, your old conf will work just fine. This may not be entirely correct, but it has always worked for me. Dan -Original Message- From: James Tay

  1   2   >