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

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() { if(count($this->sortKe

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() { if

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 sho

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

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 php

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 d

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 M

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 -- 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 Yoiks! When did this list decide that gibberish was the default language? Have I missed

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

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 C:\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 w

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 func

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 t

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 an

[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 > Subject: Re: [PHP] String to Date and Date to String Functions

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

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

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

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 : > > $x

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 cg

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 Localho

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 is

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. Some

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 = ur

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";} > func

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. http://www.mysql.

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

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 o

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( '01/01

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

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 copy > > Some more copy > > What I want instead is > Some text copy > > some more

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

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 tag. See the simplified example below: Work-Around: Until you get this hammered out, you could use file_get_contents() with a URL instead

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

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

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? > > http://

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-

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. http://www.

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 fr

[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'], $_POST['aanhef

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

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 then

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

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, Janu

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 SOM

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 Engine

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.

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

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 Gener

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

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 to

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.my

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 thi

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

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{ error_lo

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

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 Blancha

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

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

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 PROTECT

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 w

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: http://www

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

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 + '?' + Q

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

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%

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 edi

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

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. view Use $_GET['id_num'] instead of $id_num and read up on the register_globals setting. -- ---John Holmes... Amazon Wi

[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' '--datadir=/usr

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

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. h

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 so