Re: [PHP] How to "download" a multi-part file at the "server" side?

2013-11-02 Thread Aziz Saleh
On Sat, Nov 2, 2013 at 1:03 PM, Ajay Garg wrote: > Hi all. > > 1. > I could have the proper "$_FILES["userfile"]["name"]" been echoed back, by > replacing >ContentBody cbFile = new > FileBody(file, "image/png"); > > with >

Re: [PHP] How to "download" a multi-part file at the "server" side?

2013-11-02 Thread Ajay Garg
Hi Aziz. Thanks for the reply. Unfortunately, making the change suggested by you does not make any difference :( Sorry, Thanks and Regards On Sat, Nov 2, 2013 at 10:51 PM, Aziz Saleh wrote: > > > > On Sat, Nov 2, 2013 at 1:03 PM, Ajay Garg wrote: > >> Hi all. >> >> 1. >> I could have the pr

Re: [PHP] preg_replace

2013-11-01 Thread Adam Szewczyk
Hi, On Fri, Nov 01, 2013 at 11:06:29AM -0400, leam hall wrote: > Despite my best efforts to ignore preg_replace... Why? :) > PHP Warning: preg_replace(): Delimiter must not be alphanumeric or > backslash > > Thoughts? You are just using it wrong. http://us2.php.net/manual/en/regexp.reference.de

Re: [PHP] FYI: Apache/PHP exploit

2013-10-31 Thread Camilo Sperberg
On 31 okt. 2013, at 01:55, Joshua Kehn wrote: > Summary for those on phones? > > Best, > > -Josh > ___ > http://byjakt.com > Currently mobile > >> On Oct 30, 2013, at 8:37 PM, Tamara Temple wrote: >> >> This info cruised by my screen from G+ today, thought I’d at le

Re: [PHP] I am puzzled. Error on one site, no error on the other

2013-10-26 Thread Aziz Saleh
On Fri, Oct 25, 2013 at 8:27 PM, Stephen wrote: > Problem Situation > > I have two web sites on the same shared host. They share code for the > control panel. When executed for one site I get a warning (reproducible > always), but on the other there is no warning. > > One my home server, set up i

Re: [PHP] framework or not

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 15:40, Robert Cummings wrote: > On 13-10-25 10:17 AM, Stuart Dallas wrote: >> On 25 Oct 2013, at 15:01, Robert Cummings wrote: >> >>> On 13-10-24 09:41 PM, Larry Garfield wrote: On 10/23/2013 08:51 AM, Jay Blanchard wrote: > [snip] a bitter rant[/snip] >

Re: [PHP] Persistent connections

2013-10-26 Thread Stuart Dallas
On 25 Oct 2013, at 12:51, Nibin V M wrote: > Thank you for the quick response Stuart...one more doubt..at > http://php.net/manual/en/features.persistent-connections.php they states > > = > This means that when the same client makes a second request to the server, it > may be served by

Re: [PHP] framework or not

2013-10-26 Thread Robert Cummings
On 13-10-24 09:41 PM, Larry Garfield wrote: On 10/23/2013 08:51 AM, Jay Blanchard wrote: [snip] a bitter rant[/snip] Dang Larry - bad night? That wasn't a bitter rant. You haven't seen me bitter. :-) That was "tough love" to the OP. I don't see a reason to pussyfoot around the orig

Re: [PHP] framework or not

2013-10-25 Thread Stuart Dallas
On 25 Oct 2013, at 15:01, Robert Cummings wrote: > On 13-10-24 09:41 PM, Larry Garfield wrote: >> On 10/23/2013 08:51 AM, Jay Blanchard wrote: >>> [snip] a bitter rant[/snip] >>> >>> Dang Larry - bad night? >> >> That wasn't a bitter rant. You haven't seen me bitter. :-) That was >> "

Re: [PHP] Persistent connections

2013-10-25 Thread Stuart Dallas
On 25 Oct 2013, at 11:10, Nibin V M wrote: > I have been reading docs and many are telling that persistent connections > are kept open indefinitely. But I found in PHP docs that it will not close > after script execution like requesting a page; so should it close after > the request is over? >

Re: [PHP] framework or not

2013-10-24 Thread Marc Guay
> I'm looking forward to the day that I'll know everything and can stop all > this learning nonsense. Sounds like the attitude most people take when they sit down to a keyboard. (Ref: http://xkcd.com/386/) Off-topic is the new on-topic Marc -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] framework or not

2013-10-23 Thread Larry Martell
On Wed, Oct 23, 2013 at 11:08 AM, Tedd Sperling wrote: > On Oct 23, 2013, at 12:34 PM, Larry Martell > wrote: > > Was it Brian Kernighan who said the 3 rules of programming are: > > > > 1. Keep it simple. > > 2. Build it in stages. > > 3. Let someone else do the hard part. > > Sounds good to me.

Re: [PHP] framework or not

2013-10-23 Thread Larry Martell
On Wed, Oct 23, 2013 at 10:26 AM, Tedd Sperling wrote: > On Oct 23, 2013, at 12:04 AM, Robert Cummings > wrote: > > > On 13-10-22 05:38 PM, Larry Garfield wrote: > >> If you need more convincing, I will cite Fred Brooks: > >> > >> http://www.cs.nott.ac.uk/~cah/G51ISS/Documents/NoSilverBullet.html

Re: [PHP] framework or not

2013-10-22 Thread Robert Cummings
On 13-10-22 05:38 PM, Larry Garfield wrote: If you need more convincing, I will cite Fred Brooks: http://www.cs.nott.ac.uk/~cah/G51ISS/Documents/NoSilverBullet.html Excellent article, thanks for the pointer. So many assertions have stood the test of time thus far. Cheers, Rob. -- E-Mail Dis

Re: [PHP] If date is greater than

2013-10-20 Thread Tedd Sperling
On Oct 20, 2013, at 4:01 AM, Ashley Sheridan wrote: > Yes, I was going to ask, why are you storing your dates as strings? > MySQL has a perfectly good DATE type. It's also generally faster > comparing dates within a MySQL query than PHP code. > > Thanks, > Ash > http://www.ashleysheridan.co.uk

Re: [PHP] Algorithm Help

2013-10-20 Thread German Geek
You don't need to maintain the history of which kids stay where unless you want to for other reasons. You just need to find the children that have staid the least amount of time together, which this approach would do for you. So, when 4 children stay together you say 1 together with 2 1 together w

Re: [PHP] Algorithm Help

2013-10-20 Thread Ayush Ladia
Hi, Indeed making and maintaining the graph looks like the best approach here to tackle this problem , but what does not seem clear to me is this -- "Suppose a family can host 5 children , then you need to find the set of 5 such nodes out of the total no. of nodes(assume 10) such that the total we

Re: [PHP] If date is greater than

2013-10-20 Thread Ashley Sheridan
On Sun, 2013-10-20 at 00:00 -0400, Bastien wrote: > > Thanks, > > Bastien > > > On Oct 19, 2013, at 10:44 PM, John Taylor-Johnston > > wrote: > > > > I have date strings in my mysql db. -mm-dd. > > I want to parse to see if the date is greater than november 2011 and less > > than decemb

Re: [PHP] Trying to understand what is happening in this code

2013-10-11 Thread Stuart Dallas
On 11 Oct 2013, at 16:20, Nathan Grey wrote: > Stuart, Jose - Thanks for your quick response. Are you saying that the > processor echos all the html tags it sees. Is it doing something like this to > the script: > > echo > echo The first twenty Fibonacci numbers: > echo > $first

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
On 10/9/2013 3:14 AM, Simon Schick wrote: On Tue, Oct 8, 2013 at 9:50 PM, Jim Giner wrote: On 10/8/2013 2:42 PM, Simon Schick wrote: On Tue, Oct 8, 2013 at 5:25 PM, Jim Giner * *wrote: re: changing ini settings. If my running script modifies an ini setting I currently believe that that c

Re: [PHP] php.ini

2013-10-09 Thread Simon Schick
Hi, Jim I suggest to read this page of the tutorial. It seems, that it solves the questions, you posted here: http://www.php.net/manual/en/configuration.file.per-user.php Please be aware, that the ini-file is not re-read on every request, but after a defined time. Neither are all settings changea

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
re: changing ini settings. If my running script modifies an ini setting I currently believe that that changed setting will apply to that specific process and any others that run after that from that same folder (since i have an ini file in each folder currently). Correct? And if I do make a

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
On 10/8/2013 11:13 AM, Simon Schick wrote: Hi, Jim I suggest to read this page of the tutorial. It seems, that it solves the questions, you posted here: http://www.php.net/manual/en/configuration.file.per-user.php Please be aware, that the ini-file is not re-read on every request, but after a d

Re: [PHP] date time problem

2013-10-07 Thread Jim Giner
On 10/6/2013 11:21 PM, Romain CIACCAFAVA wrote: An easier way to do that would be using the diff() method of a DateTime object on another. Regards Romain Ciaccafava Romain - you were so right. A little less calculating to be done and I got the result I wished. For anyone interested here's t

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Stuart Dallas
On 7 Oct 2013, at 14:34, Michael Alaimo wrote: > On Mon, Oct 7, 2013 at 9:29 AM, Stuart Dallas wrote: >> On 7 Oct 2013, at 14:24, Michael Alaimo wrote: >> >> > We have a server that gets a large number of requests each month. >> > >> > After a period of time I began to see this error in our er

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Michael Alaimo
public static function getInfo($params = array()) { $results = array(); $url = 'http://google.com'; $props = array ( 'key'=> Yii::app()->params['param1'], 's'=> Yii::app()->params['param2'] );

Re: [PHP] PHP Fatal error: Call to undefined function ()

2013-10-07 Thread Stuart Dallas
On 7 Oct 2013, at 14:24, Michael Alaimo wrote: > We have a server that gets a large number of requests each month. > > After a period of time I began to see this error in our error logs this > weekend. > > PHP Fatal error: Call to undefined function () > > It does not reference a function, so

Re: [PHP] date time problem

2013-10-06 Thread Romain CIACCAFAVA
An easier way to do that would be using the diff() method of a DateTime object on another. Regards Romain Ciaccafava > Le 7 oct. 2013 à 03:10, Jim Giner a écrit : > >> On 10/6/2013 7:55 PM, Ashley Sheridan wrote: >>> On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: >>> >>> Jim, >>> >>> T

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 7:55 PM, Ashley Sheridan wrote: On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes /

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 7:40 PM, Aziz Saleh wrote: The resulting subtraction is not a valid timestamp, but rather the difference between the two timestamps in seconds . The resulting diff can be 1 if the timestamps are 1 seconds apart. The link

Re: [PHP] date time problem

2013-10-06 Thread Ashley Sheridan
On Sun, 2013-10-06 at 19:14 -0400, Aziz Saleh wrote: > Jim, > > The date method takes in a timestamp (not seconds away). > > You have the seconds, you will need to manually convert those seconds to > what you desire (minutes = seconds / 60), (hours = minutes / 60), etc.. > > Aziz > > > On Sun

Re: [PHP] date time problem

2013-10-06 Thread Aziz Saleh
The resulting subtraction is not a valid timestamp, but rather the difference between the two timestamps in seconds . The resulting diff can be 1 if the timestamps are 1 seconds apart. The linkJonathan sent out

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
Look at my code. The inputs are all timestamps so date should work, no? My question why am i getting an hour value in this case? jg On Oct 6, 2013, at 7:14 PM, Aziz Saleh wrote: > Jim, > > The date method takes in a timestamp (not seconds away). > > You have the seconds, you will need to man

Re: [PHP] date time problem

2013-10-06 Thread Aziz Saleh
Jim, The date method takes in a timestamp (not seconds away). You have the seconds, you will need to manually convert those seconds to what you desire (minutes = seconds / 60), (hours = minutes / 60), etc.. Aziz On Sun, Oct 6, 2013 at 7:07 PM, Farzan Dalaee wrote: > Its so freaky > > Best Reg

Re: [PHP] date time problem

2013-10-06 Thread Jonathan Sundquist
This should help you out http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php On Oct 6, 2013 6:07 PM, "Farzan Dalaee" wrote: > Its so freaky > > Best Regards > Farzan Dalaee > > > On Oct 7, 2013, at 2:29, Jim Giner wrote: > > > >> On 10/6/2013 6:49 PM, Farzan Da

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
Its so freaky Best Regards Farzan Dalaee > On Oct 7, 2013, at 2:29, Jim Giner wrote: > >> On 10/6/2013 6:49 PM, Farzan Dalaee wrote: >> Try this please >> >> gmdate("H:i:s", $diff%86400) >> >> Best Regards >> Farzan Dalaee >> On Oct 7, 2013, at 2:12, Jim Giner wrote: On 10

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 6:49 PM, Farzan Dalaee wrote: Try this please gmdate("H:i:s", $diff%86400) Best Regards Farzan Dalaee On Oct 7, 2013, at 2:12, Jim Giner wrote: On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire $time_left = gmdat

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
Try this please gmdate("H:i:s", $diff%86400) Best Regards Farzan Dalaee > On Oct 7, 2013, at 2:12, Jim Giner wrote: > >> On 10/6/2013 6:36 PM, Farzan Dalaee wrote: >> You should use gmdate() if you want to how many hours left to expire >> $time_left = gmdate("H:i:s",$diff); >> >> Best Rega

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire $time_left = gmdate("H:i:s",$diff); Best Regards Farzan Dalaee On Oct 7, 2013, at 1:49, Jim Giner wrote: I always hate dealing with date/time stuff in php - never get it even clos

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
You should use gmdate() if you want to how many hours left to expire $time_left = gmdate("H:i:s",$diff); Best Regards Farzan Dalaee > On Oct 7, 2013, at 1:49, Jim Giner wrote: > > I always hate dealing with date/time stuff in php - never get it even close > until an hour or two goes by >

Re: [PHP] Algorithm Help

2013-10-03 Thread Nickolas Whiting
Round Robin algorithm should solve this and is a fairly quick alogrithm ... http://en.wikipedia.org/wiki/Round-robin An example can be found http://forrst.com/posts/PHP_Round_Robin_Algorithm-2zm On Tue, Oct 1, 2013 at 2:51 PM, Floyd Resler wrote: > Here's my task: A group of kids is going to b

Re: [PHP] Algorithm Help

2013-10-03 Thread Floyd Resler
On Oct 2, 2013, at 6:23 PM, Tamara Temple wrote: > > On Oct 2, 2013, at 9:05 AM, Marc Guay wrote: > >> If you have the technology handy, it could also just be easier to wipe >> the children's memories after each stay. >> >> Marc >> >> -- >> PHP General Mailing List (http://www.php.net/) >

Re: [PHP] Algorithm Help

2013-10-02 Thread Tamara Temple
On Oct 2, 2013, at 9:05 AM, Marc Guay wrote: > If you have the technology handy, it could also just be easier to wipe > the children's memories after each stay. > > Marc > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Well play

Re: [PHP] Algorithm Help

2013-10-02 Thread Marc Guay
If you have the technology handy, it could also just be easier to wipe the children's memories after each stay. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Algorithm Help

2013-10-02 Thread Floyd Resler
On Oct 2, 2013, at 9:51 AM, Tamara Temple wrote: > > On Oct 1, 2013, at 1:51 PM, Floyd Resler wrote: > >> Here's my task: A group of kids is going to be staying with different host >> families throughout the next 8 months. The number of kids staying with a >> host family can range from 2

Re: [PHP] Algorithm Help

2013-10-02 Thread Serge Fonville
It also depends on the amount of kids, families and stays. If the numbers are low, by hand may be a lot easier and faster Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl 2013/10/2 Tamara Temple > > On Oct 1, 2013, at 1:51 PM, Floyd Resler wrote: > > > Here's

Re: [PHP] Algorithm Help

2013-10-02 Thread Stuart Dallas
On 1 Oct 2013, at 19:51, Floyd Resler wrote: > Here's my task: A group of kids is going to be staying with different host > families throughout the next 8 months. The number of kids staying with a > host family can range from 2 to 10. When deciding which kids should stay > together at a host

Re: [PHP] Algorithm Help

2013-10-02 Thread Tamara Temple
On Oct 1, 2013, at 1:51 PM, Floyd Resler wrote: > Here's my task: A group of kids is going to be staying with different host > families throughout the next 8 months. The number of kids staying with a > host family can range from 2 to 10. When deciding which kids should stay > together at a

Re: [PHP] Algorithm Help

2013-10-01 Thread Serge Fonville
Assuming you don't have to be exact, somthing similar to this might work. Assign each kid to a host family randomly for each kid, check how frequently it has been combined with the kids in its assigned family. if it is too close, swap with a different family when all kids in that family are proces

Re: [PHP] Algorithm Help

2013-10-01 Thread Floyd Resler
m 1375 GLENDALE MILFORD RD., CINCINNATI, OH 45215 On Oct 1, 2013, at 3:14 PM, Ashley Sheridan wrote: > On Tue, 2013-10-01 at 15:09 -0400, Aziz Saleh wrote: > >> DB or flatfile? >> >> I would create a matrix of all kids crossed with every kid. Everytime a kid >> is put in a home with another k

Re: [PHP] Algorithm Help

2013-10-01 Thread Ashley Sheridan
On Tue, 2013-10-01 at 15:09 -0400, Aziz Saleh wrote: > DB or flatfile? > > I would create a matrix of all kids crossed with every kid. Everytime a kid > is put in a home with another kid, ++ that index. When dispatching kids, > sort by index ASC. > > Aziz > > > On Tue, Oct 1, 2013 at 3:01 PM,

Re: [PHP] Algorithm Help

2013-10-01 Thread Aziz Saleh
DB or flatfile? I would create a matrix of all kids crossed with every kid. Everytime a kid is put in a home with another kid, ++ that index. When dispatching kids, sort by index ASC. Aziz On Tue, Oct 1, 2013 at 3:01 PM, John Meyer wrote: > On 10/1/2013 12:51 PM, Floyd Resler wrote: > >> Here'

Re: [PHP] Algorithm Help

2013-10-01 Thread John Meyer
On 10/1/2013 12:51 PM, Floyd Resler wrote: Here's my task: A group of kids is going to be staying with different host families throughout the next 8 months. The number of kids staying with a host family can range from 2 to 10. When deciding which kids should stay together at a host family, t

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-10-01 Thread Aziz Saleh
Hey Tim, It seems that deleteObject takes in 2 params, and you are sending it 1 param. I would recommend you look at the documentation and make sure you are sending the right params. Aziz On Sun, Sep 29, 2013 at 10:29 PM, Tim Dunphy wrote: > Hi Aziz, > > Thank you for getting back to me! > >

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
Hi Aziz, Thank you for getting back to me! I appreciate you spotting that error. So I corrected that deleteObject(array( 'Bucket' => $bucket_name ));* // The response comes back as a Simple XML Object // In this case we just want to know if everything was okay. // If not, report the me

Re: [PHP] Re: Sending PHP mail with Authentication

2013-09-29 Thread Paul M Foster
On Fri, Sep 27, 2013 at 12:06:30AM +0200, Maciek Sokolewicz wrote: [snip] > I'm sure I'm going to annoy people with this, but I would advise to > never use PEAR. It's the biggest load of extremely badly coded PHP > you'll ever find. Creating an SMTP client (with the purpose of just > sending mai

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Aziz Saleh
No Problem, the issue is that you referring to the invalid post element $bucket_name as opposed to the correct on bucket_name. *$bucket_name = $_POST['$bucket_name'];* Should be *$bucket_name = $_POST['bucket_name'];* Aziz On Sun, Sep 29, 2013 at 3:28 PM, Tim Dunphy wrote: > Hey guys, > >

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
Hey guys, Sorry about that i should have posted the full code to give you some idea of context. Anyway, here it is: deleteObject(array(* *'Bucket' => $bucket_name ));* // The response comes back as a Simple XML Object // In this case we just want to know if everything was okay. // If not,

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Aziz Saleh
Hi Tim, Is the call working? Does it actually get deleted? This could just be an issue (which I see alot) where developers do not check for variables or preset them before usage, causing those notices to come up (pretty harmless most of the times). Aziz On Sun, Sep 29, 2013 at 12:30 PM, Tim Du

Re: [PHP] Switch Statement

2013-09-29 Thread mrfroasty
Hello, I suggest you put default in that switch statement and var_dump the $_POST.That should be enough for a programmer to pin point what goes wrong. P:S **You might want to consider versioning your codes to go back into its history to see what has changed. Muhsin On 09/29/2013 04:33 AM, Ethan

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Ashley Sheridan
On Sun, 2013-09-29 at 12:30 -0400, Tim Dunphy wrote: > Hi All, > > I am attempting to delete an empty S3 bucket using the AWS PHP SDK. > > Here's how they describe the process in the docs: > > $result = $client->deleteBucket(array( > // Bucket is required > 'Bucket' => 'string', > ));

Re: [PHP] Switch Statement

2013-09-29 Thread Aziz Saleh
What is the output? On Sun, Sep 29, 2013 at 1:34 AM, Ethan Rosenberg < erosenb...@hygeiabiomedical.com> wrote: > On 09/28/2013 10:53 PM, Aziz Saleh wrote: > >> Ethan, can you do a var_dump instead of print_r. It might be that >> next_step >> has spaces in it causing the switch to not match. >> >

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:38 AM, Jim Giner wrote: session_start(); session_name("STORE"); set_time_limit(2400); ini_set('display_errors', 'on'); ini_set('display_startup_errors', 'on'); error_reporting(-2); ini_set('error_reporting', 'E_ALL | E_STRICT'); ini_set('html_

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
On 9/29/2013 1:29 AM, Ethan Rosenberg wrote: On 09/28/2013 11:59 PM, Jim Giner wrote: Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do you know how any of this is supposed to be written? You can not put Constants in quotes - they become just plain strings then, not Cons

Re: [PHP] Switch Statement

2013-09-28 Thread Ethan Rosenberg
On 09/28/2013 10:53 PM, Aziz Saleh wrote: Ethan, can you do a var_dump instead of print_r. It might be that next_step has spaces in it causing the switch to not match. Aziz Aziz - Used var_dump no further information Ethan -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Ethan Rosenberg
On 09/28/2013 11:59 PM, Jim Giner wrote: Ethan,Ethan,Ethan - what is all this "stuff" you have at the top??? Do you know how any of this is supposed to be written? You can not put Constants in quotes - they become just plain strings then, not Constants with the predefined values you (and the

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
Thanks for the message, Do you have any information how to create JS file and how to access from jQuery auto complete? Thanks again for helping, Regards, Iccsi, "Bastien" wrote in message news:57469e24-56e6-40c9-8176-64cd8444f...@gmail.com... Thanks, Bastien On Sep 28, 2013, at 8:2

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread Bastien
Thanks, Bastien > On Sep 28, 2013, at 8:24 PM, "iccsi" wrote: > > Thanks for the information and help, > Yes, my data is pretty much static, > Can you please give me some link for the solution? > It is the solution I am looking for my current situation, > > Thanks a million for helping, > >

Re: [PHP] Switch Statement

2013-09-28 Thread Aziz Saleh
Ethan, can you do a var_dump instead of print_r. It might be that next_step has spaces in it causing the switch to not match. Aziz On Sat, Sep 28, 2013 at 10:33 PM, Ethan Rosenberg < erosenb...@hygeiabiomedical.com> wrote: > Dear List - > > I have a working program. I made one change in a swit

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
Thanks for the information and help, Yes, my data is pretty much static, Can you please give me some link for the solution? It is the solution I am looking for my current situation, Thanks a million for helping, Regards, Iccsi, "Bastien" wrote in message news:deb5dfe9-ec7f-4bc5-9e2e-acfb8503

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread Bastien
> On Sep 28, 2013, at 6:00 PM, "iccsi" wrote: > > Thanks for the message and help, > because I use jQuery autocomplete which has performance issue for thousands > records due to network load data. > I want to load the data to local table to resolve performance issue, if it > possible I can lo

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
Thanks for the message and help, because I use jQuery autocomplete which has performance issue for thousands records due to network load data. I want to load the data to local table to resolve performance issue, if it possible I can load to an array in the memory. Thanks again for helping, Re

Re: [PHP] create a local temp table in local machine

2013-09-28 Thread Bastien
Thanks, Bastien > On Sep 28, 2013, at 3:24 PM, "iccsi" wrote: > > I need create a local table on the local machine. > I would like to know is it possible to down on server side or client side or > jQuery to do the work. > Your information and help is great appreciated, > > regards, > > >

Re: [PHP] How to capture uploaded file data

2013-09-28 Thread Bastien
Thanks, Bastien > On Sep 27, 2013, at 12:56 AM, Mariusz Drozdowski wrote: > > Hi all php experts, > > I would like to ask you all a question, I hope this is the right place > to ask it. > > I'm writing a PHP extension now in c/c++. User uploads a file (could be POST > or PUT method, but I c

Re: [PHP] PHP and curl

2013-09-26 Thread Shawn McKenzie
Unfortunately this isn't anything to do with PHP. I don't have any info on the app, what it's supposed to return or what the parameter passed should be. The PHP soap call is working, but the app isn't returning what you want or expect I guess. On Thu, Sep 26, 2013 at 8:36 AM, Alf Stockton wrot

Re: [PHP] Apache

2013-09-25 Thread Robert Stone
De: Ashley Sheridan Para: m...@nikha.org; Domain nikha.org Cc: php-general@lists.php.net Enviadas: Quarta-feira, 25 de Setembro de 2013 2:22 Assunto: Re: [PHP] Apache "Domain nikha.org" wrote: >Ashley Sheridan am Montag, 23. September

Re: [PHP] PHPDoc way to describe the magic getter/setters [SOLVED]

2013-09-25 Thread David Harkness
On Wed, Sep 25, 2013 at 4:31 PM, Daevid Vincent wrote: > Then I randomly stumbled upon this PHPDoc @ method tag and my whole world > is brighter today than it has been for the past, oh let's say DECADE! Yes, @method and @property are very handy. Out of curiosity, since you're providing magic g

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Camilo Sperberg
On Wed, Sep 25, 2013 at 11:48 PM, Camilo Sperberg wrote: > Another vote for PHPMailer, I have it working several years already > (authenticating against a Zimbra and Outlook SMTP server) without problems. > > Greetings. > > > On Wed, Sep 25, 2013 at 11:12 PM, Aziz Saleh wrote: >> >> Usually if I

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Camilo Sperberg
Another vote for PHPMailer, I have it working several years already (authenticating against a Zimbra and Outlook SMTP server) without problems. Greetings. On Wed, Sep 25, 2013 at 11:12 PM, Aziz Saleh wrote: > Usually if I am using a framework I would use the SMTP library associated > with it.

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Aziz Saleh
Usually if I am using a framework I would use the SMTP library associated with it. If it doesn't have one, I use phpmailer, fast and easy to setup: http://phpmailer.worxware.com/index.php?pg=examplebsmtp Aziz On Wed, Sep 25, 2013 at 4:11 PM, dealTek wrote: > Hi All, > > Semi newbie email ques

Re: [PHP] https question

2013-09-25 Thread Daniel Brown
On Wed, Sep 25, 2013 at 1:55 PM, Tedd Sperling wrote: > Hi gang: > > I have a client who had his entire site moved to another host -- no big > problem. > > However, the old site had a https directory, where I had secure scripts to do > credit-card transactions, but the new site doesn't have a ht

Re: [PHP] https question

2013-09-25 Thread Joshua Kehn
On Sep 25, 2013, at 2:24 PM, Tedd Sperling wrote: > > I understand that cc processing should be done via https. > > Normally, that means to me that I place my $ scripts in a https directory -- > the problem is that I don't have one with this host. > > So, I am asking how does one do that with

Re: [PHP] https question

2013-09-25 Thread Tedd Sperling
On Sep 25, 2013, at 1:58 PM, Joshua Kehn wrote: > On Sep 25, 2013, at 1:55 PM, Tedd Sperling wrote: > >> Hi gang: >> >> I have a client who had his entire site moved to another host -- no big >> problem. >> >> However, the old site had a https directory, where I had secure scripts to >> do

Re: [PHP] https question

2013-09-25 Thread Joshua Kehn
On Sep 25, 2013, at 1:55 PM, Tedd Sperling wrote: > Hi gang: > > I have a client who had his entire site moved to another host -- no big > problem. > > However, the old site had a https directory, where I had secure scripts to do > credit-card transactions, but the new site doesn't have a htt

Re: [PHP] php fopen https error

2013-09-25 Thread Shawn McKenzie
I thought I covered that. The bug was fixed 7 years ago. Upgrade PHP, I doubt there is a patch. I understand that not all coders or distributions will have the latest version of PHP, but come on, how many thousands of bugs have been fixed in 7 years? You're going to run into more. Alternativel

Re: [PHP] php fopen https error

2013-09-25 Thread Markus Falb
On 25.9.2013 17:03, Shawn McKenzie wrote: > I believe this was a bug, is only a warning that may be suppressed and may > have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that > 5.1.6 is over 7 years old? Please understand that some Distributions do the "only backport security stuf

Re: [PHP] php fopen https error

2013-09-25 Thread Markus Falb
On 25.9.2013 17:12, Shawn McKenzie wrote: > Just as I thought: > > 5.2.0 > Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers > running Google web server). (Ilia) Thanks, but ... I am not sure how what I am supposed to do with this information. #39039 says it is a bug an

Re: [PHP] PHP and curl

2013-09-25 Thread Shawn McKenzie
Keep on list. $result = $client->GetSequenceNo( "CIS" ); shouldn't be throwing that error. Maybe you are trying to do something with $result afterwards? Try var_dump($result); On Wed, Sep 25, 2013 at 10:12 AM, Alf Stockton wrote: > > On 25/09/13 16:52, Shawn McKenzie wrote: > > $client->GetS

Re: [PHP] php fopen https error

2013-09-25 Thread Shawn McKenzie
Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) On Wed, Sep 25, 2013 at 10:03 AM, Shawn McKenzie wrote: > I believe this was a bug, is only a warning that may be suppressed and may > have been fixed in 5.2.0

Re: [PHP] php fopen https error

2013-09-25 Thread Shawn McKenzie
I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? -Shawn On Wed, Sep 25, 2013 at 9:09 AM, Markus Falb wrote: > With RHEL/CentOS 5 php I get an SSL Error > RHEL/CentOS 5 ph

Re: [PHP] PHP and curl

2013-09-25 Thread Shawn McKenzie
SOAP functions can be called as methods of the SoapClient object. Maybe: $client->GetSequenceNo( $parameters ); -Shawn On Wed, Sep 25, 2013 at 9:17 AM, Alf Stockton wrote: > In an attempt to interface with a webservice on a Windows 7 server I have > started writing the following:- > [code] >

Re: [PHP] Apache

2013-09-24 Thread Ashley Sheridan
"Domain nikha.org" wrote: >Ashley Sheridan am Dienstag, 24. September 2013 - 18:22: > >> In an earlier email I detailed some methods for validating other >types, such >as DomDocument for HTML, XML, svg, etc, or fpdf for PDF. >> >Fine, gratulations! > >> And on behalf images: GD you are using h

Re: [PHP] Apache

2013-09-24 Thread Domain nikha . org
Ashley Sheridan am Dienstag, 24. September 2013 - 18:22: > In an earlier email I detailed some methods for validating other types, such as DomDocument for HTML, XML, svg, etc, or fpdf for PDF. > Fine, gratulations! > And on behalf images: GD you are using handles only > >jpeg, gif and png. Ther

Re: [PHP] Apache

2013-09-24 Thread Ashley Sheridan
"Domain nikha.org" wrote: >Ashley Sheridan am Montag, 23. September 2013 - 21:35: > >> No, no, no! That is not a good stand-in for fundamental security >> principles! >> >> This is a better method for ensuring an image is really an image: >> >> > if(isset($_FILES['file'])) >> { >> list($w

Re: [PHP] Apache

2013-09-24 Thread Domain nikha . org
Tamara Temple am Montag, 23. September 2013 - 22:38: > > On Sep 23, 2013, at 1:36 PM, Domain nikha.org wrote: > > > Better solutions? > > One I have used, and continue to use in Apache environments, is place uploads only in a place where they cannot be executed by turning off such options and h

Re: [PHP] Apache

2013-09-24 Thread Domain nikha . org
Ashley Sheridan am Montag, 23. September 2013 - 21:35: > No, no, no! That is not a good stand-in for fundamental security > principles! > > This is a better method for ensuring an image is really an image: > > if(isset($_FILES['file'])) > { > list($width, $height) = getimagesize($_FILES['

RE: [PHP] Apache

2013-09-24 Thread Arno Kuhl
On 23 Sep 2013, at 11:37, Domain nikha.org wrote: > Tamara Temple am Montag, 23. September 2013 - 06:49: >> >> GoDaddy's default plesk-generated configuration for FastCGI-served >> PHP > files only looked to see if the file contained ".php" somewhere on > it's path - i.e. it would happily exec

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Domain nikha . org
Aziz Saleh am Montag, 23. September 2013 - 22:06: > What Niklaus wishes for is a way to detect if an email message contains an > attachment by just reading the headers (correct me if I am wrong). > Yes, that's what I'm seeking :-) > This isn't really a PHP issue. In any language you can't really

Re: [PHP] No MIME-Type in "imap_fetch_overview()"

2013-09-23 Thread Domain nikha . org
Negin Nickparsa am Montag, 23. September 2013 - 20:59: > I have read your mail twice and still I could not get what you want > exactly. Sorry for my bad english! What I want is, that the users of my webmail client can see at a glance, if mails in their mailboxes have attachments or not. (Thats

Re: [PHP] Apache

2013-09-23 Thread Tamara Temple
On Sep 23, 2013, at 1:36 PM, Domain nikha.org wrote: > Better solutions? One I have used, and continue to use in Apache environments, is place uploads only in a place where they cannot be executed by turning off such options and handlers in that directory. This is *in addition* to untainting

  1   2   3   4   5   6   7   8   9   10   >