Re: [PHP] disabled cookies and sessions

2002-06-07 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Chris Sechiatano declared > You have to code the PHPSESSID into your URL if your browser has cookies > disabled or else it won't work. No. As I said, i have php compiled with --enable-trans-sid - -- Nick Wilson // www.exploding

Re: [PHP] restricting files

2002-06-07 Thread Justin French
When you say serve the files through a script, I assume you mean "download.php" force-feeds an MP3 (or whatever) to the browser. Is this correct? I read people have lots of problems with this... Justin on 08/06/02 4:08 PM, Jason Wong ([EMAIL PROTECTED]) wrote: > On Saturday 08 June 2002 13

Re: [PHP] Sessions and Forms

2002-06-07 Thread Greg Macek
Ok, I'll have to try that on my next project. Unfortunately these forms were written by another developer and there too many variables to rename to make an array and not enough time on the project :-) But for next time. I've seen many examples of assigning values to session variables w/o forms

Re: [PHP] Sessions and Forms

2002-06-07 Thread Jason Wong
On Saturday 08 June 2002 14:39, Greg Macek wrote: > What is the best/recommended method of saving form data into session > variables? Currently only have to deal with regular text input, > checkboxes and radio buttons (no multiple selects for now). Any sample > code someone could throw up on the l

[PHP] Sessions and Forms

2002-06-07 Thread Greg Macek
What is the best/recommended method of saving form data into session variables? Currently only have to deal with regular text input, checkboxes and radio buttons (no multiple selects for now). Any sample code someone could throw up on the list? I've only recently begun working with sessions, b

Re: [PHP] Re: Search a flat file.

2002-06-07 Thread Miguel Cruz
If the file is of a reasonable size (not hundreds of kilobytes), then you can just slurp it all into an array and foreach through it: $matched = 0; $myfile = file('/usr/home/crud/myfile'); foreach ($myfile as $line) { $split_line = explode(':', $line); if ($split_line[1] == 'bob'

Re: [PHP] restricting files

2002-06-07 Thread Jason Wong
On Saturday 08 June 2002 13:46, Justin French wrote: > MP3 and quick time -- otherwise the solution would be easy :) > > Thanks, > > Justin > > on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote: > > On Saturday 08 June 2002 09:19, Justin French wrote: > >> Hi, > >> > >> I wish to restrict

Re: [PHP] restricting files

2002-06-07 Thread Justin French
MP3 and quick time -- otherwise the solution would be easy :) Thanks, Justin on 08/06/02 3:42 PM, Jason Wong ([EMAIL PROTECTED]) wrote: > On Saturday 08 June 2002 09:19, Justin French wrote: >> Hi, >> >> I wish to restrict access to a dir of files, depending on if the user is a >> logged in

Re: [PHP] restricting files

2002-06-07 Thread Jason Wong
On Saturday 08 June 2002 09:19, Justin French wrote: > Hi, > > I wish to restrict access to a dir of files, depending on if the user is a > logged in and validated member. What kind of files are they? html? php? or others? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source

Re: [PHP] eregi not working

2002-06-07 Thread Jason Wong
On Saturday 08 June 2002 10:48, Robert Packer wrote: > Can someone tell me why this isn't working? To me it say open the file, > read it, stick into a variable, close the file. Then search that variable > (the file) and look for the eregi statements. Can someone tell me why this > only gets the fi

Re: [PHP] CONVERT

2002-06-07 Thread Justin French
I think you'll get MUCH better answers if you join the MySQL mailing list, and search the MySQL website, rather than this PHP list. Also less chance of getting flamed :) Justin French on 08/06/02 1:20 PM, sonjaya ([EMAIL PROTECTED]) wrote: > i have databse paradox (extension *.db) how to read

Re: [PHP] PHP 4.0.6 file upload problems?

2002-06-07 Thread Edward Marczak
On 6/7/02 11:43 AM, "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote: > One of the users of OPT has major problems uploading files to the system and I > have absolutely no clue why that is. His PHP version is 4.0.6 on Linux. > Quoting his description of the problem: > > "In fact, now it doesn't even

[PHP] Re: Not php related - php.net logo in Netscape 7?

2002-06-07 Thread Timothy J. Luoma
Oh, I forgot to mention that it is a different way of indicating that a favicon to be used, which is found in the HEAD of the HTML document. This works in browsers other than IE, but I don't think that IE supports this TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] CONVERT

2002-06-07 Thread sonjaya
i have databse paradox (extension *.db) how to read in php and save to mysql , thanks i just new bie in php

Re: [PHP] Re: Search a flat file.

2002-06-07 Thread Tom Ray
ok I believe I follow you on that, I will give that a try. But the question I have now is how do I loop that request? Gaylen Fraley wrote: >Use the explode() function based on the colon. Then parse the 2nd array >element for the username that you want. If matched, display all elements in >tha

[PHP] Re: Search a flat file.

2002-06-07 Thread Gaylen Fraley
Use the explode() function based on the colon. Then parse the 2nd array element for the username that you want. If matched, display all elements in that array row. Conversely you could use the implode() to reassemble the array row. (Assume $file_row is the row name that you have assigned) /*

[PHP] Search a flat file.

2002-06-07 Thread Tom Ray
I want to be able to search a flat file line by line looking for data such as a username then display all the information in that line. Is there some way to search the following format: record1:username:info:info:info record2:username:info:info:info record3:username:info:info:info So if someo

Re: [PHP] Not php related - php.net logo in Netscape 7?

2002-06-07 Thread Stuart Dallas
On Saturday, June 8, 2002 at 3:04:30 AM, you wrote: > I am using Netscape 7 preview release. When I go to www.php.net, it > displays the php logo in the address bar. Does anyone know how this is > done? If I'm not mistaken, it's a favicon.ico file. See http://www.favicon.com/ for full info.

[PHP] Re: Not php related - php.net logo in Netscape 7?

2002-06-07 Thread Timothy J. Luoma
I believe it is a favicon.ico MSIE started this and apparently Netscape/Mozilla now have them too. TjL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Not php related - php.net logo in Netscape 7?

2002-06-07 Thread Leif K-Brooks
I am using Netscape 7 preview release. When I go to www.php.net, it displays the php logo in the address bar. Does anyone know how this is done? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Variables

2002-06-07 Thread Beeman
You are correct. My web server is Running 4.2.1 and all of the sites are still working.. That is why I assumed that it was a problem locally, but after looking at the web server the globals is turned on. Thanks.. I can go forward now. I appreciate your help On 6/7/02 9:33 PM, "Philip Olson" <[EM

[PHP] PHP scirpt needed

2002-06-07 Thread Gaylen Fraley
I'm trying to not reinvent the wheel. Can you all recommend a good script, or class, that will read a given directory, list the folder and/or files and create hyperlinks, allow you to then recursively, upon selection, read a given folder? There will be no editing. It's strictly for selecting an

Re: [PHP] Form Variables

2002-06-07 Thread Philip Olson
Actually, they are. You are assuming the PHP directive register_globals = on when using $phrase from the form below. register_globals = on is what creates $phrase. As of PHP 4.2.0 the default value for register_globals has become off. Regardless, there are other options: Try either: //

Re[2]: [PHP] Form Variables

2002-06-07 Thread Stuart Dallas
On Saturday, June 8, 2002 at 2:22:02 AM, you wrote: > I just read the release notes and do not believe they are referring to my > dilemma. Actually, I think they point out the exact reason for your 'dilemma'. > Here is the code I am using. Just a basic form > <> > if ($phrase){ echo "Phrase--

Re: [PHP] disabled cookies and sessions

2002-06-07 Thread Chris Sechiatano
You have to code the PHPSESSID into your URL if your browser has cookies disabled or else it won't work. On Fri, Jun 07, 2002 at 06:57:31PM +0200, Nick Wilson <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Glenn Sieb declared > > >I have compil

Re: [PHP] Form Variables

2002-06-07 Thread Beeman
I just read the release notes and do not believe they are referring to my dilemma. Here is the code I am using. Just a basic form <> Phrase: <> On 6/7/02 9:08 PM, "Stuart Dallas" <[EMAIL PROTECTED]> wrote: > On Saturday, June 8, 2002 at 1:56:35 AM, you wrote: > >> I rece

[PHP] restricting files

2002-06-07 Thread Justin French
Hi, I wish to restrict access to a dir of files, depending on if the user is a logged in and validated member. My first guess was to restrict access to the files with .htaccess, only allowing access if the referring (linking) script was something like members.php, so they'd only get the link if

Re: [PHP] Form Variables

2002-06-07 Thread Stuart Dallas
On Saturday, June 8, 2002 at 1:56:35 AM, you wrote: > I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running > Apache 1.3.2. I have verified that php is running and apache is running. > When I access a page locally http://127.0.0.1/simple_form.php, fill in the > only text box an

[PHP] Form Variables

2002-06-07 Thread Beeman
I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running Apache 1.3.2. I have verified that php is running and apache is running. When I access a page locally http://127.0.0.1/simple_form.php, fill in the only text box and submit the form to form_act.php. The variable doesn't exist

RE: Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Miguel Cruz
How about if you use htmlentities() and then preg specified tags back into place? That way, the onus for not looking silly falls upon those who use unapproved tags. This would seem like the more conservative approach - and as a security-obsessed paranoid fool, I like conservative approaches. m

Re: [PHP] Bot?!

2002-06-07 Thread Evan Nemerson
I think you're looking for AI, not a bot. http://directory.google.com/Top/Computers/Artificial_Intelligence/Natural_Language/ If you want to post a description of what you want to do, someone may be able to help. On Monday 03 June 2002 22:14 pm, Martin Thoma wrote: > Hello! Perhaps you know

[PHP] MyCC Problem

2002-06-07 Thread César L . Aracena
Hi all. I know that this isn’t probably the best place to make this question, but I uses that some of you uses MyCC to connect to a remote MySQL DB. My connection is no problem, but when I issue a SQL command, which tells the DB to INSERT multiple rows into one table, It gives me an error every ti

[PHP] eregi not working

2002-06-07 Thread Robert Packer
Can someone tell me why this isn't working? To me it say open the file, read it, stick into a variable, close the file. Then search that variable (the file) and look for the eregi statements. Can someone tell me why this only gets the first instance of what I'm searching for? Thanks a bunch. #!/u

[PHP] Question about set_time_limit and max_execution_time

2002-06-07 Thread Al
I've got a mail function script that occasionally terminates midway while sending out about 600 emails. The symptoms point to the "max_execution_time", which is set for 30 seconds. The question is how to best handle it. set_time_limit only seems to apply to the script that contains it. Yet t

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
Cool. Thanks Dave. I'm exploring this stuff in another window. I'll check out irt.org. -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 4:45 PM To: 'Lazor, Ed'; 'Richard Baskett'; 'PHP General' Subject: RE: [PHP] dynamic pull-down menus?

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread David Freeman
> That sounds very close to what I'm trying to do. Is it > necessary to reload the page every time a selection is made? I've found examples of the javascript side of it on www.irt.org that helped last time I did this sort of thing. The php/sql stuff is a matter of figuring out what you nee

RE: [PHP] strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
I realize the importance of using valid html stuff. Here, however, I'm trying to validate *user input*, not fix up my own HTML pages. And I have no way of teaching the users to say < and > instead of < and > when they fill out their forms. On Sat, 8 Jun 2002, David Freeman wrote: > > > The min

RE: Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
Actually, we allow our users to use HTML tags -- a pretty large set of tags is allowed in the second argument to strip_tags(). We just want to strip out and other stuff which has been known to cause problems. This is why I was wondering if anyone has a good regexp which can allow one to provide

RE: [PHP] strip_tags bug ?

2002-06-07 Thread David Freeman
> The minor problem is that it treats a "not-equals" sign, > "<>", as an empty tag and strips it, unless it's explicitely ...etc... Except, of course, that when writing html you are supposed to use entities for any valid html stuff - ie. Use > and $lt; for > < and so on. As you should also

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread John Holmes
Do you want the page to submit with each choice? i.e. in the beginning, the first drop down is populated and the other two aren't. when a choice is made in the first box, the form is submitted and PHP populates the second, etc... If you don't want it to submit, then all PHP can do is write some j

RE: Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread John Holmes
I don't see why people use strip_tags at all. I would hate posting to a forum that will strip tags, esp. if I want to show an example of something. Just use htmlentities() and the data will be shown exactly as the user typed it, but none of the HTML or code within it will be evaluated. So if the

Re: [PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread mike
Hi, Not porn, but advertising. We only use about 20mbit/sec. Thanks, - Original Message - From: "Miguel Cruz" <[EMAIL PROTECTED]> To: "mike" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 07, 2002 6:00 PM Subject: Re: [PHP] Tracking Problem -- Force full script executio

Re[2]: [PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread Stuart Dallas
On Friday, June 7, 2002 at 11:00:24 PM, you wrote: > I don't have an answer, but I'm impressed that you're able to get > 144,000,000 hits a day - on par with Yahoo which was previously considered > the runaway leader in web traffic volume. That must be some pretty amazing > porn. I'm more amaz

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread Lazor, Ed
> I got a mysql database, where two of the fields of a table > record times as > CHAR(8) in the format hh:mm:ss > I want to take this two times and get the difference between > them in seconds, for example 12:01:30 - 12:00:00 = 90 I > looked up at the doc in the php.net website and could

Re[3]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Stuart Dallas
On Friday, June 7, 2002 at 11:00:48 PM, you wrote: > It sure would :) But if you're going to have HTML such as: > < valid_tag > blah blah < this isn't a tag > < /valid_tag > > then you've got problems no matter what you do :) My bad. I thought that would be valid HTML, but I just checked and

Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Philip Hallstrom
It sure would :) But if you're going to have HTML such as: < valid_tag > blah blah < this isn't a tag > < /valid_tag > then you've got problems no matter what you do :) On Fri, 7 Jun 2002, Stuart Dallas wrote: > On Friday, June 7, 2002 at 10:23:08 PM, you wrote: > > > Hmm... you could always

Re: [PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread Miguel Cruz
On Fri, 7 Jun 2002, mike wrote: > I am trying to track every user who visits my site (over 100,000 per > minute..) I don't have an answer, but I'm impressed that you're able to get 144,000,000 hits a day - on par with Yahoo which was previously considered the runaway leader in web traffic volum

RE: [PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
That sounds very close to what I'm trying to do. Is it necessary to reload the page every time a selection is made? Do you have examples of this that work with multiple pull-down menus? -Original Message- From: Richard Baskett [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:48

RE: [PHP] majordomo in php?

2002-06-07 Thread David Freeman
> > > Anyone knows of a majordomo type mailing list made with php > > > Why would you want to do that? If you need mailing list software > > you'd be infinitely better off using one that already exists - if you > > need features that it doesn't support (eg. A web front-end for > > ma

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread David Freeman
> I got a mysql database, where two of the fields of a table > record times as > CHAR(8) in the format hh:mm:ss This is one of those situations where having your database using the most appropriate field types would help. When you've got it as CHAR there's little you can do in the way of co

Re: [PHP] dynamic pull-down menus?

2002-06-07 Thread Richard Baskett
Usually people do this with javascript, but you could use javascript/php/mysql mysql for the data, php to create the dynamic drop down menus and javascript to refresh the page once someone has picked an option. Rick "We do not have to visit a mad house to find disordered minds; our planet is the

[PHP] dynamic pull-down menus?

2002-06-07 Thread Lazor, Ed
Does anyone know how to create a web page with more than 2 selection fields that Interact? In my particular case, I'm trying to create a series of pull-down menus. The first selection is the choice of hardware class (workstation, server, laptop, pda, etc.). The second selection is manufacturer.

Re[3]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Stuart Dallas
On Friday, June 7, 2002 at 10:30:59 PM, I wrote: > < /SCRIPT> There should be another space here... < /SCRIPT > -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Stuart Dallas
On Friday, June 7, 2002 at 10:23:08 PM, you wrote: > Hmm... you could always do something like: > $t = ereg_replace(" < ", " < ", $t); > $t = ereg_replace(" > ", " > ", $t); > $nt = strip_tags($t); > $nt = ereg_replace(" < ", " < ", $nt); > $nt = ereg_replace(" > ", " > ", $nt); > maybe? Tha

Re: [PHP] mysql_num_rows()

2002-06-07 Thread Matthew Walker
It's 1 based. It returns the number of rows. Not the index of the last row. (Which would be 0 based.) On Fri, 2002-06-07 at 19:23, William_dw -- Sqlcoders wrote: > Hiya!, > Does anyone know whether mysql_num_rows is zero or one based? > > that is, if I have 5 records will mysql_num_rows() return

Re: [PHP] PHP (CLI) + CURL + SSL Problem...

2002-06-07 Thread Matthew Walker
It was definately included. I know this two ways. 1. Non-SSL curl sessions work. 2. I used the exact configure string I used for the module version, minus the --with-apxs option. On Fri, 2002-06-07 at 14:30, Mark Heintz PHP Mailing Lists wrote: > Are you sure curl was included with the CLI insta

Re: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Philip Hallstrom
Hmm... you could always do something like: $t = ereg_replace(" < ", " < ", $t); $t = ereg_replace(" > ", " > ", $t); $nt = strip_tags($t); $nt = ereg_replace(" < ", " < ", $nt); $nt = ereg_replace(" > ", " > ", $nt); maybe? On Fri, 7 Jun 2002, Mikhail Avrekh wrote: > Same thing happens: > >

Re: [PHP] Re: strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
Same thing happens: 3"; $nt = strip_tags($t,'< >'); // i've also tried '<>', '<', // and all permutations thereof print $nt; ?> %> Everyone knows that 2 3 On Fri, 7 Jun 2002, Philip Hallstrom wrote: > I haven't looked at the code, but doesn't strip_tags strip ev

[PHP] Re: strip_tags bug ?

2002-06-07 Thread Philip Hallstrom
I haven't looked at the code, but doesn't strip_tags strip everything b/n < and >? In which case it's doing what it should below... The only solution I see would be to change the code to look for every possible HTML tag that exists and only do those, but with all the nonstandard tags I don't thi

[PHP] strip_tags bug ?

2002-06-07 Thread Mikhail Avrekh
Hello, There seem to be a couple of bugs in the strip_tags() function, one minor (or at least I know how to circumvent it) and one more serious. The minor problem is that it treats a "not-equals" sign, "<>", as an empty tag and strips it, unless it's explicitely set as an allowed tag (as in stri

RE: [PHP] very simple eregi / loop question

2002-06-07 Thread Scott Hurring
well, either make sure $search contains the entire page or, you have an array fo lines, loop thru it line by line foreach ($lines as $line) eregi( ... ) AFAIK, eregi will match *everything* and dump it all into $matches (at least that's the behaviour that pregs follow, i dont use eregs)

[PHP] very simple eregi / loop question

2002-06-07 Thread Robert
How would you loop though a file ( or web page) and get all of a certain thing. I'm trying to strip stuff out of tables, but I have only managed to get the first of what I'm searching for. My expression is eregi("[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}", $search, $content); which does the job,

[PHP] Tracking Problem -- Force full script execution?

2002-06-07 Thread mike
Hi, I am trying to track every user who visits my site (over 100,000 per minute..), and I have over 25 queries in my tracking script... and I have a feeling some users are "closing" the script before it finishes executing, even though my script loads very quickly.. and its causing some of my MySQ

Re: [PHP] PHP (CLI) + CURL + SSL Problem...

2002-06-07 Thread Mark Heintz PHP Mailing Lists
Are you sure curl was included with the CLI installation? Try running this through the CLI to check... if(extension_loaded('curl')){ echo 'curl support present'; } else { echo 'curl not found'; } mh. On 7 Jun 2002, Matthew Walker wrote: > I have PHP installed both as a module, and as a C

Re: [PHP] mail() problem

2002-06-07 Thread Jim lucas
you miss understood what I was saying. I said to have your hotmail account setup as the return email address and then send mail to you ISP. if the mail bounces it will be returned to your hotmail account instead of your ISP. if you do receive the mail returned to your hotmail account. it should

[PHP] PHP (CLI) + CURL + SSL Problem...

2002-06-07 Thread Matthew Walker
I have PHP installed both as a module, and as a CLI. When I use CURL from inside the module, it works fine for all connections, including SSL. When I use the CLI, I can't make SSL connections with CURL. It just returns 'false'. Anyone know why? -- PHP General Mailing List (http://www.php.net

Re: [PHP] Can't get PHP running with apache

2002-06-07 Thread Don
RE: [PHP] Can't get PHP running with apacheThe following was added by the compile of PHP 4.2.1: LoadModule php4_modulelibexec/libphp4.so AddModule mod_php4.c The following was added by me: AddType application/x-httpd-php .php .html .phtml So..., if the compile added the line for mo

RE: [PHP] Can't get PHP running with apache

2002-06-07 Thread Ray Hunter
Did you add the module info to your httpd.conf file? Thank you, RAY HUNTER -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 1:56 PM To: Ray Hunter; 'php list' Subject: Re: [PHP] Can't get PHP running with apache Oops. Sorry. my PHP configure ac

Re: [PHP] Can't get PHP running with apache

2002-06-07 Thread Don
RE: [PHP] Can't get PHP running with apacheOops. Sorry. my PHP configure actually has the folowing: ./configure --with-mysql --with-apxs=/usr/sbin/bin/apxs --enable-dbase --with-im ap --with-kerberos --with-imap-ssl --enable-track-vars --enable-force-cgi-redir ect --with-gettext which states

RE: [PHP] Can't get PHP running with apache

2002-06-07 Thread Ray Hunter
When you use the --with then you need to specify a directory... Read up on the configuration of php on php.net Thank you, RAY HUNTER -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 1:47 PM To: php list Subject: [PHP] Can't get PHP running with apac

[PHP] Can't get PHP running with apache

2002-06-07 Thread Don
Hi, Compiled and installed Apache 1.3.24 with mod_ssl and mod_perl. Compiled and installed PHP 4.2.1 with the following: './configure' '--with-mysql' '--with-apxs' '--enable-dbase' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--enable-track-vars' '--enable-force-cgi-redirect' '--with-g

Re: [PHP] string convertion to time & substracting

2002-06-07 Thread Chris Knipe
Awesome :-) Glad to have been able to help... -- me - Original Message - From: "juaid" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 07, 2002 9:22 PM Subject: [PHP] string convertion to time & substracting > Well, I got all working now and calculating the duration wit

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread John Holmes
Yeah, if he kept CHAR, then he'd have to do all of that. We were trying to convince him to switch to a TIME column, though, to make things easier. Which he did...which does... :) ---John Holmes... > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Erik Price
I thought that it was a CHAR column. I didn't know you could use UNIX_TIMESTAMP() on CHAR columns, so I was showing him how to turn his colon delimited strings into timestamps with mktime(). Erik On Friday, June 7, 2002, at 02:27 PM, John Holmes wrote: > Umm...How about using UNIX_TIMESTAM

Re: [PHP] Chat

2002-06-07 Thread Chris Knipe
www.google.com search for PHP Chat and see what you come up with. when you have a specific problem, come back here and we'll see what we can do for you. This list is most definitely not to tell you how to develop applications To give you a head start, there's something called PHPIRC or som

[PHP] string convertion to time & substracting

2002-06-07 Thread juaid
Well, I got all working now and calculating the duration with mysql functions The fields which which hold times are now TIME types, and everything works really good!!! Thanks again to all :) juaid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Chat

2002-06-07 Thread André Riedel
Can I make a Chat with PHP or what must I do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread John Holmes
Okay, sorry. I stand corrected. :) Either way, the query still failed for some reason. The recommendation to use MySQL_error() is still a good one... ---John Holmes... > -Original Message- > From: Chris Knipe [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 2:44 PM > To: [EMAIL

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread juaid
From: "Chris Knipe" <[EMAIL PROTECTED]> > I also started off implementing mysql lookups > without error checking and posted rather silly mistakes to the list which > could have easily been avoided just debugging the code properly %$&@#!!! thank you very much Chris... stupid error.. I had done so

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Chris Knipe
> where $month, $day and $year are got from a form in the previous page via > POST method. > So the LIKE condition matches against the "date" field in the table, where > the format is like "Jun 7 2002" > > if I switch connTime, startTime and stopTime to TIME types, I get the error > I said > > I'l

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Chris Knipe
- Original Message - From: "John Holmes" <[EMAIL PROTECTED]> To: "'juaid'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 07, 2002 8:29 PM Subject: RE: [PHP] convertion from string to time & substracting > That error means your query failed and the result set is not valid.

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread juaid
From: "John Holmes" <[EMAIL PROTECTED]> > > That error means your query failed and the result set is not valid. You > can't use LIKE on a TIME column. > > Can you explain exactly what you want? How are you storing the times, > what are the times, what kind of data do you want to pull out of the >

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Chris Knipe
> > Talking under correction, but you'll be better of using a TIME column in > > MySQL. You can also do all the calculations with MySQL's build in time > > functions already, which will save you allot of time, seeing that all the > > calculations can be done via a single SQL query. > > Yes, this

RE: [PHP] Trying to list a directory content HELP PLEASE

2002-06-07 Thread Miguel Cruz
On Thu, 6 Jun 2002, webmaster mbtradingco wrote: > Hey Scott, that at least helped me to find out what is going wrong. > > When I use the code as you told me... > >$fd=readdir("/home/casapu/paginas /image/caterleras/"); >if (!$fd) die ("Can't read dir"); > > It gives me:

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread juaid
Thank you very much Erik, I'll try it :) anyway, it would be nice to know what's wrong with the code I posted, why does it work with CHAR and not with TIME types? juaid From: "Erik Price" <[EMAIL PROTECTED]> > > First of all, if you're storing time then you're better off using the > DATETIME c

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread John Holmes
That error means your query failed and the result set is not valid. You can't use LIKE on a TIME column. Can you explain exactly what you want? How are you storing the times, what are the times, what kind of data do you want to pull out of the table? I'll guarantee that there is one easy query

Re: [PHP] NEED HELP (passing variable to new page)

2002-06-07 Thread Miguel Cruz
1) Why are you using JavaScript to open the window? HTML will do just fine () and will work on all browsers as well as search engines. 2) Your sample page has some password on it and I can't decipher from your message what's actually going on, so without seeing it in action, I'm stumped. mig

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread John Holmes
Umm...How about using UNIX_TIMESTAMP() in your query, then you won't need any of that PHP code you just wrote... ---John Holmes... > -Original Message- > From: Erik Price [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 2:22 PM > To: juaid > Cc: [EMAIL PROTECTED] > Subject: Re: [

Fw: [PHP] convertion from string to time & substracting

2002-06-07 Thread juaid
note that I put: $startTime = $linea["startTime"]; I misppeled it while copying, this shuold be $startTime = $line["startTime"]; juaid -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Erik Price
On Friday, June 7, 2002, at 02:22 PM, Erik Price wrote: > First of all, if you're storing time then you're better off using the > DATETIME column type. Even though it may take a bit more space than > CHAR(8), unless you absolutely need the ultimate in table optimization, > use DATETIME. I

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Erik Price
On Friday, June 7, 2002, at 02:01 PM, juaid wrote: > sorry if maybe this is a bit dumb question, but I'm a begginer with > php... > > I got a mysql database, where two of the fields of a table record times > as > CHAR(8) in the format hh:mm:ss > > I want to take this two times and get the dif

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread juaid
From: "Chris Knipe" <[EMAIL PROTECTED]> > > Talking under correction, but you'll be better of using a TIME column in > MySQL. You can also do all the calculations with MySQL's build in time > functions already, which will save you allot of time, seeing that all the > calculations can be done via

RE: [PHP] convertion from string to time & substracting

2002-06-07 Thread John Holmes
Is there a reason you insist on using a CHAR field, instead of a TIME field, which would make this all easier and allow you to use the multitude of MySQL Date and Time Functions in your query... ??? ---John Holmes... > -Original Message- > From: juaid [mailto:[EMAIL PROTECTED]] > Sent: F

Re: [PHP] convertion from string to time & substracting

2002-06-07 Thread Chris Knipe
Talking under correction, but you'll be better of using a TIME column in MySQL. You can also do all the calculations with MySQL's build in time functions already, which will save you allot of time, seeing that all the calculations can be done via a single SQL query. -- me - Original Messag

Re: [PHP] Access control question - follow-up question

2002-06-07 Thread Erik Price
On Friday, June 7, 2002, at 12:32 PM, Jeff Field wrote: > I'm under the impression that when I create the user > and password variables, the variables are only available in the session > cookie on my own server, not in the cookie that is sent to the user to > maintain sessions. The cookie sent

RE: [PHP] Access control question - follow-up question

2002-06-07 Thread Jeff Field
Absolutely right! I'm storing the password needlessly. I've got the user name and that's all I need for anything further. Thanks! Jeff > -Original Message- > From: Analysis & Solutions [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 12:42 PM > To: PHP List > Subject: Re: [PHP

[PHP] convertion from string to time & substracting

2002-06-07 Thread juaid
Hi, sorry if maybe this is a bit dumb question, but I'm a begginer with php... I got a mysql database, where two of the fields of a table record times as CHAR(8) in the format hh:mm:ss I want to take this two times and get the difference between them in seconds, for example 12:01:30 - 12:00:00

Re[2]: [PHP] Parse Error in my Mail Function -UPDATED

2002-06-07 Thread Stuart Dallas
On Friday, June 7, 2002 at 7:08:00 PM, you wrote: > Lines 29, 30, and 31 > //29 > $headers = $from . "\r\n" . $bcc . "\r\n" > //30 - The Next Line is where I'm getting the parse Error at: > mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess > ="Failure sending email."; > //31 >

Re: [PHP] Parse Error in my Mail Function -UPDATED

2002-06-07 Thread Anti-Blank
Lines 29, 30, and 31 //29 $headers = $from . "\r\n" . $bcc . "\r\n" //30 - The Next Line is where I'm getting the parse Error at: mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess ="Failure sending email."; //31 if ($emailsuccess == "") {$emailsuccess = "Email Sent Successfully.

Re: [PHP] Array question - Finding the name

2002-06-07 Thread Philip Olson
> I want to find the name of the n-th value in an array. Not the value of > the n-th, but whatever name was given to it. Array_slice seems to just > pull part of an array and put it in another. and key() isn't exactly > what i want either.. Maybe this will help: > $my_array = array('bob' =>

  1   2   >