Re: [PHP] Why wouldn't a simple script work on my server thatworks on other servers?

2003-07-29 Thread Petre Agenbag
Look;s like he has short_open_tags = on in php.ini, BUT, as I understand it, this is a supplemental setting, meaning that it does not disable the use of the (proper) I have a client who had me upload a relatively simple script to his > server. Oddly, it does not work there but works every where e

RE: [PHP] Strip Numbers

2003-07-29 Thread Martin Towell
You could use two substr()s or an ereg_replace() $result = substr($str, 0, 2) . substr($str, 5); or $result = ereg_replace("([0-9][0-9])990([0-9][0-9])", "\\1\\2", $str); Both are not tested, but should work Martin -Original Message- From: Joe Harman [mailto:[EMAIL PROT

[PHP] Why wouldn't a simple script work on my server that works on otherservers?

2003-07-29 Thread Dan Anderson
I have a client who had me upload a relatively simple script to his server. Oddly, it does not work there but works every where else I test it. AND he has other PHP scripts running on his server. So I checked out his server and all scripts are of the form: // HTML HERE versus my scripts as

[PHP] Strip Numbers

2003-07-29 Thread Joe Harman
Hey could someone help me out here I need to strip numbers from a passed variable ex. 3899007 all the numbers will have 990 (so that is the 4th, 5th & sixth numbers... from the right...) I want to keep everything to the left of the two 9s... is there an easy way to do that Joe Harma

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-29 Thread Ney André de Mello Zunino
Ray Hunter wrote: $fooVar = mysql_fetch_assoc($result)["barColumn"]; No bug here...mysql_fetch_assoc($result) is a function that takes a result set as an argument and returns only one row as an associated array...that is why you need to do Thanks for the quick response, but I am not sure I unders

Re: [PHP] The return of mysql_fetch_assoc()

2003-07-29 Thread Ray Hunter
> $fooVar = mysql_fetch_assoc($result)["barColumn"]; No bug here...mysql_fetch_assoc($result) is a function that takes a result set as an argument and returns only one row as an associated array...that is why you need to do > $record = mysql_fetch_assoc($result); > $fooVar = $record["barColumn"

[PHP] The return of mysql_fetch_assoc()

2003-07-29 Thread Ney André de Mello Zunino
Hello. I wonder why the following code is not accepted by the PHP interpreter $fooVar = mysql_fetch_assoc($result)["barColumn"]; I am forced to create an intermediary variable for the array returned from mysql_fetch_assoc(), like this: $record = mysql_fetch_assoc($result); $fooVar = $record["b

Re: [PHP] tags to lowercase

2003-07-29 Thread Jeff Harris
On Jul 30, 2003, "Curt Zirzow" claimed that: |* Thus wrote Justin French ([EMAIL PROTECTED]): |> Hi all, | |hello. | |> |> has anyone developed or know of a function to convert all tags to |> lowercase, but still preserves the contents of the tags and the content |> of the attributes of the tags?

Re: [PHP] tags to lowercase

2003-07-29 Thread Curt Zirzow
* Thus wrote Justin French ([EMAIL PROTECTED]): > Hi all, hello. > > has anyone developed or know of a function to convert all tags to > lowercase, but still preserves the contents of the tags and the content > of the attributes of the tags? nice little tool: http://tidy.sourceforge.net/ Som

[PHP] Re: Mail funtion question

2003-07-29 Thread Bobby Patel
I haven't worked with PHP mail for a while, but since no one has responded I'll give you something to consider: 1. Why don't you try error suppression , @ ? or you can set error_reporting down or you can capture all output by using output buffering. 2. You can trap the invalid email, but it may be

Re: [PHP] Re: Parsing a local file

2003-07-29 Thread DvDmanDT
lol, yeah, guess so... Although, when you talk about these things, do you say you must download a file from the client? Or that you must open the remote logfile in your script? Damn, this is getting screwy... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Curt Zirzow" <[EMAIL PROT

[PHP] tags to lowercase

2003-07-29 Thread Justin French
Hi all, has anyone developed or know of a function to convert all tags to lowercase, but still preserves the contents of the tags and the content of the attributes of the tags? eg: becomes SomeThing Seems like it's going to be needed more and more in order to comply with XHTML strict. Just

Re: [PHP] Re: Parsing a local file

2003-07-29 Thread Curt Zirzow
* Thus wrote DvDmanDT ([EMAIL PROTECTED]): > Also, it's a remote file you are trying to parse, not a local... > local=server, remote=user... Like John linked, you must upload it... Can't > do it other ways... I suppose in this case with local and remote defined this way it should be download inst

[PHP] Re: Parsing a local file

2003-07-29 Thread DvDmanDT
Also, it's a remote file you are trying to parse, not a local... local=server, remote=user... Like John linked, you must upload it... Can't do it other ways... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] "Jason D. Williard" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PR

Re: [PHP] Parsing a local file

2003-07-29 Thread John W. Holmes
Jason D. Williard wrote: I am trying to build script that will parse a file on the user's computer. There are 2 things that I am not quite sure about. 1) How to read a file on the user's computer, and not on the server. http://us2.php.net/manual/en/features.file-upload.php 2) How to parse a line s

[PHP] Parsing a local file

2003-07-29 Thread Jason D. Williard
I am trying to build script that will parse a file on the user's computer. There are 2 things that I am not quite sure about. 1) How to read a file on the user's computer, and not on the server. 2) How to parse a line similar to the one below: "7/29/2003" , "Report Title" , "Page" , "Agent Name"

[PHP] Parsing a local file

2003-07-29 Thread Jason D. Williard
I am trying to build script that will parse a file on the user's computer. There are 2 things that I am not quite sure about. 1) How to read a file on the user's computer, and not on the server. 2) How to parse a line similar to the one below: "7/29/2003" , "Report Title" , "Page" , "Agent Name"

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"])){ //

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

[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

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

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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

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

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

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

[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

  1   2   3   >