[PHP] I need answers for the questions

2003-11-18 Thread Arivazhagi Govindarajan
PHP Questions 1. Explain about session management and cookies ? In PHP how we can maintain a session 2. What is HTTP tunneling 3. How to enable PHP in Apache server manually? 4. When we upload a file using INPUT tag of the type FILE what are global variables become available for use in

[PHP] E-mail Gateway

2003-11-18 Thread Jason Williard
I am in the beginning phases of developing a support system. I would like the program to be able to receiving and process e-mails. However, I am at a loss as to where to start. The main roadblock, at this point, is how to best receive and process the e-mail. I have looked at 2 options. 1) Use

Re: [PHP] ereg_replace help

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 04:37:52PM +1100, Martin Towell wrote: : : I have an array of strings in the following format: : abcd - rst : abcd - uvw : abcd - xyz : foobar - rst : blah - rst : googol - uvw : : What I want to do is strip everything from the - bit

Re: [PHP] I need answers for the questions

2003-11-18 Thread Henrik Hudson
On Tuesday 18 November 2003 01:12, Arivazhagi Govindarajan [EMAIL PROTECTED] sent a missive stating: PHP Questions 1. Explain about session management and cookies ? In PHP how we can maintain a session http://us3.php.net/session 3. How to enable PHP in Apache server manually?

Re: [PHP] E-mail Gateway

2003-11-18 Thread Henrik Hudson
On Tuesday 18 November 2003 01:21, Jason Williard [EMAIL PROTECTED] sent a missive stating: 1) Use a cron job to execute a php script every x minutes. 2) Create a script where mail can be piped to. This is a method that I have used previously with a cgi app called PerlDesk. While I could

Re: [PHP] ereg_replace help

2003-11-18 Thread Jason Wong
On Tuesday 18 November 2003 13:37, Martin Towell wrote: I have an array of strings in the following format: abcd - rst abcd - uvw abcd - xyz foobar - rst blah - rst googol - uvw What I want to do is strip everything from the - bit of the string to

Re: [PHP] ereg_replace help

2003-11-18 Thread Henrik Hudson
On Monday 17 November 2003 23:37, Martin Towell [EMAIL PROTECTED] sent a missive stating: Hi All, I have an array of strings in the following format: abcd - rst abcd - uvw abcd - xyz foobar - rst blah - rst googol - uvw What I want to do is strip

Re: [PHP] E-mail Gateway

2003-11-18 Thread Jason Wong
On Tuesday 18 November 2003 15:21, Jason Williard wrote: I am in the beginning phases of developing a support system. I would like the program to be able to receiving and process e-mails. However, I am at a loss as to where to start. [snip] 2) Create a script where mail can be piped to.

[PHP] Search For File

2003-11-18 Thread PHPDiscuss - PHP Newsgroups and mailing lists
Hello, I am trying to write a simple application using PHP on a Windows 2000 server. There is one text box for input and one search button. Basically the user would input a file name (for example help.pdf) and then the php script would search a directory (for example c:\help\) and subfolders

Re: [PHP] E-mail Gateway

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 02:19, Henrik Hudson wrote: On Tuesday 18 November 2003 01:21, Jason Williard [EMAIL PROTECTED] sent a missive stating: 1) Use a cron job to execute a php script every x minutes. 2) Create a script where mail can be piped to. This is a method that I have used

Re: [PHP] ereg_replace help

2003-11-18 Thread Robert Cummings
On Tue, 2003-11-18 at 02:30, Jason Wong wrote: On Tuesday 18 November 2003 13:37, Martin Towell wrote: I have an array of strings in the following format: abcd - rst abcd - uvw abcd - xyz foobar - rst blah - rst googol - uvw What I want to do is strip

[PHP] Re: E-mail Gateway

2003-11-18 Thread Brian M McGarvie
2) Create a script where mail can be piped to. This is a method that I have used previously with a cgi app called PerlDesk. In answer to Point 2... If you are in a position to edit your 'aliases file' you can feed email to a program using PHP quite easily. I am doing it and works quite well.

Re: [PHP] Search For File

2003-11-18 Thread Burhan Khalid
PHPDiscuss - PHP Newsgroups and mailing lists wrote: Hello, I am trying to write a simple application using PHP on a Windows 2000 server. There is one text box for input and one search button. Basically the user would input a file name (for example help.pdf) and then the php script would search

Re: [PHP] About iMail Help

2003-11-18 Thread Derek Ford
D. Jame wrote: Hi, Anyone know about imail.? could you be any more vague? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Q] Development Best Practices

2003-11-18 Thread Chris Hayes
At 04:20 18-11-03, you wrote: Adam wrote: My question, how do you guys build your pages? Do your scripts generate all the HTML? I'm looking for tips and resources. Remember for my first site I've embarked on a fairly large site. Code maintenance will be an issue for me as I need to enhance and

[PHP] diff

2003-11-18 Thread Decapode Azur
hello Is there a php function close to the *nix diff comand? (in order to compare 2 multi-lines strings) thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] .html extension PHP page be interpret

2003-11-18 Thread BennyYim
I using WinXP + Apache 1.3.24 + PHP 4.3.3 My apache default will interpret .php extension file. (e.g. index.php) If I have a PHP page, but I want to use .html file extension (e.g. index.html). what I need to set to make those html extension page be interpret by server. I want those .html

Re: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Nathan Taylor
That's simple, just modify your Apache httpd.conf on the line where it says something along the lines of: AddType application/x-httpd-php .php4 .php .php3 .inc change it to: AddType application/x-httpd-php .php4 .php .html .php3 .inc - Original Message - From: BennyYim To:

[PHP] Re: I need answers for the questions

2003-11-18 Thread rush
Arivazhagi Govindarajan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP Questions This would not be homework or exam questions, right? rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 10:46:48AM -, BennyYim wrote: : : I using WinXP + Apache 1.3.24 + PHP 4.3.3 : : My apache default will interpret .php extension file. (e.g. : index.php) : : If I have a PHP page, but I want to use .html file extension (e.g. index.html). : what I need to set to make

Re: [PHP] rmdir withour rmdir function.

2003-11-18 Thread Marek Kilimajer
Vincent M. wrote: I'm not lucky, there is no ftp access to the server. This can sound a little strange, but there is no... :( Either talk to your host to change their policy or change the host. I don't see any reason why rmdir should be disabled. Or you can use smtp mail class to send mail to

RE: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Wouter van Vliet
-Oorspronkelijk bericht- That's simple, just modify your Apache httpd.conf on the line where it says something along the lines of: AddType application/x-httpd-php .php4 .php .php3 .inc change it to: AddType application/x-httpd-php .php4 .php .html .php3 .inc And please, PLEASE

Re: [PHP] Can't fetch HTTP POST data in PHP?

2003-11-18 Thread Arne Rusek
On Mon, 17 Nov 2003 15:30:43 +, Curt Zirzow wrote: * Thus wrote Arne Rusek ([EMAIL PROTECTED]): Your problem exists here: Server API = Command Line Interface _ENV[SERVER_SOFTWARE] = Boa/0.94.13 Seeing this tells me your webserver is not configured correctly, Boa should not be using

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Victor Spång Arthursson
2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also have to say that the XML-support in

[PHP] sorting an array of regexes

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
There is an array of regexes, for example $array = array('moon', '[wh]ood', '[^as]eed' ... (about 300 entries). I want to sort it comparing to the character lenght of a regex. For example [wh]ood is 4 characters, moon is 4 characters. There are only letters of the alphabet

RE: [PHP] diff

2003-11-18 Thread Jay Blanchard
[snip] Is there a php function close to the *nix diff comand? (in order to compare 2 multi-lines strings) [/snip] http://us2.php.net/manual/en/function.strcmp.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] .html extension PHP page be interpret

2003-11-18 Thread Jay Blanchard
[snip] I using WinXP + Apache 1.3.24 + PHP 4.3.3 My apache default will interpret .php extension file. (e.g. index.php) If I have a PHP page, but I want to use .html file extension (e.g. index.html). what I need to set to make those html extension page be interpret by server. I want those

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD wrote: : : There is an array of regexes, for example : : $array = array('moon', '[wh]ood', '[^as]eed' ... : (about 300 entries). : : I want to sort it comparing to the : character lenght of a regex. For

RE: [PHP] sorting an array of regexes

2003-11-18 Thread Wouter van Vliet
-Oorspronkelijk bericht- Van: Eugene Lee [mailto:[EMAIL PROTECTED] On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD wrote: : : There is an array of regexes, for example : : $array = array('moon', '[wh]ood', '[^as]eed' ... : (about 300 entries). :

[PHP] How to get the key of a specific index of array?

2003-11-18 Thread PhiSYS
How to get the key of a specific index of array? It seems that key($_POST[$i]) is a wrong syntax. I've worked around like this: $allkeys = array_keys($_POST); $allvalues = array_values($_POST); for($I=3; $I count($_POST); $I++) { echo $allkeys[$I]; echo $allvalues[$I]; } But

[PHP] Re: confirm unsubscribe from php-general@lists.php.net

2003-11-18 Thread Hidekazu Nakamura
On 18 Nov 2003 13:17:01 - [EMAIL PROTECTED] wrote: Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] To confirm that you would like [EMAIL PROTECTED] removed from the php-general

Re: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Marek Kilimajer
PhiSYS wrote: How to get the key of a specific index of array? It seems that key($_POST[$i]) is a wrong syntax. $i is the key, key is the index. I think you are overcomplicating it. Tell us what you want to achieve and someone might come out with a better solution. Marek -- PHP General

RE: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Jay Blanchard
[snip] How to get the key of a specific index of array? [/snip] http://us2.php.net/manual/en/function.array-keys.php That manualamazing, no? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Wouter van Vliet
-Oorspronkelijk bericht- Van: PhiSYS [mailto:[EMAIL PROTECTED] How to get the key of a specific index of array? It seems that key($_POST[$i]) is a wrong syntax. I've worked around like this: $allkeys = array_keys($_POST); $allvalues = array_values($_POST); for($I=3; $I

Re: [PHP] I need answers for the questions

2003-11-18 Thread John Nichel
Arivazhagi Govindarajan wrote: PHP Questions 1. Explain about session management and cookies ? In PHP how we can maintain a session 2. What is HTTP tunneling 3. How to enable PHP in Apache server manually? 4. When we upload a file using INPUT tag of the type FILE what are global variables

RE: [PHP] [Q] Development Best Practices

2003-11-18 Thread Luis Lebron
Before considering using templates you may want to take a look at http://www.phppatterns.com/index.php/article/articleview/4/1/1/ Luis -Original Message- From: Adam [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 7:39 PM To: [EMAIL PROTECTED] Subject: [PHP] [Q] Development

[PHP] Re: [Q] Development Best Practices

2003-11-18 Thread pete M
definately take a look at smarty.php.net Might take a day or so to get used to the concept bit it makes maintaing and creating large sites (and small) a doddle. Main thing is that it seperated php code from html can't imagine not using it on any site anymore.. pete Adam wrote: All, I'm not

RE: [PHP] I need answers for the questions

2003-11-18 Thread Wouter van Vliet
-Oorspronkelijk bericht- Van: John Nichel [mailto:[EMAIL PROTECTED] Arivazhagi Govindarajan wrote: PHP Questions 1. Explain about session management and cookies ? In PHP how we can maintain a session While writing PHP code you put your body in risk of getting work related

Re: [PHP] mcrypt libraries?

2003-11-18 Thread Curt Zirzow
* Thus wrote Jas ([EMAIL PROTECTED]): I am not sure if I should post my question here but I will anyways. Ok, I have compiled the mcrypt libraries on a Redhat 9 box running apache 2 with php4. And I need to know the next step(s) in getting php to use the libmcrypt libraries. If anyone

RE: [PHP] I need answers for the questions

2003-11-18 Thread chris . neale
Ha ha. This looks like your homework. At school some people used to pay money for other people to do their homework for them (which may have inspired 'sub-contracting' and consultancy). Minimal research will get you the answers. RTFM, look on Google, buy a book, try it for yourself, use your

Re: [PHP] Re: From form to an array

2003-11-18 Thread Curt Zirzow
* Thus wrote Jeff McKeon ([EMAIL PROTECTED]): Form two has 2 fields for every line and the fields need to be kept in separate arrays. /* form2.php */ form action=?PHP Echo $_SERVER['PHP_SELF'] ? method=POST input type=hidden name=tiers value=?PHP ECHO $_POST['form1info'] ?

[PHP] window.open problem

2003-11-18 Thread David R
I am using php and mysql and am having difficulty using window.open () . I have cut the code down to the basics. Why does a new window not open? Thanks. -David r html script language=JavaScript function boo() { window.open (www.google.com); } /script head body onload=boo() why does no window

Re: [PHP] escaping ' when inside a

2003-11-18 Thread Curt Zirzow
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): Adam Williams wrote: If I have the SQL statement: $sql = select subject from subwhile where subject = '*$var[0]*'; Don't you want to do: $sql = select subject from subwhile where subject LIKE '%$var[0]%'; I think more precisely: $sql =

RE: [PHP] window.open problem

2003-11-18 Thread Jay Blanchard
[snip] I am using php and mysql and am having difficulty using window.open () . I have cut the code down to the basics. Why does a new window not open? [/snip] This is a JavaScript question...best asked on a JavaScript || ECMAScript list. This has nothing to do with either PHP or MySQL. -- PHP

Re: [PHP] I need answers for the questions

2003-11-18 Thread David T-G
Wouter, et al -- ...and then Wouter van Vliet said... % % -Oorspronkelijk bericht- % Van: John Nichel [mailto:[EMAIL PROTECTED] % % Arivazhagi Govindarajan wrote: % PHP Questions % % 1. Explain about session management and cookies ? In PHP how we can % maintain a session %

Re: [PHP] escaping ' when inside a

2003-11-18 Thread Marek Kilimajer
Curt Zirzow wrote: Don't you want to do: $sql = select subject from subwhile where subject LIKE '%$var[0]%'; I think more precisely: $sql = select subject from subwhile where subject LIKE '%{$var[0]}%'; Either will work, as will $sql = ... subject LIKE '%$var[string_index]%'; -- PHP General

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Adam i Agnieszka Gasiorowski FNORD
Eugene Lee wrote: On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD wrote: : : There is an array of regexes, for example : : $array = array('moon', '[wh]ood', '[^as]eed' ... : (about 300 entries). : : I want to sort it comparing to the :

Re: [PHP] window.open problem

2003-11-18 Thread David Otton
On Tue, 18 Nov 2003 16:48:20 +0200, you wrote: I am using php and mysql and am having difficulty using window.open () . I have cut the code down to the basics. Why does a new window not open? This is a model request for help - you've removed all code that isn't directly related to the problem,

Re: [PHP] file descriptor problem with tcpclient

2003-11-18 Thread Raditha Dissanayake
Hi Bill, Bill of Bill's qmail toaster I presume.Your article was pretty good. I have seen a few cases where sessions gave problems when the session tmp dir wasn't set in php.ini Not sure if that's the cause of your problem though. Bill Shupp wrote: On Nov 17, 2003, at 4:49 PM, Bill Shupp

[PHP] An array as an element of a function

2003-11-18 Thread Jeff McKeon
Is it possible to pass an array as an elemtent of a function?? Something like this: $array1=array(1,2,3,4); $array2=array(a,b,c,d); Function Somefunction($var1,$var2) { someprocess using $array1 and array2; } Somefunction($array1,$array2); Or does something special have to be done?

Re: [PHP] How to get the key of a specific index of array?

2003-11-18 Thread Burhan Khalid
PhiSYS wrote: How to get the key of a specific index of array? Sorry, but an index is they key. $foo = array(0 = Apples, 1 = Oranges, 2 = Grapes); $key = 2; $value = $foo[$key]; echo $value; //you would get Grapes //another way (maybe this is what you are after) while(list($key,$value) =

Re: [PHP] ereg_replace help

2003-11-18 Thread Curt Zirzow
* Thus wrote Martin Towell ([EMAIL PROTECTED]): Hi All, I have an array of strings in the following format: abcd - rst abcd - uvw abcd - xyz foobar - rst blah - rst googol - uvw What I want to do is strip everything from the - bit of the string to

Re: [PHP] window.open problem

2003-11-18 Thread David R
My apologies for posting to the php group. I thought that perhaps using javescript together with php was causing the problem. btw I have no pop-up blockers running. -david r David Otton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 18 Nov 2003 16:48:20 +0200, you wrote:

Re: [PHP] An array as an element of a function

2003-11-18 Thread Marek Kilimajer
Jeff McKeon wrote: Is it possible to pass an array as an elemtent of a function?? Yes Something like this: $array1=array(1,2,3,4); $array2=array(a,b,c,d); Function Somefunction($var1,$var2) { someprocess using $array1 and array2; } Somefunction($array1,$array2); This is the right way.

Re: [PHP] An array as an element of a function

2003-11-18 Thread Raditha Dissanayake
Hi, What do you mean by element of a function? usually functions take parametes (also known as arguments). elements are members of an array. In other words a collection of elements make up an array. Jeff McKeon wrote: Is it possible to pass an array as an elemtent of a function?? Something

Re: [PHP] About iMail Help

2003-11-18 Thread Burhan Khalid
D. Jame wrote: Hi, Anyone know about imail.? Read http://www.catb.org/~esr/faqs/smart-questions.html -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com --- Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is

RE: [PHP] An array as an element of a function

2003-11-18 Thread Jeff McKeon
Sorry, bad choice of words. By element I meant parameter. Jeff -Original Message- From: Raditha Dissanayake [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:35 AM To: Jeff McKeon; [EMAIL PROTECTED] Subject: Re: [PHP] An array as an element of a function Hi, What

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Curt Zirzow
* Thus wrote Adam i Agnieszka Gasiorowski FNORD ([EMAIL PROTECTED]): Eugene Lee wrote: On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka Gasiorowski FNORD wrote: : : There is an array of regexes, for example : : $array = array('moon', '[wh]ood', '[^as]eed' ... :

RE: [PHP] An array as an element of a function

2003-11-18 Thread Jeff McKeon
Thanks all.. Jeff -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:30 AM To: Jeff McKeon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] An array as an element of a function Jeff McKeon wrote: Is it possible to pass an array

Re: [PHP] window.open problem

2003-11-18 Thread David Otton
On Tue, 18 Nov 2003 17:28:50 +0200, you wrote: My apologies for posting to the php group. I thought that perhaps using javescript together with php was causing the problem. btw I have no pop-up blockers running. Are you /certain/? A software firewall maybe? Are you at a business site where your

[PHP] Question about empty();

2003-11-18 Thread John
Hi all This function I don't get at all, I hear all the time, if you want to practice smart coding then turn register globals off, and be sure you keep query data out of your script that is not set or defined with something expected. So why would there be a function that returns true or false,

Re: [PHP] Question about empty();

2003-11-18 Thread Curt Zirzow
* Thus wrote John ([EMAIL PROTECTED]): Hi all This function I don't get at all, I hear all the time, if you want to practice smart coding then turn register globals off, and be sure you keep query data out of your script that is not set or defined with something expected. So why would there

Re: [PHP] Question about empty();

2003-11-18 Thread Mike Migurski
This function I don't get at all, I hear all the time, if you want to practice smart coding then turn register globals off, and be sure you keep query data out of your script that is not set or defined with something expected. So why would there be a function that returns true or false, $var is

Re: [PHP] Include an encoder into PHP distribution?

2003-11-18 Thread John Smith
Not at all. If enough decide to include some other encoding engine in PHP then Zend can happily withdraw all of their support from PHP, perhaps making a new product called zPHP or such, and the PHP camp is not controlled in any way. It seems a bit extreme and probably not worth it, but no

RE: [PHP] Include an encoder into PHP distribution?

2003-11-18 Thread Jay Blanchard
[snip] Yes, I think it would be a good idea to make *PHP free*. IMHO, one company has now too much control in it, it's not good for the language in general. Unless, of course, you are willing to put the encoding feature into PHP core by default. [/snip] This statement demonstrates a lack of

[PHP] PHP command line vars

2003-11-18 Thread Shawn McKenzie
I have a script that I want to run on the windows command line, and it is working fine. What I want to do is pass vars to the script when I run it, example: php script.php $var=hello I have read the docs but can't find the syntax to pass these in. Also, how to retrieve them in the script?

Re: [PHP] auto_prepend/append in htaccess....

2003-11-18 Thread Jonathan Villa
easy enough, thanks! On Mon, 2003-11-17 at 19:47, Jason Wong wrote: On Tuesday 18 November 2003 06:46, Jonathan Villa wrote: Thanks for the info, but I was hoping on getting some information as to why the code configuration I posted is not working. Because it's incorrect. Try:

Re: [PHP] PHP command line vars

2003-11-18 Thread Marek Kilimajer
Shawn McKenzie wrote: I have a script that I want to run on the windows command line, and it is working fine. What I want to do is pass vars to the script when I run it, example: php script.php $var=hello The example will not work, command line arguments are traditionaly passed in the form of:

[PHP] Arrays and performance

2003-11-18 Thread Kim Steinhaug
Something Ive wondered about as I started working with XML. Importing huge XML files, and converting theese to arrays works indeed very well. But I am wondering if there are any limits to how many arrays the PHP can handle when performance is accounted for. Say I create an array from a XML with

Re: [PHP] Arrays and performance

2003-11-18 Thread Raditha Dissanayake
Hi, I belive PHP should be able to handle it but it's a bad idea. The reason being your app will not scale. Because if you script consumes 2mb of memory on average, 100 users accesing it at the same time will be 200Mb. Of course if you expect only a small number of users it does not matter.

RE: [PHP] Arrays and performance

2003-11-18 Thread Pablo Gosse
Raditha Dissanayake wrote: [snip]The biggest XML job i have handled with PHP is parsing the ODP RDF dump which is around 700MB. Obviously arrays are out of the question in such a scenario, even though only one user will be accessing the script At a given moment. the ODP dump has a couple of

Re: [PHP] Arrays and performance

2003-11-18 Thread Raditha Dissanayake
hi, In fact i had to handle the ODP dump on two occaisions the first time the results went into a mysql db, the second time it went into a series of files. On both occaisions i used SAX parsers. DOM would just roll over and die with this much of data. I placed code in the end element handler

[PHP] PHP and MySQL problem, please help

2003-11-18 Thread Mr. Bogomil Shopov
hi folks, A query in mysql become with STATE set to STATISTICS and all queries after this query are LOCKED. What is the decision please. Best Regards Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP and MySQL problem, please help

2003-11-18 Thread Jay Blanchard
[snip] A query in mysql become with STATE set to STATISTICS and all queries after this query are LOCKED.What is the decision please. [/snip] The decision is to ask for a better description if possible, along with some of the suspected code. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP command line vars

2003-11-18 Thread Shawn McKenzie
Thanks! The link was just what I needed. -Shawn Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Shawn McKenzie wrote: I have a script that I want to run on the windows command line, and it is working fine. What I want to do is pass vars to the script when I run

[PHP] Front page validation to PHP

2003-11-18 Thread Graham Barlow
We use Frontpage to create forms and to add validation to data entry. These have been saved as html and put on a hosted server running apache and PHP. They work fine. Now we have added cookies using PHP code to the forms and renamed them .php rather than html. The cookies work fine so does

RE: [PHP] Front page validation to PHP

2003-11-18 Thread Chris W. Parker
Graham Barlow mailto:[EMAIL PROTECTED] on Tuesday, November 18, 2003 7:57 AM said: What do I need to do to our Frontpage forms to ensure the validation works again and we can force data to be entered. I haven't used frontpage in probably 2 years so my memory may be a little foggy. But iirc

[PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Anthony Ritter
Using mysql, apache and win98 The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. Page 338-339 (hour 16). After choosing my selections in the form box and hitting submit I get: ... Warning: Invalid argument supplied for foreach() in

[PHP] Assigning command line vars in script

2003-11-18 Thread Shawn McKenzie
Does this look like a good way to retrieve command line variables and assign them in a script, or am I reinventing something that is already in place??? for ($i = 1; $i $argc; $i = $i + 2) { $var = str_replace(-, , $argv[$i]); $$var = $argv[$i+1]; } Thanks! -Shawn -- PHP General

RE: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Giz
Try changing references to $_SESSION[products] to $_SESSION['products'] -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 10:49 AM To: [EMAIL PROTECTED] Subject: [PHP] =sessions / J. Meloni Textbook= Using mysql, apache and win98 The

[PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Dang Nguyen
I have a peculiar problem in one of my scripts. I cannot mkdir from the script, but from a test script, the same exact code works. test.php contains: ? include('func/mkdirs.php'); // this function recursively checks and create a directory tree. I know it works fine. $directory =

Re: [PHP] =sessions / J. Meloni Textbook=

2003-11-18 Thread Burhan Khalid
Anthony Ritter wrote: Using mysql, apache and win98 The following code is from PHP, mySQL and Apache (SAMS) by Julie Meloni. Page 338-339 (hour 16). After choosing my selections in the form box and hitting submit I get: ... Warning: Invalid argument supplied for foreach() in

RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Jay Blanchard
[snip] mkdirs($directory,0755); [/snip] should be mkdir($directory,0755); make sure the script has permission to make a directory, most scripts run as 'nobody' and 'nobody' does not have permission to create a directory http://us3.php.net/mkdir -- PHP General Mailing List

[PHP] duvida com value

2003-11-18 Thread Carlos Eduardo
alguem poderia me ajudar na seguinte duvida.. em uma pagina php tenho esse campo nela. a href=alterar.php?value=$row-nome para ele jogar o conteudo da linha nome para a proxima pagina alterar.php.. mas ele joga apenas por ex: se o nome é carlos eduardo vai apenas carlos , tudo que tem depois do

RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Dang Nguyen
In my case, I've created a function called mkdirs that recursively checks and does a mkdir on a given path. So, if any of the folders in a given path don't exist, then they will get created. I include this at the top via include('func/mkdirs.php');. I've used this mkdirs function in other

[PHP] Command line output

2003-11-18 Thread Shawn McKenzie
O.K. I am just now experimenting with the CLI PHP and have another question. With the following code, none of the echo output is seen until the script completes. I even tried adding a flush() after the first echo before the imap_open, but still the same behavior. Any ideas? echo Connecting to

RE: [PHP] mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000

2003-11-18 Thread Jay Blanchard
[snip] In my case, I've created a function called mkdirs that recursively checks and does a mkdir on a given path. So, if any of the folders in a given path don't exist, then they will get created. I include this at the top via include('func/mkdirs.php');. I've used this mkdirs function in

Re: [PHP] duvida com value

2003-11-18 Thread Cesar Cordovez
Mi portugues is very rusty, but I think the solution is: $url = a href='alterar.php?value= . urlencode($row-nome) . '; and then print $url where ever you want. Notice the quotes and single quotes around the url. You can learn more about this on php.net/urlencode Cesar Carlos Eduardo wrote:

Re: [PHP] easy and simple way to read xml into array

2003-11-18 Thread Burhan Khalid
Victor Spng Arthursson wrote: 2003-11-17 kl. 17.06 skrev Chris Hayes: Need to read a xml-file into an array, but searching around I havent found a way that's easy and simple Arent there an easy way in PHP to accomplish this? have you been at http://se.php.net/xml ? Well, I've, and I also

Re: [PHP] sorting an array of regexes

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 01:52:39PM +0100, Wouter van Vliet wrote: : Eugene Lee suggested: : On Tue, Nov 18, 2003 at 01:15:32PM +0100, Adam i Agnieszka : Gasiorowski FNORD wrote: : : : : There is an array of regexes, for example : : : : $array = array('moon', '[wh]ood', '[^as]eed' ... : :

Re: [PHP] window.open problem

2003-11-18 Thread Eugene Lee
On Tue, Nov 18, 2003 at 04:48:20PM +0200, David R wrote: : : I am using php and mysql and am having difficulty using window.open () . I : have cut the code down to the basics. : Why does a new window not open? : : html : script language=JavaScript : function boo() { : window.open

[PHP] how to trap eval error?

2003-11-18 Thread david
Hi, i am new to this list as well as to PHP. i am in a situatin where i want to eval a string like: eval('$return = $function($input);'); where $function is a string specify a function to call and $input is the input parameter for the function. $return is just whatever is returned by the

RE: [PHP] how to trap eval error?

2003-11-18 Thread Jay Blanchard
[snip] eval('$return = $function($input);'); [/snip] The problem is the quotes...the string is not truly being eval'd. Change to double quotes eval($return = $function($input);); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to trap eval error?

2003-11-18 Thread david
Jay Blanchard wrote: [snip] eval('$return = $function($input);'); [/snip] The problem is the quotes...the string is not truly being eval'd. Change to double quotes eval($return = $function($input);); thanks for the tip but i am sure you mean: eval(\$return = \$function(\$input););

[PHP] Prefilled forms

2003-11-18 Thread b b
Hi there, I have installed linux/apache/php (again) recently on my machine. When I run an application off my server, fill out a form, submit it and then click back to edit some entries, the form comes up blank. This happen for apps running off my server only. Is it something with my php.ini, or

[PHP] PHP 4.3.1 (Suse 8.2 RPM) and LDAP problem

2003-11-18 Thread Patrique Wolfrum
Hello, My PHP-problem is, that I can't bind to a LDAP-Server, although ldap_connect seems to work. The script is intended for an authentification of web-users (which enter their username and password) by sending this data to a central ldap-server. Openldap 2.1.12+Libs (Suse RPM) and OpenSSL

RE: [PHP] Prefilled forms

2003-11-18 Thread Jay Blanchard
[snip] I have installed linux/apache/php (again) recently on my machine. When I run an application off my server, fill out a form, submit it and then click back to edit some entries, the form comes up blank. This happen for apps running off my server only. Is it something with my php.ini, or is

[PHP] what ever happened to http referrer

2003-11-18 Thread Jonathan Villa
I'm running php 4.3.4 and do not see any mention of HTTP_REFERRER. I tried $_SERVER['HTTP_REFERRER'] which is what I thought it was but to no avail. Any comments on the location/status of this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] what ever happened to http referrer

2003-11-18 Thread Johnson, Kirk
I'm running php 4.3.4 and do not see any mention of HTTP_REFERRER. I tried $_SERVER['HTTP_REFERRER'] which is what I thought it was but to no avail. Any comments on the location/status of this? You spell too well, try HTTP_REFERER, without the double R ;) Kirk -- PHP General Mailing

Re: [PHP] what ever happened to http referrer

2003-11-18 Thread Jonathan Villa
nevermind... doh! On Tue, 2003-11-18 at 14:44, Jonathan Villa wrote: I'm running php 4.3.4 and do not see any mention of HTTP_REFERRER. I tried $_SERVER['HTTP_REFERRER'] which is what I thought it was but to no avail. Any comments on the location/status of this? -- PHP General Mailing

  1   2   >