[PHP] Search/Replace in entire database?

2009-06-14 Thread Chris Payne
Hi everyone, I am in the middle of creating an editor where you can search and replace on an individual column in a single table then I came across something I need to be able to do but not sure how. Is it posible (And if so please how :-) to search an entire database and all tables within a data

[PHP] Sorting mySQL query - one order from multiple fields

2009-06-14 Thread George Langley
Hi all. Am trying to sort baseball games by time, where there can be up to 3 times listed per game. Each game has an original "date" and "time" field, plus fields for 2 rain-out dates/times ("rodate1" "rotime1", "rodate2", "rotime2"), to use if the game gets rained out. Note that rotime1 an

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Andrew Ballard
On Sat, Jun 13, 2009 at 5:16 PM, Al wrote: > > > Al wrote: >> >> This preg_replace() should simply replace all "&" with "&" unless the >> value is already "&" >> >> But; if $value is simple a quote character ["] I get ""e". e.g., >> "test" => "e;test"e; >> >> Search string and replace works as it s

Re: [PHP] socket communication programming

2009-06-14 Thread Andrew Ballard
On Sat, Jun 13, 2009 at 4:58 PM, HELP! wrote: > On Sat, Jun 13, 2009 at 10:28 PM, Manuel Lemos wrote: > >> Hello, >> >> on 06/12/2009 11:41 AM HELP! said the following: >> > hi >> > I can not get the stream_get_contents() to work. it's returning empty. >> > If you have a login details "ALOGINPASS

Re: [PHP] High ID (unique, auto increment) causes slow responses on PHP (MySQL)

2009-06-14 Thread Andrew Ballard
On Sat, Jun 13, 2009 at 3:34 PM, Stuart wrote: > 2009/6/13 דניאל דנון : >>  I've built a certain system where every time new user enters it creates a >> "guest row" on "guests" table. he also gets an identifying cookie. >> >> The table contains several fields, one of them is ID which is auto increm

[PHP] Issues with APC, cache corruption?

2009-06-14 Thread James McLean
Hi All, Over the weekend I setup a test of APC intending to benchmark a Moodle installation with various APC settings to see how well I could get it to perform. I successfully installed Moodle 1.9 and 2.0 under Apache 2.2.3 (installed via apt on Ubuntu 9.04), and with PHP 5.2.9 compiled from sourc

[PHP] Uniquely identifying an array... as a key to another array

2009-06-14 Thread Eddie Drapkin
Alright, here's the situation. I'm wrapping memcached, which takes a list of several servers, into a quasi-singleton. In other words, I want only one instance per set of servers, not per server. Assuming I had three memcached servers at localhost, 192.168.1.1 and 192.168.1.2, I wouldn't want one

Re: [PHP] Periodic Actions in PHP?

2009-06-14 Thread Phpster
Sleep(). ? Bastien Sent from my iPod On Jun 14, 2009, at 13:52, "Parham Doustdar" wrote: Actually, your message sparked an idea in my [slow] mind. :) I can put the PHP code in a java script, and tell javascript to call it every fifteen seconds. Best option, I think. :) Any ideas? Thanks!

Re: [PHP] 3d image rotating

2009-06-14 Thread Nitsan Bin-Nun
As I have already mentioned, you can read the whole derivation of this 3d perspective engine and write it down using GD. It should not be such a big issue. Good luck! On Sun, Jun 14, 2009 at 3:07 PM, דניאל דנון wrote: > That not what I meant, but I found a solution with (sadly, wanted pure GD,

Re: [PHP] Periodic Actions in PHP?

2009-06-14 Thread Parham Doustdar
Actually, your message sparked an idea in my [slow] mind. :) I can put the PHP code in a java script, and tell javascript to call it every fifteen seconds. Best option, I think. :) Any ideas? Thanks! -- --- Contact info: Skype: parham-d MSN: fire_lizard16 at hotmail dot com email: parham90 at GMa

[PHP] include file in a class with global/parent scope?

2009-06-14 Thread Daniel Kolbo
Hello, I understand the why $vars is not in the global scope, but i was wondering if there was a way from within the class file to include a file in the parent's scope? i tried ::include('vars.php'), parent::include('vars.php'), but this breaks syntax... Please consider the following three files

Re: [PHP] 3d image rotating

2009-06-14 Thread דניאל דנון
That not what I meant, but I found a solution with (sadly, wanted pure GD, but it would've required going over the WHOLE image) imagemagick. Anyway, I even found more then I wanted http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=10830&start=0 Thanks (especially for nitsan that sugg

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Mark Kelly
Hi. On Saturday 13 June 2009, Al wrote: > I may not have been very clear. Feed it just "test" with the > quotes. You should get back, "test" the same as you gave it. Instead, > I get back "e;test"e; Like Shawn, I have tried your code in isolation and only get the expected results. I loo

Re: [PHP] how to pass a number through href url?

2009-06-14 Thread tedd
At 3:36 PM -0400 6/13/09, PJ wrote: I wish to be able to edit db field that is displayed in a page by calling up another page to handle the editing. The problem is how to pass the id (number) through an href. In other words, can the number be included in the uri and then filter the uri to leave