Re: [PHP] Cache

2004-08-17 Thread Octavian Rasnita
From: pan [EMAIL PROTECTED] What provides the new data? Can you run a html update from whatever is supplying the new data? Hmm, I don't think I can. The data is stored in MySQL by a separate program, but that data can be used in more pages. I think the only good solution would be to run a

Re: [PHP] The_'_character_and_Hidden_(POST)_form_fields...

2004-08-17 Thread Torsten Roehr
Sean O'Donnell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] the #146; character... *damn outlook rewrote it in my email. =/ SEAN O'DONNELL PROGRAMMER/ANALYST Hi Sean, generally apply htmlentities() to all data to output. Use double quotes for your HTML attributes so single

Re: [PHP] [OFF] - Fraudulent web orders - any ideas?

2004-08-17 Thread Markus Mayer
On Monday 16 August 2004 17:03, Brian Dunning wrote: I think I may have solved it by an even simpler method: I emailed the perpetrator to thank him for all of his orders to see what he'd say. :-) Great idea! (me shows the thumbs up) Anyone know who the proper authorities are, to whom I

Re: [PHP] Cache

2004-08-17 Thread raditha dissanayake
Octavian Rasnita wrote: From: pan [EMAIL PROTECTED] What provides the new data? Can you run a html update from whatever is supplying the new data? Hmm, I don't think I can. The data is stored in MySQL by a separate program, but that data can be used in more pages. I think the only good

[PHP] Control manager ...

2004-08-17 Thread Marko Rastislav
Hallo all. Could me somebody recommend with building-up automatic MANAGER (DEAMON), that will be with me communicate by MAILOV? Something how's too MANAGER for control this conference? Just SCRIPT would with me communicate by mail and he execute operations, according control word in transmiting

[PHP] Sessions nightmare continue...

2004-08-17 Thread Angelo Zanetti
Hi all, Still no luck with sessions. I have installed an older version: 4.3.1 and have register_globals=Off I have 2 test pages a1.php and a2.php All I want to do is register a session variable, set a value for it and then in a2.php check that it is still registered and view the session's

[PHP] Re: back button doesn't work with sessions?

2004-08-17 Thread Harlequin
Frank I use a back button on a couple of sites that use session variables and don't seem to have an issue with them. However, my back buttons are held within IFRAME tags as I am accessing resources externally. -- - Michael Mason Arras People www.arraspeople.co.uk

Re: [PHP] Sessions nightmare continue...

2004-08-17 Thread Jason Wong
On Tuesday 17 August 2004 17:46, Angelo Zanetti wrote: Still no luck with sessions. I have installed an older version: 4.3.1 and have register_globals=Off I have 2 test pages a1.php and a2.php All I want to do is register a session variable, set a value for it and then in a2.php check that

[PHP] PHP MySQL Installation

2004-08-17 Thread Harlequin
Hi all. I'm probably biting off a little more than I can chew here but here goes... I've been asked to move some resources I have developed from our hosting company's server and host them locally. I know I am going to need a licence for MySQL as we are developing commercial applications and not

[PHP] Re: Sessions nightmare continue...

2004-08-17 Thread Craig Donnelly
Why are you testing if $_POST['submit'] is set are you posting something to the page?? In the two scripts you posted the code block wont be executed because there is no post variable being set. Try this: a1.php == ?php session_start();

Re: [PHP] Control manager ...

2004-08-17 Thread Jason Wong
On Tuesday 17 August 2004 17:25, Marko Rastislav wrote: Could me somebody recommend with building-up automatic MANAGER (DEAMON), that will be with me communicate by MAILOV? Something how's too MANAGER for control this conference? Just SCRIPT would with me communicate by mail and he execute

[PHP] Re: Sessions nightmare continue...SOLVED

2004-08-17 Thread Angelo Zanetti
Thanks to all that responded, I have finally found the problem: When I installed PHP again, I kept on modifying the PHP.ini in the WINNT directory (as specified in the manual) but the PHP.ini that was being looked up was the 1 in the c:\php directory so I kept on trying all new things and nothing

Re: [PHP] Move_uploaded_file()

2004-08-17 Thread [EMAIL PROTECTED]
How do you do that exactly - sorry for the stupid question - but the perms for [Œabsolute_path¹]/ is already rwxrw-rw-. Let me know if you are referring to a different way to set permissions... Thanks for your help! /T on 8/16/04 23:52, Jason Wong at [EMAIL PROTECTED] wrote: On Tuesday 17

Re: [PHP] Sessions nightmare continue...

2004-08-17 Thread Chris Shiflett
Hi Angelo, --- Angelo Zanetti [EMAIL PROTECTED] wrote: Still no luck with sessions. [snip] a1.php: ? session_start(); header(Cache-control: private); // IE 6 Fix. if(isset($_POST['Submit'])) { $_SESSION[login]=inside; session_write_close();

Re: [PHP] Move_uploaded_file()

2004-08-17 Thread Jason Wong
Please do not top post. On Tuesday 17 August 2004 19:31, [EMAIL PROTECTED] wrote: How do you do that exactly - sorry for the stupid question - but the perms for [Œabsolute_path¹]/ is already rwxrw-rw-. Let me know if you are referring to a different way to set permissions... 1) What is the

[PHP] problem with new mktime feature

2004-08-17 Thread Marcos Thiago M. Fabis
Hi everyone; I´m having a trouble with mktime. It is not generating negative values since the OS was updated to Linux version 2.6.7 (gcc version 3.2.3). I belive php uses mktime from glibc, and when this library was changed, mktime with this new stupid feature stoped generate

[PHP] Techniques for doing story

2004-08-17 Thread rogue
Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259 Where we can publish an article, multiple page even and lay it out in a nice design with images etc. How do you think this is done? These stories are dynamically generated it seems since the page

Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259corresponding Where we can publish an article, multiple page even and lay it out in a nice design with images etc. How do you think this is done? Uh...HTML? It is a website, correct? These

Re: [PHP] Techniques for doing story

2004-08-17 Thread raditha dissanayake
please ask a PHP specific question. rogue wrote: Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259 Where we can publish an article, multiple page even and lay it out in a nice design with images etc. How do you think this is done? These stories

Re: [PHP] Techniques for doing story

2004-08-17 Thread Chris Shiflett
--- rogue [EMAIL PROTECTED] wrote: I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259 Where we can publish an article, multiple page even and lay it out in a nice design with images etc. How do you think this is done? Nice designs and images come

Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
THats kinda cool. you see that there is also a page=2 query if you click to a different page, so i would assume, they store the html in a database for each page of a story. and then give a story_id to those records. so in the table, if there is 4 pages for story 12, then there are 4 records all

Re: [PHP] PHP templates

2004-08-17 Thread Justin Patrin
On Mon, 16 Aug 2004 09:31:04 +0300, Octavian Rasnita [EMAIL PROTECTED] wrote: Hi, I took a look to Smarty and Savant templating systems, and I like a few things from both of them. However, none of them are satisfactory. I don't like Smarty because it needs another language and I find

Re: [PHP] Techniques for doing story

2004-08-17 Thread John Nichel
rogue wrote: Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259 Where we can publish an article, multiple page even and lay it out in a nice design with images etc. How do you think this is done? These stories are dynamically generated it seems

Re: [PHP] Techniques for doing story

2004-08-17 Thread charles kline
I understand how the pages are designed etc. What I wanted to understand better was how the pages were being displayed using PHP. I guess it is obvious now after getting a few responses, that the HTML is stored in a table, perhaps one record per page... then you just query the story_id and

Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
Friendly crew today. :) Jason John Nichel [EMAIL PROTECTED] wrote: rogue wrote: Hi all, I want to do something like this: http://www.cgnetworks.com/story_custom.php?story_id=2259 Where we can publish an article, multiple page even and lay it out in a nice design with

[PHP] Protected vars

2004-08-17 Thread Alex Hogan
Hi All, I am having a hard time connecting to a mssql db from within a class. I keep getting this error; Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'SERVER\IUSR_SERVER'. (severity 14) in G:\wwwdev\includes\dbclass.inc.php on line 20 $this-dbh

Re: [PHP] Techniques for doing story

2004-08-17 Thread John Nichel
Jason Davidson wrote: Friendly crew today. :) We're all friendly... Except for that Chris guy I hear he's real mean. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
I understand how the pages are designed etc. What I wanted to understand better was how the pages were being displayed using PHP. I guess it is obvious now after getting a few responses, that the HTML is stored in a table, perhaps one record per page... then you just query the story_id and

Re: [PHP] Techniques for doing story

2004-08-17 Thread charles kline
Yea, But then I took his advice and found this http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was not so offended :) I had all the other links, but that one and did not think my question was that out there for the list... oh well. On Aug 17, 2004, at 12:31 PM, Jason Davidson

Re: [PHP] mail() on *nix using ssmtp or an external smtp server?

2004-08-17 Thread riese
Hi Markus, Markus Mayer wrote: [MTA in chroot()'d env] Yes, I'm afraid it requires an MTA. Maybe it's a risk, but unsing PHP (or general non-static webpages) generally is a potential security risk # Dan Bernstein, the author of qmail will pay you 1000$ if you exploit qmail. The offer stands

Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
Yea, But then I took his advice and found this http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was not so offended :) I had all the other links, but that one and did not think my question was that out there for the list... oh well. On Aug 17, 2004, at 12:31 PM, Jason

Re: [PHP] Template Question

2004-08-17 Thread Jonathan Hadddad
Rather than kill myself trying to do this, I'm simply cutting the file at the content point and saving each half of the file, and using INCLUDE(Start.php) and INCLUDE(finish.php). Template variables are included in the $template array. As far as the actual template is concerned, I'll keep

Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
hehe, funny crew too :) Matthew Sims [EMAIL PROTECTED] wrote: Yea, But then I took his advice and found this http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was not so offended :) I had all the other links, but that one and did not think my question was that out

Re: [PHP] Techniques for doing story

2004-08-17 Thread charles kline
On Aug 17, 2004, at 1:04 PM, Matthew Sims wrote: snip hn C. Nichel OMG, John. You broke through to someone. This could be good sign. Now if we can just get him to stop top posting he'll be ready for anything. ;) /snip oops... now i got it! :) -- PHP General Mailing List (http://www.php.net/) To

[PHP] JSR223 / PHP 5 under Tomcat issue

2004-08-17 Thread Steve Wardell
I'm on Windows 2000 trying to get the JSR 223: Scripting Pages in Java^TM Web Applications working of which PHP is the initial concrete implementation. Zend has been working with Sun to support PHP (and other scripting languages) better within Tomcat basically. Things get running fine thou

Re: [PHP] Inline diff coded in PHP

2004-08-17 Thread Justin Patrin
On Mon, 16 Aug 2004 11:22:30 +0300, Skippy [EMAIL PROTECTED] wrote: I'm looking for PHP code that will produce diff's between two texts, and render them inline. By that I mean not the standard *nix diff output, which compares and outputs lines, but a diff that compares inline text and outputs

[PHP] Mail module array limits

2004-08-17 Thread Sandy Keathley
I want to send emails to 2700 addresses selected from a MySQL database (an opt-in list). I am using the Mail module, assembling the addresses into an array, and passing that to the module. I have done this before with a few hundred addresses, but in this case, it fails. I know that some of

Re: [PHP] Mail module array limits

2004-08-17 Thread Nobody Special
On Tue, 17 Aug 2004 10:17:50 -0700, Sandy Keathley [EMAIL PROTECTED] wrote: I want to send emails to 2700 addresses selected from a MySQL database (an opt-in list). I am using the Mail module, assembling the addresses into an array, and passing that to the module. I have done this before

[PHP] OO Theory Question

2004-08-17 Thread Jed R. Brubaker
Hi all! I could use some perspective on a project that I am currently working on. I am trying to utilize OO to make my PHP easier, but I keep running into problems that revolve around the stateless nature of the web. Consider the following: I have a login class that is instantiated at the top of

[PHP] Pocket php

2004-08-17 Thread dark monkey
Hello, My name is Brendan Kettle ([EMAIL PROTECTED]), and I was wondering is there anyway to test/run php code on a pocket pc? Any help is appreciated. Cheers, Brendan _ It's fast, it's easy and it's free. Get MSN Messenger today!

Re: [PHP] OO Theory Question

2004-08-17 Thread Jason Davidson
put something in your script like if($_SESSION['authed'] == true) $user = new User($_SESSION['userId']); or something similar. Jason Jed R. Brubaker [EMAIL PROTECTED] wrote: Hi all! I could use some perspective on a project that I am currently working on. I am trying to utilize

Re: [PHP] OO Theory Question

2004-08-17 Thread Jed R. Brubaker
The real reason for having the login class like this is to eliminate database calls. I thought I could have one session variable that said yo uwere logged in, but then the database calls would still have to be made on each page. Thanks for the idea - any others? Jason Davidson [EMAIL PROTECTED]

[PHP] problems after installing on new hard-drive

2004-08-17 Thread Hull, Douglas D
I recently had a hard-drive go down in which I was running os x 10.2.x. I do not remember exactly what version of mysql, php etc. I had on it. I had a small mysql database with some php code that worked fine. Now that I have my new drive I have put php 4.3.2, phpmyadmin 2.5.7-pl1, and mysql

[PHP] Re: OO Theory Question

2004-08-17 Thread Jed R. Brubaker
Is there anything that says I can't instantiate the login class into the $_SESSION ? Pros, cons? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] OO Theory Question

2004-08-17 Thread Michael Sims
Jed R. Brubaker wrote: Consider the following: I have a login class that is instantiated at the top of every page. It can log you in, check to see if you are logged in, etc. This class has an assortment of class variables such as userID, userType, etc. [...] A solution is to set all of these

Re: [PHP] Techniques for doing story

2004-08-17 Thread Chris Shiflett
--- John Nichel [EMAIL PROTECTED] wrote: We're all friendly... Except for that Chris guy I hear he's real mean. ;) Hey, that's not true! :-) Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams

[PHP] FirstPay.net

2004-08-17 Thread Ed Lazor
Does anyone have information on PHP and FirstPay.net? I'm looking at using them to do credit card processing and wondering how easy it will be to communicate back and forth with them, whether scripts are available, etc.. Thanks, Ed

Re: [PHP] OO Theory Question

2004-08-17 Thread Jason Davidson
So dont make db call, pass appropriate vars thru session... i like to pass an array of data into my classes, so that there is no db call inside the constructor, this saves db calls tremendously at times. so you could pass an array into session called, UserData or whatever, and use that to

Re: [PHP] OO Theory Question

2004-08-17 Thread Curt Zirzow
* Thus wrote Jed R. Brubaker: Hi all! I could use some perspective on a project that I am currently working on. I am trying to utilize OO to make my PHP easier, but I keep running into problems that revolve around the stateless nature of the web. Consider the following: I have a login

Re: [PHP] OO Theory Question

2004-08-17 Thread Justin Patrin
On Tue, 17 Aug 2004 12:03:56 -0600, Jed R. Brubaker [EMAIL PROTECTED] wrote: Hi all! I could use some perspective on a project that I am currently working on. I am trying to utilize OO to make my PHP easier, but I keep running into problems that revolve around the stateless nature of the

RE: [PHP] OO Theory Question

2004-08-17 Thread Ed Lazor
-Original Message- The real reason for having the login class like this is to eliminate database calls. I thought I could have one session variable that said yo uwere logged in, but then the database calls would still have to be made on each page. Playing Devil's Advocate

[PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Bobbie Atristain
_ From: Bobbie Atristain [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 3:27 PM To: '[EMAIL PROTECTED]' Subject: Help with PHP 5 - code not working since upgrade Greetings, I've had to move an application from a Rehat Linux 6 apache server running PHP 3.x to a MAC OS

Re: [PHP] Techniques for doing story

2004-08-17 Thread John Nichel
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: We're all friendly... Except for that Chris guy I hear he's real mean. ;) Hey, that's not true! :-) Well, I'll quit spreading that rumor then. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP

Re: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Matthew Sims
Greetings, I've had to move an application from a Rehat Linux 6 apache server running PHP 3.x to a MAC OS X apache 1.3 running PHP 5 and the code listed below bombs out..i have commented it out for now and it works but the code listed below doesn't work on the new server - do any of you see

Re: [PHP] OO Theory Question

2004-08-17 Thread Jed R. Brubaker
I don't know - is it? Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- The real reason for having the login class like this is to eliminate database calls. I thought I could have one session variable that said yo uwere logged in, but then

Re: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Peter Brodersen
On Tue, 17 Aug 2004 12:40:00 -0700 (PDT), in php.general you wrote: I didn't have to look much further than this. You have a class that was designed in PHP3 and suddenly you're wondering why it work in PHP5? Actually, I too would wonder why it worked :) -- - Peter Brodersen -- PHP General

RE: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Matthew Sims
Okay - I apologize but I'm a systems admin - not a programmer - would I even need those classes now? -Original Message- From: Matthew Sims [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 3:40 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] FW: Help with PHP 5 - code not

Re: [PHP] problems after installing on new hard-drive

2004-08-17 Thread Brent Baisley
How are you reading you POST variables? You're probably hitting the register globals off change that occurred in PHP for security reasons. Values passed for a POST (or GET) are no longer automatically declared as variables. You should be accessing your POST variables like

Re: [PHP] Pocket php

2004-08-17 Thread Miles Thompson
Doesn't MSFT have PIIS? Pocket Internet Information Server? If there's a web server that runs on the Pocket PC ... but I don't think so. MT At 03:14 PM 8/17/2004, dark monkey wrote: Hello, My name is Brendan Kettle ([EMAIL PROTECTED]), and I was wondering is there anyway to test/run php code on a

Re: [PHP] Pocket php

2004-08-17 Thread Justin Patrin
On Tue, 17 Aug 2004 18:14:52 +, dark monkey [EMAIL PROTECTED] wrote: Hello, My name is Brendan Kettle ([EMAIL PROTECTED]), and I was wondering is there anyway to test/run php code on a pocket pc? Any help is appreciated. Have you looked to see if there's an Apache/PHP build for

RE: [PHP] FW: Help with PHP 5 - code not working since upgrade

2004-08-17 Thread Matthew Sims
Thanks for the info Matt - recommend any good websites for learning to script??? Cheerios, Bobbie For PHP, there's no beating php.net. Probably one of the best sites for learning. I'm sure someone else can list other sites to help but I've always used php.net and Google Groups for anything

[PHP] multi-uploading

2004-08-17 Thread Brad Ciszewski
I am having troubles with a script im trying to write. I was wondering if anyone could help me. The script needs to upload 2 files to a directory, and have a field for a name, which will then figure out the URLs of the files put them in the database along with the specified name. Please help :o

[PHP] Re: Mail module array limits

2004-08-17 Thread Manuel Lemos
Hello, On 08/17/2004 02:17 PM, Sandy Keathley wrote: I want to send emails to 2700 addresses selected from a MySQL database (an opt-in list). I am using the Mail module, assembling the addresses into an array, and passing that to the module. I have done this before with a few hundred

Re: [PHP] multi-uploading

2004-08-17 Thread Marcos Thiago M. Fabis
Maybe this help. http://www.phpclasses.org/browse/package/1708.html [s] Mt - Original Message - From: Brad Ciszewski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 5:18 PM Subject: [PHP] multi-uploading I am having troubles with a script im

Re: [PHP] multi-uploading

2004-08-17 Thread Jason Davidson
post some code please. Jason Brad Ciszewski [EMAIL PROTECTED] wrote: I am having troubles with a script im trying to write. I was wondering if anyone could help me. The script needs to upload 2 files to a directory, and have a field for a name, which will then figure out the URLs of the

RE: [PHP] OO Theory Question

2004-08-17 Thread Ed Lazor
-Original Message- I don't know - is it? I would think so. It's optimized for speed on small data sets. Does anyone else have an opinion on this? -Ed Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -Original Message- The real reason for

[PHP] getting an array out of the POST array

2004-08-17 Thread Ian M. Evans
One day I need to take a vacation with a big pot of coffee and study arrays. They're my downfall. We're moving to a new server and finally have a recent version of PHP. We have a page on the site for captioning the photos with the names of the subjects. After the form is posted, the script

RE: [PHP] OO Theory Question

2004-08-17 Thread Jason Davidson
i think for the ease of use, 1 db call per page is minimal, especially sinse we are talking about some small fields here. THe db is local to the webserver, so really, whats the problem. Jason Ed Lazor [EMAIL PROTECTED] wrote: -Original Message- I don't know - is it? I would

Re: [PHP] getting an array out of the POST array

2004-08-17 Thread Matt M.
while (list ($key, $val) = each ($_POST[firstname])){ $_POST[firstname][$key] = trim($_POST[firstname][$key]); $_POST[middlename][$key] = trim($_POST[middlename][$key]); $_POST[lastname][$key] = trim($_POST[lastname][$key]); you might be able to get this one yourself.

RE: [PHP] getting an array out of the POST array

2004-08-17 Thread Ralph G
Remove $_POST from $_POST[firstname][$key], $_POST[middlename][$key] and $_POST[lastname][$key]. It should simply be $firstname[$key], $middlename[$key], and $lastname[$key] Not sure what your array data looks like but instead of using while() use foreach(): foreach($_POST['firstname'] as $key

[PHP] mysql_fetch_array()

2004-08-17 Thread Anthony Ritter
When using mysql_fetch_array() is it necsessary to specify the second argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC? I have seen many examples where it is left out and it is coded: $row = mysql_fetch_array($sql); as opposed to $row = mysql_fetch_array($sql, MYSQL_BOTH); Thank

[PHP] Re: mysql_fetch_array()

2004-08-17 Thread Hannes Magnusson
On Tue, 17 Aug 2004 18:18:24 -0400 [EMAIL PROTECTED] (Anthony Ritter) wrote: When using mysql_fetch_array() is it necsessary to specify the second argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC? php.net/mysql_fetch_array array mysql_fetch_array ( resource result [, int

RE: [PHP] getting an array out of the POST array

2004-08-17 Thread Ian M. Evans
Thanks, that worked. So I understand this better did this ($_POST[firstname][$key] = trim($_POST[firstname][$key]);) not work because the variable to the left of the '=' was no longer POSTed? Original Message Remove $_POST from $_POST[firstname][$key], $_POST[middlename][$key] and

Re: [PHP] Re: mysql_fetch_array()

2004-08-17 Thread Matthew Sims
On Tue, 17 Aug 2004 18:18:24 -0400 [EMAIL PROTECTED] (Anthony Ritter) wrote: When using mysql_fetch_array() is it necsessary to specify the second argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC? php.net/mysql_fetch_array array mysql_fetch_array ( resource result [, int

Re: [PHP] mysql_fetch_array()

2004-08-17 Thread John Holmes
Anthony Ritter wrote: When using mysql_fetch_array() is it necsessary to specify the second argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC? I have seen many examples where it is left out and it is coded: $row = mysql_fetch_array($sql); as opposed to $row = mysql_fetch_array($sql,

[PHP] php question

2004-08-17 Thread michael crane
hello, I have a webpage which includes a frame containing a table made of 24 tds which in turn contain little images. When the mouse clicks on a little image the appropriate larger image is loaded into an adjacent frame. Can somebody point me in the direction to do this in php without frames

[PHP] Re: writing source code to file

2004-08-17 Thread Josh Acecool M
file_get_contents(http://www.yoursite.com/script.php;); using http:// causes it to get the html source. Hannes Magnusson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] http://www.php.net/manual/en/ref.outcontrol.php On Mon, 16 Aug 2004 10:35:42 -0400 [EMAIL PROTECTED] (Doug Parker)

[PHP] Re: writing source code to file

2004-08-17 Thread Hannes Magnusson
On Wed, 18 Aug 2004 00:50:45 -0700 [EMAIL PROTECTED] (Josh Acecool M) wrote: file_get_contents(http://www.yoursite.com/script.php;); I belive that this method will hang for ever since the script doesnt exit until file_get_contents() has got the complete results.. ...and the complete results

[PHP] regex to remove NL and CR

2004-08-17 Thread Kathleen Ballard
I am extracting text from a text datatype field of a database. The target text is marked (beginning and end) by html comments that have a known--but not uniform--format. Unfortunately, the web-based interface used to maintain the data inserted hard line breaks in the text. I initially tried

[PHP] regex to remove NL and CR

2004-08-17 Thread Kathleen Ballard
I am extracting text from a text datatype field of a database. The target text is marked (beginning and end) by html comments that have a known--but not uniform--format. Unfortunately, the web-based interface used to maintain the data inserted hard line breaks in the text. I initially tried

Re: [PHP] Re: writing source code to file

2004-08-17 Thread John Holmes
Hannes Magnusson wrote: file_get_contents(http://www.yoursite.com/script.php;); I belive that this method will hang for ever since the script doesnt exit until file_get_contents() has got the complete results.. ...and the complete results wont be ready until file_get_contents() returns. There

[PHP] How to understand this Warning?

2004-08-17 Thread Labunski
Hello, How to understand this warning? I thought maybe the directory name is incorrect, but it's fine. The Browser said.. Warning: readdir(): 2 is not a valid Directory resource in C:\xxx\x\news.php no line 78. ?php if ($handle = opendir('news')) { $sortArray=array(); while (false !==

Re: [PHP] php question

2004-08-17 Thread Matthew Sims
hello, I have a webpage which includes a frame containing a table made of 24 tds which in turn contain little images. When the mouse clicks on a little image the appropriate larger image is loaded into an adjacent frame. Can somebody point me in the direction to do this in php without frames

Re: [PHP] Re: writing source code to file

2004-08-17 Thread Hannes Magnusson
On Tue, 17 Aug 2004 19:34:18 -0700 [EMAIL PROTECTED] (John Holmes) wrote: Hannes Magnusson wrote: file_get_contents(http://www.yoursite.com/script.php;); I belive that this method will hang for ever since the script doesnt exit until file_get_contents() has got the complete results..

[PHP] Re: How to understand this Warning?

2004-08-17 Thread Hannes Magnusson
On Wed, 18 Aug 2004 02:54:35 +0300 [EMAIL PROTECTED] (Labunski) wrote: Hello, How to understand this warning? I thought maybe the directory name is incorrect, but it's fine. The Browser said.. Warning: readdir(): 2 is not a valid Directory resource in note the 2 in that message. You are

Re: [PHP] Techniques for doing story

2004-08-17 Thread raditha dissanayake
Chris Shiflett wrote: --- John Nichel [EMAIL PROTECTED] wrote: We're all friendly... Except for that Chris guy I hear he's real mean. ;) Hey, that's not true! :-) must be the other cris then. -- Raditha Dissanayake.

Re: [PHP] Re: writing source code to file

2004-08-17 Thread John Holmes
Hannes Magnusson wrote: On Tue, 17 Aug 2004 19:34:18 -0700 [EMAIL PROTECTED] (John Holmes) wrote: Hannes Magnusson wrote: file_get_contents(http://www.yoursite.com/script.php;); I belive that this method will hang for ever since the script doesnt exit until file_get_contents() has got the

Re: [PHP] OO Theory Question

2004-08-17 Thread Thomas Goyne
On Tue, 17 Aug 2004 12:25:42 -0600, Jed R. Brubaker [EMAIL PROTECTED] wrote: The real reason for having the login class like this is to eliminate database calls. I thought I could have one session variable that said yo uwere logged in, but then the database calls would still have to be made

[PHP] ftp_connect returns false

2004-08-17 Thread DBW
Just wondering if someone has some suggestions here. Using ftp_connect($server, $port) returns a false on the server I am trying to use. Doesn't matter which server I am trying to connect to. According to the provider, ftp from the server is allowed and php is compiled with --enable-ftp Any

Re: [PHP] regex to remove NL and CR

2004-08-17 Thread Tom Rogers
Hi, Wednesday, August 18, 2004, 9:09:02 AM, you wrote: KB I am extracting text from a text datatype field of a KB database. The target text is marked (beginning and KB end) by html comments that have a known--but not KB uniform--format. Unfortunately, the web-based KB interface used to maintain

[PHP] Re: How to understand this Warning?

2004-08-17 Thread Labunski
Hi, note the 2 in that message. You are prob. resetting the readdir() parameter in the script somewhere No, as far as I can see, I'm not resetting the readdir().. but.. You loop twice throu the same dir? Yes I do. Here is whole script: ?php if ($handle = opendir('news')) {