[PHP] Thumbnail pages - alot of them

2002-06-07 Thread rory oconnor
I have a mysql database table of about 7000 images (they are not actually in the db, just references), as yet uncategorized. I need to put them online and allow my client to browse 12-18 thumbnails per page. what would be the most efficient method to code that with PHP? any help is

[PHP] Re: emulating --enable-trans-sid -- project idea?

2002-06-07 Thread Giancarlo Pinerolo
Justin French wrote: Hi all, About 2.30 in the morning I started kicking around an idea, based on the recent discussions on sessions, and what --enable-trans-sid did. From my understanding: + if there is no session cookie, set a cookie AND append a session ID to URLs on the

[PHP] SUID ROOT

2002-06-07 Thread Yamin Prabudy
Hi there, I used rasmus script (PEAR) (with a change a little bit to fit to FreeBSD) to adduser/changepassword/verifypassword for my user from web I got some problem with the SUID to read the file and rewrite the file from the web i had set the safe_mode = On safe_mode_gid = On in php.ini and the

[PHP] Re: emulating --enable-trans-sid -- project idea?

2002-06-07 Thread Giancarlo Pinerolo
Justin French wrote: Hi all, About 2.30 in the morning I started kicking around an idea, based on the recent discussions on sessions, and what --enable-trans-sid did. From my understanding: + if there is no session cookie, set a cookie AND append a session ID to URLs on the

RE: [PHP] Thumbnail pages - alot of them

2002-06-07 Thread David Freeman
I have a mysql database table of about 7000 images (they are not actually in the db, just references), as yet uncategorized. I need to put them online and allow my client to browse 12-18 thumbnails per page. what would be the most efficient method to code that with PHP? any

[PHP] [Fwd: [PHP Classes] Latest PHP news in the site newsletter and comp.lang.phpnewsgroup to be approved with your help]

2002-06-07 Thread Manuel Lemos
Hello, Please read the second part of the message being forwarded and contribute to make PHP have better recognition by voting for the creation of the comp.lang.php newsgroup. The explantion about the importance of this is in the message. -- Regards, Manuel Lemos ---BeginMessage---

[PHP] the ?PHPSESSID=spoofme 'bug'

2002-06-07 Thread Giancarlo Pinerolo
Can I tell you more than what the subject says? proceeding: Close the browser, clean all your cookies, and open any page with that ?PHPSESSID=spoofme appended. And see what happens. 1) No cookies are left 2) a session 'spoofme' is created Do you need more? Javascript url injection ad cross

[PHP] Re: the ?PHPSESSID=spoofme 'bug'

2002-06-07 Thread Giancarlo Pinerolo
I myself wrote: Can I tell you more than what the subject says? proceeding: Close the browser, clean all your cookies, and open any page with that ?PHPSESSID=spoofme appended. And see what happens. 1) No cookies are left 2) a session 'spoofme' is created Do you need more?

[PHP] Re: the ?PHPSESSID=spoofme 'bug'

2002-06-07 Thread Giancarlo Pinerolo
Giancarlo Pinerolo wrote: I myself wrote: Can I tell you more than what the subject says? proceeding: Close the browser, clean all your cookies, and open any page with that ?PHPSESSID=spoofme appended. And see what happens. spoofme is not the exact term. ?PHPSESSID=hijackme

[PHP] PHP-MySQL AND Case Sentivity

2002-06-07 Thread fincom
Hi, how to make sql Result case sensitive with php. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP-MySQL AND Case Sentivity

2002-06-07 Thread fincom
That's Ok See : http://www.zend.com/tips/tips.php?id=199single=1 Fincom [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi, how to make sql Result case sensitive with php. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Thumbnail pages - alot of them

2002-06-07 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... I have a mysql database table of about 7000 images (they are not actually in the db, just references), as yet uncategorized. I need to put them online and allow my client to browse 12-18 thumbnails per page. what would be the most

Re: [PHP] Re: the ?PHPSESSID=spoofme 'bug'

2002-06-07 Thread Josep R. Raurell
If you destroy the session (for exaple with a logoff button) this dosen work. Josep R. Raurell Giancarlo Pinerolo wrote: Giancarlo Pinerolo wrote: I myself wrote: Can I tell you more than what the subject says? proceeding: Close the browser, clean all your cookies, and open any page with

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

2002-06-07 Thread webmaster mbtradingco
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: Warning: Supplied argument is not a valid Directory resource in

[PHP] yEnc decode code

2002-06-07 Thread Herbert Groot Jebbink
Hi, Does someone have a PHP yEnc decode routine? Greetings, Herbert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] oracle again!!!!

2002-06-07 Thread Chris Hewitt
Michael, If you used to run it some time ago and it worked then but does not now then something has changed (obvious I know). Within the something that has changed is the answer, we just need to find it. Is it the same version of Oracle and same means of getting to Oracle from php (I mean

[PHP] Setting Cookies

2002-06-07 Thread Scott 'INtense!' Reismanis
Hey all, I am having some troubles setting cookies at the moment wondering if anyone knows the solution. Anyhow basically what is happening, is that cookies are been set fine, however say I try to set two cookies in the one script i.e. setcookie(username, $HTTP_POST_VARS['username'],

[PHP] link to external php scripts?

2002-06-07 Thread Hawk
Just came to think of it now, is it possible to link to php scripts, on.. lets say my server, from an online account I have, that does not support php. I was mostly thinking of counters included on pages now, but other things to, like $date() and similiar. wxw.hostedscripts.com uses cgi for the

[PHP] Question about Mail function time out

2002-06-07 Thread Al
Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup server seems to ignore postings from it. This one is posted from IE. I've got a mail function script that occasionally terminates midway while sending out about 600 emails. The symptoms point to the

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

2002-06-07 Thread Naintara Jain
Is that a space in the directory path? I think you will have to use opendir() function first. opendir: Returns a directory handle to be used in subsequent closedir(), readdir(), and rewinddir() calls. The manual has some good examples. -Original Message- From: [EMAIL PROTECTED]

Re: [PHP] Thumbnail pages - alot of them

2002-06-07 Thread Erik Price
On Friday, June 7, 2002, at 03:06 AM, rory oconnor wrote: I have a mysql database table of about 7000 images (they are not actually in the db, just references), as yet uncategorized. I need to put them online and allow my client to browse 12-18 thumbnails per page. what would be the most

php-general Digest 7 Jun 2002 13:52:04 -0000 Issue 1391

2002-06-07 Thread php-general-digest-help
php-general Digest 7 Jun 2002 13:52:04 - Issue 1391 Topics (messages 101055 through 10): Re: NEWBIE- Is this possible? How?! 101055 by: Peter 101058 by: Justin French 101067 by: Kevin J PHP and ZIP/TAR.GZ files 101056 by: Mukherjee, Devraj

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Chris Hewitt
Al, Interesting. I use Mozilla and I've never had any emails rejected or heard of anyone else have it happening. Have you some more information or is this an urban legend? Regards Chris Al wrote: Sorry if this shows twice. I originally posted it with Mozilla and forgot that this newsgroup

Re: [PHP] NEWBIE- Is this possible? How?!

2002-06-07 Thread Erik Price
On Thursday, June 6, 2002, at 11:07 PM, Kevin J wrote: I am sure this isn't the best way to learn PhP, but I am running out of ideas for making this website work. Static content just seems boring these days, so I would liek to spice up the site by having the band members themselves

Re: [PHP] OOP style question

2002-06-07 Thread Erik Price
On Friday, June 7, 2002, at 12:50 AM, Analysis Solutions wrote: On Thu, Jun 06, 2002 at 04:57:42PM -0400, Erik Price wrote: I have a method in my class that essentially unsets an array element. Uh, I know you're a sharp guy, but I've got to ask anyway. If it's doing such a simple

Re: [PHP] Question about Mail function time out

2002-06-07 Thread Al
Opps, hit the reply rather than the reply group. I normally use Moz. I'm subscribed to 8 newsgroup servers. All work perfect except news.php. I replied to you message with Moz; but it doesn't show. This one is with IE Chris Hewitt [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Array question - Finding the name

2002-06-07 Thread Phil Schwarzmann
Let's say I have an array... $my_array[] = array('bob' = $x, 'jim' = $y, 'mike' = $z); Now I want to find the name of the second element in the array (I want my result to be 'jim') How do I do this? I think I might have to use the key() function but I can't quite get it to wkr. Thanks!

Re: [PHP] Extracting specific data from a URL using PHP...

2002-06-07 Thread Erik Price
On Thursday, June 6, 2002, at 06:57 PM, Anthony Ritter wrote: I understand that one can open a page off an existing website to extract text data using a PHP script by using the fopen and fread functions. And by using the strip_tags() function, one can extract data without the html markup

RE: [PHP] Re: PHP-MySQL AND Case Sentivity

2002-06-07 Thread John Holmes
You can create the column with a BINARY flag to make it case-sensitive, or use blobs, which are case-sensitive by nature. You can also use the keyword BINARY to cast a column to case-sensitive in your query. From: http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html

Re: [PHP] How can i resize images after upload?

2002-06-07 Thread Daniel Pupius
Why not use PHP's built in image library: http://www.php.net/manual/en/ref.image.php -- it's pretty cool. The resample function doesn't exist in some old install but it's quite easy to write your own -- just doesn't run as fast as a compiled version. Dan -- PHP General Mailing List

Re: [PHP] Array question - Finding the name

2002-06-07 Thread Jason Wong
On Friday 07 June 2002 22:16, Phil Schwarzmann wrote: Let's say I have an array... $my_array[] = array('bob' = $x, 'jim' = $y, 'mike' = $z); you probably meant to define it as: $my_array = array('bob' = $x, 'jim' = $y, 'mike' = $z); use print_r($my_array) to see the difference between

RE: [PHP] Combo box selected value...

2002-06-07 Thread Bruce Karstedt
Sounds like you are working on a windows box with a bad battery back up for the clock! Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 4:01

[PHP] Detect new messages?

2002-06-07 Thread Andrew Ziem
How do I determine if an account has new, unread email messages? The messages are on the same host as the PHP program and webserver. Is there a way to tell by examining /var/spool/mail? (I am running Linux Mandrake 8.1.) That is my prefered way. I also am running an IMAP server on the host.

[PHP] Detect new messages?

2002-06-07 Thread Andrew Ziem
How do I determine if an account has new, unread email messages? The messages are on the same host as the PHP program and webserver. Is there a way to tell by examining /var/spool/mail? (I am running Linux Mandrake 8.1.) That is my prefered way. I also am running an IMAP server on the host.

[PHP] Access control question

2002-06-07 Thread Jeff Field
Quick question... I have a site where user's log in, they put their user name and password in a form and if they are verified against the database, session variables are created, $_SESSION['user']; $_SESSION['pass']; and they get sent to the next page by way of, header(Location:

[PHP] mysql_num_rows()

2002-06-07 Thread William_dw -- Sqlcoders
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 4 or 5? Thanks in advance!, Dw. (I did check the php.net and MySQL manual for mysql_num_rows, php.net dosent say and MySQL only gives a one line description, which is

RE: [PHP] mysql_num_rows()

2002-06-07 Thread Jay Blanchard
[snip] Does anyone know whether mysql_num_rows is zero or one based? [/snip] It's one based. Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] majordomo in php?

2002-06-07 Thread The Gabster
thanks Dave, that makes sense... i was just thinking of a mailing list totally controled through email... Like people if they want to subscribe, they send an email with subscribe in the subject, etc... gabi. David Freeman [EMAIL PROTECTED] wrote in message 001f01c20dce$4bcc4ee0$[EMAIL

[PHP] Re: Can't Connect to INFORMIX DB

2002-06-07 Thread Gastón
That's Ok too. I did that, and this is the message i get: PHP Warning: Unable to load dynamic library 'C:\Php421\extensions\php_ifx.dll' - The specified procedure could not be found. in Unknown on line 0 I'm just not fighting anymore with it. I'm using ODBC now, but i would really like to

Re: [PHP] Access control question

2002-06-07 Thread Analysis Solutions
Hi Jeff: On Fri, Jun 07, 2002 at 10:25:27AM -0500, Jeff Field wrote: Is it simply enough to just check that $_SESSION['user'] is present, and therefore, by that alone assume the user has logged in and should be granted access? Or, should I be verifying the $_SESSION['user'] and

Re: [PHP] majordomo in php?

2002-06-07 Thread Glenn Sieb
That's what majordomo and the others do. People send messages to [EMAIL PROTECTED] that have commands like subscribe, unsubscribe, digest, etc. Glenn On 10:39 AM 6/7/2002 -0500, The Gabster wrote: thanks Dave, that makes sense... i was just thinking of a mailing list totally controled

[PHP] PHP 4.0.6 file upload problems?

2002-06-07 Thread Bogdan Stancescu
Hello all! Some of you know, some of you don't know that I'm the maintainer of a GNU PHP groupware project - http://outreach.sourceforge.net (the project name is OPT) - sorry, couldn't help advertising :-). One of the users of OPT has major problems uploading files to the system and I have

Re: [PHP] Array question - Finding the name

2002-06-07 Thread Phil Schwarzmann
Thanks for your reply! I tried using array_slice but I don't think that's exactly that I want to do. 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

Re: [PHP] Access control question

2002-06-07 Thread Erik Price
You are also assuming that the session hasn't been hijacked. Other things you can do are store the user's UserAgent in a session var and check it on every page (session spoofer MIGHT be using a different browser), and do likewise for IP address. Although remember that AOL users will have

[PHP] PHP code in a database

2002-06-07 Thread Jean-Rene Cormier
I'm trying to make a script that'll take some pages from a database but I want it to execute the PHP that's in the pages that it'll fetch from the database. Say it gets the data from the page in $data I want it to put the data on the screen and if there's some PHP code in the $data variable I

Re: [PHP] PHP code in a database

2002-06-07 Thread Mark Heintz PHP Mailing Lists
You want the eval() function. manual entry: http://www.php.net/eval mh. On Fri, 7 Jun 2002, Jean-Rene Cormier wrote: I'm trying to make a script that'll take some pages from a database but I want it to execute the PHP that's in the pages that it'll fetch from the database. Say it gets

[PHP] disabled cookies and sessions

2002-06-07 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone I have compiled php with --enable-trans-sid but when I diable cookies on my brower (Mozilla 1) the obeject I'm trying to pass (eg: its properties) are not bein passed. I've used sessions a lot so I'm sure it's not my php at fault but

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

2002-06-07 Thread Jeff Field
Your way to check for privileges sounds good. However, at my site, for this one area (basically, the customer's area) there's only one privilege; you either have access or you don't. So, I'm assuming my way is probably good enough for now. In regards to the presence of the session itself being

Re: [PHP] disabled cookies and sessions

2002-06-07 Thread Glenn Sieb
On 06:33 PM 6/7/2002 +0200, Nick Wilson wrote: I have compiled php with --enable-trans-sid but when I diable cookies on my brower (Mozilla 1) the obeject I'm trying to pass (eg: its properties) are not bein passed. I've used sessions a lot so I'm sure it's not my php at fault but something is

[PHP] How to find out the Bitsize of the Clients SSL Key ?

2002-06-07 Thread Jens Dinstuehler
Hi again, how can i find out the keysize of the clients Browser (SSL). We have an area only for Users who are capable of 128bit SSL. IE 5.5 with only 56-Bits SSL says that the Server is Down !! So i have to check the keysize before the user tries to log in, but i fond no way... Jens

Re: [PHP] disabled cookies and sessions

2002-06-07 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Glenn Sieb declared I have compiled php with --enable-trans-sid but when I diable cookies on my brower (Mozilla 1) the obeject I'm trying to pass (eg: its properties) are not bein passed. I've used sessions a lot so I'm sure

RE: [PHP] PHP code in a database

2002-06-07 Thread Jared Boelens
This might be what you need. http://www.php.net/manual/en/function.eval.php -Jared -Original Message- From: Jean-Rene Cormier [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP code in a database I'm trying to make a script that'll

Re: [PHP] Array question - Finding the name

2002-06-07 Thread Jason Wong
On Friday 07 June 2002 23:59, Phil Schwarzmann wrote: Thanks for your reply! I tried using array_slice but I don't think that's exactly that I want to do. 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

[PHP] Parse Error in my Mailing Code

2002-06-07 Thread Anti-Blank
All right I've used the help that I've gotten before about this and edited this function of code I have. Initially the code was meant to mail out a post to every email that was listed in the database. The problem was that it sent all the emails in the TO: section of the email. Now being

Re: [PHP] Missing posted variables in target script when multipart/form-data is set

2002-06-07 Thread Ed Greenberg
Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 07 June 2002 12:32, Ed Greenberg wrote: I have a small test script which fails when enctype=multipart/form-data is set. Have you enabled file uploads in php.ini? -- Problem solved!

Re: [PHP] Parse Error in my Mailing Code

2002-06-07 Thread Analysis Solutions
Dear Anonymous Person: To solve your problems and get prompt, accurate, friendly help from this list please... 1) Write readable code. By that I mean use nesting. That way we, and might I add, you, can quickly understand the logic of your script. 2) Turn line wrapping on in your email

[PHP] Parse Error in my Mail Function -UPDATED

2002-06-07 Thread Anti-Blank
Sorry I was too sleepy to realize the Red and BOLD wouldn't come through on the list. Here is the message again but I was smart enough this time to comment those section. All right I've used the help that I've gotten before about this and edited this function of code I have. Initially the

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

2002-06-07 Thread Chris Knipe
The problem being now I am getting a parse error on lines 30. Line 29, 30, and 31 is where exactly in all this?? Kind Regards, Chris Knipe MegaLAN Corporate Networking Services Tel: +27 21 854 7064 Cell: +27 72 434 7582 - Original Message - From: Anti-Blank [EMAIL PROTECTED] To:

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

2002-06-07 Thread Analysis Solutions
On Fri, Jun 07, 2002 at 11:32:48AM -0500, Jeff Field wrote: In regards to Passing/testing the password on each page is unnecessary and poses security risks., I'm under the impression that when I create the user and password variables, the variables are only available in the session cookie

Re: [PHP] Parse Error in my Mailing Code

2002-06-07 Thread Analysis Solutions
On Fri, Jun 07, 2002 at 01:37:22PM -0400, Analysis Solutions wrote: To solve your problems and get prompt, accurate, friendly help from this list please... Oh, and might I add 5) Don't repeatedly post your question to the list. Geez, --Dan -- PHP classes that make web

Re: [PHP] Parse Error in my Mailing Code

2002-06-07 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Anti-Blank declared now I am getting a parse error on lines 30. Included are the original Which is line 30? - -- Nick Wilson // www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux)

Re: [PHP] Parse Error in my Mailing Code

2002-06-07 Thread Anti-Blank
1) As for the nesting thats fine, I thought sections were clear, I suppose not. 2) My apologies there, my client says that line wrapping is turned on. 3) The full text of the error message isn't very helpful at least not to me. Parse error: parse error in /www/foo/htdocs/updates/functions.php on

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' = $x,

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

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

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 to

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

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:

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

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 difference

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

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

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 (a target=_whatever) 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,

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

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

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

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

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. You can't

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'll try the

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 many

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

[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

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

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

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

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

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

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

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

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

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

[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

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

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

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

  1   2   >