[PHP] [PHP-DEV] Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-05 Thread Lester Caine
Sorry - switched address to the wrong list :( *I* hate reply not going to the right place - but one of these days I switch to something that just ignores the on board miss direction ;) Larry Garfield wrote: I'm building a multi-database system, although my main targets are MySQL, Postgres,

[PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Hi, Seems my 1and1 server has finally gone kaput taking my website with it, and in the tradition of all good IT professionals, I have no backups. :( So this is an appeal to you to ask if you have downloaded anything from phpguru.org at all, could you please send it to me so I can try to rebuild

Re: [PHP] PHP querying mysql db for data limited to the last month

2008-08-05 Thread Per Jessen
Vinny Gullotta wrote: So I have this code I'm working with (pasted below) that queries a mysql db table called timetracking. The goal of the page is to search the db for all data based on a certain engineer, sorted by product and it takes pre-defined values based on actions performed, sums

Re: [PHP] SoapClient and arrays

2008-08-05 Thread Marten Lehmann
Hello, What about $response-key ??? What does that give? It seems to me, that $response-key will be a public property of the stdClass? thanks, this works fine. Regards Marten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOAP / Server Communication

2008-08-05 Thread stuart tonner
Hi, At the moment I've taken over a group of individual systems that all do their job well enough independently, but all need to talk to one another. For example, one system handles stock levels, one system handles sales leads, another handles special offers, etc. etc. A complete rewrite is

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Aschwin Wesselius
Richard Heyes wrote: Hi, Seems my 1and1 server has finally gone kaput taking my website with it, and in the tradition of all good IT professionals, I have no backups. :( So this is an appeal to you to ask if you have downloaded anything from phpguru.org at all, could you please send it to me so

[PHP] flock and file reading

2008-08-05 Thread ragnarok
: http://adv.email.it/cgi-bin/foclick.cgi?mid=8136d=20080805

[PHP] Re: [PHP-DEV] PHP 5.3.0alpha1

2008-08-05 Thread Hannes Magnusson
On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: Hello! Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find here: http://downloads.php.net/johannes/ So.. Apparently we will not get Windows builds of alpha1 as some of the new extensions didn't

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Hi, What does Google cache has? And the Wayback Machine (http://www.archive.org/)? Coral Cache? Currently going through them. For some reason I've found a page with all CSS and JS intact. Odd, but fortunate. I'm going to have a look at my browser cache. Maybe I find something. Thanks. --

[PHP] Re: [PHP-DEV] PHP 5.3.0alpha1

2008-08-05 Thread Pierre Joye
On Tue, Aug 5, 2008 at 2:14 PM, Hannes Magnusson [EMAIL PROTECTED] wrote: On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith [EMAIL PROTECTED] wrote: Hello! Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find here: http://downloads.php.net/johannes/ So.. Apparently we

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Aschwin Wesselius
Richard Heyes wrote: I'm going to have a look at my browser cache. Maybe I find something. Thanks. I'm sorry Richard, seems that my browser doesn't hold the history long enough. Forgive me to ask, but how come that you don't have much copies of your work? Do you work straight on

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Forgive me to ask, but how come that you don't have much copies of your work? Do you work straight on your server? I do, via WinSCP (now). This normally would be fine, except I haven't made any backups. Doh. I've got my editor (UltraEdit Studio) setup, that it makes a backup of the file I'm

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: I wouldn't like to loose my stuff, but I can't afford much for the best solutions either. It's not that my job depends on it, but personal data is a big loss too. Tell me about it. One of the sickest feelings in

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Tell me about it. One of the sickest feelings in the world comes when you hear your hard drive start going click click choke click I think the only reason I'm not sitting in a corner comatose is because I can't... :-) -- Richard Heyes http://www.phpguru.org -- PHP

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Per Jessen
Daniel Brown wrote: On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: I wouldn't like to loose my stuff, but I can't afford much for the best solutions either. It's not that my job depends on it, but personal data is a big loss too. Tell me about it. One of

[PHP] Re: RPM

2008-08-05 Thread Colin Guthrie
VamVan wrote: Hello All, Does any body create installable RPM's for reinstalling their PHP based websites? Is it possible If yes could you please share your experience. Oh yes you could tar it but that's a primitive method. My quest is to make all my websites installable on any given

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Aschwin Wesselius
Daniel Brown wrote: On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: I wouldn't like to loose my stuff, but I can't afford much for the best solutions either. It's not that my job depends on it, but personal data is a big loss too. Tell me about it. One

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 9:20 AM, Per Jessen [EMAIL PROTECTED] wrote: I use two in every system. They're so cheap that it's not worth saving the expense. Yeah, now, thank God but remember, it wasn't always that way ;-P

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 9:30 AM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Well.. I don't know about you and your empathy. But most of my sickest feelings are caused by human behavior, not hardware.. Some acts come from darker corners of a sick human mind, than the situations where

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Well.. I don't know about you and your empathy. But most of my sickest feelings are caused by human behavior, Hah, you probably wouldn't want to know about my feelings for 1and1 now then... -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To

[PHP] Fatal error: Cannot redeclare

2008-08-05 Thread Kai Kauer
Hi @all, I was just installing the Moodle-Version 1.9.2 at our university. It was installed without any problems. But during testing and preparing for use I got this error message: Fatal error: Cannot redeclare make_log_url() (previously declared in

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
When the DiamondMax drives first came out, they were a couple hundred dollars each. I wanted to be the first guy on the block with a terabyte RAID, but I bought a car instead. I think I probably would rather have the HDDs. :/ Does that make me a geek? -- Richard Heyes

Re: [PHP] Fatal error: Cannot redeclare

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 9:37 AM, Kai Kauer [EMAIL PROTECTED] wrote: Hi @all, I was just installing the Moodle-Version 1.9.2 at our university. It was installed without any problems. But during testing and preparing for use I got this error message: Fatal error: Cannot redeclare

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 9:36 AM, Richard Heyes [EMAIL PROTECTED] wrote: When the DiamondMax drives first came out, they were a couple hundred dollars each. I wanted to be the first guy on the block with a terabyte RAID, but I bought a car instead. I think I probably would rather have the

Re: [PHP] Variable number of parameters

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 1:40 AM, Philip Thompson [EMAIL PROTECTED] wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to another function? You can predefine function parameters: ?php function example($line1,$line2=There is no line 2.) { echo

Re: [PHP] PDO prepared statements and LIKE escaping

2008-08-05 Thread Andrew Ballard
On Mon, Aug 4, 2008 at 1:36 AM, Larry Garfield [EMAIL PROTECTED] wrote: Hi folks. I am trying to figure out the best way to handle an interesting issue in PDO prepared statements. Consider: $search = 'mystring'; $stmt = $dbh-prepare(SELECT * FROM mytable WHERE myfield LIKE :myfield);

Re: [PHP] Variable number of parameters

2008-08-05 Thread Philip Thompson
On Aug 5, 2008, at 8:58 AM, Daniel Brown wrote: On Tue, Aug 5, 2008 at 1:40 AM, Philip Thompson [EMAIL PROTECTED] wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to another function? You can predefine function parameters: ?php function

Re: [PHP] Variable number of parameters

2008-08-05 Thread Igor Kolodziejczyk
Philip Thompson wrote: On Aug 5, 2008, at 8:58 AM, Daniel Brown wrote: On Tue, Aug 5, 2008 at 1:40 AM, Philip Thompson [EMAIL PROTECTED] wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to another function? You can predefine function

Re: [PHP] Variable number of parameters

2008-08-05 Thread Per Jessen
Philip Thompson wrote: but more likely, you're looking for func_get_args(). http://php.net/func_get_args Fortunately, I am quite familiar with your example. However, I am more looking for something in which I could send any number of parameters to my own function, grab each

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Robert Cummings
On Tue, 2008-08-05 at 14:07 +0200, Aschwin Wesselius wrote: Richard Heyes wrote: Hi, Seems my 1and1 server has finally gone kaput taking my website with it, and in the tradition of all good IT professionals, I have no backups. :( So this is an appeal to you to ask if you have downloaded

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Robert Cummings
On Tue, 2008-08-05 at 14:53 +0200, Aschwin Wesselius wrote: Richard Heyes wrote: I'm going to have a look at my browser cache. Maybe I find something. Thanks. I'm sorry Richard, seems that my browser doesn't hold the history long enough. Forgive me to ask, but how come that

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Robert Cummings
On Tue, 2008-08-05 at 09:32 -0400, Daniel Brown wrote: On Tue, Aug 5, 2008 at 9:20 AM, Per Jessen [EMAIL PROTECTED] wrote: I use two in every system. They're so cheap that it's not worth saving the expense. Yeah, now, thank God but remember, it wasn't always that way ;-P

RE: [PHP] An appeal to your better nature

2008-08-05 Thread Chris Haensel
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2008 5:40 PM To: Aschwin Wesselius Cc: Richard Heyes; php-general@lists.php.net Subject: Re: [PHP] An appeal to your better nature On Tue, 2008-08-05 at 14:07 +0200, Aschwin Wesselius wrote:

[PHP] Date formatting issue

2008-08-05 Thread Don Don
Hi all, I've got dates in the following formats e.g. August 05, 2008, 10:14 am (e.g. today's date) August 04, 2008, 7:08 am (e.g. yesterda's date) August 03, 2008, 9:08 am (e.g. in the past) I am trying to format these dates do I can display them like this Today at 10:14 am (today) Yesterday

Re: [PHP] Date formatting issue

2008-08-05 Thread Dan Joseph
On Tue, Aug 5, 2008 at 11:48 AM, Don Don [EMAIL PROTECTED] wrote: Hi all, I've got dates in the following formats e.g. August 05, 2008, 10:14 am (e.g. today's date) August 04, 2008, 7:08 am (e.g. yesterda's date) August 03, 2008, 9:08 am (e.g. in the past) I am trying to format these

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Cheers mate! Don't worry, things could be worse! There's time yet... :-/ -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Micah Gersten
Seems like 1and1 screwed up their Apache installs. My site shows a blank page when I go to the domain, but when I go to index.php, it works. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Heyes wrote: Hi, Seems my 1and1 server has finally gone

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Richard Heyes
Seems like 1and1 screwed up their Apache installs. My site shows a blank page when I go to the domain, but when I go to index.php, it works. Doubt it's that. When I first got the server I reinstalled practically everything. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Micah Gersten
I'm on a shared host, I should have mentioned that. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Heyes wrote: Seems like 1and1 screwed up their Apache installs. My site shows a blank page when I go to the domain, but when I go to index.php, it

[PHP] Echo in __GET()

2008-08-05 Thread Tyler C.
Is the a way to have an array, or use __get() to provide different data if you are echoing a variable, rather than if you are using it in a 'if' statement? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Echo in __GET()

2008-08-05 Thread Micah Gersten
You can write 2 functions to handle this. Value and OutputValue Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Tyler C. wrote: Is the a way to have an array, or use __get() to provide different data if you are echoing a variable, rather than if you are

Re: [PHP] Date formatting issue

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 11:48 AM, Don Don [EMAIL PROTECTED] wrote: Hi all, I've got dates in the following formats e.g. August 05, 2008, 10:14 am (e.g. today's date) August 04, 2008, 7:08 am (e.g. yesterda's date) August 03, 2008, 9:08 am (e.g. in the past) I am trying to format these

[PHP] Re: PHP Brain Teasers

2008-08-05 Thread Daniel Brown
On Tue, Jun 26, 2007 at 1:44 PM, Daniel Brown [EMAIL PROTECTED] wrote: Try to use some really common phrases that all of us around the world should recognize, but feel free to get really elaborate with the code. ?php function youBetter($func) { return Schedule cleared.; } if(!date(s))

Re: [PHP] PHP querying mysql db for data limited to the last month

2008-08-05 Thread Vinny Gullotta
Sorry, I took that stuff out because it was making the page not load and so I figured it was wrong. I guess I should have posted the whole thing, but since it didn't work I left it out. Micah, thank you very much for the idea, it is working great!!! Micah Gersten [EMAIL PROTECTED] wrote in

Re: [PHP] Variable number of parameters

2008-08-05 Thread Philip Thompson
On Aug 5, 2008, at 10:34 AM, Igor Kolodziejczyk wrote: Philip Thompson wrote: On Aug 5, 2008, at 8:58 AM, Daniel Brown wrote: On Tue, Aug 5, 2008 at 1:40 AM, Philip Thompson [EMAIL PROTECTED] wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to

Re: [PHP] Variable number of parameters

2008-08-05 Thread Per Jessen
Philip Thompson wrote: This isn't exactly what I'm wanting to achieve. I don't want to send each parameter individually, I want to send them all at the same time. Sounds like you want the standard varargs behaviour from C ? Where you can gather up a list of arguments as a va_list and pass that

Re: [PHP] Fatal error: Cannot redeclare

2008-08-05 Thread Kai Kauer
Am Dienstag, 5. August 2008 15:46:42 schrieb Daniel Brown: On Tue, Aug 5, 2008 at 9:37 AM, Kai Kauer [EMAIL PROTECTED] wrote: Hi @all, I was just installing the Moodle-Version 1.9.2 at our university. It was installed without any problems. But during testing and preparing for use I got

Re: [PHP] Fatal error: Cannot redeclare

2008-08-05 Thread Micah Gersten
What is around this line? /global/WEB_DAT/documents/fme/institute/get/lehre/course/lib.php:25 Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Kai Kauer wrote: Am Dienstag, 5. August 2008 15:46:42 schrieb Daniel Brown: On Tue, Aug 5, 2008 at 9:37 AM,

[PHP] A specific(ish) request

2008-08-05 Thread Richard Heyes
Hi, After spending most of day trying to retrieve code, I've got the majority. But specifically, if you have downloaded any of these, I'd be grateful if you could send whatever you have to [EMAIL PROTECTED] Thanks. Datagrid RPC for PHP5 htmlMimeMail5 Any of my HTML5 charts PEAR::DB replacement

[PHP] Job Opportunity - User Experience Designer / Boulder, CO

2008-08-05 Thread Nick Gasparro
Hello Group, We are looking for a User Experience Designer to join our dynamic and growing Internet-based company. The User Experience Designer will iteratively specify, prototype, design and implement UI Skins, Interaction Flows, and Information Architecture for new product features. Here are

[PHP] Newbie problem: Php script not running in browser.

2008-08-05 Thread V S Rawat
I have put the first php script to hello.php file: html head titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b http://localhost/ is E:\wamp\www I put the hello.php file to

Re: [PHP] Newbie problem: Php script not running in browser.

2008-08-05 Thread Andrew Ballard
On Tue, Aug 5, 2008 at 3:05 PM, V S Rawat [EMAIL PROTECTED] wrote: I have put the first php script to hello.php file: html head titlePHP Test/title /head body ?php echo 'pHello World/p'; ? /body /html I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b

Re: [PHP] Variable number of parameters

2008-08-05 Thread Jim Lucas
Philip Thompson wrote: Is it possible to grab a variable number of parameters and send the appropriate amount to another function? ?php // Some class $this-db-prepare(SELECT * FROM `table` WHERE (`id`=?)); $this-db-bind('ii', $id1); $this-db-prepare(SELECT * FROM `table` WHERE (`id`=? AND

[PHP] Re: An appeal to your better nature

2008-08-05 Thread Ross McKay
On Tue, 5 Aug 2008 12:34:53 +0100, Richard Heyes wrote: Seems my 1and1 server has finally gone kaput taking my website with it, and in the tradition of all good IT professionals, I have no backups. :( So this is an appeal to you to ask if you have downloaded anything from phpguru.org at all,

Re: [PHP] Variable number of parameters

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 6:07 PM, Jim Lucas [EMAIL PROTECTED] wrote: # WARNING # The following example uses eval() to do the execution. # The following answer is a YMMV answer. # Be careful with it. I could be a sleeping snake waiting to bite... # Errata for those of you

Re: [PHP] Why PHP4?

2008-08-05 Thread Jason
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 n3or wrote: Compatibility to older Software of the hosters and sloth of the developers Richard Heyes schrieb: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. Don't lump the

Re: [PHP] Re: An appeal to your better nature

2008-08-05 Thread Daniel Brown
On Tue, Aug 5, 2008 at 7:28 PM, Ross McKay [EMAIL PROTECTED] wrote: Problems I see with the above: * good IT professionals use version control AND take backups * good IT professionals work on dev servers and migrate to test, prod * good IT professionals don't tend to claim guru status

Re: [PHP] Variable number of parameters

2008-08-05 Thread Larry Garfield
On Tuesday 05 August 2008 12:40:27 am Philip Thompson wrote: Ok, is it possible to send any number of variables to db-bind() in order to send those to statement-bind_param()? Or, if someone else has a better db abstraction method, feel free to educate... Thanks, ~Phil Unless I'm