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

2013-11-02 Thread Aziz Saleh
$target_path); > if(file_exists($target_path)) > { > echo "yes"; > } > else > { > echo "no"; > } > > echo "\n" . $_FILES["userfile"]["name"]; # I always get the proper > file-name ech

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

2013-11-02 Thread Ajay Garg
= "/home/ajay/success.png"; >> >> move_uploaded_file($_FILES["userfile"]["tmp_name"], $target_path); >> if(file_exists($target_path)) >> { >> echo "yes"; >> } >> else >> { >> echo "no"; >> } >> >> echo "\n" . $_FILES

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

2013-11-02 Thread Ajay Garg
I just came across http://www.w3schools.com/php/php_file_upload.asp, and tested it.. It works fine, when the file is uploaded via a form. It does seem that the client-method might indeed play a role. Here is my Java code for uploading the file

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

Re: [PHP] FYI: Apache/PHP exploit

2013-10-31 Thread Camilo Sperberg
ed by my screen from G+ today, thought I’d at least pass it >> along: >> >> http://www.exploit-db.com/exploits/29290/ >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php &g

[PHP] Persistent connections

2013-10-26 Thread Nibin V M
Hello, 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? So when exactly a persistent connection should

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
ey by selling your time to someone >> else in which case they have some right to decide what constitutes a waste >> of the time for which they're paying. I found the experience of writing my >> own framework to be hugely beneficial to my future productivity, but I might >> have struggled to justify spending the extra time it took to my employer at >> the time. > > You stripped away the context of my response. By removing the evil grin you > made it look like I was serious. You should be a reporter ;) Who says I'm not! :) -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Persistent connections

2013-10-26 Thread Stuart Dallas
een apache child processes ? No, connections are not shared between PHP processes. Nothing is shared between PHP processes. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ > On Fri, Oct 25, 2013 at 3:54 PM, Stuart Dallas wrote: > On 25 Oct 2013, at 11:10, Nibin V M wrote: >

Re: [PHP] framework or not

2013-10-26 Thread Robert Cummings
t;:) Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mail

Re: [PHP] framework or not

2013-10-25 Thread Stuart Dallas
writing my own framework to be hugely beneficial to my future productivity, but I might have struggled to justify spending the extra time it took to my employer at the time. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 req

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

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
Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized. -- PHP General Mailing List (http://www.php.net

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:

Re: [PHP] Algorithm Help

2013-10-20 Thread German Geek
han needed (n*(n-1)/2+n cells more to be exact). >> >> >> >> You could store it in a hashmap/associative array like this: >> >> > >> $graph = array( >> >>'A' => array('B' => 1, 'F' => 2), >> >>&

Re: [PHP] Algorithm Help

2013-10-20 Thread Ayush Ladia
#x27;D' => array('B' => 7, 'E' => 8), > >>'E' => array('B' => 9, 'D' => 10, 'F' => 11), > >>'F' => array('A' => 12, &

Re: [PHP] If date is greater than

2013-10-20 Thread Ashley Sheridan
("2012-12-31"); > > if (|||($|todaynow |>= $date1) and |($|||todaynow| <= > > $date2)||) > > || { > > || # do something > > } > > } > > ||| > > Easiest to convert to integers and then compare Yes, I was going

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

2013-10-11 Thread Stuart Dallas
> Or is it just the line in question that is being echoed? I'm not sure exactly what it gets compiled to, but I also don't see why it matters. All that matters is that content outside of PHP tags will simply get echo'd. -Stuart -- Stuart Dallas 3ft9 Ltd http://3

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
any found in 'bubbled-up' ini files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi, Jim Never mind my last paragraph ... I was thinking the wrong way of what you wrote earlier. I haven't tested it properly in every d

Re: [PHP] php.ini

2013-10-09 Thread Simon Schick
in each of my domain folders are appended/updated > against the 'main' ini settings to give me a 'current' group of php.ini > settings. > > What I'm looking to find out is does an ini setting established in a test > subdomain of my site affect those ini settin

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
executing folder. If that is so, then am I correct in assuming that settings in the lowest ini file take precedence over any found in 'bubbled-up' ini files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini

2013-10-09 Thread Jim Giner
create in .ini files in each of my domain folders are appended/updated against the 'main' ini settings to give me a 'current' group of php.ini settings. What I'm looking to find out is does an ini setting established in a test subdomain of my site affect those ini settings

[PHP] php.ini

2013-10-08 Thread Jim Giner
dated against the 'main' ini settings to give me a 'current' group of php.ini settings. What I'm looking to find out is does an ini setting established in a test subdomain of my site affect those ini settings outside of my test subdomain? -- PHP General Mailing

Re: [PHP] date time problem

2013-10-07 Thread Jim Giner
rmat("%d"); $days = ($days > 1) ? "$days days": ($days == 1) ? "$days day" : ''; $hms = $diff->format("%h:%i:%s"); return "Time left: $days $hms"; } else return '?'

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

2013-10-07 Thread Stuart Dallas
d 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 I found it odd. It did give a line to >> > a function with arr

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

2013-10-07 Thread Michael Alaimo
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 f

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

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

2013-10-07 Thread Michael Alaimo
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 I found it odd. It did give a line to a function with

Re: [PHP] date time problem

2013-10-06 Thread Romain CIACCAFAVA
t; >>>>>> Best Regards >>>>>> Farzan Dalaee >>>>>> >>>>>>>> On Oct 7, 2013, at 2:12, Jim Giner >>>> wrote: >>>>>>>> >>>>>>>> On 10/6/2013 6:36 PM, Farzan Dala

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
with date/time stuff in php - never get it even close until an hour or two goes by anyway I have this: // get two timestamp values $exp_time = $_COOKIE[$applid."expire"]; $curr_time = time(); // get the difference $diff = $exp_time - $curr_time; // produce a display time of the

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
ime-difference-in-minutes-in-php>Jonathan sent out contains functions that does the division for you with results. Another link you can check out: http://stackoverflow.com/a/9143387/1935500 On Sun, Oct 6, 2013 at 7:29 PM, Jim Giner wrote: Look at my code. The inputs are all timestamps so date

Re: [PHP] date time problem

2013-10-06 Thread Ashley Sheridan
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); > > >&

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 link<http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php>Jonathan se

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
>> 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

Re: [PHP] date time problem

2013-10-06 Thread Aziz Saleh
;>>> $time_left = gmdate("H:i:s",$diff); > >>>> > >>>> Best Regards > >>>> Farzan Dalaee > >>>> > >>>>> On Oct 7, 2013, at 1:49, Jim Giner > wrote: > >>>>> > >>>>>

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

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
>> >>>> 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 un

Re: [PHP] date time problem

2013-10-06 Thread Jim Giner
$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 anyway I have this: // get two timestamp values $exp_time = $_CO

[PHP] After a PHP script timeout, Apache logs the error but may not cleanly exit the script

2013-10-06 Thread Meta Seller Admin
Hi. I'm wondering if anyone can help with this. We're using PHP and Apache, hosted on a dedicated server running Debian Linux. The specific versions in each case are mostly immaterial, as this problem has been around since Debian 6, and is still present in Debian 7; in the meantime

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
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] 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 g

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

[PHP] date time problem

2013-10-06 Thread Jim Giner
I always hate dealing with date/time stuff in php - never get it even close until an hour or two goes by anyway I have this: // get two timestamp values $exp_time = $_COOKIE[$applid."expire"]; $curr_time = time(); // get the difference $diff = $exp_time - $curr_time; // produce

Re: [PHP] Algorithm Help

2013-10-03 Thread Nickolas Whiting
in a lot of coding and being very > slow. My idea was to give each group of kids a score and the lowest score > is the group that is selected. However, this approach wound of iterating > through several arrays several times which was really slow. Does anyone > have any ideas on this p

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

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://w

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
ds a score and the lowest score is the >> group that is selected. However, this approach wound of iterating through >> several arrays several times which was really slow. Does anyone have any >> ideas on this puzzle? >> >> Thanks! >> Floyd >> >>

Re: [PHP] Algorithm Help

2013-10-02 Thread Serge Fonville
imes which was really slow. Does anyone > have any ideas on this puzzle? > > > > Thanks! > > Floyd > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > While definit

Re: [PHP] Algorithm Help

2013-10-02 Thread Stuart Dallas
g through several > arrays several times which was really slow. Does anyone have any ideas on > this puzzle? Sounds like a job for a directed graph data structure. I wish I had time to knock up a solution but I don't right now. This article should help you get started: http://www.co

Re: [PHP] Algorithm Help

2013-10-02 Thread Tamara Temple
g through several > arrays several times which was really slow. Does anyone have any ideas on > this puzzle? > > Thanks! > Floyd > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > While definite

Re: [PHP] Algorithm Help

2013-10-01 Thread Serge Fonville
f an easy, quick way to accomplish this. I've tried > >>>> various approaches that have resulted in a lot of coding and being > very > >>>> slow. My idea was to give each group of kids a score and the lowest > score > >>>> is the group that

Re: [PHP] Algorithm Help

2013-10-01 Thread Floyd Resler
t; is the group that is selected. However, this approach wound of iterating >>>> through several arrays several times which was really slow. Does anyone >>>> have any ideas on this puzzle? >>>> >>>> Thanks! >>>> Floyd >>>>

Re: [PHP] Algorithm Help

2013-10-01 Thread Ashley Sheridan
>> slow. My idea was to give each group of kids a score and the lowest score > >> is the group that is selected. However, this approach wound of iterating > >> through several arrays several times which was really slow. Does anyone > >> have any ideas on this puzzl

Re: [PHP] Algorithm Help

2013-10-01 Thread Aziz Saleh
h several arrays several times which was really slow. Does anyone >> have any ideas on this puzzle? >> >> Thanks! >> Floyd >> >> >> Whatever solution you're going with will probably involve a relational > database of some sort. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

Re: [PHP] Algorithm Help

2013-10-01 Thread John Meyer
oes anyone have any ideas on this puzzle? Thanks! Floyd Whatever solution you're going with will probably involve a relational database of some sort. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Algorithm Help

2013-10-01 Thread Floyd Resler
Thanks! Floyd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOAP: Is correct to override XML standards?

2013-09-30 Thread buzon
I am working with some WSDL call for a provider. The strange thing is that the SOAP used (for me, as client) should include an 'xml' element, and it is supported by the Php constructor, even that is not correct under XML syntaxis. Why? Is somekind of not validation?

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

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

2013-09-29 Thread Aziz Saleh
> > > I hope that clarifies my situation a bit. Sorry for not providing that > sooner! > > Thanks > Tim > > > On Sun, Sep 29, 2013 at 1:09 PM, Aziz Saleh wrote: > >> Hi Tim, >> >> Is the call working? Does it actually get deleted? >> >>

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

2013-09-29 Thread Tim Dunphy
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 Dunphy wrote: > >> H

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

2013-09-29 Thread Aziz Saleh
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' => '

Re: [PHP] Switch Statement

2013-09-29 Thread mrfroasty
tep20 > > > } //end switch > > > > post#1 > > beforeArray > ( > [Cust_Num] => 123 > [Fname] => > [Lname] => > [Street] => > [City] => > [state] => NY > [Zip] => 109

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 re

[PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
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', )); You can find the full entry here: AWS

Re: [PHP] Switch Statement

2013-09-29 Thread Aziz Saleh
ausing the switch to not match. >> >> Aziz >> >> >> > > Aziz - > > Used var_dump no further information > > > Ethan > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

[PHP] Running a command without shell

2013-09-29 Thread vitalif
the first argument is an array?) it would be rational because there is already such option for Windows... -- With best regards, Vitaliy Filippov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
x27;error_reporting', 'E_ALL | E_STRICT'); ini_set('html_errors', 'On'); ini_set('log_errors', 'On'); This is what you should have in place of all of the above: session_start(); error_reporting(E_ALL | E_STRICT | E_NOTICE); ini_set(&#

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
preventing you from seeing that your script dies at the misspelled print statement and never gets to the pair of if statements that should call your good and bad functions. Hate to do this to you, but you've been attempting to pick up PHP for two years now almost and from this latest post you a

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

Re: [PHP] Re: Switch Statement

2013-09-28 Thread Ethan Rosenberg
es at the misspelled print statement and never gets to the pair of if statements that should call your good and bad functions. Hate to do this to you, but you've been attempting to pick up PHP for two years now almost and from this latest post you appear to not have learned anything. And WHY woul

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

2013-09-28 Thread iccsi
a link unfortunately. The system I did it for is proprietary. But I do recall it was a pretty switch in the JS to view the list from the static file. The JS file with the static data was just an array and the autocomplete looked at that as the data source Sorry Bastien -- PHP General Mailing

[PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
nd never gets to the pair of if statements that should call your good and bad functions. Hate to do this to you, but you've been attempting to pick up PHP for two years now almost and from this latest post you appear to not have learned anything. And WHY would you EVER want to have a t

[PHP] Re: Switch Statement

2013-09-28 Thread Jim Giner
_Num state and Zip are as entered. The switch statement is never entered, since post#2 is never displayed, and neither good() or bad() functions are entered. TIA Ethan Once again you are posting code that has no chance of running. And since you are DISABLING error reporting with that &quo

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

2013-09-28 Thread Bastien
the autocomplete looked at that as the data source Sorry Bastien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Switch Statement

2013-09-28 Thread Aziz Saleh
bad(); > break; > } //end step20 > > > } //end switch > > > > post#1 > > beforeArray > ( > [Cust_Num] => 123 > [Fname] => > [Lname] => > [Street] => > [City] => > [state] => NY > [Zip] => 10952 > [PH1] => > [PH2] => > [PH3] => > [Date] => > [welcome_already_seen] => already_seen > [next_step] => step20 > > ) > > Cust_Num state and Zip are as entered. > > The switch statement is never entered, since post#2 is never displayed, > and neither good() or bad() functions are entered. > > > TIA > > Ethan > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

[PHP] Switch Statement

2013-09-28 Thread Ethan Rosenberg
eet] => [City] => [state] => NY [Zip] => 10952 [PH1] => [PH2] => [PH3] => [Date] => [welcome_already_seen] => already_seen [next_step] => step20 ) Cust_Num state and Zip are as entered. The switch statement is never entered, since post#2 is nev

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

2013-09-28 Thread iccsi
on, large list with the autocomplete. I cached the list to a JS file and ran the autocomplete from that. It works well if the list is relatively static which mine was. It will be tougher if the list is dynamic, but you could send the data down after the initial page load. HTH Bastien= --

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

2013-09-28 Thread Bastien
autocomplete from that. It works well if the list is relatively static which mine was. It will be tougher if the list is dynamic, but you could send the data down after the initial page load. HTH Bastien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2013-09-28 Thread iccsi
or this so other options could include sending csv or json data down to the browser and using jquery, angular or some other JS framework to manipulate that data may also be an option -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2013-09-28 Thread Bastien
data down to the browser and using jquery, angular or some other JS framework to manipulate that data may also be an option -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] create a local temp table in local machine

2013-09-28 Thread iccsi
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, Iccsi, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

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 b

[PHP] How to capture uploaded file data

2013-09-26 Thread Mariusz Drozdowski
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 can limit it to POST only). I need to capture the file data while being uploaded, wi

[PHP] Re: Sending PHP mail with Authentication

2013-09-26 Thread Maciek Sokolewicz
On 25-9-2013 22:11, dealTek wrote: Hi All, Semi newbie email question... I have used the - mail() — Send mail php function to send email from a site. now it seems the server is blocking this for safety because I should be using authentication Q: mail() does not have authentication

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

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
providing magic getters and setters, why not use __get and __set instead of __call with matching on "get_xxx" and "set_xxx"? This would allow using the simpler (and IMHO much more expressive and PHP-ish) forms $obj->foo = $obj->bar + 5; Peace, David

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

2013-09-25 Thread Daevid Vincent
27;s say DECADE! http://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags .method.pkg.html or @property too. http://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags .property.pkg.html *giddy!* (now I just have to go back through all my code and update th

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Camilo Sperberg
t;> On Wed, Sep 25, 2013 at 4:11 PM, dealTek wrote: >> >> > Hi All, >> > >> > Semi newbie email question... >> > >> > I have used the - mail() — Send mail php function to send email from a >> > site. >> > >> &

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Camilo Sperberg
ith 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 question... >

Re: [PHP] Sending PHP mail with Authentication

2013-09-25 Thread Aziz Saleh
i newbie email question... > > I have used the - mail() — Send mail php function to send email from a > site. > > now it seems the server is blocking this for safety because I should be > using authentication > > Q: mail() does not have authentication - correct? > > Q

[PHP] Sending PHP mail with Authentication

2013-09-25 Thread dealTek
Hi All, Semi newbie email question... I have used the - mail() — Send mail php function to send email from a site. now it seems the server is blocking this for safety because I should be using authentication Q: mail() does not have authentication - correct? Q: So I read from the link

Re: [PHP] https question

2013-09-25 Thread Daniel Brown
ile it's out-of-scope for this list, an example, for posterity: # .htaccess - placed in the web root RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [QSA,R,L] -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] https question

2013-09-25 Thread Joshua Kehn
ow the certificates need to be issued (dedicated ip address). Best, –Josh ____ Joshua Kehn | @joshkehn http://joshuakehn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   9   10   >