Re: [PHP] Renaming a Directory

2009-09-08 Thread Eddie Drapkin
On Wed, Sep 9, 2009 at 12:08 AM, Paul M Foster wrote: > On Tue, Sep 08, 2009 at 05:39:43PM -0400, Floyd Resler wrote: > >> How can I rename a directory with files in it?  The rename function >> gives me a "directory not empty" error.  I know I could do it be >> creating the directory, moving the fi

Re: [PHP] Converting URL's to hyperlinks.

2009-09-08 Thread Paul M Foster
On Wed, Sep 09, 2009 at 03:22:25AM +0200, Lupus Michaelis wrote: > Sorry for the lag. > > Daevid Vincent a écrit : >>>OP ? >> >> Original Poster > > Thanks :) > >> Blah blah blah. >> I've used this code for about 6 years now and have yet to find emails that >> it didn't work for. If someon

Re: [PHP] Renaming a Directory

2009-09-08 Thread Paul M Foster
On Tue, Sep 08, 2009 at 05:39:43PM -0400, Floyd Resler wrote: > How can I rename a directory with files in it? The rename function > gives me a "directory not empty" error. I know I could do it be > creating the directory, moving the files, and then deleting the old > one. Is there an easier wa

Re: [PHP] script failing at same line

2009-09-08 Thread jim white
Ben, My solution was to add a table to my database, and add an insert job id into the table after the line that is causing the problem. When I submit the script I use setTimeout to run an AJAX query of the table 5 seconds later. If the line has failed the job id will not be in the table and I

Re: [PHP] mysql user session handler

2009-09-08 Thread Gabriel Sosa
I'm our case we opt for memcache to store the sessions Mmc its soo much faster and you will have less net overhead because the simple protocol Also the configuration its easier. If you see in the php manual you only need to touch two lines in the php.ini On 9/8/09, Tom Worster wrote: > thanks, De

Re: [PHP] mysql user session handler

2009-09-08 Thread Tom Worster
thanks, Devendra, that's pretty much the same as my handler. (though i can't figure Rich Smith's $sess_save_path global. do you know what is for?) but what i'm really interested in is people's experience in switching over to and using this kind of handler: pitfalls, gotchas, etc. or is it really a

Re: [PHP] Converting URL's to hyperlinks.

2009-09-08 Thread Lupus Michaelis
Sorry for the lag. Daevid Vincent a écrit : OP ? Original Poster Thanks :) Blah blah blah. I've used this code for about 6 years now and have yet to find emails that it didn't work for. If someone has some funky (whacky) RFC extremity, then so be it. That's their problem. Most peopl

Re: [PHP] Renaming a Directory

2009-09-08 Thread Eddie Drapkin
On Tue, Sep 8, 2009 at 5:39 PM, Floyd Resler wrote: > How can I rename a directory with files in it?  The rename function gives me > a "directory not empty" error.  I know I could do it be creating the > directory, moving the files, and then deleting the old one.  Is there an > easier way? > > Than

[PHP] Renaming a Directory

2009-09-08 Thread Floyd Resler
How can I rename a directory with files in it? The rename function gives me a "directory not empty" error. I know I could do it be creating the directory, moving the files, and then deleting the old one. Is there an easier way? Thanks! Floyd -- PHP General Mailing List (http://www.php.

Re: [PHP] mysql user session handler

2009-09-08 Thread Devendra Jadhav
http://www.devshed.com/c/a/PHP/Storing-PHP-Sessions-in-a-Database/ On Tue, Sep 8, 2009 at 10:53 PM, Tom Worster wrote: > questions for those of you with a user session handler using mysql: > > did you write your own handler, write one based off some other you found > (if > so, which?), or are y

[PHP] mysql user session handler

2009-09-08 Thread Tom Worster
questions for those of you with a user session handler using mysql: did you write your own handler, write one based off some other you found (if so, which?), or are you using some available library (if so, which?)? and how do you feel about your implementation? satisfied? or are there improvement

Re: [PHP] Calendar tutorial

2009-09-08 Thread tedd
At 8:47 PM -0700 9/7/09, Haig Davis wrote: Dear PHP List Members, First off I am well aware that I can go online and download a PHP script to make a Calendar, it's not that I'm too cheap to buy the script it is that I want to work through and fully understand what I have so that I am intimately

Re: [PHP] new php script and sqlite

2009-09-08 Thread Eric Boo
On Tue, Sep 8, 2009 at 9:41 PM, Paul M Foster wrote: > On Tue, Sep 08, 2009 at 11:20:01AM +0800, Eric Boo wrote: > >> Hi, >> >> I'm currently using a text file to store data which the php script >> will read and write back to. I've a few questions: >> >> 1) I'm thinking of using sqlite, but not sur

[PHP] Re: Converting URL's to hyperlinks.

2009-09-08 Thread LuKreme
On 4-Sep-2009, at 14:49, Daevid Vincent wrote: I've used this code for about 6 years now and have yet to find emails that it didn't work for. If someone has some funky (whacky) RFC extremity, It's attitudes like this that make the web such a wonderful place. When I encounter a website the r

RE: [PHP] Displaying image paths with spaces

2009-09-08 Thread Bob McConnell
From: Skip Evans > HallMarc Websites wrote: >> Actually, %5C is a \ character, % is %25 >> Why it is adding a character that is used in local address strings is >> baffling and I think a clue as to what is going on. Is it possible it is >> mashing a local file address into a web address? > > Aha

RE: [PHP] how to check function's execution?

2009-09-08 Thread Bob McConnell
From: A.a.k > > hello > I have a problem to check whether a function successfully inject to database > or not, here is the code : >if($object->dbupdate()) >echo 'done'; > else > echo 'damn!'; > inside the 'if' statement $obj->dbupdate() doesn't execute , how can I > exec

Re: [PHP] new php script and sqlite

2009-09-08 Thread Paul M Foster
On Tue, Sep 08, 2009 at 11:20:01AM +0800, Eric Boo wrote: > Hi, > > I'm currently using a text file to store data which the php script > will read and write back to. I've a few questions: > > 1) I'm thinking of using sqlite, but not sure whether this will be > widely available on most hosts, as

[PHP] Recursion And Serialization - Solved

2009-09-08 Thread Andrea Giammarchi
I do not know why php.net is not publishing yet the link I posted in specific page, but if you want to resolve serialized recursion problem or you just want to better understand the problem and possible solutions, you may be interested in this post: http://webreflection.blogspot.com/2009/09/ph

Re: [PHP] Return XML attribute in DOM

2009-09-08 Thread Matthew Croud
Cheers Guys, Your the greatest ! On 8 Sep 2009, at 09:08, Peter Ford wrote: Matthew Croud wrote: Doesn't the DOM have the getAttribute() method? Thanks, Ash http://www.ashleysheridan.co.uk It's not in my reference, though I see it in the PHP manual now. This is what I have: ___

Re: [PHP] Return XML attribute in DOM

2009-09-08 Thread Peter Ford
Matthew Croud wrote: >>> Doesn't the DOM have the getAttribute() method? >> >> Thanks, >> Ash >> http://www.ashleysheridan.co.uk > > It's not in my reference, though I see it in the PHP manual now. > This is what I have: > > _ > > $dom = new DomDocument(); > $dom -> l

Re: [PHP] need php_mssql so I retreated to 5.2.10

2009-09-08 Thread Tommy Pham
--- On Mon, 9/7/09, Fred Silsbee wrote: > From: Fred Silsbee > Subject: [PHP] need php_mssql so I retreated to 5.2.10 > To: php-general@lists.php.net > Date: Monday, September 7, 2009, 11:09 PM > > under IE8: > http:// 209.33.25.167:8080/phpinfo.php > with: >              phpinfo(); >      ?> >