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
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
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"
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
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
>
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
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.
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
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
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
>>> {
>>>
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
>> }
>>
>
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
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
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);
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
15 matches
Mail list logo