Re: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 18:57, lines prefixed by '>' were originally written by you. > Off hand, I would agree. And that is what I would expect. > However, the *exact* same setup on a different server gives me a > result of > 'FALSE' properly. Th

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
> > [snip] > Nothin' wrong with the SQL statement - it executes properly when I enter > values that actually pull something from a table. When I enter values > that > are not present in the table, I go on to have the other issue of it > looking > like it is false, though it is not. :\ > [/snip]

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] > I still want to know what you need to do, test for query execution or > value? It is pretty cut and dried after that. Value. If there is nothing found in the table that matches, do one thing. If there is, do another. :) [/snip] Then you must test for something returned, not whether or

Re: Fw: [PHP] debuging and getting mor information about failures

2003-07-29 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > [snip] > I wonder why the heck the author didn't just go for the alternative > syntax with proper end-tokens and get the added value they deliver. > [/snip] > > At the risk of stepping of of the curb into the holy-war that rages > about this the an

[PHP] Re: include and imagejpg() weird behavior - maybe header?

2003-07-29 Thread Rob Adams
"Oli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a function that resizes images. If I put it in the same php file that > calles it it workes fine. Gives a nice thumbnail or whatever size I choose > to display. If I however put it in a seperate file and include it and call

Re: [PHP] Is there an alternative to HTML frames?

2003-07-29 Thread Chris Shiflett
Hi Jason, --- Jason Barnett <[EMAIL PROTECTED]> wrote: > I'm new to php and web development in general. I've toyed with > ASP a little and enjoyed using "include" statements to include > my navigation and heading pages. Does PHP provide a similar > statement, or is there something else I can do to

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 2:41 PM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] Bizarre SQl, if issue > > > [snip] > > I still want to know what you need to do, test for query execution or > > value?

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] I did! Look at this again: $which_person = mysql_query("SELECT ID FROM tblItems WHERE number = $place"); $vthere = mysql_num_rows($which_person); if ($vthere == '0') { True } else { False } Yet it still returns as if this is FALSE (i.e. it executes the el

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Daevid Vincent
I already to that with ping and nmap. The problem lies BEFORE getting the list. :) "Arp -n" is my master IP generator/table. So if the IP isn't in there, I don't know about it. I need a way to send a command line switch (which there isn't) or another call to force "arp" to rebuild it's cache. > -

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Chris Shiflett
I can't follow this thread very well, but I think the question has already been answered. In short, the code you originally sent us demonstrated a misunderstanding about what mysql_query() returns. That function will return false if there is some problem when trying to execute your query, and this

Re: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Curt Zirzow
* Thus wrote Mike At Spy ([EMAIL PROTECTED]): > > Off hand, I would agree. And that is what I would expect. > > However, the *exact* same setup on a different server gives me a result of > 'FALSE' properly. The other server has php 4.3.3 on it - the one giving the > improper response has php 4.

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 2:48 PM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] Bizarre SQl, if issue > > > [snip] > I did! Look at this again: > > $which_person = mysql_query("SELECT ID FROM tblI

Re: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 19:46, lines prefixed by '>' were originally written by you. > I did! Look at this again: > $which_person = mysql_query("SELECT ID FROM tblItems WHERE number = > $place"); > $vthere = mysql_num_rows($which_per

Re: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): > > -Original Message- > > From: Mike At Spy [mailto:[EMAIL PROTECTED] > > Sent: 29 July 2003 19:01 > > > > Off hand, I would agree. And that is what I would expect. > > > > However, the *exact* same setup on a different se

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Daevid Vincent
Well, a quick click on the URL I gave (http://daevid.com/examples/dhcp/) would immediately show you what it was (live on my server), but in a nutshell. I have a home LAN with many computers and other IP enabled devices -- two TiVos, replayTV, Dell Audio Reciever, Zaurus, 8 computers!, three noteboo

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] if ($vthere == '0') { True } else { False } > if ($vthere == 0) { True } else { False } Same result (actually, that was the first statement I tried). :\ [/snip] Then the query is failing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
> This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at > 19:46, lines prefixed by '>' were originally written by you. > > I did! Look at this again: > > $which_person = mysql_query("SELECT ID FROM tblItems WHERE > number = > > $place"); > > $vthere = mysql_num_rows($whic

[PHP] PEAR send mail problem

2003-07-29 Thread Andrew D. Luebke
Hello, I'm writing a program to send mail via the PEAR Mail module. Here is some code fragments: require_once "Mail/Mail.php"; require_once "Mail/Mime.php"; . . $body = $mime->get(); $headers = $mime->headers($headers); $mail =& Mail::fa

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
> [snip] > if ($vthere == '0') { True } else { False } > > > > > if ($vthere == 0) { True } else { False } > > > Same result (actually, that was the first statement I tried). :\ > [/snip] > > Then the query is failing. But the query returns no errors - both on my code I use to test errors a

Re: [PHP] Is there an alternative to HTML frames?

2003-07-29 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): > > In addition, you can often find out about any function by trying a URL such as > this: > > http://www.php.net/include > > If include is a function (which it happens to be), you will be shown the manual > page for that function. Not to be pick

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jennifer Goodie
> Actually, what you see is *exactly* the code being used. Nothing > has changed > about it. And whether the variable is regarded as a string or a > number, it > gives me the same stupid issue. Not recognizing it as a True > statement. :\ > > Is there any way possible that this could be the clien

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Chris Shiflett
--- Mike At Spy <[EMAIL PROTECTED]> wrote: > And when I plug values into the query at command line - values > that would return an empty set, it executes and returns an empty > set. And your conditional statement agrees that the result set is empty, right? I don't understand what the issue is now.

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Chris W. Parker
Daevid Vincent on Tuesday, July 29, 2003 11:53 AM said: > Well, a quick click on the URL I gave > (http://daevid.com/examples/dhcp/) would immediately show you what it > was (live on my server) Actually, no, it doesn't "immediately show you what it was". That's why

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] And when I plug values into the query at command line - values that would return an empty set, it executes and returns an empty set. [/snip] If the query is returning an empty set the value of mysql_num_rows($person) == 0 so $person = mysql_query("The Query"); $thecount = mysql_num_rows($

Re: [PHP] PEAR send mail problem

2003-07-29 Thread Curt Zirzow
* Thus wrote Andrew D. Luebke ([EMAIL PROTECTED]): > Hello, >I'm writing a program to send mail via the PEAR Mail module. Here is > some code fragments: > > require_once "Mail/Mail.php"; > require_once "Mail/Mime.php"; > . > . > $body = $mime->get(); > $he

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
Returns 0 (zero). -Mike > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 29, 2003 3:05 PM > To: Mike At Spy; [EMAIL PROTECTED] > Subject: RE: [PHP] Bizarre SQl, if issue > > > [snip] > And when I plug values into the query at command line

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] > $person = mysql_query("The Query"); > $thecount = mysql_num_rows($person); > echo "$thecount \n"; > > And tell us what $thecount is... Returns 0 (zero). [/snip] Then if($thecount == 0){ $whatever = 1; } else { $whatever = 4; } $whatever should be 1 -- PHP General Mailing List (

[PHP] Apache logs to keep $_POST values

2003-07-29 Thread Bogdan Albei
Is there any way to log the $_POST values passed to the PHP scripts in Apache's access log? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] Is there any way to log the $_POST values passed to the PHP scripts in Apache's access log? [/snip] fopen the log file, write the $_POST variables and any other data you would like to record along with a newline ("\n"). Make sure to fclose the log file. HTH! -- PHP General Mailing List (

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Mike At Spy
> [snip] > > $person = mysql_query("The Query"); > > $thecount = mysql_num_rows($person); > > echo "$thecount \n"; > > > > And tell us what $thecount is... > > Returns 0 (zero). > [/snip] > > Then > if($thecount == 0){ >$whatever = 1; > } else { >$whatever = 4; > } > > $whatever should be

Re: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Curt Zirzow
* Thus wrote Mike At Spy ([EMAIL PROTECTED]): Hey mike, > > > > $vthere = mysql_num_rows($which_person); > > > if ($vthere == '0') { True } else { False } > > Actually, what you see is *exactly* the code being used. Nothing has changed > about it. And whether the variable is

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Jay Blanchard
[snip] But that is my point - and I think we are going in circles now. It just doesn't do that. It returns 4 (as per your example). :\ [/snip] Then something else is wrong Mikevery, very wrong. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub

[PHP] Re: ereg() can't recognize characters... [SOLVED]

2003-07-29 Thread DvDmanDT
Notice the ?... The ? after the * is at least supposed to stop that problem... So preg_replace("#\{(.*?),(.*?)\}#","\\2",$whatever); should do what you want... :p -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Ivo Fokkema" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTEC

[PHP] HELP! Apache 2.0 and Passed Args not working!

2003-07-29 Thread scspieker
I have been using Apache 1.3 for years and there has been no flaw in how the rewrite rules were interpreted and argumants passed to my PHP programs. However, I am now having difficulty when using these same rules and the same PHP programs. I have used the rewriteLog and RewriteLogLevel directives

Re: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Bogdan Albei
Jay Blanchard wrote: [snip] Is there any way to log the $_POST values passed to the PHP scripts in Apache's access log? [/snip] fopen the log file, write the $_POST variables and any other data you would like to record along with a newline ("\n"). Make sure to fclose the log file. HTH! I want

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] I wanted to know if Apache has a feature that could log the $_POST values. [/snip] I don't think so, you would probably have to consult an Apache list or the Apache manual. [snip] By the way, fopening the log file and write the $_POST variables won't work on a server with high activity bec

Re: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 19:59, lines prefixed by '>' were originally written by you. > Actually, what you see is *exactly* the code being used. Nothing has > changed > about it. No. It is not the code you are using. if ($vthere == 0) { True } els

[PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have the following chunk of code: $sql = "SELECT setting from settings where name='display_rows'"; include("connect.inc.php"); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $pat

Re: [PHP] Weird Problem

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 20:40, lines prefixed by '>' were originally written by you. > I have the following chunk of code: > $sql = "SELECT setting from settings where name='display_rows'"; > include("connect.inc.php"); > print $s

RE: [PHP] Weird Problem

2003-07-29 Thread Jennifer Goodie
> I have the following chunk of code: > > $sql = "SELECT setting from settings where name='display_rows'"; > include("connect.inc.php"); > print $sql; > $row = mysql_fetch_row($result); > $path = $row[0]; > print $path; > > It always prints out "1" > > But if I r

RE: [PHP] Weird Problem

2003-07-29 Thread Jay Blanchard
[snip] $sql = "SELECT setting from settings where name='display_rows'"; include("connect.inc.php"); print $sql; $row = mysql_fetch_row($result); $path = $row[0]; print $path; [/snip] Because $result is not being gotten properly... $sql = "SE

Re: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Bogdan Albei
Jay Blanchard wrote: [snip] I wanted to know if Apache has a feature that could log the $_POST values. [/snip] I don't think so, you would probably have to consult an Apache list or the Apache manual. [snip] By the way, fopening the log file and write the $_POST variables won't work on a server wi

[PHP] DB resource as Session var

2003-07-29 Thread Jackson Miller
I think I know the answer to this, but I have no technical reason to back it up. Is it possible to store a db connection resource id as a $_SESSION variable? It would be nice to have one connection per user/session that carries over multiple page views. I am guessing this is impossible, but i

RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, connect.inc.php does the following: @$connect=mysql_connect("localhost",$dbuser,$dbpass); if (!$connect) { echo "Could not connect to mysql!"; exit(); } @$db=mysql_select_db($dbname); if

Re: [PHP] DB resource as Session var

2003-07-29 Thread Peter James
Not possible, for many reasons. Not the least of which is that db servers, like any server, only have a limited number of connections. Can you imagine the havoc that multiple, session-wide, open connections would do to a db server - even under light load? Oh ya, plus it's absolutely impossible t

RE: [PHP] Weird Problem

2003-07-29 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The only setting contained in that table is the one im calling for, and its value is 25. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine www.dev

Re: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Nicholas Robinson
Probably better to shell a command to write to the system log - I don't think PHP can do it directly. This would nott be subject to the contention problems you cite in writing to either an apache log or a dedicated log. HTH Nick On Tuesday 29 Jul 2003 8:36 pm, Jay Blanchard wrote: > [snip] > I

Re: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Peter James
I wonder if something like mod_filter, that would be able to access each request before it hit PHP, would work for this. -- Peter James [EMAIL PROTECTED] php|architect The Magazine for PHP Professionals http://www.phparch.com - Original Message - From: "Nicholas Robinson" <[EMAIL PROTEC

RE: [PHP] Apache logs to keep $_POST values

2003-07-29 Thread Jay Blanchard
[snip] I don't think I would have a problem with a separate log because I write into the log file all the datas I want(URL, Referer, etc, and $_POST) at once so the log would be OK. The difference from writing into Apache's log is that Apaches writes the URL, Referer, etc and then I write the $

RE: [PHP] DHCP web interface. New version.

2003-07-29 Thread Daevid Vincent
> > Pretty straight forward setup. Almost none in fact. Edit the .ini > > file with your mac addresses and icons you want to use (if any). > > Does this mean it doesn't go out, search your network, and then report > back with everything it's found? Do you mean that I have to manually > specify eac

RE: [PHP] Weird Problem

2003-07-29 Thread Jennifer Goodie
> The only setting contained in that table is the one im calling for, > and its value is 25. > see what print_r($row) outputs, then you'll at least know what is in the array. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array transform date and put in a session

2003-07-29 Thread Frank Keessen
Hi All, Can you please help me with the following: I've got a form with a field called datebirth[]; After submitting the form; it must put the datebirth field (or fields) into the mysql format -mm-dd and after that put it in a session: $date_array = split("-", $_POST['datebirth']); $mysqld

RE: [PHP] Bizarre SQl, if issue....

2003-07-29 Thread Petre Agenbag
Hi Mike, List Where is the $place variable coming from that you use in your query's where clause? I hope it is not being POST'ed or GET'ed (sic), cause then you might have the dreaded old register_globals issue. Humour me, echo your sql string in your code and see if it actually has something in

[PHP] learning php - problem already

2003-07-29 Thread karin
Hello everyone, Am new to php and have run into a problem while reading my book... can anybody tell me what does this mean: foreach($invoice as $number => $pppno) and also this: while(list($k,$v,) = each($a)) I do understand for loops and while loops but this is a bit confusing...do you haev

Re: [PHP] learning php - problem already

2003-07-29 Thread Matt Matijevich
I do understand for loops and while loops but this is a bit confusing...do you haev any links I can read up on these? http://www.php.net/manual/en/ has all the info you need -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird Problem

2003-07-29 Thread DvDmanDT
Isn't there a known problem with variables and included files? Like you have to create $result in the first file, or something... Just try to have it all in one file... Also, change "mysql_fetch_row($result);" to "mysql_fetch_row($result) or print(mysql_error());"... Something also tells me you are

RE: [PHP] learning php - problem already

2003-07-29 Thread Van Andel, Robbert
I can't help you with the while loop, but foreach loops are very nice to work with. It took me a while to figure it out as well. You can use the foreach to loop through all the instances of an array. This works best when you have an associative array ($state['CA'] = "Sacremento", $state['OR'] =

Re: [PHP] learning php - problem already

2003-07-29 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > > Hello everyone, > Am new to php and have run into a problem while reading my book... can anybody tell > me what does this mean: > > foreach($invoice as $number => $pppno) this rather straight forward: foreach([array] as [key] => [val] )

Re: [PHP] learning php - problem already

2003-07-29 Thread CPT John W. Holmes
> Hello everyone, > Am new to php and have run into a problem while reading my book... can anybody tell me what does this mean: Hi... let's see who gets this one first... :) > foreach($invoice as $number => $pppno) $invoice is an array. foreach() is going to loop through that array one element a

Re: [PHP] Weird Problem

2003-07-29 Thread Curt Zirzow
* Thus wrote DvDmanDT ([EMAIL PROTECTED]): > Isn't there a known problem with variables and included files? Like you have > to create $result in the first file, or something... Just try to have it all > in one file... Also, change "mysql_fetch_row($result);" to > "mysql_fetch_row($result) or print(

Re: [PHP] Array transform date and put in a session

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 21:42, lines prefixed by '>' were originally written by you. > Hi All, > Can you please help me with the following: > I've got a form with a field called datebirth[]; According to the rest of your code, it should be called

[PHP] MySQL query/PHP logic?

2003-07-29 Thread Petre Agenbag
Hi List OK, I've posted this on the MySQL list as well, but it seems a bit quiet there, and arguably it could definately be a PHP rather than mysql question depending on whether it can be done with one query (then it was/is a mysql query), or whether it should be done with some structures and mult

Re: [PHP] Array transform date and put in a session

2003-07-29 Thread Frank Keessen
Hi David, Thanks for your reply... This makes no sense; According to the rest of your code, it should be called datebirth, not datebirth[]. Let me put in the whole code > People number Date of birth "; ?> Regards, Frank From: "David Nicholson" <[EMAIL PROTECTED]>

Re: [PHP] Weird Problem

2003-07-29 Thread Kevin Stone
"Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Yes, connect.inc.php does the following: > > @$connect=mysql_connect("localhost",$dbuser,$dbpass); > if (!$connect) { > echo "Could not connec

Re: [PHP] learning php - problem already

2003-07-29 Thread Curt Zirzow
Ok... I'm getting the red pen out now :) * Thus wrote CPT John W. Holmes ([EMAIL PROTECTED]): > > Hello everyone, > > Am new to php and have run into a problem while reading my book... can > anybody tell me what does this mean: > > Hi... let's see who gets this one first... :) > > > foreach($in

RE: [PHP] MySQL query/PHP logic?

2003-07-29 Thread Jennifer Goodie
> select * from main > left join fof on main.id = fof.id > left join pub on main.id = pub.id > left join gov on main.id = gov.id > left join med on main.id = med.id > left join ngo on main.id = ngo.id > left join ow

Re: [PHP] MySQL query/PHP logic?

2003-07-29 Thread Nicholas Robinson
Don't know whether it's just because it's late at night here in the UK or whether I'm being a bit dim, but wouldn't it be much, much easier to store all the data in your non-main tables in a single table and distinguish the type of data (i.e. fof, pub, gov, etc) by a field. This would simpli

Re: [PHP] MySQL query/PHP logic?

2003-07-29 Thread Jim Lucas
Try something like this. select fof.id AS fof_id, fof.information_sent AS fof_info, pub.id AS pub_id, pub.information_sent AS pub_info, gov.id AS gov_id, gov.information_sent AS gov_info, med.id AS med_id, med.information_sent AS med_info, ngo.id AS ngo_id, ngo.information_sent AS ngo_in

Re: [PHP] Array transform date and put in a session

2003-07-29 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 29 Jul 2003 at 22:15, lines prefixed by '>' were originally written by you. > Hi David, > Thanks for your reply... This makes no sense; > According to the rest of your code, it should be called datebirth, > not datebirth[]. > Let me put in

[PHP] Mail funtion question

2003-07-29 Thread Irvin Amoraal
I am using the PHP mail() function to send subscribed-to bulk email. It successfully sends emails to the valid email addresses, but I get a series of error messages at the top of the PHP page like: /home/[my folder]/dead.letter... Saved message in /home/[my folder]/dead.letter 123... User unknown

[PHP] Adding a set of templates

2003-07-29 Thread Nigel Peck - MIS Web Design
I want to create my own templates but the phpBB site says coming soon for the docs. I copied the subSilver folder to a folder called default (in the templates directory) but when I go to style/add in the admin screens it doesn't show up, the docs say that the templates directory is scanned for n

[PHP] Rounding issue

2003-07-29 Thread Kevin Ison
I need to know if there is a work around for the following scenerio... $x = 4.5012412; echo round($x, 2); // results in 4.5 --- however I want 4.50! I want 2 decimal places! Is there a way to keep the zero from being dropped? I have not been able to get the zero to stay there ... I realiz

RE: [PHP] Adding a set of templates

2003-07-29 Thread Nigel Peck - MIS Web Design
Sorry wrong list lol. (long day) > -Original Message- > From: Nigel Peck - MIS Web Design [mailto:[EMAIL PROTECTED] > Sent: 29 July 2003 22:48 > To: [EMAIL PROTECTED] > Subject: [PHP] Adding a set of templates > > > I want to create my own templates but the phpBB site says coming > soo

[PHP] Re: Simple Array question

2003-07-29 Thread Irvin Amoraal
Normally array values start at 0 (zero), but let's say sh1=1 and sh2=2. then you could echo the values out like this: echo "ID 1: $id[1]ID 2: $id[2]"; Irvin. _ "Ryan A" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > If i am posting somethin

Re: [PHP] Rounding issue

2003-07-29 Thread Larry E . Ullman
$x = 4.5012412; echo round($x, 2); // results in 4.5 --- however I want 4.50! I want 2 decimal places! echo number_format ( round ($x, 2), 2); Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rounding issue

2003-07-29 Thread Curt Zirzow
* Thus wrote Kevin Ison ([EMAIL PROTECTED]): > I need to know if there is a work around for the following scenerio... > > $x = 4.5012412; > echo round($x, 2); // results in 4.5 --- however I want 4.50! I want 2 > decimal places! > > > Is there a way to keep the zero from being dropped?

Re: [PHP] learning php - problem already

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: Ok... I'm getting the red pen out now :) [snip] the each() function returns a one element array that the current (internal) array pointer is pointing to and will return false if at the end of the array. It actually returns a four element array (as per the manual). the list() fu

Re: [PHP] CGI timeout problem

2003-07-29 Thread John W. Holmes
imran wrote: CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. " does it mean that I have to use set_time_limit so the script doesn't time out ? I don't really understand why I should do that. You may be reaching an IIS imposed

Re: [PHP] Weird Problem

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: Include files are expanded into the parent file as if they file is in the file that included it. Ah... clear as mud. heh... ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com -

[PHP] session_set_cookie_params

2003-07-29 Thread Hank TT
Hi, I've read the official manual on session handling, as well as the section in "PHP Developer's Cookbook" (2/e, Hughes & Zmievski). But I still cannot make a cookie persist across browser sessions -- very frustrating. I use PHP 4.1.1 running as a CGI in Win32. Here is a snippet:

Re: [PHP] learning php - problem already

2003-07-29 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > > and apparently list() will ignore the keys that do not have numerical > indexes. The manual says numerical indexes are required, but not what > happens when they are encounted. It looks like they are just ignored. > > list($k,$v) = array('foo

Re: [PHP] Array transform date and put in a session

2003-07-29 Thread John W. Holmes
Frank Keessen wrote: I've got a form with a field called datebirth[]; After submitting the form; it must put the datebirth field (or fields) into the mysql format -mm-dd and after that put it in a session: $date_array = split("-", $_POST['datebirth']); $mysqldate = $date_array[2]."-".$date_ar

Re: [PHP] learning php - problem already

2003-07-29 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > think it was made to be intentionally confusing. For what reason, I > don't but all that matters to most is: it works.. and foreach has I cant type nor proof read today... at least before hitting send. Curt -- "I used to think I was indecisiv

Re: [PHP] Rounding issue

2003-07-29 Thread Kevin Ison
ahhh ok thanks guys!! That worked ... I knew it was something but I could not remember which function... thanks again! "Larry E . Ullman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > $x = 4.5012412; > > echo round($x, 2); // results in 4.5 --- however I want 4.50! I > > w

Re: [PHP] Rounding issue

2003-07-29 Thread Kevin Ison
ahhh ok thanks guys!! That worked ... I knew it was something but I could not remember which function... thanks again! "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Kevin Ison ([EMAIL PROTECTED]): > > I need to know if there is a work around for the foll

Re: [PHP] session_set_cookie_params

2003-07-29 Thread John W. Holmes
Hank TT wrote: I've read the official manual on session handling, as well as the section in "PHP Developer's Cookbook" (2/e, Hughes & Zmievski). But I still cannot make a cookie persist across browser sessions -- very frustrating. I use PHP 4.1.1 running as a CGI in Win32. Here is a snippet: ==

Re: [PHP] learning php - problem already

2003-07-29 Thread John W. Holmes
Curt Zirzow wrote: * Thus wrote Curt Zirzow ([EMAIL PROTECTED]): think it was made to be intentionally confusing. For what reason, I don't but all that matters to most is: it works.. and foreach has I cant type nor proof read today... at least before hitting send. I think I understood you.

Re: [PHP] session_set_cookie_params

2003-07-29 Thread Curt Zirzow
* Thus wrote Hank TT ([EMAIL PROTECTED]): > Hi, > > I've read the official manual on session handling, as well as the section in > "PHP Developer's Cookbook" (2/e, Hughes & Zmievski). But I still cannot > make a cookie persist across browser sessions -- very frustrating. > > I use PHP 4.1.1 run

Re: [PHP] Re: Simple Array question

2003-07-29 Thread Ryan A
Hi, Thanks for replying. I tried that and have 2 numbers like so: and tried to echo it like so: Echo of one is and echo of two is: Echo of one is and echo of two is: the output i got was: ** 32563Echo of one is 5 and echo of two is: 6 Echo of one is and echo of two is: **

[PHP] Re: Simple Array question (conclusion)

2003-07-29 Thread Ryan A
I GOT IT this is where the data was coming from: and this is where i take the values and dump it into an array/variables that i can call when and where i please: $pppno) {$asdf[$nn]=$pppno; $nn++; } ?> I just took out some of the breaks so it will take less space but you get the

[PHP] problems with vAuthenticate 3.0

2003-07-29 Thread Kim Eichen
Hello group This question is only relevant to those of you who know vAuthenticate. I have without luck tried to make vAuthenticate 3.0 (http://www.beanbug.net/vScripts.php) work. The funny thing is that vSignup 2.1 works flawlessly and it is based on vAuthenticate. En difference though is that

[PHP] help with php

2003-07-29 Thread Billy
hi im new to php. but i need help with a form. ive made an html form but the thing is i needed it to send all the info from the boxes above to an e-mail. this is my first time with this type of web design could someone help me out. thanks -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Re: Simple Array question

2003-07-29 Thread John W. Holmes
Ryan A wrote: Hi, Thanks for replying. I tried that and have 2 numbers like so: and tried to echo it like so: Echo of one is and echo of two is: Echo of one is and echo of two is: the output i got was: ** 32563Echo of one is 5 and echo of two is: 6 Echo of one is and echo of

RE: [PHP] help with php

2003-07-29 Thread Chris W. Parker
Billy on Tuesday, July 29, 2003 4:25 PM said: > hi im new to php. but i need help with a form. ive made an html form > but the thing is i needed it to send all the info from the boxes > above to an e-mail. this is my first time with this type of web > design could so

Re: [PHP] Re: Simple Array question (conclusion)

2003-07-29 Thread John W. Holmes
Ryan A wrote: I GOT IT this is where the data was coming from: and this is where i take the values and dump it into an array/variables that i can call when and where i please: $pppno) {$asdf[$nn]=$pppno; $nn++; } ?> I just took out some of the breaks so it will take less space but y

[PHP] Re: help with php

2003-07-29 Thread DvDmanDT
I agree to Parker's post, but I think I understand you... thescript.php: That script or command requires the following form: Send to this email: Your email: Subject: Message: Maybe this what you wanted, maybe not.. :p -- // DvDmanDT MSN: [EMAIL PROTE

[PHP] Re: Apache logs to keep $_POST values

2003-07-29 Thread Sek-Mun Wong
no, that's (partially) the idea of a POST. Eg, if a login script was done under SSL using a http GET, even if you were using 1 way crypt on the password, the cleartext would still be logged, which is undesirable. besides, how would you log a multi-part mime upload file in POST? The only way I ca

RE: [PHP] Re: help with php

2003-07-29 Thread Chris W. Parker
DvDmanDT on Tuesday, July 29, 2003 5:06 PM said: > I agree to Parker's post, but I think I understand you... Whoops... I should apologize. I missed the keyword "email" and read it as "another page". Sorry Billy. Chris. -- PHP General Mailing List (http://www.php.

[PHP] John->Re: [PHP] Re: Simple Array question (conclusion)

2003-07-29 Thread Ryan A
Hey John, I guess you are right, I do rely on this list quite a bit but am not the only one. Am learning by my mistakes though and finding solutions...they may not be the best solutions but they still work, everyone has to learn. Thanks for replying to the question though. And i didnt know about th

Re[2]: [PHP] uploading a file from a form

2003-07-29 Thread Tom Rogers
Hi, Wednesday, July 30, 2003, 12:09:44 AM, you wrote: AM> The version is PHP Version 4.2.3. AM> On Tue, 29 Jul 2003, Tom Rogers wrote: Then you can use the $_FILES array like this: if($_FILES["photo"]["error"]==0){ //make sure no errors on upload if(!empty($_FILES["photo"]["name"])){ //

<    1   2   3   >