Re: [PHP] recipes anyone?

2009-05-30 Thread Clancy
On Sat, 30 May 2009 14:31:26 -0400, af.gour...@videotron.ca (PJ) wrote: >> So, if corn is bad, eating it will get rid of it faster right? :p >No it will turn you into a corn cob! ;-) Which is why Christopher Columbus found the Americas uninhabited! ;-) -- PHP General Mailing List (http://www

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: What do you mean by session variables? I should register a new session and pass it along with the file to the PHP wrapper? Yes - in the page that links to your downloads you can do something like $_SESSION['download']=TRUE; then in the wrapper - if (isset($_SESSION['do

RE: [PHP] Re: Numerical Recipe - Scheduling Question - update...

2009-05-30 Thread bruce
Hi again... for those who care, feel free to reply with comments... for those who don't.. please ignore!! this is a list of psuedo code/steps/overview of what i'm considering for a kind of scheduling process. the goal is for the user to enter a starttime, as well as specify a periodic function. t

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
What do you mean by session variables? I should register a new session and pass it along with the file to the PHP wrapper? On Sat, May 30, 2009 at 10:02 PM, Michael A. Peters wrote: > Nitsan Bin-Nun wrote: > >> >> >> On Sat, May 30, 2009 at 7:02 PM, Ashley Sheridan < >> a...@ashleysheridan.co.uk

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: On Sat, May 30, 2009 at 7:02 PM, Ashley Sheridan mailto:a...@ashleysheridan.co.uk>> wrote: On Sat, 2009-05-30 at 17:54 +0200, Nitsan Bin-Nun wrote: > That's the verification that my layer does. I'm not sure whether that's > enough or not. > >

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
On Sat, May 30, 2009 at 7:02 PM, Ashley Sheridan wrote: > On Sat, 2009-05-30 at 17:54 +0200, Nitsan Bin-Nun wrote: > > That's the verification that my layer does. I'm not sure whether that's > > enough or not. > > > > On Sat, May 30, 2009 at 4:43 PM, Michael A. Peters > wrote: > > > > > Nitsan Bi

[PHP] Autoloading with namespaces in 5.3.0

2009-05-30 Thread Eddie Drapkin
Hey, I'm looking to start playing with 5.3.0, and thus by extension, namespaces. One of the things that I definitely need support for is autoloading, and the docs aren't exactly explicit in some (obvious to me) cases. I have an autoloading class that internally handles file-not-found errors and t

[PHP] backslashes, string replacement, mysql_real_escape_strings and languages

2009-05-30 Thread PJ
Ok, let's get this straightened out, please. I'm coming up with little annoyances like text with é & the like being displayed and not displayed, having to enter it to get it displayed, and sometimes seeing the code rather than the accented character. And then there is preg_replace! When I have to u

Re: [PHP] recipes anyone?

2009-05-30 Thread PJ
Ashley Sheridan wrote: > On Fri, 2009-05-29 at 19:24 -0400, PJ wrote: > >> Michael A. Peters wrote: >> >>> Bob McConnell wrote: >>> like a web based front end, exclusion of specific ingredients due to allergies and being able to attach dated notes about alterations or

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Ashley Sheridan
On Sat, 2009-05-30 at 17:54 +0200, Nitsan Bin-Nun wrote: > That's the verification that my layer does. I'm not sure whether that's > enough or not. > > On Sat, May 30, 2009 at 4:43 PM, Michael A. Peters wrote: > > > Nitsan Bin-Nun wrote: > > > > On Sat, May 30, 2009 at 3:26 PM, Michael A. Peter

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
That's the verification that my layer does. I'm not sure whether that's enough or not. On Sat, May 30, 2009 at 4:43 PM, Michael A. Peters wrote: > Nitsan Bin-Nun wrote: > > On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters > mpet...@mac.com>> wrote: >> >>Nitsan Bin-Nun wrote: >> >>

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters > wrote: Nitsan Bin-Nun wrote: Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever they want, etc).

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
On Sat, May 30, 2009 at 3:26 PM, Michael A. Peters wrote: > Nitsan Bin-Nun wrote: > >> Hi >> >> I have wrote a file uploader in PHP, and I don't want people to hijack it >> (get direct links, download whenever they want, etc). >> >> Currently I have placed the uploaded files one directory up from

Re: [PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Michael A. Peters
Nitsan Bin-Nun wrote: Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever they want, etc). Currently I have placed the uploaded files one directory up from the www root, and I'm hosting the files mime type in order to serve them on t

Re: [PHP] Pointer for csv files

2009-05-30 Thread Nitsan Bin-Nun
http://il.php.net/manual/en/function.file.php http://il.php.net/manual/en/function.str-getcsv.php http://il.php.net/fgetcsv You can go through the lines and start buffering them when you get to 400, and stop the buffer and continue; the loop when you reach line 1400. On Sat, May 30, 2009 at 12:56

[PHP] Pointer for csv files

2009-05-30 Thread shahrzad khorrami
hi, Is there any function in php to get data of a csv file from a line to another line that we say? for example get me data from line 400 to line 1400 of a csv file. if no function, what you recommend to get data? Thanks in advance, Shahrzad

[PHP] How To Limit FIle Uploader Against Hijackers?

2009-05-30 Thread Nitsan Bin-Nun
Hi I have wrote a file uploader in PHP, and I don't want people to hijack it (get direct links, download whenever they want, etc). Currently I have placed the uploaded files one directory up from the www root, and I'm hosting the files mime type in order to serve them on the fly. I'm trying to t

Re: [PHP] Sending mail from localhost

2009-05-30 Thread Ashley Sheridan
On Sat, 2009-05-30 at 15:01 +0530, Sumit Sharma wrote: > I have already un-commented the smtp settings as > > SMTP = localhost > smtp_port = 25 > > do I need to change any other settings. > > Sumit > > > > On Sat, May 30, 2009 at 3:06 PM, Ashley Sheridan > wrote: > On Sat, 2009-05-3

Re: [PHP] Sending mail from localhost

2009-05-30 Thread Ashley Sheridan
On Sat, 2009-05-30 at 14:41 +0530, Sumit Sharma wrote: > Hi, > > I am new to php and not able to send mail from localhost. when trying to do > so getting following response: > > > *Warning*: mail() [function.mail ]: Failed > to connect to mailserver at "localhost"

[PHP] Sending mail from localhost

2009-05-30 Thread Sumit Sharma
Hi, I am new to php and not able to send mail from localhost. when trying to do so getting following response: *Warning*: mail() [function.mail ]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use

Re: [PHP] pdf_new()

2009-05-30 Thread Sumit Sharma
Hi Michael, Now its working. Thanks, Sumit. On Sat, May 30, 2009 at 1:51 PM, Michael A. Peters wrote: > Sumit Sharma wrote: > > Hi, > > > > Unable the create new pdf file object. Getting an error when coding as > > following: > > > > > > > $pdf=pdf_new(); > > > > ?> > > > >

Re: [PHP] recipes anyone?

2009-05-30 Thread Ashley Sheridan
On Fri, 2009-05-29 at 19:24 -0400, PJ wrote: > Michael A. Peters wrote: > > Bob McConnell wrote: > > > like a web based front end, > > > exclusion of specific ingredients due to allergies and being able to > > > attach dated notes about alterations or substitutions I try each time > > > > That soun

Re: [PHP] pdf_new()

2009-05-30 Thread Michael A. Peters
Sumit Sharma wrote: > Hi, > > Unable the create new pdf file object. Getting an error when coding as > following: > > > $pdf=pdf_new(); > > ?> > > *Fatal error*: Call to undefined function pdf_new() in *C:\wamp\www\abc1.php > * on line *3* > > Please Help. > > Thanks, > Sumit.

[PHP] pdf_new()

2009-05-30 Thread Sumit Sharma
Hi, Unable the create new pdf file object. Getting an error when coding as following: *Fatal error*: Call to undefined function pdf_new() in *C:\wamp\www\abc1.php * on line *3* Please Help. Thanks, Sumit.