Re: [PHP] move_uploaded_file() does not return any value or warning

2011-10-14 Thread Partha Chowdhury
On 15/10/11 08:35 AM, Simon J Welsh wrote: Assuming you did $move_uploaded_file = move_uploaded_file($filename, $destination);, then isset($move_uploaded_file) will always be true. isset() just checks if the variable you past to it is set, not if it has a non-false value. You could simply use

Re: [PHP] move_uploaded_file() does not return any value or warning

2011-10-14 Thread Simon J Welsh
On 15/10/2011, at 4:01 PM, Partha Chowdhury wrote: > Then i set a check for the return value of move-uploaded_file. >> if(isset ($move_uploaded_file)): >> echo ""success; >> else: >> echo "error in uploading"; >> endif; > But it does not print anythi

[PHP] move_uploaded_file() does not return any value or warning

2011-10-14 Thread Partha Chowdhury
Hello List. I am learning php and MySQL for my project work. I am trying to upload files to local server. First, a page is displayed on the browser to upload file Relevant code: After the user chooses a file and hit the submit button,the browser displays the content from the "uploads"

Re: [PHP] Processing newlines in a text area field

2011-10-14 Thread Stephen
On 11-10-13 10:49 PM, Stephen wrote: I have a web page with a form with a text area. I enter: foo bar PHP processes the POST and inserts the record into MySQL. The database field is text. I use PDO For testing I have removed any processing of the text area content. Now, no matter how many

Re: [PHP] Re: Processing newlines in a text area field

2011-10-14 Thread David Robley
On Fri, 14 Oct 2011, you wrote: > On 11-10-14 03:40 AM, David Robley wrote: > >> I have a web page with a form with a text area. I enter: > >> > >> foo > >> > >> > >> bar > >> > >> PHP processes the POST and inserts the record into MySQL. > >> > >> The database field is text. > >> > >> I use PDO >

Re: [PHP] Processing newlines in a text area field

2011-10-14 Thread Stephen
On 11-10-14 04:25 PM, Richard Quadling wrote: On 14 October 2011 03:49, Stephen wrote: I have a web page with a form with a text area. I enter: foo bar PHP processes the POST and inserts the record into MySQL. The database field is text. I use PDO For testing I have removed any processin

Re: [PHP] Processing newlines in a text area field

2011-10-14 Thread Richard Quadling
On 14 October 2011 03:49, Stephen wrote: > I have a web page with a form with a text area. I enter: > > foo > > > bar > > PHP processes the POST and inserts the record into MySQL. > > The database field is text. > > I use PDO > > For testing I have removed any processing of the text area content.

Re: [PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70

2011-10-14 Thread tamouse mailing lists
On Thu, Oct 13, 2011 at 5:08 PM, Daevid Vincent wrote: > #include > > int main() > { >       printf("R.I.P. Dennis Ritchie: 1941-2011\n"); >       return 0; > } > > > http://www.networkworld.com/news/2011/101311-ritchie-251936.html > > dmr--; /* :-( */ -- PHP General Mailing List (http://www.ph

Re: [PHP] Local variable protection

2011-10-14 Thread kd_jm
Hi, I want to use the function fputcsv, but have the results in a local variable, not a file. So I thought I could use php://temp Like in this code sample: $fp = fopen( "php://temp", 'r+' ); if ( fputcsv( $fp, $data, ",", "'" ) === FALSE ) { // error } else { rewind( $fp ); $csvString

Re: Re: [PHP] Local variable protection

2011-10-14 Thread Tim Streater
On 14 Oct 2011 at 16:46, Tedd Sperling wrote: > On Oct 13, 2011, at 11:37 AM, Tim Streater wrote: >> On 13 Oct 2011 at 16:25, Tedd Sperling wrote: >>> So, if you want a main script variable (i.e., $myVar) to be accessed by a >>> function, you can do it by stating: >>> >>> myFunction >>> { >>>

Re: [PHP] Local variable protection

2011-10-14 Thread Tedd Sperling
On Oct 13, 2011, at 11:37 AM, Tim Streater wrote: > On 13 Oct 2011 at 16:25, Tedd Sperling wrote: >> So, if you want a main script variable (i.e., $myVar) to be accessed by a >> function, you can do it by stating: >> >> myFunction >> { >> global $myVar; >> // and then using $myVar >> } >> >

Re: [PHP] Introducting CRUDsader : a new PHP ORM Framework

2011-10-14 Thread Ricardo Martinez
great :) i think take a look ;) On Fri, Oct 14, 2011 at 1:08 PM, jean-baptiste verrey < jeanbaptiste.ver...@gmail.com> wrote: > yes it's open source, it's under LGPL license! > > On 14 October 2011 03:52, Sharl.Jimh.Tsin wrote: > > > 在 2011-10-13四的 19:06 +0100,jean-baptiste verrey写道: > > > hi ev

Re: [PHP] Introducting CRUDsader : a new PHP ORM Framework

2011-10-14 Thread jean-baptiste verrey
yes it's open source, it's under LGPL license! On 14 October 2011 03:52, Sharl.Jimh.Tsin wrote: > 在 2011-10-13四的 19:06 +0100,jean-baptiste verrey写道: > > hi everyone, > > > > I have been developing an ORM framework for the last year (at least) and > I > > have finally released a beta that is wort

Re: [PHP] Re: files outside of documentRoot

2011-10-14 Thread Ricardo Martinez
Mmm i'm trying to show a .flv but i dont know if i'm using the correct headers and method. $name = $file; $fp = fopen($name, 'rb'); // send the right headers header("Content-Type: video/x-flv"); header("Content-Length: " . filesize($name)); // dump the picture and stop the script fpassthru($fp);

[PHP] Re: Processing newlines in a text area field

2011-10-14 Thread David Robley
Stephen wrote: > I have a web page with a form with a text area. I enter: > > foo > > > bar > > PHP processes the POST and inserts the record into MySQL. > > The database field is text. > > I use PDO > > For testing I have removed any processing of the text area content. > > Now, no matter