Re: [PHP] Mediawiki's url confusion

2009-07-22 Thread Paul M Foster
On Thu, Jul 23, 2009 at 11:57:51AM +0800, ?? wrote: > Hi everyone: > > I've been studying the codes of Mediawiki for some time. > > I'm convinced that the file "index.php" is the only entrance to the whole > site. > > But I cannot help myself with the url pattern : > /somepath_to_mediawiki/

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread phphelp -- kbk
Here is a simple but effective one, which has the advantage of optionally doing datetime. -- -- http://www.rainforestnet.com If anyone knows of others that do both date and datetime, I'd love to see them. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

[PHP] Mediawiki's url confusion

2009-07-22 Thread 邓序乐
Hi everyone: I've been studying the codes of Mediawiki for some time. I'm convinced that the file "index.php" is the only entrance to the whole site. But I cannot help myself with the url pattern : /somepath_to_mediawiki/index.php/pagetitle. How can this kind of url be parsed to the file "index

Re: [PHP] How to build an FF extension

2009-07-22 Thread Paul M Foster
On Wed, Jul 22, 2009 at 08:31:10PM -0700, Javed Khan wrote: > How to build an FF extension and how to install it. I'm using Fedora 10 > operating system. > Can someone please provide me with the steps > Thanks > J.K Let me substitute for Dan here. You're asking this on a PHP list, which isn't the

[PHP] How to build an FF extension

2009-07-22 Thread Javed Khan
How to build an FF extension and how to install it. I'm using Fedora 10 operating system. Can someone please provide me with the steps Thanks J.K

[PHP] help with stream filter

2009-07-22 Thread 白浩平
Hi, everyone Has anyone tried to use stream filter to decompress a large file? My problem when doing this is memory consume. My php process requires more and more memory as time goes. Is this a bug or just I don’t get the right usage? My code as follows: 26 $fp

Re: [PHP] Re: unsetting a referenced parameter in a function

2009-07-22 Thread Martin Scotta
On Wed, Jul 22, 2009 at 9:27 PM, Tom Worster wrote: > On 7/22/09 6:09 PM, "Shawn McKenzie" wrote: > > > Tom Worster wrote: > >> though the manual is perfectly clear that this should be expected, i was > a > >> bit surprised that the result of the following is 42 > >> > >> >> function foo(&$a) {

Re: [PHP] Re: unsetting a referenced parameter in a function

2009-07-22 Thread Tom Worster
On 7/22/09 6:09 PM, "Shawn McKenzie" wrote: > Tom Worster wrote: >> though the manual is perfectly clear that this should be expected, i was a >> bit surprised that the result of the following is 42 >> >> > function foo(&$a) { >> $a = 42; >> unset($a); >> $a = 'meaning'; >> } >> foo($a); >

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Thank you very much! Understand. And it Works very well now. Cheers -Mensagem original- De: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Enviada: quinta-feira, 23 de Julho de 2009 00:04 Para: php-general@lists.php.net Assunto: RE: [PHP] Replace in a string with regex > -Original Messag

RE: [PHP] Replace in a string with regex

2009-07-22 Thread Ford, Mike
> -Original Message- > From: rszeus [mailto:rsz...@gmail.com] > Sent: 22 July 2009 19:23 > To: 'Jim Lucas' > Cc: 'Kyle Smith'; 'Eddie Drapkin'; a...@ashleysheridan.co.uk; php- > gene...@lists.php.net > Subject: RE: [PHP] Replace in a string with regex > > No, sory, my bad typing. It's not

[PHP] Re: newbie question - php parsing

2009-07-22 Thread Shawn McKenzie
João Cândido de Souza Neto wrote: > You made a mistake in your code: > > > > must be: > > > I haven't used worpress in a long time, but the the_title() function might echo the title unless you pass the FALSE parameter, in which case it just returns it. -- Thanks! -Shawn http://www.spidea

[PHP] Re: unsetting a referenced parameter in a function

2009-07-22 Thread Shawn McKenzie
Tom Worster wrote: > though the manual is perfectly clear that this should be expected, i was a > bit surprised that the result of the following is 42 > > function foo(&$a) { > $a = 42; > unset($a); > $a = 'meaning'; > } > foo($a); > print("$a\n"); > ?> > > normally i would expect unset()

[PHP] Calculating number of checkers (draughts) possible positions

2009-07-22 Thread דניאל דנון
I am trying to calculate the number of possible checkers position - at first without including promotion (queen/king). Each player starts with 12 pieces in his color, And the whole board has 32 places (64 / 2). At first glance I thought - each place can be occupied by either black piece, white pi

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Martin Scotta
This is how I'd write this snippet ', $title, ''; } ?> On Wed, Jul 22, 2009 at 6:31 PM, Lenin wrote: > Ted Turner > - > "Sports is like a war without the killing." > > 2009/7/23 Shane Hill > > > 2009/7/22 João Cândido

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Lenin
Ted Turner - "Sports is like a war without the killing." 2009/7/23 Shane Hill > 2009/7/22 João Cândido de Souza Neto > > > You made a mistake in your code: > > > > > > > > must be: > > > > > > > Short tag and not recommended

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Shane Hill
2009/7/22 João Cândido de Souza Neto > You made a mistake in your code: > > > > must be: > > also works. -Shane > > > -- > João Cândido de Souza Neto > SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS > Fone: (0XX41) 3033-3636 - JS > www.siens.com.br > > "Sebastiano Pomata" escreveu na men

[PHP] Re: newbie question - php parsing

2009-07-22 Thread Jo�o C�ndido de Souza Neto
You made a mistake in your code: must be: -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636 - JS www.siens.com.br "Sebastiano Pomata" escreveu na mensagem news:70fe20d60907221355m3fa49a75ua053d2f1b9aca...@mail.gmail.com... > Hi all, > > A lit

RE: [PHP] putenv usage

2009-07-22 Thread Yuri Yarlei
You can use the date_default_timezone_set(), it will set the default timezone to your timezone choose, some server denied the access to the environment variable Yuri Yarlei. Programmer PHP, CSS, Java, PostregreSQL; Today PHP, tomorrow Java, after the world. Kyou wa PHP, ashita wa Java, sono ato

[PHP] newbie question - php parsing

2009-07-22 Thread Sebastiano Pomata
Hi all, A little doubt caught me while I was writing this snippet of code for a wordpress template: I always thought that php was called only between the tags, and I'm pretty sure that's right, while HTML code was simply wrote in document as is, without further logic. Now, I can't figure out

RE: [PHP] Session Confusion.

2009-07-22 Thread Yuri Yarlei
Hello For the authentication you can do a form, it will pass the login informations to some class who do the sql validation and put in session the informations of user, but not the password, i prefer put in session because when he close the browser the session will down for 2 , On the first

Re: [PHP] Client Side PHP

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 4:03 PM, Lenin wrote: > www.phpjs.org That's hilarious! Thanks for that laugh =) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] unsetting a referenced parameter in a function

2009-07-22 Thread Tom Worster
though the manual is perfectly clear that this should be expected, i was a bit surprised that the result of the following is 42 normally i would expect unset() to free some memory. but in this example it doesn't and has a different behavior: it releases foo's reference to the global $a, allowing

Re: [PHP] Client Side PHP

2009-07-22 Thread Lenin
On Thu, Jul 23, 2009 at 1:06 AM, Bastien Koert wrote: > On Wed, Jul 22, 2009 at 1:56 PM, Javed Khan wrote: > > I need help on my project I want to have my browser do compling of PHP > scripts. Can someone please send me some concepts and if possible codes to > do this. I know this aspect will pos

RE: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-22 Thread MEM
Thanks a lot Tony. Unfortunately for me, I'm seeing myself in no conditions for properly learning a framework. I want to learn PHP and a framework bring so many concepts at once, that I found extremely complex and time consuming do dig in, at once, right now. Since I have no more than a few months

Re: [PHP] Session Confusion.

2009-07-22 Thread Lenin
Dear Dare, I would recommend you to get the free copy of *chapter 10: Security from Zend Certification Study guide* by Ben Ramsey & Davey Shafik at www.zceguide.com shorter tips: 1. You can apply session_regenerate_id() to prevent *session riding* or *session fixation* 2. You can keep $_SESSION['

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Jim Lucas
rszeus wrote: > No, sory, my bad typing. It's not the problem.. > I have the same on both caxses, only chnage the variable $id > $file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg" > $id = '70'; > echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id, $file); > Get: 0 > >

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
No, sory, my bad typing. It's not the problem.. I have the same on both caxses, only chnage the variable $id $file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg" $id = '70'; echo preg_replace('#(screen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id, $file); Get: 0 file = "screen/temp/7a45gfdi6

Re: [PHP] Client Side PHP

2009-07-22 Thread Bastien Koert
On Wed, Jul 22, 2009 at 1:56 PM, Javed Khan wrote: > I need help on my project I want to have my browser do compling of PHP > scripts. Can someone please send me some concepts and if possible codes to do > this. I know this aspect will pose great security threat to the server and > client but I

Re: [PHP] Client Side PHP

2009-07-22 Thread Jim Lucas
Javed Khan wrote: > I need help on my project I want to have my browser do compling of PHP > scripts. Can someone please send me some concepts and if possible codes to do > this. I know this aspect will pose great security threat to the server and > client but I will still love any help with thi

[PHP] Client Side PHP

2009-07-22 Thread Javed Khan
I need help on my project I want to have my browser do compling of PHP scripts. Can someone please send me some concepts and if possible codes to do this. I know this aspect will pose great security threat to the server and client but I will still love any help with this.   Thanks, J. K

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Jim Lucas
rszeus wrote: > Thank you. I undestand now. > > Anh it’s already workyng the replacemente with letteres. Bu if the variabele > is a number it doens’t work. Any ideas ? > > > > $file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg"; > > > > $id = '70'; > > echo preg_replace('#(Iscre

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Thank you. I undestand now. Anh it’s already workyng the replacemente with letteres. Bu if the variabele is a number it doens’t work. Any ideas ? $file = "screen/temp/7a45gfdi6icpan1jtb1j99o925_1_mini.jpg"; $id = '70'; echo preg_replace('#(Iscreen/)temp/(.+?)_1(.+?\.jpg)#', '$1'.$id, $

Re: [PHP] Session Confusion.

2009-07-22 Thread Bastien Koert
On Wed, Jul 22, 2009 at 1:19 PM, Dare Williams wrote: > Dear Forums, > > Kindly advice me professionally because, am getting more confused on what to > do about my application that needed to be online very soon. > > The fear is about Session and Authentication. > > Here are my questions. > 1.   Mu

[PHP] Session Confusion.

2009-07-22 Thread Dare Williams
Dear Forums, Kindly advice me professionally because, am getting more confused on what to do about my application that needed to be online very soon. The fear is about Session and Authentication. Here are my questions. 1.   Must a Page Authentication be done by Session or Cookie. If not what ar

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Kyle Smith
The first match inside () is assigned to $1, the second is assigned to $2, and so on. rszeus wrote: Hi, It doens't work. I get 0_main.jpg if I do that.. I don't undestand the point of $1 $2 and $3.. In preg_replace('#(screens/)temp/(.+?)_1(_main\.jpg)#', what will be $1 and $2 and $3 ? $ " I

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Hi, It doens't work. I get 0_main.jpg if I do that.. I don't undestand the point of $1 $2 and $3.. In preg_replace('#(screens/)temp/(.+?)_1(_main\.jpg)#', what will be $1 and $2 and $3 ? $ " I already knwo it's the (.+?) but the others didnt' get it. Thank you... -Mensagem original- De:

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Paul M Foster
On Wed, Jul 22, 2009 at 08:41:23AM -0700, c...@hosting4days.com wrote: > Another newbie question: storing dates and times... > > I'm trying to build a simple notepad page where I can attach a date > and even time field. So this Tigra or yahoo calendar will be great > date picker helper. > > This

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 08:41 -0700, c...@hosting4days.com wrote: > On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote: > > > > That is javascript thing, not PHP. > > > > The Yahoo UI has a nice one, here you have an example: > > http://developer.yahoo.com/yui/examples/calendar/ > > calcontainer_cl

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread c...@hosting4days.com
On Jul 21, 2009, at 6:17 PM, Jonathan Tapicer wrote: That is javascript thing, not PHP. The Yahoo UI has a nice one, here you have an example: http://developer.yahoo.com/yui/examples/calendar/ calcontainer_clean.html, and here the module reference: http://developer.yahoo.com/yui/calendar/ J

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Shawn McKenzie
Andrew Ballard wrote: > On Wed, Jul 22, 2009 at 9:59 AM, Robert Cummings wrote: >> A custom session handler that writes to files could easily encrypt session >> data so that only the user with the correct session ID can decrypt it. I >> think you're confusing the issue by claiming database sessions

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 11:01 AM, Ashley Sheridan wrote: > On Wed, 2009-07-22 at 07:54 -0700, Jim Lucas wrote: >> Sure that can be done.  But you will need to change the second argument >> to have double quotes so it will be parsed by PHP. >> >> Then I would surround YOUR variable with curly bracke

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 11:01 AM, Ashley Sheridan wrote: > On Wed, 2009-07-22 at 07:54 -0700, Jim Lucas wrote: >> rszeus wrote: >> > Thank you. >> > >> > What about instead test i want to insert a variable ? >> > Like >> > $id = "30"; >> > $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 07:54 -0700, Jim Lucas wrote: > rszeus wrote: > > Thank you. > > > > What about instead test i want to insert a variable ? > > Like > > $id = "30"; > > $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; > > echo preg_replace('#(screens/)temp/(.+?)_1(_main\.jpg)#',

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 9:59 AM, Robert Cummings wrote: > A custom session handler that writes to files could easily encrypt session > data so that only the user with the correct session ID can decrypt it. I > think you're confusing the issue by claiming database sessions are more > secure when wha

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Jim Lucas
rszeus wrote: > Thank you. > > What about instead test i want to insert a variable ? > Like > $id = "30"; > $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; > echo preg_replace('#(screens/)temp/(.+?)_1(_main\.jpg)#', '$1$id$3', $file); Sure that can be done. But you will need to ch

Re: [PHP] putenv usage

2009-07-22 Thread David Otton
2009/7/22 Manoj Singh : > Now my question is whether it is fine to use putenv in the production > environment? Whether the putenv changes the timezone value globally for all > request or for the current request only? "The environment variable will only exist for the duration of the current reques

[PHP] putenv usage

2009-07-22 Thread Manoj Singh
Hi All, I have a page where the user specifies in which timezone they belong to and based on that i have to show the date & time. So I have to set the different timezones. For this I am using putenv function like: putenv("TZ=US/Eastern"); Now my question is whether it is fine to use putenv in the

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Robert Cummings
Floyd Resler wrote: The nice thing about the database, though, is that you can specify which MySQL user has access to the sessions table. That way you can really lock it down by giving access to only INSERT, SELECT, UPDATE, and DELETE just for that table. Thanks! Floyd On Jul 22, 2009, a

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Thank you. What about instead test i want to insert a variable ? Like $id = "30"; $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; echo preg_replace('#(screens/)temp/(.+?)_1(_main\.jpg)#', '$1$id$3', $file); I am confusing " and '. Thank you -Mensagem original- De: Eddi

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Floyd Resler
The nice thing about the database, though, is that you can specify which MySQL user has access to the sessions table. That way you can really lock it down by giving access to only INSERT, SELECT, UPDATE, and DELETE just for that table. Thanks! Floyd On Jul 22, 2009, at 9:36 AM, Andrew Bal

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 09:08 -0400, Andrew Ballard wrote: > On Wed, Jul 22, 2009 at 9:02 AM, Ashley > Sheridan wrote: > > Sorry, my bad, I misread the URL. Having a lot of stress here at the > > moment getting my laptop fixed :-/ > > > > Isn't that called withdrawal? ;-) > Not quite, I have my ma

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Robert Cummings
You can disregard this, it's wrong (I missed a part of the requirements :) and there's other solutions already provided (my email client is weird when you switch to a folder it always displays the first entry as the last read, so sometimes I miss that there are new posts above... I just switche

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Robert Cummings
rszeus wrote: Hello, I’m tryng to make some replacements on a string. Everything goês fine until the regular expression. $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o925, 'temp/',’_([0-9])’), array(“test”,"",””), $file)

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 8:36 AM, Ashley Sheridan wrote: > But *how* does it offer more security? You've not actually mentioned > that! > One way would be to encapsulate data access in stored procedures and deny direct table access on the session data. That way, even though the PHP account has acce

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Floyd Resler
With proper permissions I'm not sure that it's any more secure but it certainly is a whole lot more scalable. And it is very easy to set up. A web search will yield a lot of examples of using a database. I use a PHP class which I really like. Take care, Floyd On Jul 22, 2009, at 8:36 AM

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Totally right on the corrections. Sorry, i did not copy paste from the source code, I wrote here to change to other names and wrote it bad. It should be: $file = 'screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg'; echo $a = str_replace(array('7a45gfdi6icpan1jtb1j99o925', 'temp/',’_([0-9])’),

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 9:07 AM, rszeus wrote: > Hi. It Works to remove the _1 but it doesn't replace > '7a45gfdi6icpan1jtb1j99o925' for 'test' > > Thank you > > -Mensagem original- > De: Eddie Drapkin [mailto:oorza...@gmail.com] > Enviada: quarta-feira, 22 de Julho de 2009 13:11 > Para: r

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 9:02 AM, Ashley Sheridan wrote: > Sorry, my bad, I misread the URL. Having a lot of stress here at the > moment getting my laptop fixed :-/ > Isn't that called withdrawal? ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

RE: [PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Hi. It Works to remove the _1 but it doesn't replace '7a45gfdi6icpan1jtb1j99o925' for 'test' Thank you -Mensagem original- De: Eddie Drapkin [mailto:oorza...@gmail.com] Enviada: quarta-feira, 22 de Julho de 2009 13:11 Para: rszeus Cc: php-general@lists.php.net Assunto: Re: [PHP] Replace

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 08:59 -0400, Andrew Ballard wrote: > On Wed, Jul 22, 2009 at 3:50 AM, Ashley > Sheridan wrote: > > On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: > >> On Tue, Jul 21, 2009 at 10:06 PM, > >> c...@hosting4days.com wrote: > >> > newbie ... > >> > > >> > - is there a c

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 3:50 AM, Ashley Sheridan wrote: > On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: >> On Tue, Jul 21, 2009 at 10:06 PM, >> c...@hosting4days.com wrote: >> > newbie ... >> > >> > - is there a calendar module for date fields? >> > >> > - so that a small calendar pops

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 08:32 -0400, Floyd Resler wrote: > You can do so much more with storing sessions in a database. For > example, I can determine which of my users is currently on by looking > in the sessions table. Not only does using a database for sessions > offer more security, it al

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Floyd Resler
You can do so much more with storing sessions in a database. For example, I can determine which of my users is currently on by looking in the sessions table. Not only does using a database for sessions offer more security, it also offers more flexibility. Take care, Floyd On Jul 22, 2009

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 13:02 +0100, rszeus wrote: > Hello, > > I’m tryng to make some replacements on a string. > > Everything goês fine until the regular expression. > > > > $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; > > echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o

Re: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-22 Thread Tony Marston
""MEM"" wrote in message news:000201ca0a9f$ca3fb110$5ebf13...@com... > > > As for (1) even in my pre-OO days I was used to using a single > > > generic DAO for all database access. The only time that more > > > than one DAO existed was for a different DBMS engine. This > > > is why I have one DA

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 8:02 AM, rszeus wrote: > Hello, > > I’m tryng to make some replacements on a string. > > Everything goês fine until the regular expression. > > > > $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; > > echo $a =  str_replace(array(7a45gfdi6icpan1jtb1j99o925, > 't

[PHP] Replace in a string with regex

2009-07-22 Thread rszeus
Hello, I’m tryng to make some replacements on a string. Everything goês fine until the regular expression. $file = "screens/temp/7a45gfdi6icpan1jtb1j99o925_1_main.jpg"; echo $a = str_replace(array(7a45gfdi6icpan1jtb1j99o925, 'temp/',’_([0-9])’), array(“test”,"",””), $file) The idea is t

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread דניאל דנון
Check jQuery UI On 7/22/09, c...@hosting4days.com wrote: > newbie ... > > - is there a calendar module for date fields? > > - so that a small calendar pops up - then you can click on a date, > to add to a field - like google or yahoo calendars has...? > > BTW: I saw this - but it doesn't seem to

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 16:07 +0700, Lenin wrote: > On Wed, Jul 22, 2009 at 2:46 PM, Ashley Sheridan > wrote: > > > On Wed, 2009-07-22 at 03:45 +0700, Lenin wrote: > > > > > > > > > > > As Floyd suggested keeping your sessions in the DB will give you better > > > session management and security as

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Lenin
On Wed, Jul 22, 2009 at 2:46 PM, Ashley Sheridan wrote: > On Wed, 2009-07-22 at 03:45 +0700, Lenin wrote: > > > > > > As Floyd suggested keeping your sessions in the DB will give you better > > session management and security as well. > > Why would putting the session data in a database offer mo

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Ashley Sheridan
On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: > On Tue, Jul 21, 2009 at 10:06 PM, > c...@hosting4days.com wrote: > > newbie ... > > > > - is there a calendar module for date fields? > > > > - so that a small calendar pops up - then you can click on a date, to add > > to a field - like

Re: [PHP] Doubt regarding session_destroy() in PHP 5

2009-07-22 Thread Ashley Sheridan
On Wed, 2009-07-22 at 03:45 +0700, Lenin wrote: > On Wed, Jul 22, 2009 at 3:24 AM, L.Guruprasad wrote: > > > Hi, > > Floyd Resler wrote: > > > >> Keep in mind that sessions are based on the domain. I've run into > >> situations where someone will be working in several different sites that we > >

RE: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-22 Thread MEM
> > > As for (1) even in my pre-OO days I was used to using a single > > > generic DAO for all database access. The only time that more > > > than one DAO existed was for a different DBMS engine. This > > > is why I have one DAO class for MySQL, one for PostgreSQL > > > and another for Oracle. If y