php-general Digest 22 Jul 2009 07:41:20 -0000 Issue 6243

2009-07-22 Thread php-general-digest-help
php-general Digest 22 Jul 2009 07:41:20 - Issue 6243 Topics (messages 295637 through 295658): Re: Converting SQL Dialects 295637 by: Ashley Sheridan 295640 by: Matt Neimeyer 295641 by: Andrew Ballard 295657 by: Paul M Foster Re: Search Query on two tables

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

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 lgp171...@gmail.com 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

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.comc...@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

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 a...@ashleysheridan.co.ukwrote: 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

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 a...@ashleysheridan.co.ukwrote: 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

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

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

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 8:02 AM, rszeusrsz...@gmail.com 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,

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

2009-07-22 Thread Tony Marston
MEM tal...@gmail.com 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

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(7a45gfdi6icpan1jtb1j99o925,

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,

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 also

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 Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie ... - is there a calendar module for date fields? - so

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 Sheridana...@ashleysheridan.co.uk wrote: On Tue, 2009-07-21 at 22:17 -0300, Jonathan Tapicer wrote: On Tue, Jul 21, 2009 at 10:06 PM, c...@hosting4days.comc...@hosting4days.com wrote: newbie

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]

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 Sheridana...@ashleysheridan.co.uk 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:

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 9:07 AM, rszeusrsz...@gmail.com 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

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

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

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 Sheridana...@ashleysheridan.co.uk 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

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

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 Sheridana...@ashleysheridan.co.uk 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

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

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

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,

[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] putenv usage

2009-07-22 Thread David Otton
2009/7/22 Manoj Singh manojsingh2...@gmail.com: 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

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

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 Cummingsrob...@interjinn.com 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

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)#', '$1$id$3',

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 11:01 AM, Ashley Sheridana...@ashleysheridan.co.uk 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 =

Re: [PHP] Replace in a string with regex

2009-07-22 Thread Andrew Ballard
On Wed, Jul 22, 2009 at 11:01 AM, Ashley Sheridana...@ashleysheridan.co.uk 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

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 Cummingsrob...@interjinn.com 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

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/

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_clean.html,

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: snip 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] 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] Session Confusion.

2009-07-22 Thread Bastien Koert
On Wed, Jul 22, 2009 at 1:19 PM, Dare Williamsdarrenwi...@yahoo.com 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

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

[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] 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 this.

Re: [PHP] Client Side PHP

2009-07-22 Thread Bastien Koert
On Wed, Jul 22, 2009 at 1:56 PM, Javed Khaniankha...@yahoo.com 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

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 =

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

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

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] Client Side PHP

2009-07-22 Thread Lenin
On Thu, Jul 23, 2009 at 1:06 AM, Bastien Koert phps...@gmail.com wrote: On Wed, Jul 22, 2009 at 1:56 PM, Javed Khaniankha...@yahoo.com 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

[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 ?php function foo($a) { $a = 42; unset($a); $a = 'meaning'; } foo($a); print($a\n); ? normally i would expect unset() to free some memory. but in this example it

Re: [PHP] Client Side PHP

2009-07-22 Thread Eddie Drapkin
On Wed, Jul 22, 2009 at 4:03 PM, Leninle...@phpxperts.net 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

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

[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: ?php if (the_title('','',FALSE) != 'Home') { ? h2 class=entry-header?php the_title(); ?/h2 ?php } ? I always thought that php was called only between the ?php ? tags, and I'm pretty sure that's

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

[PHP] Re: newbie question - php parsing

2009-07-22 Thread Jo�o C�ndido de Souza Neto
You made a mistake in your code: ?php the_title(); ? must be: ?php echo the_title(); ? -- 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 lafayett...@gmail.com escreveu na mensagem

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

2009-07-22 Thread Shane Hill
2009/7/22 João Cândido de Souza Neto j...@consultorweb.cnt.br You made a mistake in your code: ?php the_title(); ? must be: ?php echo the_title(); ? ?= the_title(); ? also works. -Shane -- João Cândido de Souza Neto SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS Fone: (0XX41) 3033-3636

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

2009-07-22 Thread Lenin
Ted Turner http://www.brainyquote.com/quotes/authors/t/ted_turner.html - Sports is like a war without the killing. 2009/7/23 Shane Hill shanehil...@gmail.com 2009/7/22 João Cândido de Souza Neto j...@consultorweb.cnt.br You made a mistake in your code: ?php the_title(); ? must be:

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

2009-07-22 Thread Martin Scotta
This is how I'd write this snippet ?php if ( 'Home' !== ( $title = the_title('','',FALSE))) { echo 'h2 class=entry-header', $title, '/h2'; } ? On Wed, Jul 22, 2009 at 6:31 PM, Lenin le...@phpxperts.net wrote: Ted Turner

[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

[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 ?php function foo($a) { $a = 42; unset($a); $a = 'meaning'; } foo($a); print($a\n); ? normally i would expect unset() to free

[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: ?php the_title(); ? must be: ?php echo the_title(); ? 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. --

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 the

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

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 nos...@mckenzies.net 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 ?php function foo($a) { $a = 42; unset($a); $a = 'meaning'; }

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 f...@thefsb.org wrote: On 7/22/09 6:09 PM, Shawn McKenzie nos...@mckenzies.net 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 ?php

[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

[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

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

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:

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 :