[PHP] php install error --enable-sockets

2002-06-12 Thread Rahul Bhide
Hi , I am trying to install php with the --enable-sockets on a solaris2.8 machine . and getting the following error . Any help is appreciated . thanks ~Rahul sockets.c: In function `php_if_recvmsg': sockets.c:1728: structure has no member named `msg_control' sockets.c:1729: structure has no

[PHP] embedded media from DB

2002-06-12 Thread Brad Wright
Hi all.. well i got the wav files from the mysql database and can get them to play in a web page using the following code: IF ($row = mysql_fetch_array($result)) { $data = $row["wavFile"]; $name = $row["wav FileName"]; $size = $row["wav FileSize"]; $type = $row["wav FileT

RE: [PHP] Problem with postfield elements

2002-06-12 Thread Balaji Ankem
Hi Jason, Thanks for the reply. Just I posted to input fields from a html form and I tried to print. Here I am not registering any global variables. I have tried echo "emp_id: ".$_POST['emp_id']; and able to print succesfully. Every time I have to refer like this $_POST['emp_id']. Can't I

Re: [PHP] Problem with postfield elements

2002-06-12 Thread Jason Wong
On Thursday 13 June 2002 14:18, Balaji Ankem wrote: > Hi friend, > Just now I have installed php 4.2.1 on my windows NT machine. Did you read the release notes or the documentation which comes with it, or the manual even? > Here I found I am not able to get the postfield values. > What would

[PHP] Problem with postfield elements

2002-06-12 Thread Balaji Ankem
Hi friend, Just now I have installed php 4.2.1 on my windows NT machine. Here I found I am not able to get the postfield values. What would be the reason? Thanks and Regards Balaji. Login.html = function check() { document.login.method = "POST"; document.

[PHP] Help with resize pix to thumbnail from mysql files in the directory

2002-06-12 Thread Bruce Youb
Hi Shane I seen your message about binary extraction and although I understand the concept it is past my pay grade. (newbie) I am working on customizing a cart and I am looking for an example of script to work on that extracts a file name from the db and resizes into a table. I tried a few thin

[PHP] mail( ) and cox

2002-06-12 Thread manguerar
Hey, Does anyone know why I can't use the mail() function for my email addresses [EMAIL PROTECTED]? It works fine on my Hotmail account, but I would rather use my cox account. Damon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] embeding media from DB

2002-06-12 Thread Brad Wright
Sorry... that should be mySQL database Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i bacilli -- In wine there is truth, in beer there is strenght, in water there are bacteria > From: Brad Wright <

Re: [PHP] Installation and/or configuration problems w 4.2.1 on NT

2002-06-12 Thread George Pitcher
Ed, Thanks, the server is IIS4 and I've tried both the CGI and ISAPI approach, even tried using the installer. All to no avail. I have taken the error mesage to mean that some security contraint is preventing the server from accessing eithet the PHP.exe or the .dll file. Stumped. George

RE: [PHP] Re: converting C to PHP

2002-06-12 Thread Martin Towell
> -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 3:25 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: converting C to PHP > > > In article <6416776FCC55D511BC4E0090274EFEF508A46F@EXCHANGE>, > [EMAIL PROTECTED] says... > > I'm convertin

Re: [PHP] apache/oracle/php

2002-06-12 Thread Michael P. Carel
Thanks to all who tried to helps. I've finally found out why. The oracle home user directory should be set to drwxr-xr-x so once the required environment was set the ora function can connect to the oracle database, and all the required files and library can be access. thanks Regards, Mike

[PHP] Re: converting C to PHP

2002-06-12 Thread David Robley
In article <6416776FCC55D511BC4E0090274EFEF508A46F@EXCHANGE>, [EMAIL PROTECTED] says... > I'm converting some C functions to PHP and have come across this: > > int skipf(..., char *format) > { > /* ... */ > cp = format; > char *cp, *cp2; > multiplier = strtol(cp, &cp2, 10); > /* ... */

Re: [PHP] Re: Email not getting

2002-06-12 Thread Manisha
If it is aurica.com then it is wrong as this is the name of Live server. But currently I am working on local linux server. (To access the server I use http://Linux-Server/index.php) Any way, following is the out put of the command ***Can't find server a

Re: [PHP] Re: Email not getting

2002-06-12 Thread Manuel Lemos
Hello, On 06/13/2002 01:59 AM, Manisha wrote: > I gave the command at root, I got some details > > >-- > > > > > Q-ID Size - Q-Time- Sender/Recipient > > 67Thu Ju

Re: [PHP] Re: Email not getting

2002-06-12 Thread Manisha
I gave the command at root, I got some details -- Q-ID Size - Q-Time- Sender/Recipient 67Thu Jun 13 11.22 nobody (host map: look

[PHP] embeding media from DB

2002-06-12 Thread Brad Wright
Hi all, I have been able to upload a wav file to a mxSQl db using PHP script. Wanted to be able to get that wav file from the db and embed it into a web page using the default media player to play it. Can anyone help??? Cheers, Brad Nel vino la verità, nella birra la forza, nell'acqua i

[PHP] Re: Email not getting

2002-06-12 Thread Manuel Lemos
Hello, On 06/13/2002 12:07 AM, Manisha wrote: > I am trying to send mail from Linux Redhat server through PHP. It is not > giving me any error but I am not getting any mail too. > > Following is the code > > > > $mailBody = "This is one line \ n This is a

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
I get the same thing...I have to click twice, or refresh the page to get rid of the info. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:21 AM To: '[EMAIL PROTECTED]'; Php Subject: RE: [PHP] beginner in PHP try this for chout() functi

Re: [PHP] converting C to PHP

2002-06-12 Thread Daniel Tryba
On Thu, Jun 13, 2002 at 02:13:48PM +1000, Martin Towell wrote: > But what about the pointer &cp2 > > If endptr is not NULL, strtol() stores the address of the first > invalid character in *endptr. In you example endptr is always NULL! > If there were no digits at all, > strtol() store

RE: [PHP] beginner in PHP

2002-06-12 Thread Martin Towell
try this for chout() function chout(){ global $mycart, $cart_items; session_destroy(); -Original Message- From: Phillip Perry [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:18 PM To: Martin Towell; Tom Rogers; Php Subject: RE: [PHP] beginner in

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
Thanks Martin!! That really helped out a lot. And thanks to all who tried to help me. I appreciate it! I have one other question that is really not so much important as it is annoying, but I can't figure it out myself. I'm practicing with sessions. What I'm making..if you couldn't tell by the ar

RE: [PHP] converting C to PHP

2002-06-12 Thread Martin Towell
But what about the pointer &cp2 If endptr is not NULL, strtol() stores the address of the first invalid character in *endptr. If there were no digits at all, strtol() stores the original value of nptr in *endptr. (Thus, if *nptr is not `\0' but **endptr is `\0' on return, the entire s

Re: [PHP] converting C to PHP

2002-06-12 Thread Daniel Tryba
On Thu, Jun 13, 2002 at 01:12:18PM +1000, Martin Towell wrote: > I'm converting some C functions to PHP and have come across this: > > int skipf(..., char *format) > { > /* ... */ > cp = format; > char *cp, *cp2; > multiplier = strtol(cp, &cp2, 10); > /* ... */ > } > > > How can I imp

[PHP] Re: [PHP-DB] Querying for MAX

2002-06-12 Thread Srinivasan Ramakrishnan
Hi César, As others have obviously pointed out using MAX() is the way to go. Need I mention that you can also insert values of your own making into an auto_increment column as long as they are not already used by some other record. In your case since you have old records with IDs of their own ma

Re: [PHP] A question

2002-06-12 Thread Justin French
There is a difference in the default way php installs between 4.1.x and 4.2... the newer version comes with register_globals Off in the php.ini file. Simple solution, change this value to On in your php.ini file, and restart. However, you scripts will be a lot more secure if you leave register_g

[PHP] Re: beginner in PHP

2002-06-12 Thread Mark Gallagher
Phillip Perry writes: > Can someone tell me why this doesn't work? > The $mycart array is fine and the $catalog array is also fine but nothing > inside the if statement prints. I've tried other echo statements but nothing > prints at all. > > while (list($key,$value) = each($mycart)) > {

RE: [PHP] beginner in PHP

2002-06-12 Thread Martin Towell
here's the revised loop $cat_cnt = count($catalog); while (list($key,$value) = each($mycart)) { for ($j = 0; $j < $cat_cnt; $j++) if ($value == $catalog[$j]["itemcd"]) { echo $catalog[$j]["unitprice"]; break; } } -Original Message- From: Martin Towell [mai

[PHP] A question

2002-06-12 Thread Vegitas Pride
I've had many troubles with my php, now I'm a beginner when it comes to php. I had installed Apache 1.3.2, and was trying to run simple php4. You know with index.php?id=yourpage with the code on the page being See what happened is my hard-drive crashed and I lost all my programs ect. I managed to

RE: [PHP] beginner in PHP

2002-06-12 Thread Martin Towell
Ah! $catalog is a 2D array - any your if statement is expecting a 1D array... -Original Message- From: Phillip Perry [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 1:52 PM To: Tom Rogers; Php Subject: RE: [PHP] beginner in PHP I meant Martin :) sorry. -Original Message---

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
I meant Martin :) sorry. -Original Message- From: Phillip Perry [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 11:44 PM To: Tom Rogers; Php Subject: RE: [PHP] beginner in PHP Array ( [0] => gerainiums [1] => roses [2] => roses [3] => roses [4] => roses [5] => roses ) 1 1 Yo

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
Array ( [0] => gerainiums [1] => roses [2] => roses [3] => roses [4] => roses [5] => roses ) 1 1 Your output is different from the last print_r that Tom had me do. I wonder why that is -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 11:44 PM

Re: [PHP] Dynamic Arrays

2002-06-12 Thread Analysis & Solutions
Hi Folks: I was going to propose something similar. Allow me to tweak: > > * > * > > > > on you script page ># $mand = array("foo", "bar"); $mand = array('foo', 'bar'); > # $cnt = count($mand); > # for ($i = 0; $i < $cnt; $i++) > # if (!in_array($mand[$i], $my_array)) >

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
Array ( [0] => gerainiums [1] => roses [2] => roses [3] => roses [4] => roses ) Array ( [0] => Array ( [itemcd] => daisys [itemcat] => FL [itemdesc] => Daisys, seed package 200/250 cnt [unitprice] => 2.2 ) [1] => Array ( [itemcd] => gerainiums [itemcat] => FL [itemdesc] => Gerainiums, purple, seed

RE: [PHP] beginner in PHP

2002-06-12 Thread Tom Rogers
Hi Then I guess you will have to add some debug code try this before the while loop and make sure your if ($value == $catalog["itemcd"]) will produce a match (and you do need the quotes really :) echo "".print_r($catalogue)."".print_r($mycart).""; Tom At 11:31 PM 12/06/2002 -0400, Phillip Perry

Re: [PHP] Dynamic Arrays

2002-06-12 Thread Miguel Cruz
On Wed, 12 Jun 2002, Tom Ray wrote: > I have an array question. I want to use a dynamic array but I don't know > how to do this. What I want to do is this, I want to write a form script > that takes the elements of the form and submits them in the array then I > want to do a loop and check to s

RE: [PHP] beginner in PHP

2002-06-12 Thread Martin Towell
send the results of putting these two line just before your while loop print_r($mycart); print_r($catalog); -Original Message- From: Phillip Perry [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 1:31 PM To: Tom Rogers; Php Subject: RE: [PHP] beginner in PHP Thanks, but that did

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
Thanks, but that didn't work either -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 11:32 PM To: [EMAIL PROTECTED]; Php Subject: Re: [PHP] beginner in PHP Hi itemcd and unitprice should be in quotes I think if they are keys in an array. $cat

Re: [PHP] Email not getting

2002-06-12 Thread Manisha
Hi, How to get the php.ini file ? I tried to run phpinfo program and where I got following Configuration File (php.ini) Path/usr/local/lib I tried to open that file, it has only 2 lines as follows: magic_quotes_gpc = On error_reporting = 5 Any addition is required ? Thanks Manisha

Re: [PHP] beginner in PHP

2002-06-12 Thread Tom Rogers
Hi itemcd and unitprice should be in quotes I think if they are keys in an array. $catalog["itemcd"] $catalog["unitprice"] Tom At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote: >Can someone tell me why this doesn't work? >The $mycart array is fine and the $catalog array is also fine but nothing

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
Thanks but that doesn't work. -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:59 PM To: [EMAIL PROTECTED] Cc: Php Subject: Re: [PHP] beginner in PHP Try this: echo "$catalog[unitprice]"; in my experience I've only been able to use the ech

RE: [PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
itemcd is an element of the array.. like this... array ('itemcd' => 'book', 'itemdesc' => 'This book is great', 'unitprice' => '29.95'); -Original Message- From: Pushkar Pradhan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 11:12 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] be

[PHP] converting C to PHP

2002-06-12 Thread Martin Towell
I'm converting some C functions to PHP and have come across this: int skipf(..., char *format) { /* ... */ cp = format; char *cp, *cp2; multiplier = strtol(cp, &cp2, 10); /* ... */ } How can I implement this line in PHP ? multiplier = strtol(cp, &cp2, 10); Oh, and an example of fo

Re: [PHP] Email not getting

2002-06-12 Thread Pushkar Pradhan
Yes what are your settings in php.ini, generally the default settings are sufficient? > I am trying to send mail from Linux Redhat server through PHP. It is not > giving me any error but I am not getting any mail too. > > Following is the code > > > > $mailBod

Re: [PHP] beginner in PHP

2002-06-12 Thread Pushkar Pradhan
Is itemcd a variable then it should be used as $itemcd? > Try this: > > echo "$catalog[unitprice]"; > > > in my experience I've only been able to use the echo() without the > quotation marks if I'm calling a function, for variables you need the > quotation marks. > > Hope this helps. > > > Phillip

[PHP] Email not getting

2002-06-12 Thread Manisha
I am trying to send mail from Linux Redhat server through PHP. It is not giving me any error but I am not getting any mail too. Following is the code - Even I checked the email files at /var/spool/mqueue - There are 2 file

RE: [PHP] Dynamic Arrays

2002-06-12 Thread Martin Towell
If you want to use an array for you form, then here's one method on you form page * * ... on you script page \n"; ?> I haven't tested it though. Maybe you could use array_diff() ??? -Original Message- From: Tom Ray [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:48 PM To

RE: [PHP] Varible Varibles

2002-06-12 Thread Peter
Ok,... what sort situations would you benifit using the first method? ie is it more suiteable to making some conditions eg $a = foo; while {$$a <= bar) echo "$a"; endwhile; -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 June 2002 12:44 PM T

Re: [PHP] Extracting from an Array

2002-06-12 Thread Andre Dubuc
Hi John, Btw, according to the error message, there's no such function as 'RIGHT' in PostgreSQl. (Sorry about referring to the string as an array in a session variable -- I've extracted the code from some other stuff that I had been working on.) Sigh. I'd like to know why this doesn't work:

Re: [PHP] beginner in PHP

2002-06-12 Thread Tom Ray
Try this: echo "$catalog[unitprice]"; in my experience I've only been able to use the echo() without the quotation marks if I'm calling a function, for variables you need the quotation marks. Hope this helps. Phillip Perry wrote: >Can someone tell me why this doesn't work? >The $mycart ar

[PHP] beginner in PHP

2002-06-12 Thread Phillip Perry
Can someone tell me why this doesn't work? The $mycart array is fine and the $catalog array is also fine but nothing inside the if statement prints. I've tried other echo statements but nothing prints at all. while (list($key,$value) = each($mycart)) { if ($value == $catalog[item

Fwd: [PHP] Please HELP on SUID HELP

2002-06-12 Thread Yamin Prabudy
I used a script from PEAR to adduser/deluser/change password the problem is the password file ini mode 600 and I run the script from web I had turn on the safe_mode = on safe_mode_gid = on the running script had a same UID GID with the password file when I try it There a alot of error... from re

[PHP] Dynamic Arrays

2002-06-12 Thread Tom Ray
I have an array question. I want to use a dynamic array but I don't know how to do this. What I want to do is this, I want to write a form script that takes the elements of the form and submits them in the array then I want to do a loop and check to see if each element in the array has a value

RE: [PHP] Varible Varibles

2002-06-12 Thread Martin Towell
well, the first method is the same as saying $a = "foo"; $foo = "bar"; echo "$a $foo"; whereas the second method is appending "bar" to $a (thus making it "foobar") In first method, you get two variables, the second, just one -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent

[PHP] Varible Varibles

2002-06-12 Thread Peter
howdy, I'm just curious here about varible varibles ... I know that you can, well it's documented that you can, do the following which will produce foo bar now what I am curious about is, how much of a difference does that really make when you compare it to.. Cheers Peter "the only dum

[PHP] Re: POST/GET var problem

2002-06-12 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > take the following html code > > > > > > Now when that is created by a php script the value that is passed back is > the following. > > myimg.x="Click loc X"&myimg.y="Click loc y" > > I could leave the name attribute off and I ge

Re: [PHP] Extracting from an Array

2002-06-12 Thread Andre Dubuc
Hi John, Yup. I know now that I've caused myself all sorts of grief when I set it to varchar. If I recall correctly (and I set this up four months ago when I began coding) I couldn't get it format without the crummy little dashes. So I set it to a string. Much coding later, I realize that I

[PHP] Re: Email validation

2002-06-12 Thread Manuel Lemos
Hello, On 06/12/2002 01:56 PM, Jeroen Timmers wrote: > Is there a simple function that validate an email adres You may want to try this e-mail validation class that provides different levels of e-mail validation. http://www.phpclasses.org/emailvalidation -- Regards, Manuel Lemos -- PHP

RE: [PHP] safe scripting

2002-06-12 Thread John Holmes
Restart apache. > -Original Message- > From: Georgie Casey [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 8:52 PM > To: [EMAIL PROTECTED] > Subject: [PHP] safe scripting > > How do i setup safe mode scripting (each script has a different uid) on my > win32, apache, php setup

[PHP] safe scripting

2002-06-12 Thread Georgie Casey
How do i setup safe mode scripting (each script has a different uid) on my win32, apache, php setup? my plesk host has to use it and i want to be able to test my scripts on my own computer. i set "safe mode = On" in my php.ini file but the script still lets me include a file, whereas the script o

Re: [PHP] Email validation

2002-06-12 Thread Justin French
There is a great function library on http://killersoft.com/ which was derived from what is widely considered the best email validation script in Perl. It also follows RFC 822 about as close as is possible. [http://www.faqs.org/rfcs/rfc822.html] I was about to start writing something simular, but

RE: [PHP] Creatng a PHP chatroom

2002-06-12 Thread Peter
have a look on www.phpbuilder.com zend.com, www.phpwizard.net & the like and have a look there .. particually phpwizard as there is phpirc in there under projects Cheers Peter -Original Message- From: Phil Powell [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 June 2002 10:02 AM To: [EMAI

RE: [PHP] POST Arrays with register globals..

2002-06-12 Thread John Holmes
$_POST['groups'] is an array. It's size is going to be dependant on how many check boxes were checked. So, in your example, if only blah2 is selected, you'll have $_POST['groups'][0] == '2' You can use count($_POST['groups']) to see how many boxes were checked. ---John Holmes... > -Origi

RE: [PHP] POST/GET var problem

2002-06-12 Thread John Holmes
When a user clicks on an image to submit, two variables are created... $image_x and $image_y Or, using the HTTP or super global variables... $HTTP_POST_VARS['image_x'], $HTTP_POST_VARS['image_y'] $_POST['image_x'], $_POST['image_y'] Try those...I'm pretty sure that's how it still works. ---Jo

RE: [PHP] Re: Querying for MAX

2002-06-12 Thread John Holmes
Show your code and learn how to use the MySQL_fetch_array() function... www.php.net/mysql_fetch_array ---John Holmes... > -Original Message- > From: César Aracena [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 6:19 PM > To: PHP DB List; PHP General List > Subject: RE: [PHP]

RE: [PHP] Extracting from an Array

2002-06-12 Thread John Holmes
What are the possible reasons that you "need it to be a varchar" ?? Do you realize how much extra work you are creating for yourself? Do you realize that you can have your users enter data in one format, and convert it to another format for MySQL? Do you realize you can use DATE_FORMAT() in your q

RE: [PHP] Querying for MAX <-- solved

2002-06-12 Thread César Aracena
Come to think now, you are all right about making the field auto_increment, instead of asking the DB which one is the following number. It's just that I have a pretty large old DB in which this field is NOT in sequence and should be imported before I keep designing the scripts. Thanks to all of y

RE: [PHP] Extracting from an Array

2002-06-12 Thread David Freeman
> I have a db field, type varchar, that is actually a 'date' > string formatted as dd-mm-. I used type 'varchar' (rather than > type 'date') since I had to accomplish other things with it. > Now, however, I do need to extract the Year (the last four > digits in the array). Ummm, are

RE: [PHP] Extracting from an Array

2002-06-12 Thread John Holmes
How about just SELECT RIGHT(fieldname,4) FROM tablename ---John Holmes... > -Original Message- > From: Lazor, Ed [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 7:09 PM > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] > Subject: RE: [PHP] Extracting from an Array > > > $sql =

Re: [PHP] Extracting from an Array

2002-06-12 Thread Andre Dubuc
Thanks Ed, Slight change -- I forgot that the delimiter was a 'space'. Anyway, I still get the first letter of the last part of the array. I guess what I need is something that specifies a range as in something like this: $Year = $Date[3-whatever?]; Seems rather odd that with the string as va

[PHP] Creatng a PHP chatroom

2002-06-12 Thread Phil Powell
I am intrested in creating a chatroom entirely in PHP involving streaming text. Where can someone help me to find such a means of doing so? Thanx Phil http://valsignalandet.com

RE: [PHP] RE: Thumbnails from mySQL binary data

2002-06-12 Thread John Holmes
Make it when it's uploaded. Then you make just one user wait on the server, instead of the multitude of users just viewing pages... ---John Holmes... > -Original Message- > From: Shane [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 4:10 PM > To: Philip Hallstrom > Cc: php >

[PHP] calc.php missing in cvs

2002-06-12 Thread David Norman
I checked out the version of Date by Baba, but I don't see Calc.php in the Date subdirectory on cvs.php.net. David Norman - deekayen http://atthat.com/ __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com

Re: [PHP] Postgres query problem

2002-06-12 Thread Aaron
Yeah, I found the problem, It was adding a "order by lower(title)" in another class which I forgot about when I was trying to test the query. so it works fine now. So yep, using, joines, case, order bys, lowers,inheritance in php/postgres all work fine. 1LT John W. Holmes wrote: >Double che

RE: [PHP] Querying for MAX

2002-06-12 Thread John Holmes
Just note that this will fail miserably unless you are locking your tables around the SELECT MAX() and the INSERT. What if 3 different users all select the same MAX() and try to insert the next number? You really need to re-think your database design if you have to do it this way. ---John Holmes

RE: [PHP] Querying for MAX

2002-06-12 Thread Martin Towell
what's you're after is select max(id) from table -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 9:36 AM To: 'PHP General List' Subject: RE: [PHP] Querying for MAX > What I'm trying to do here is not inside PHP nor MySQL books > I hav

[PHP] Re: Email howTo ?

2002-06-12 Thread Manuel Lemos
Hello, On 06/12/2002 05:42 PM, Septic Flesh wrote: > any way to send an email with php without using SENDMAIL ??? in a linux > (slack8) ? You can use SMTP but not with mail() under Linux. If you want to use SMTP, you may want to try this class. http://www.phpclasses.org/smtpclass -- Regar

RE: [PHP] Querying for MAX

2002-06-12 Thread David Freeman
> What I’m trying to do here is not inside PHP nor MySQL books > I have. I need to query the DB to look the max result in a > column. That is, if I have affiliate members with ID going > from 1 to 10, get the query to know that the last member > added was 10 so I can add member 11 witho

RE: [PHP] Automatic user login under NT

2002-06-12 Thread John Holmes
It is $_SERVER["LOGON_USER"]. You have to enable Integrated Windows Authentication under Directory Security in IIS> ---John Holmes... > -Original Message- > From: Barajas, Arturo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 12:43 PM > To: '[EMAIL PROTECTED]' > Subject: [PH

Re: [PHP] F5 problem...

2002-06-12 Thread Chris Shiflett
The best way to do this is with an HTTP header called Location. It is used like this. If page1.php contains a form that submits to page2.php, you will want to handle the form data with page2.php, and when you're finished, have a line that looks like this: header("Location: http://yoursite.org/

RE: [PHP] F5 problem...

2002-06-12 Thread Lazor, Ed
Create seperate documents: one to display the form and another to process the form. add.php // displays new form add_handler.php // process form input On the form processing, check for the presence of HTTP_POST_VARS before proceeding. if (isset($HTTP_POST_VARS)) { ##

[PHP] F5 problem...

2002-06-12 Thread WISTA.pl
Hello group, I need a good solution to prevent sending form data to server after hiting refresh. How can PHP know that user hit refresh and sent data that already have been stored in database (without querying database)? Remek -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Extracting from an Array

2002-06-12 Thread Lazor, Ed
$sql = "select fieldname from tablename"; $Results = mysql_query($sql, $DBLink); $Row = mysql_fetch_array($Results); $fieldname = $Row["fieldname"]; $Date = explode("-", $fieldname); $Year = $Date[2]; > -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED]] > Sent: Wednesday,

RE: [PHP] Re: Automatic user login under NT

2002-06-12 Thread Steve Edberg
At 01:39 PM 6/12/02 , Barajas, Arturo wrote: > > From: Lazor, Ed [mailto:[EMAIL PROTECTED]] > >Hi, Ed. > > > and I'm pretty sure I'm not the only one he's helped. That > > garners even more respect - IMHO. > >I'm new on the list, so I really don't know Rasmus, or what he does. As >far as I've re

[PHP] Extracting from an Array

2002-06-12 Thread Andre Dubuc
I have a db field, type varchar, that is actually a 'date' string formatted as dd-mm-. I used type 'varchar' (rather than type 'date') since I had to accomplish other things with it. Now, however, I do need to extract the Year (the last four digits in the array). I've tried to access the a

RE: [PHP] Else/For loop

2002-06-12 Thread David Freeman
> Being relatively new to php, I discovered the following > after about 2 hours of debugging last night and was wondering why??? > > I had the following code: > > if ( $num_results = 0 ) > { > echo "no records found"; > } > else > { > for ($i=0; $i < $num_results; $i++)

RE: [PHP] how can i insert date

2002-06-12 Thread Lazor, Ed
http://www.php.net/manual/en/function.mktime.php -Original Message- From: suman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: [PHP] how can i insert date hi i have a date,month and an year what is the function in php that i can i use t

RE: [PHP] Converting week number to unix timestamp

2002-06-12 Thread Lazor, Ed
You're looking for the mktime function. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 6:42 AM To: [EMAIL PROTECTED] Subject: [PHP] Converting week number to unix timestamp How can I convert the week number(i.e. 1 - 52) to a UNIX Times

RE: [PHP] including functions, passing objects I created

2002-06-12 Thread Lazor, Ed
I'm not sure I completely understand what you're asking, but taking a guess... ... assuming you're just wanting to work with the data... ... and assuming you're creating a results set from your db query, start with this code: $Results = mysql_query($sql, $DBLink); Within your function, you ca

[PHP] how can i insert date

2002-06-12 Thread suman
hi i have a date,month and an year what is the function in php that i can i use to convert the 3 vars into a date and insert into a postgres db. bye suman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Querying for MAX

2002-06-12 Thread César Aracena
When I try to use this SELECT MAX(column) AS amount FROM table; with PHP, the result I get is always: "Resource id #2" and not the number I expect... but if I run this at the mysql command line, it shows the expected number/value. What is that? César Aracena IS / MCSE+I Neuquén, NQN (0299) 156-35

[PHP] Converting week number to unix timestamp

2002-06-12 Thread webmaster
How can I convert the week number(i.e. 1 - 52) to a UNIX Timestamp?   Thanks   JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POST/GET var problem

2002-06-12 Thread Anzak Wolf
take the following html code Now when that is created by a php script the value that is passed back is the following. myimg.x="Click loc X"&myimg.y="Click loc y" I could leave the name attribute off and I get an x/y value set that I can use for some math functions I have. The problem is

[PHP] RE: [PHP-DB] Re: Querying for MAX

2002-06-12 Thread César Aracena
When I try to use this SELECT MAX(column) AS amount FROM table; with PHP, the result I get is always: "Resource id #2" and not the number I expect... but if I run this at the mysql command line, it shows the expected number/value. What is that? César Aracena IS / MCSE+I Neuquén, NQN (0299) 156-35

Re: [PHP] Store/Retrieve Word Documents in MySQL/PHP?

2002-06-12 Thread Håkan Askengren
Super Thanks a lot. /Håkan "Miguel Cruz" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I usually just grep through the one that comes with Apache; it's fairly > thorough. You might find it in /usr/local/apache/conf/mime.types > -- PHP General Mailing L

[PHP] RE: Thumbnails from mySQL binary data

2002-06-12 Thread Philip Hallstrom
If I had the choice I would make the thumbnail when it gets uploaded using the netpbm stuff (netpbm.sourceforge.net). I've found netpbm makes *much* nicer and smaller (file size wise) thumbnails than GD. -philip On Wed, 12 Jun 2002, Shane wrote: > I have read warnings that this (imagecreatefro

Re: [PHP] Email howTo ?

2002-06-12 Thread Scott
Point the php.ini to a smart host that will accept the connections. We do that on our Linux boxes at the office. All mail passes to a Notes server. On Wed, 12 Jun 2002, Septic Flesh wrote: > any way to send an email with php without using SENDMAIL ??? in a linux > (slack8) ? > > thanks in

[PHP] including functions, passing objects I created

2002-06-12 Thread Leotta, Natalie (NCI/IMS)
I have a line class that I'm using to draw a line graph of up to 5 lines. Since I query the db for each of those lines (with a # as lineNum), my code to take everything out of the fetch_arrays is fairly cumbersome. I use this code in 4 different programs (the graph, the printable graph, the data

RE: [PHP] while...

2002-06-12 Thread Lazor, Ed
Why not use while to loop through the shopping cart and add items to the message variable? $message = " Here is your order: "; while ($Row = mysql_fetch_array($Results)) $message .= "item description information"; $message .= " Thanks for your order... "; -Original Message-

[PHP] GD imagecreatefromstring ADVICE??

2002-06-12 Thread Shane
Anyone have any opinions or real world experience using the function "imagecreatefromstring?" Not much out there on the web? I am looking for the best method for making "thumbnails" from my binary DB data. Thanks again group!!! - NorthBayShane -- PHP General Mailing List (http://www.php.net/)

[PHP] while...

2002-06-12 Thread Phil Reid
I have a function in my script which sends an e-mail to my client company with details of a shopping cart order. I was wondering if it is possible to use a while loop inside the mail function so that I can send details of multiple items in one e-mail. Here is the code I am using. And bear in mi

  1   2   3   >