[PHP] RE: time stamp

2002-08-28 Thread Lopez David E-r9374c
Steve Try: SELECT MAX(field_timestamp) from table1; David > -Original Message- > From: Steve Buehler [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 5:21 PM > To: mysql; PHP > Subject: time stamp > > > I am using PHP with MySQL and have a timestamp field in my db > table.

[PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz
I have a template which places the value of $HTTP_REFERER into a table. This template is included in another template which is included in yet another template. The problem I am having is that the HTTP_REFERER, HTTP_USER_AGENT, and QUERY_STRING variables are all blank. Are there issues with

Re: [PHP] sending email to a mailing list

2002-08-28 Thread Andy
I do not agree. First off all (in my case) I do want to send personalized e-mails. And even if I cancel this wish.. how about adresses which fail? You will never ever find out how many adresses failed by putting them into the all in bcc. And.. isn't there a restriction? What happens if you put 10

Re: [PHP] sending email to a mailing list

2002-08-28 Thread Manuel Lemos
Hello, On 08/28/2002 07:54 PM, Andy wrote: > I do not agree. First off all (in my case) I do want to send personalized > e-mails. And even if I cancel this wish.. how about adresses which fail? You > will never ever find out how many adresses failed by putting them into the > all in bcc. And.. i

[PHP] Re: Building a query on multiple variables, how to test for which variables are valid?

2002-08-28 Thread David Robley
In article <000201c24ec3$d884db50$8102a8c0@000347D72515>, [EMAIL PROTECTED] says... > So these 4 variables walk into a bar :^] > > I have a form with 4 drop downs. Each of these drop downs might have a value > and there is no order in which they might have a value. A query needs to > built (

[PHP] Question about sending varibles to script

2002-08-28 Thread Piotr Skorupski
Hello   I have following question. How can i send to a script varible, but not from HTML form but via URL. (I'm talkin about something like http://www.domain.com/script.php?id=1 in earlyier version o php).   Best Regards   P.S. Please forgive me my english -- Serwer Biznesowy - serwer WW

[PHP] Sending running under user Apache??

2002-08-28 Thread Daren Cotter
Hi all... For some reason, starting today, sendmail will not run as root on my server...it starts as user "apache". This is causing permission problems with the mail queue. I have made no configuration modifications to the server in months. Does anyone know why this may be happening, or how to f

[PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Morehouse
Hello, Have a strange problem since upgrading to 4.2.2. On a clients first visit to a site, the PHPSESSID gets written into the URL, but not on any additional requests. Has anyone had this problem? It wasn't happening before the upgrade. Running: Redhat 7.3 PHP 4.2.2

[PHP] include interpreted php file

2002-08-28 Thread you
pb : include a php file in an other php file contraints : the php file must be interpreted before being included solution known : fsock then get the html code from the server and include it... Is there an other solution (easier) to include that file? thx for your help! You -- PHP General

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Todd Pasley
> > On a clients first visit to a site, the PHPSESSID gets written into the > URL, but not on any additional requests. > > Has anyone had this problem? It wasn't happening before the upgrade. > > Running: > > Redhat 7.3 > PHP 4.2.2 > Apache 1.3.26 The same thing happens to me, however, sessions

[PHP] RE: time stamp

2002-08-28 Thread Steve Buehler
Thank you David Lopez and David Robley. That was what I was looking for. Here is how I used it. $date=getlastupdatetime(array("team_id" => $team_id, "season" => $season, "div_id" => $div_id)); echo "$date"; function getlastupda

[PHP] Cannot get data from form.

2002-08-28 Thread Le Van Thanh
- I have installed PHP4.2.2 with Apache 1.3.26 on Solaris7. And now I have problems with getting data from form. I have 2 pages test.html and welcome.php as following: test.html Enter your Name: -

[PHP] Re: HTTP_REFERER?

2002-08-28 Thread Seairth Jacobs
If you are running PHP 4.1.0 or later, you can also use $_SERVER["HTTP_REFERER"], etc. Note that if you are using PHP 4.2.0 or later, then the "register_globals" option is off by default and the variables you mention below are not automatically created. --- Seairth Jacobs [EMAIL PROTECTED] "Lo

Re: [PHP] Cannot get data from form.

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 23:04, Le Van Thanh wrote: > - I have installed PHP4.2.2 with Apache 1.3.26 on Solaris7. > Then I cannot get the value of input name. > But if I write " print $_POST['name'];" or " print > $HTTP_POST_VARS['name'];", it's ok. > > Is there something wrong when I install P

Re: [PHP] PHPSESSID on entry page only

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 08:00, Todd Pasley wrote: > > On a clients first visit to a site, the PHPSESSID gets written into the > > URL, but not on any additional requests. > > > > Has anyone had this problem? It wasn't happening before the upgrade. > > > > Running: > > > > Redhat 7.3 > > PHP 4.

RE: [PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz
Thanks for the information. I appreciate your help. It works when I just want to display them in the main page, but the following code continues to generate empty data in my table. $larry = $_SERVER['HTTP_REFERER']; $moe = $_SERVER['QUERY_STRING']; $curly = $_SERVER['HTTP_USER_AGENT']; $schep

[PHP] imap_gt_quota is not defined ?

2002-08-28 Thread Roger Thomas
php-4.2.2 Linux rh7.1 I run this on my browser ... and I get: Fatal error: Call to undefined function: imap_get_quota() in /home/httpd/vhost/home/horde/q.php on line 5 I quickly look inside php-4.2.2/ext/imap/php_imap.c and can see that the function name is there. What's wrong with *me* ? --

[PHP] using php from command line

2002-08-28 Thread Michael P. Carel
Hi to all, I have a problem here in using php in command line i cant find the php executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 with --enable-cli. Any idea why? I need to run a php script using cron, or if you have any suggestion please share. Regards, Mike -- P

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin French
I haven't heard about address' changing midway through a session (ie, without reconnecting), but it's worth pointing out that there will be a few other reasons why this isn't a good idea: 1. if they have to reconnect, they're near guaranteed to have a new IP 2. with most big ISPs, all users may

[PHP] Re: using variable ..help

2002-08-28 Thread Remon Redika
Thank you for u'r advanced, it's works correct... regard me. Stas Maximov writes: > Remon, > > Your code works correct, cause you coded it this way as it should go through > the array and output every element in the array into one line. > If I got your idea correctly - you probably wa

Re: [PHP] sending email to a mailing list

2002-08-28 Thread Justin French
on 29/08/02 8:54 AM, Andy ([EMAIL PROTECTED]) wrote: > I do not agree. First off all (in my case) I do want to send personalized > e-mails. And even if I cancel this wish.. how about adresses which fail? You > will never ever find out how many adresses failed by putting them into the > all in bc

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Joseph Szobody
> But I wouldn't be relying on a remote IP for anything... they're too > unreliable. This wasn't meant to be a fool-proof security solution to begin with. None of these 'protected' pages contain anything real sensitive. However... what are some good security procedures (besides an encrypted con

RE: [PHP] HTTP_REFERER?

2002-08-28 Thread Lon Lentz
Weird. When I plugged them straight into the query, it worked. Thanks again for the help. Solved a major problem for me. -Original Message- From: listman@evol [mailto:listman@evol]On Behalf Of Keith Vance Sent: Wednesday, August 28, 2002 10:51 PM To: Lon Lentz Subject: RE: [PHP] HTTP_

[PHP] trying to post to credit card authorization gateway - ibill

2002-08-28 Thread Stan
The following was from a post over a year ago, where the author was trying to post credit card info to an .exe gateway program to check authorization. I am trying to get something similar to work. I can submit it and to the gateway, but I never get the comma delimitted authorization string back fr

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin French
on 29/08/02 1:01 PM, Joseph Szobody ([EMAIL PROTECTED]) wrote: >> But I wouldn't be relying on a remote IP for anything... they're too >> unreliable. > > This wasn't meant to be a fool-proof security solution to begin with. None of > these 'protected' pages contain anything real sensitive. Yes,

RE: [PHP] trying to post to credit card authorization gateway - ibill

2002-08-28 Thread Eric Bauer
I have done this with ASP and Authorize.net, so I'm not sure if it will work for you, but all I did was in asp use a request.form("fieldname") which I think would be like using $_POST['fieldname']; or $HTTP_POST_VARS['fieldname'] (I'm still new to PHP). Hope that helps -Original Message-

[PHP] Re: trying to post to credit card authorization gateway - ibill

2002-08-28 Thread Manuel Lemos
Hello, On 08/29/2002 12:14 AM, Stan wrote: > The following was from a post over a year ago, where the author was trying > to post credit card info to an .exe gateway program to check authorization. > I am trying to get something similar to work. I can submit it and to the > gateway, but I never g

[PHP] and or statement

2002-08-28 Thread Victor
What is the "and" "or" statement in php? I need this to see if the first statement is whatever, and or the second statement is whatever... if (!isset($PHP_AUTH_USER) "and or" blah($blah)) {} Thank you - vic __ Post your fre

Re: [PHP] and or statement

2002-08-28 Thread Rasmus Lerdorf
That makes absolutely no sense. How is "and or" different from simply "or"? Draw me the sets and show me the overlap satisfied by this alien "and or" operator of yours. -Rasmus On Wed, 28 Aug 2002, Victor wrote: > What is the "and" "or" statement in php? > > I need this to see if the first st

[PHP] performing searches with random entries

2002-08-28 Thread Brian & Shannon Windsor
I'm trying to take a variable in that would be usually 3 to 4 words (could be more or could be less). Right now, I'm exploding the variable and testing each individually, but this obviously is a pain with the more variables you get, and the result I get from the mysql search doesn't give me enoug

Re: [PHP] AOL problem with remote IP address

2002-08-28 Thread Justin Garrett
AOL uses load balancing proxy servers which means every new page load could come from a different IP address. A quick google search brought up this article that mentions it: http://surfaid.dfw.ibm.com/web/home/whitepapers/weblog.html Read the section on 'Effects of Dynamically Changing IP addres

Re: [PHP] and or statement

2002-08-28 Thread Todd Pasley
Apologies if im not quite understanding this... but to me it reads you want... if ((X and Y) OR Y) . which mathematically is simply if (Y). If this is what u actually mean, then all u need is if (blah($blah)) because the value of the first predicate is going to have still depends on Y to b

Re[2]: [PHP] and or statement

2002-08-28 Thread Tom Rogers
Hi, Thursday, August 29, 2002, 1:35:47 PM, you wrote: RL> That makes absolutely no sense. How is "and or" different from simply RL> "or"? RL> Draw me the sets and show me the overlap satisfied by this alien "and or" RL> operator of yours. RL> -Rasmus RL> On Wed, 28 Aug 2002, Victor wrote: >>

[PHP] Mime Decoder

2002-08-28 Thread Santosh Pasi
Hi All, I am looking for Mail Mime Decoder tutorial or guide. Does any have any idea how to decode mail (for example torture mail) or OE mail with multipart/mixed Content Type. I tried Richard Heyes' mimeDecode, but actually don't know how to proceed further. Regards, Santosh Pasi -- PHP

Re: [PHP] using php from command line

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 09:50, Michael P. Carel wrote: > I have a problem here in using php in command line i cant find the php > executable in /usr/bin/php in my readhat linux after compiling php-4.2.2 > with --enable-cli. After doing "make", the php binary should be in the same directory

[PHP] Class problem - Fatal error:

2002-08-28 Thread irek
Hello I get this error: Fatal error: Cannot redeclare class dmsql in /usr/local/apache/htdocs/dm/inc/sql.inc.php on line 4 It happens when a user presses the back button, otherwise when the page is first loaded it works fine. Here's the file called with web browser include('class_dmsql.inc.php

Re: [PHP] Class problem - Fatal error:

2002-08-28 Thread Todd Pasley
> Fatal error: Cannot redeclare class dmsql in It looks like you are after include_once http://www.php.net/manual/en/function.include-once.php Todd - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 29, 2002 2:48 PM Subject: [PHP] Class proble

[PHP] Re: Mime Decoder

2002-08-28 Thread Manuel Lemos
Hello, On 08/29/2002 01:32 AM, Santosh Pasi wrote: > Hi All, > > I am looking for Mail Mime Decoder tutorial or guide. Does any have any idea > how to decode mail (for example torture mail) or OE mail with multipart/mixed > Content Type. > > I tried Richard Heyes' mimeDecode, but actually don

[PHP] Re: Stepping through an array more than once (offlist)

2002-08-28 Thread Petre Agenbag
Hi Justin OK, a quick feedback on your previous suggestion: I tried to unset the $myrow_it, but it still didn't produce any output. The only way I could get it to work was with the same method you suggested in this e-mail. I had to create 2 new vars ( which basically boils down to 2 more SQL's).

[PHP] gettext

2002-08-28 Thread Marco Muratori
Hi I'm using gettext to add i18n to a web site, and it seems to work fine, but the translation is done randomly. I mean that if you reload many times the page, sometimes it gives back the translated message and sometimes the untranslated one. These are the steps I followed to use gettext with php:

Re: [PHP] Re: Stepping through an array more than once (offlist)

2002-08-28 Thread Jason Wong
On Thursday 29 August 2002 14:16, Petre Agenbag wrote: > Hi Justin > OK, a quick feedback on your previous suggestion: > > I tried to unset the $myrow_it, but it still didn't produce any output. > The only way I could get it to work was with the same method you > suggested in this e-mail. > I had

[PHP] Re: Stepping through an array more than once (offlist)

2002-08-28 Thread Justin French
1. did my code work? 2. It appears that you have to reset the mysql_fetch_*(), not reset the $myrow. Try calling: mysql_data_seek($result_it, 0) before while ($myrow = mysql_fetch_assoc($result)) It would appear that it resets the $result_it for a call to mysql_fetch_row(). I wou

Re: [PHP] Re: Stepping through an array more than once (offlist)

2002-08-28 Thread Petre Agenbag
Jason Sorry, I completely forgot to comment on your suggestion: I did try mysql_data_seek(), but it didn't work for me ( guess I don't know how exactly it works), BUT, it did look like it was meant for stepping through a one dimensional array, and $result is not a one dimensional array, right? Ma

Re: [PHP] Re: Stepping through an array more than once (offlist)

2002-08-28 Thread Petre Agenbag
Jason Thanks the mysql_data_seek() works. With Justin's help, I used the mysql_data_seek() to reset the $result "matrix" to 0, and re-issued the same while statement. It now produces the desired output. Thanks. On Thu, 2002-08-29 at 08:46, Jason Wong wrote: > On Thursday 29 August 2002 14:16, Pet

<    1   2