[PHP] Export resultset

2003-09-29 Thread DPCMA Metalito
Hi There,

New to this list. I would like to know if anybody knows where can I found 
information about how can I generate an Excel Spreadsheet, with the resulset 
of an LDAP query that my script made. The goal is that MS Explorer can 
download and load the xls inside the browser, and other ones download the 
file.

Thanx in advance.
Regards.

DPC
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Hotmail servers, Was RE: [PHP] LiteSpeed Web Server 1.1

2003-10-08 Thread DPCMA Metalito
Why don´t we stop talking about Microsoft and products that they don´t own? 
Reason: Can you imagine that Microsoft would show interest about PHP? Can 
you imagine Ms Visual PHP? we´ll get a non-working scripting non-free 
language while Microsoft think ASP it´s better than PHP and is not a 
threat wewill be able to sleep during nights and safe from this kind of 
nightmares .

cheers!.


DPC




From: "Andrew Whyte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [PHP] Hotmail servers, Was RE: [PHP] LiteSpeed Web Server 1.1
Date: Thu, 9 Oct 2003 07:58:08 +1000
I hate to continue this thread at all, but...

> -Original Message-
> From: Jason Wong [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 9 October 2003 6:04 AM
> To: [EMAIL PROTECTED]
>
> On Thursday 09 October 2003 00:44, Robert Cummings wrote:
>
> > *heheh* That's like the smarty template site not using
> smarty. Or back
> > in the day when hotmail was owned by Microsoft but still
> running off
> > linux.
>
> I believe it's still the case. The frontend runs on MS
> servers but the backend which handles the mail is still using
> BSD after several desperate attempts to convert over to
> Windows failed.
iirc, It deffinitly is still the case, MS bought out Hotmail which
always ran on a bunch of FreeBSD servers, at one point tried switching
it over to IIS/Win2k, and it couldn't keep up, so went back to FreeBSD.
There is also good rumour about that MS have fully ported .NET to
FreeBSD
so that they can use the .NET framework for coding, and FreeBSD to
continue
running Hotmail.
Of course, this could all be just rumour... but it's interesting to
ponder. :-)
-Andrew

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Error fread() after switching Register Globals Off

2004-01-29 Thread DPCMA Metalito
Hi there,

I´m getting this error and I can´t find what the problem is..

Warning: fread(): supplied argument is not a valid stream resource in 
c:\program files\apache group\apache\htdocs\dpc\modulos\mod_ins_doc.php on 
line 13

I´ve got a form that calls a module to insert data. IT WAS WORKING before I 
switched the Register Globals to Off value. I made the proper chages to 
recieve variables, but i cannot make it work. Here is the code of the insert 
module.


$farchivo=$_POST['farchivo'];

$binary = addslashes (fread(fopen($farchivo, "rb"), filesize($farchivo)));

$nombre=$_POST['fnombre'];
$descripcion=$_POST['fdescripcion'];
$insert_data = "INSERT INTO
documentos (id, nombre, descripcion, fichero, nomfichero, tamfichero, 
tipofichero)
VALUES ('', '$nombre','$descripcion','$binary', '$farchivo_name', 
'$farchivo_size', '$farchivo_type')";
mysql_query($insert_data,$conexion) or die("Couldn't insert data.");
header("Location: ../index.php?sec=doc0");
?>

The code of the form is correct. This is the name of the input fields.

";
";
";

Any ideas?
Thank You.
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php