Re: [PHP] sorting associative array

2005-01-24 Thread Abdul-Wahid Paterson
Hi, How about this foreach ($data as $key = $row) { $scores[$key] = $row['scores']; } array_multisort($scores, SORT_ASC, $data); Abdul-Wahid On Mon, 24 Jan 2005 00:39:17 +1100, Jeffery Fernandez [EMAIL PROTECTED] wrote: I have the following multi-dimentional

Re: [PHP] sessions

2005-01-24 Thread Jochem Maas
Sam Webb wrote: I've installed Apache 2 and PHP 5 on Windows XP, and I'm having some issues with sessions. Everything else I've tried to do in PHP works fine, but for some reason every time I try to use session_start() i get the following errors: Warning: session_start() [function.session-start]:

Re: [PHP] PHP Application server

2005-01-24 Thread Jochem Maas
Devraj Mukherjee wrote: We are evaulating the idea of writing a PHP application server. Its aimed to be a stateful environment for writing PHP applications and we believe it will be quite advantegous to the entire community. Any ideas if there are a similar solutions that already exists out there,

Re: [PHP] sorting associative array

2005-01-24 Thread Jochem Maas
... This won't work for me as I have 500+ records to sort based on the score key.. looking at jochem's class now. Thanks which wont help much - assuming what you say is true (why wont it work? have you tried it). sort method from the class: function sort() {

Re: [PHP] sorting associative array

2005-01-24 Thread Jeffery Fernandez
Jochem Maas wrote: ... This won't work for me as I have 500+ records to sort based on the score key.. looking at jochem's class now. Thanks which wont help much - assuming what you say is true (why wont it work? have you tried it). sort method from the class: function sort() {

RE: [PHP] sorting associative array

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 23 January 2005 22:37, Jeffery Fernandez wrote: Kurt Yoder wrote: Use usort (stealing from php docs): function cmp($a['score'], $b['score']) That should be:

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 21 January 2005 22:01, Potter, Jeff wrote: Hello, Could someone help me understand why later versions of PHP (4.3.9, 4.3.10, 5.0.3) do not maintain the same ordering for

Re: [PHP] sorting associative array

2005-01-24 Thread Jochem Maas
Jeffery Fernandez wrote: Jochem Maas wrote: ... Yes the example sent by Kurt Yoder worked for me. I coudn't work out the errors with the class you sent me. I realised it was written for PHP5 in mind ?... or maybe I wasn't patient enough to spent time debugging it :-( I did change it for

Re: [PHP] sorting associative array

2005-01-24 Thread Jeffery Fernandez
Jochem Maas wrote: Jeffery Fernandez wrote: Jochem Maas wrote: ... Yes the example sent by Kurt Yoder worked for me. I coudn't work out the errors with the class you sent me. I realised it was written for PHP5 in mind ?... or maybe I wasn't patient enough to spent time debugging it :-( I

Re: [PHP] Re: Procedural to OOP

2005-01-24 Thread Mike Smith
Thanks Matthew, I appreciate your feedback. I'll be working on it this morning, and I might take a look at Smarty too. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] setcookie command

2005-01-24 Thread Reza Milan
Dear sir, When I use setcookie command I recieve the following message error: Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\test.php:9) in C:\Inetpub\wwwroot\test.php on line 15 WinXp - IE 6 On Localhost and Server Thanks Reza

Re: [PHP] Is this even possible?

2005-01-24 Thread Jason Barnett
Tony Di Croce wrote: Is it even possible to connect to a postgres server (thats running on linux) from a windows CLI php script? I'm seeing a pg_connect() error... FATAL: no pg_hba.conf entry for host 192.168.1.100 Any ideas? The easiest way to get PG up and running on a Windows system is cygwin.

[PHP] Important m$6h?3p

2005-01-24 Thread dan
See the ghg5%6gfz65!4Hf55d!46gfgf Server Error #203 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Important m$6h?3p

2005-01-24 Thread Mikey
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 January 2005 16:35 To: php-general@lists.php.net Subject: [PHP] Important m$6h?3p See the ghg5%6gfz65!4Hf55d!46gfgf Server Error #203 Yoiks! When did this list decide that gibberish was the default

Re: [PHP] Is this even possible?

2005-01-24 Thread Greg Donald
On Mon, 24 Jan 2005 10:28:09 -0500, Jason Barnett [EMAIL PROTECTED] wrote: Tony Di Croce wrote: Is it even possible to connect to a postgres server (thats running on linux) from a windows CLI php script? Yup. I'm seeing a pg_connect() error... FATAL: no pg_hba.conf entry for host

Re: [PHP] setcookie command

2005-01-24 Thread Greg Donald
On Mon, 24 Jan 2005 07:24:19 -0800 (PST), Reza Milan [EMAIL PROTECTED] wrote: Dear sir, When I use setcookie command I recieve the following message error: Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\test.php:9) in

[PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
Being trying to work out haw to handle dates. Basically I need a function to convert a Date to a String and another function to convert a string to a date. Exactly what format the date is held in is not relevant as long as it is some type of standard (i.e. Unix Timestamps). Both the functions

Re: [PHP] php5 --enable-soap compile error

2005-01-24 Thread Marten Lehmann
Is noone compiling PHP5 on its own, but just using preconfigured rpm's? Can't a developer og php have a look on this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jay Blanchard
[snip] Being trying to work out haw to handle dates. Basically I need a function to convert a Date to a String and another function to convert a string to a date. Exactly what format the date is held in is not relevant as long as it is some type of standard (i.e. Unix Timestamps). Both the

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Potter, Jeff
Hi Mike, I would seem so, but the patch (in snapshot php4-200501201930) only seems to work when the output_buffering is set to 0. With output_buffering set to the default 4096, the virtual() calls are sent to the browser out of order. The concern with turning the output buffering off is that the

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] String to Date Function return date stringToDate( str Date, str Format ) e.g. $todayDt = stringToDate( '01/01/2003','DD/MM/' ); Date to String Function

[PHP] PHP editor suggestion?

2005-01-24 Thread Merlin
Hi there, I am now using Homesite 4.5.x since a few years since I found it the most relieble editor arround. Now I would like to have a look around to see if there are better solutions nowadays. I am looking for a relieable, stable and quick PHP/HTML editor. Can anybody suggest a good one? I

Re: [PHP] PHP editor suggestion?

2005-01-24 Thread trobi
Merlin wrote / napĂ­sal (a): Hi there, I am now using Homesite 4.5.x since a few years since I found it the most relieble editor arround. Now I would like to have a look around to see if there are better solutions nowadays. I am looking for a relieable, stable and quick PHP/HTML editor. Can

[PHP] Eval string to array

2005-01-24 Thread Gerard Samuel
Im trying to evaluate a string representation of the output of var_export(), as an array. To make a long story short, Im using curl to fetch another php page, that uses var_export to echo out php data structures. The fetched data via curl, is a string. Something like - array ( 'foo' = 'bar', )

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread hitek
How about the strtotime() function? http://us4.php.net/manual/en/function.strtotime.php From: Ben Edwards [EMAIL PROTECTED] Date: 2005/01/24 Mon PM 12:03:34 EST To: Jay Blanchard [EMAIL PROTECTED] CC: PHP General List php-general@lists.php.net Subject: Re: [PHP] String to Date and Date to

Re: [PHP] Eval string to array

2005-01-24 Thread Jochem Maas
Gerard Samuel wrote: Im trying to evaluate a string representation of the output of var_export(), as an array. To make a long story short, Im using curl to fetch another php page, that uses var_export to echo out php data structures. The fetched data via curl, is a string. Something like - array

Re: [PHP] php5 --enable-soap compile error

2005-01-24 Thread Richard Lynch
Marten Lehmann wrote: Is noone compiling PHP5 on its own, but just using preconfigured rpm's? Can't a developer og php have a look on this? It's far more likely that noone is using SOAP... :-^ Try posting the error messages and your exact configure line to php-install for the maximum odds of a

[PHP] Maxing out sessions?

2005-01-24 Thread Matt
Hi, I have a high load server which will have anywhere between 500 and 700 session files in the /tmp directory at max load times. I've also noticed that session information seems to get lost sometimes during high load times... like a remember me function won't work... or you'll log in and go

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 16:42, Potter, Jeff wrote: Hi Mike, I would seem so, but the patch (in snapshot php4-200501201930) only seems to work when the output_buffering is set to 0.

Re: [PHP] skip file_get_contents

2005-01-24 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: hi, i have a script that parses data from xml document my problem is sometimes i get error when getting file content from xml file fails so how can u make the script ignore that part when it fails to pull the data from the xml file. here is the script : $xp =

Re: [PHP] php-db@lists.php.net

2005-01-24 Thread Richard Lynch
Ralph Frost wrote: I had a php routine on a shared server running as a CGI script that encrypted and sent email text. It was running fine under PHP version 4.3.6. Then the ISP upgraded to 4.3.10 on December 16, 2004 and several of the features in the gpg encryption script running in cgi-bin

Re: [PHP] setcookie command

2005-01-24 Thread Richard Lynch
Reza Milan wrote: Dear sir, When I use setcookie command I recieve the following message error: Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\wwwroot\test.php:9) in C:\Inetpub\wwwroot\test.php on line 15 WinXp - IE 6 On Localhost and

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about the strtotime() function? http://us4.php.net/manual/en/function.strtotime.php No good, it douse not take a format string. What if I wanted to convert the timestamp to 'DD-MM-YYY', display it on a form,

RE: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 17:04, Ben Edwards wrote: On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] String to Date Function

[PHP] Date ranges

2005-01-24 Thread Mikey
Hi NG, I have a page that is for booking attendance to events, and instead of using a date picker, I want to display drop-down selects which cover the ranges of dates that the event is occurring at. My question is, is there an easy way to determine the dates in between the date from and to that

Re: [PHP] Eval string to array

2005-01-24 Thread Gerard Samuel
Jochem Maas wrote: Gerard Samuel wrote: Im trying to evaluate a string representation of the output of var_export(), as an array. To make a long story short, Im using curl to fetch another php page, that uses var_export to echo out php data structures. The fetched data via curl, is a string.

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jay Blanchard
[snip] On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about the strtotime() function? http://us4.php.net/manual/en/function.strtotime.php No good, it douse not take a format string. What if I wanted to convert the timestamp to 'DD-MM-YYY', display it on a

RE: [PHP] Date ranges

2005-01-24 Thread Jay Blanchard
[snip] I have a page that is for booking attendance to events, and instead of using a date picker, I want to display drop-down selects which cover the ranges of dates that the event is occurring at. My question is, is there an easy way to determine the dates in between the date from and to that is

Re: [PHP] gzip functions and error

2005-01-24 Thread Richard Lynch
Dmitry wrote: Hello! How disable error messages when i send incorrect data into gzip* extract functions, such as gzinflate or gzuncompress? For example: function _pack($data) { $data = serialize($data); $data = gzdeflate($data,9); $data = base64_encode($data); $data =

Re: [PHP] Classes and parents.

2005-01-24 Thread Richard Lynch
Dmitry wrote: Greetings. If i run this code (php5): -- class a { function say() { echo A; } function run() { $this-say(); } } class b extends a { // function say() { echo B; } function say() { parent::say(); echo B;} function run() {

RE: [PHP] Date ranges

2005-01-24 Thread Mikey
*PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB functions.

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-24 Thread Richard Lynch
Jordi Canals wrote: On Fri, 21 Jan 2005 09:43:38 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Thus my point remains: On a shared server, I don't need to resort to calling this function to hijack your Cookie/session. PHP can read the raw session files. I can write a PHP script to

RE: [PHP] php5 --enable-soap compile error

2005-01-24 Thread Mikey
Marten Lehmann wrote: Is noone compiling PHP5 on its own, but just using preconfigured rpm's? Can't a developer og php have a look on this? It's far more likely that noone is using SOAP... :-^ Try posting the error messages and your exact configure line to php-install for the maximum odds of

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Bret Hughes
On Mon, 2005-01-24 at 11:03, Ben Edwards wrote: On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] String to Date Function return date stringToDate( str Date, str Format ) e.g. $todayDt = stringToDate(

Re: [PHP] Notice:Use of undefined constant

2005-01-24 Thread Richard Lynch
PHP Notice: Use of undefined constant HOST - assumed 'HOST' in /home/hegedus/bin/hae_chng.php on line 4 This *always* means you typed HOST where you needed 'HOST' or HOST Most PHP installations hide this Notice message from you by the default php.ini settings. Course, that also means you've

Re: [PHP] help with nl2br

2005-01-24 Thread Richard Lynch
Phillip S. Baker wrote: Due to style sheet stuff I need to modify the nl2br (IE create or use a different function). I am pulling data from a database and using nl2br, which does the standard. some text copybr / br / Some more copybr / What I want instead is pSome text copy/p psome

[PHP] phpinfo() doesn't report correctly for php 5.0.3

2005-01-24 Thread Cere Davis
Has anyone else noticed this? When I install php5.0.3 with: make clean ./configure --prefix=/usr/local --with-mysqli=shared,/usr/bin/mysql_config --enable-soap --enable-cli --with-pear --with-apxs2=/usr/bin/apxs2 --enable-xmlrpc --no-create --no-recursion --with-soap --with-xmlrpc

Re: [PHP] Issue with virtual() calls...

2005-01-24 Thread Richard Lynch
Potter, Jeff wrote: is still broken on others. The content generated from the virtual() call inside a page ends up in the browser before the opening HTML tag. See the simplified example below: Work-Around: Until you get this hammered out, you could use file_get_contents() with a URL

RE: [PHP] Date ranges

2005-01-24 Thread Bret Hughes
On Mon, 2005-01-24 at 14:07, Mikey wrote: *PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Richard Lynch
Matt wrote: I have a high load server which will have anywhere between 500 and 700 session files in the /tmp directory at max load times. I've also noticed that session information seems to get lost sometimes during high load times... like a remember me function won't work... or you'll log

RE: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 19:01, Ben Edwards wrote: On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about the strtotime() function?

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Richard Lynch
Ben Edwards wrote: On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about the strtotime() function? http://us4.php.net/manual/en/function.strtotime.php No good, it douse not take a format string. What if I wanted to convert the timestamp to 'DD-MM-YYY',

RE: [PHP] Date ranges

2005-01-24 Thread Jay Blanchard
[snip] *PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB functions.

Re: [PHP] Date ranges

2005-01-24 Thread Richard Lynch
Mikey wrote: I have a page that is for booking attendance to events, and instead of using a date picker, I want to display drop-down selects which cover the ranges of dates that the event is occurring at. My question is, is there an easy way to determine the dates in between the date from

[PHP] Problem after upgrade PHP 5 with array-merge

2005-01-24 Thread PHP Question
Dear all, After my provider decided to upgrade PHP to version 5, i'm getting the following error: Warning: array_merge() [function.array-merge]: Argument #2 is not an array. This is the line where it gets stuck: $_SESSION['aanhefmr'] = array_merge($_SESSION['aanhefmr'],

Re: [PHP] Date ranges

2005-01-24 Thread Jason Wong
On Tuesday 25 January 2005 04:07, Mikey wrote: *PLEASE NOTE* I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the

Re: [PHP] Problem after upgrade PHP 5 with array-merge

2005-01-24 Thread Richard Lynch
PHP Question wrote: After my provider decided to upgrade PHP to version 5, i'm getting the following error: Warning: array_merge() [function.array-merge]: Argument #2 is not an array. This is the line where it gets stuck: $_SESSION['aanhefmr'] = array_merge($_SESSION['aanhefmr'],

[PHP] Avoiding NOTICEs with list()

2005-01-24 Thread trlists
This construct: list($v1, $v2, $v3) = explode($sep, $string, 3); will generate NOTICE level errors if there are not enough parts of the string to fill all the variables in the list. What I really want is for list() to set the variables that have a corresponding array element, and

Re: [PHP] PHP editor suggestion?

2005-01-24 Thread Robert Cummings
On Mon, 2005-01-24 at 12:26, Merlin wrote: Hi there, I am now using Homesite 4.5.x since a few years since I found it the most relieble editor arround. Now I would like to have a look around to see if there are better solutions nowadays. I am looking for a relieable, stable and

RE: [PHP] Issue with virtual() calls...

2005-01-24 Thread Potter, Jeff
Mike, Thanks for the information. The php4-200501241930 snapshot works much better... It looks like Joe Orton's ap_rflush() fix works with output buffering turned on (output_buffering = 4096). Regards, JP -Original Message- From: Ford, Mike [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
/tmp is not it's own partition... but I have 6Gig free on the / drive. Right now I have 401 sessions and am pushing 2Gig on the /tmp directory. At the moment I am not having any session issues. Ok.. if it isn't a /tmp issue (and maybe it isn't)... whatelse should I look at? It's definately

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Greg Donald
On Mon, 24 Jan 2005 16:22:23 -0500, Matt [EMAIL PROTECTED] wrote: /tmp is not it's own partition... but I have 6Gig free on the / drive. Right now I have 401 sessions and am pushing 2Gig on the /tmp directory. What does cat /proc/sys/fs/file-max say? -- Greg Donald Zend Certified Engineer

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Richard Lynch
Matt wrote: /tmp is not it's own partition... but I have 6Gig free on the / drive. Right now I have 401 sessions and am pushing 2Gig on the /tmp directory. At the moment I am not having any session issues. Ok.. if it isn't a /tmp issue (and maybe it isn't)... whatelse should I look at?

Re: [PHP] Avoiding NOTICEs with list()

2005-01-24 Thread James Kaufman
On Mon, Jan 24, 2005 at 03:54:45PM -0500, [EMAIL PROTECTED] wrote: This construct: list($v1, $v2, $v3) = explode($sep, $string, 3); will generate NOTICE level errors if there are not enough parts of the string to fill all the variables in the list. What I really want is for

Re: [PHP] PHP editor suggestion?

2005-01-24 Thread Christopher Fulton
[quote] I am looking for a relieable, stable and quick PHP/HTML editor. Can anybody suggest a good one? I tried phpdesigner, but it seems to have lots of bugs and is quite slow. [/quote] Just a suggestionA mailing list may not be the best place to find the answer for this question. A

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
[EMAIL PROTECTED] tmp]$ cat /proc/sys/fs/file-max 52403 On Mon, 24 Jan 2005 15:39:08 -0600, Greg Donald [EMAIL PROTECTED] wrote: On Mon, 24 Jan 2005 16:22:23 -0500, Matt [EMAIL PROTECTED] wrote: /tmp is not it's own partition... but I have 6Gig free on the / drive. Right now I have 401

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Matt
That's actually a great idea... I know how to log sessionId... but how would I go about logging why the session couldn't be started (I'm sure that would lead me on somewhat of a track of the issue...)... like is there a variable I should read, or where do I get that information from? -- PHP

[PHP] Allowing Users to Edit HTML

2005-01-24 Thread trlists
I am a consultant developing a PHP-based site (fully operational now, we're adding some new features). One thing I need to do is allow resellers of my client's services to edit HTML which will then be used on the web pages their customers see. In other words they get to customize the

Re: [PHP] Allowing Users to Edit HTML

2005-01-24 Thread Jochem Maas
[EMAIL PROTECTED] wrote: I am a consultant developing a PHP-based site (fully operational now, we're adding some new features). One thing I need to do is allow resellers of my client's services to edit HTML which will then be used on the web pages their customers see. In other words they get

RE: [PHP] Date ranges

2005-01-24 Thread Mikey
I know that if I spent time on it, I would be able to do it, but I have A very close deadline and if anyone else has been through this I would *really* appreciate the help... Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB functions. http://www.mysql.com/date Then

Re: [PHP] Extending a Class

2005-01-24 Thread Jason Barnett
Matthew Weier O'Phinney wrote: * Phillip S. Baker [EMAIL PROTECTED]: ... The object *instance* only gets to access the overridden method (assuming it's an instance of the child class): $instance-someMethod(); This is 100% correct, but just to clarify: it is possible to do something like this:

Re: [PHP] Allowing Users to Edit HTML

2005-01-24 Thread Richard Lynch
Do these methods seem reasonably secure? Am I missing something? The risk is minimized by the fact that the HTML the user enters is displayed to their own customers, whom they presumably don't want to attack (and if they did they could just do it on their own web site). But I still want to

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Richard Lynch
Matt wrote: That's actually a great idea... I know how to log sessionId... but how would I go about logging why the session couldn't be started (I'm sure that would lead me on somewhat of a track of the issue...)... like is there a variable I should read, or where do I get that information

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Richard Lynch
Matt wrote: [EMAIL PROTECTED] tmp]$ cat /proc/sys/fs/file-max 52403 To be 100% certain this ain't the problem, do something like: exec(ls /tmp/ | wc -l, $result, $error); if ($error){ error_log(Attempt to count number of sessions failed: $error . implode(, $result)); } else{

Re: [PHP] Maxing out sessions?

2005-01-24 Thread Richard Lynch
On Mon, 24 Jan 2005 16:22:23 -0500, Matt [EMAIL PROTECTED] wrote: /tmp is not it's own partition... but I have 6Gig free on the / drive. Right now I have 401 sessions and am pushing 2Gig on the /tmp directory. Re-reading this... If you've got 2Gig in /tmp, on a 6Gig free drive, I'd say that's

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 19:22:40 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 17:04, Ben Edwards wrote: On Mon, 24 Jan 2005 10:38:03 -0600, Jay Blanchard

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 13:32:36 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: How about the strtotime() function? http://us4.php.net/manual/en/function.strtotime.php No good, it douse not take a format

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jason Wong
On Tuesday 25 January 2005 08:07, Ben Edwards wrote: As I have said in a previous email to date function takes a format string and the strtodate douse not. Therefore the strtodate() only works on a small subset of what date() can produce. The format I am interested in is DD-MM- which is

Re: Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Ben Edwards
On Mon, 24 Jan 2005 20:15:15 -, Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 24 January 2005 19:01, Ben Edwards wrote: On Mon, 24 Jan 2005 12:58:52 -0500, [EMAIL PROTECTED]

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Jason Wong
On Tuesday 25 January 2005 08:09, Ben Edwards wrote: Well, you could always write some extensions to PHP to cover it, as soon as you learn to spell does :) That is awfull grammer. Ime dyslexic, whats your excuse. Does is spelt 'does' not 'douse', that grammar looks OK to me. Was

Re: [PHP] String to Date and Date to String Functions?

2005-01-24 Thread Rick Fletcher
Ben Edwards wrote: The format I am interested in is DD-MM- which is the way dates are specified in the UK, strtodate() cant handle this. Ben, there is no (built in) string-timestamp function that takes a format. strtotime() is pretty smart about interpreting your input, but it's limited to

[PHP] Get full url

2005-01-24 Thread Dmitry
How? Dont tell me about simple solutions such as $_SERVER[HTTPS] . $_SERVER[REMOTE_ADDR] . $_SERVER[SERVER_PORT] . $_SERVER[PHP_SELF] . $_SERVER[QUERY_STRING] I want get really good solution. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Get full url

2005-01-24 Thread John Holmes
Dmitry wrote: How? Dont tell me about simple solutions such as $_SERVER[HTTPS] . $_SERVER[REMOTE_ADDR] . $_SERVER[SERVER_PORT] . $_SERVER[PHP_SELF] . $_SERVER[QUERY_STRING] I want get really good solution. I want a million dollars and hot redheaded twin mistresses... we don't always get what we

Re: [PHP] Notice:Use of undefined constant

2005-01-24 Thread Jordi Canals
Wish List: PHP 6 uses E_ALL by default install. I wish E_ALL | E_STRICT Regards, Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get full url

2005-01-24 Thread Justin
Dmitry wrote: in Re: [PHP] Get full url How? Dont tell me about simple solutions such as $_SERVER[HTTPS] . $_SERVER[REMOTE_ADDR] . $_SERVER[SERVER_PORT] . $_SERVER[PHP_SELF] . $_SERVER[QUERY_STRING] I want get really good solution. What does that even mean? Possibly SCRIPT_URI + '?' +

[PHP] Id_num =

2005-01-24 Thread Steve Marquez
Greetings! If I do the following, it gives me a blank page. However, instead of using the variable, if I put in $id_num = 191 Then it will display the information. Does anyone know what I am doing wrong? I hope you understand my question... Thank you in advance! Here is the link I use to

Re: [PHP] Extending a Class

2005-01-24 Thread Matthew Weier O'Phinney
* Jason Barnett [EMAIL PROTECTED]: Matthew Weier O'Phinney wrote: * Phillip S. Baker [EMAIL PROTECTED]: ... The object *instance* only gets to access the overridden method (assuming it's an instance of the child class): $instance-someMethod(); This is 100% correct, but just

Re: [PHP] PHP editor suggestion?

2005-01-24 Thread The Disguised Jedi
jEdit is one of the bestdownloadable PHP parser to check for errors, recognizes syntax perfectly, and is free. www.jedit.org I LOVE IT! On Mon, 24 Jan 2005 13:41:55 -0800, Christopher Fulton [EMAIL PROTECTED] wrote: [quote] I am looking for a relieable, stable and quick PHP/HTML editor.

[PHP] php 5.0.3 in httpd 2.0.52

2005-01-24 Thread bone
Hi there, Originally, I installed php 5.0.3 and httpd 2.0.51, it's fine, but when I upgrade httpd to 2.0.52, php doesn't work, I try to re-configure php, got errors below, Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not

Re: [PHP] Id_num =

2005-01-24 Thread John Holmes
Steve Marquez wrote: If I do the following, it gives me a blank page. However, instead of using the variable, if I put in $id_num = 191 Then it will display the information. a href=view_prayer.php?id_num=191view/a Use $_GET['id_num'] instead of $id_num and read up on the register_globals

[PHP] Re: php 5.0.3 in httpd 2.0.52

2005-01-24 Thread bone
My configure './configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'

[PHP] grabbing the range

2005-01-24 Thread blackwater dev
Let's say I have 100 rows in the database, I need to loop throw them ten at a time and for each set grab the max and min ages...I then need to return a multi-dimensional array of all the ranges...I basically want to do this but of course this query won't work: ***this is just pseudo code*** I

Re: [PHP] Id_num =

2005-01-24 Thread Santa
$id_num = $_POST[id_num]; $id_num = $_GET['id_num']; RTFM - diffrent between _GET _POST -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get full url

2005-01-24 Thread Santa
25 2005 04:31 Dmitry (a): How? Dont tell me about simple solutions such as $_SERVER[HTTPS] . $_SERVER[REMOTE_ADDR] . $_SERVER[SERVER_PORT] . $_SERVER[PHP_SELF] . $_SERVER[QUERY_STRING] I want get really good solution. Thanks. how about

Re: [PHP] Id_num =

2005-01-24 Thread Steve Slater
$id_num = $_POST[id_num]; $id_num = $_GET['id_num']; RTFM - diffrent between _GET _POST You can also use $_REQUEST['id_num'] if you don't care how the variable gets there (GET, POST, or COOKIE). Note that if the value is set in more than one input (say both a GET and a COOKIE set id_num),

[PHP] Re: String to Date and Date to String Functions?

2005-01-24 Thread David Robley
On Tuesday 25 January 2005 03:01, Ben Edwards wrote: Being trying to work out haw to handle dates. Basically I need a function to convert a Date to a String and another function to convert a string to a date. Exactly what format the date is held in is not relevant as long as it is some