[PHP] writing Excel files through PHP

2004-01-10 Thread Binay
Hi all, I m generating an Excel file though PHP by sending the appropriate header and then using HTML TD tags to write data in different cells. Below is my code snippet. It has got 1 problems: 1. Image doesn't come/showup in Excel sheet. ?php header(Content-type: application/vnd.ms-excel);

[PHP] Rand() problem

2004-01-10 Thread nefar
After moving my PHP files to a new hard drive and a new windows installation, my rand function gets stuck and only gives you one number over and over. It worked a few times then got stuck. I tried using IIS 5.1 (I was using Xitami) and it gave me the same results. It even gets stuck on the same

Re: [PHP] Rand() problem

2004-01-10 Thread Richard Davey
Hello nefar, Friday, January 9, 2004, 6:05:34 AM, you wrote: n After moving my PHP files to a new hard drive and a new windows n installation, my rand function gets stuck and only gives you one number over n and over. It worked a few times then got stuck. I tried using IIS 5.1 (I n was using

php-general Digest 10 Jan 2004 10:26:23 -0000 Issue 2522

2004-01-10 Thread php-general-digest-help
php-general Digest 10 Jan 2004 10:26:23 - Issue 2522 Topics (messages 174179 through 174196): Re: Display syslog file? 174179 by: Steve Edberg Re: XML/HTML encoding? 174180 by: memoimyself.yahoo.com.br Hiding files away from /public_html/ 174181 by: Philip J.

Re: [PHP] Fw: Intermitent problems retreiving PDF's from a MySQL database.

2004-01-10 Thread Stuart
Donald Tyler wrote: I thought that maybe the PDF had been corrupted somehow, but the problem miraculously fixed itself so I didnt have a change to check that out. Now I got a call from one of my users complaining of the exact same problem, which once again miraculously fixed itself after reloading

Re: [PHP] picturing webpage

2004-01-10 Thread Stuart
Mike Brum wrote: It could be similar to how you can build a PDF. They could just take your HTML and then use that to build a .JPG. I'm sure it's a very *expensive* process (server CPU -wise) though. There's an addon for LiveStats (www.mediahouse.com) that does this so it can display thumbs of

Re: [PHP] writing Excel files through PHP

2004-01-10 Thread Marek Kilimajer
Use full uri. But the user needs to be online while viewing the xls file. Other option is to create web archive. It's a mime encoded file, save an excel file with an embeded image and you will see what it is. Binay wrote: Hi all, I m generating an Excel file though PHP by sending the

[PHP] Re: Hiding files away from /public_html/

2004-01-10 Thread memoimyself
Hi Philip, On 10 Jan 2004 at 12:42, Philip J. Newman wrote: I want to store some images outside the /public_html/ how ever my isp has decided that i'm not aloud to write files in that area. Would the next best solution that wold be as secure to maybe put them in a folder with a .htaccess

[PHP] Mail function problem

2004-01-10 Thread Rolf Berkenbosch
Hi All, I have a big problem with the mail function in PHP. I have installed PHP 4.3.3. But no email where send With the mail function. If I run this script as root. There Is no problem.. What do I need to change?? Thanks, Rolf

[PHP] FW: Re: need help please

2004-01-10 Thread haydar Moussalem
From: Gabor Hojtsy [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: haydar [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: need help please Date: Sat, 10 Jan 2004 15:39:45 +0100 (CET) Please ask support questions at [EMAIL PROTECTED] I would suggest you read the manual page of header() and

[PHP] Re: Mail function problem

2004-01-10 Thread Jonas
Rolf Berkenbosch wrote: Hi All, I have a big problem with the mail function in PHP. I have installed PHP 4.3.3. But no email where send With the mail function. If I run this script as root. There Is no problem.. What do I need to change?? Thanks, Rolf hm I think the webserver

[PHP] Re: Odd strtotime behavior

2004-01-10 Thread Jonas
Chris W wrote: The following code doesn't do what I expect and I was wondering if someone could tell me why and how to make it do what I want. $NowT = strtotime(January 9 2004); $EventT = strtotime(June 1 2004); print ($EventT - $NowT)/86400; I get 143.95833 Why don't I get 144?

[PHP] Re: writing Excel files through PHP

2004-01-10 Thread Greg Beaver
Hi, You might also consider using Spreadsheet_Excel_Writer http://pear.php.net/package/Spreadsheet_Excel_Writer Regards, Greg -- phpDocumentor http://www.phpdoc.org Binay wrote: Hi all, I m generating an Excel file though PHP by sending the appropriate header and then using HTML TD tags to

[PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
Hi there, I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php ?php session_start(); print 'Content-type: text/html'

[PHP] Calling cgi post form from within php

2004-01-10 Thread Thomas Andersen
Hi, does anyone know how to call a cgi script and pass along a post-form from within php? Thanks, Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling cgi post form from within php

2004-01-10 Thread David Otton
On Sat, 10 Jan 2004 13:46:19 -0500, you wrote: does anyone know how to call a cgi script and pass along a post-form from within php? http://pear.php.net/package/HTTP_Request There are others, of course. But this will let you make a POST request. -- PHP General Mailing List

[PHP] Re: Calling cgi post form from within php

2004-01-10 Thread Thomas Andersen
a little extra info. This is a remote script located on another server. I will then get a return value for error checking purposes. Thomas Thomas Andersen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, does anyone know how to call a cgi script and pass along a post-form from

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread David Otton
On Sat, 10 Jan 2004 17:44:18 +0100 (MET), you wrote: I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php ?php

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Chris Shiflett
--- Børge Strand [EMAIL PROTECTED] wrote: I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? Try using header() instead of print to set Content-Type. Hope that helps.

Re: [PHP] Calling cgi post form from within php

2004-01-10 Thread Chris Shiflett
--- Thomas Andersen [EMAIL PROTECTED] wrote: does anyone know how to call a cgi script and pass along a post-form from within php? You can use cURL (if you compiled with the cURL extension), any one of the HTTP* PEAR classes (see http://pear.php.net/), or do it manually:

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php ?php session_start(); print 'Content-type: text/html' .

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? Try using header() instead of print to set Content-Type. Hope that helps. Thanks Chris. I tried that (see

[PHP] http authentication through PHP

2004-01-10 Thread Scott Taylor
What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? In other words, I have a PHP page that will get the username and password off a database and will then login through HTTP authentication to access a second page (say an HTML page). Best

[PHP] Re: Calling cgi post form from within php

2004-01-10 Thread Manuel Lemos
Hello, On 01/10/2004 04:46 PM, Thomas Andersen wrote: does anyone know how to call a cgi script and pass along a post-form from within php? You may want to try this class. It comes with an example to post a form to a remote server, exactly as you ask: http://www.phpclasses.org/httpclient --

[PHP] Re: http authentication through PHP

2004-01-10 Thread Manuel Lemos
Hello, On 01/10/2004 06:01 PM, Scott Taylor wrote: What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? In other words, I have a PHP page that will get the username and password off a database and will then login through HTTP authentication to

[PHP] Re: Mail function problem

2004-01-10 Thread Manuel Lemos
Hello, On 01/10/2004 11:36 AM, Rolf Berkenbosch wrote: I have a big problem with the mail function in PHP. I have installed PHP 4.3.3. But no email where send With the mail function. If I run this script as root. There Is no problem.. What do I need to change?? Which platform as you using,

[PHP] Re: Turck mmcache is dead

2004-01-10 Thread Manuel Lemos
Hello, On 01/08/2004 09:36 AM, [EMAIL PROTECTED] wrote: http://sourceforge.net/forum/message.php?msg_id=2361065 Not exactly as you may also read there. The control is being passed to other developers interested in carrying on the development while the original author is unable to do it himself.

[PHP] Re: Headers and sessions in php .cgi

2004-01-10 Thread Justin Patrin
BøRge Strand wrote: Hi there, I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php ?php session_start(); print

Re: [PHP] http authentication through PHP

2004-01-10 Thread Chris Shiflett
--- Scott Taylor [EMAIL PROTECTED] wrote: What is the easiest way to access a page that is protected by HTTP basic authentication through PHP? You should be able to indicate the username and password in the URL: http://username:[EMAIL PROTECTED]/path/to/script.php Hope that helps. Chris

[PHP] PHP/MySQL tutor wanted

2004-01-10 Thread bFreeburg
I've a project to do, and have chosen PHP/MySQL as the tool. I'd like to hire a tutor for assistance. It's an ecommerce app, where you sell something out of a database and send a few emails. Not rocket science. I'd like to have something usable in 3-4 months at the most. I'd like phone and

[PHP] Exception number: c0000005 (access violation

2004-01-10 Thread Gunter Sammet
I have 4.3.5-dev (Build Dec-22-2003) installed on a W2K Dell Inspiron 7500 and I am getting an error which I don't get with 4.1.1 and 4.3.4. Would like to learn how to debug things like that. Here is a dump of Dr. Watson: Application exception occurred: App: (pid=2228) When:

Re: [PHP] Exception number: c0000005 (access violation

2004-01-10 Thread Peter Vertes
Usually under Windows when you get a Memory Access Violation its a good indication that your power supply or RAM is on its way out. Is this happening to all apps or only PHP ? Unfortunately I don't know how to debug using a Dr. Watson dump but I do know of a free memory testing utility called

[PHP] Re: jpeg Uploader issue

2004-01-10 Thread Manuel Vázquez Acosta
Could you give us details on: how the uploads is being made: HTTP, or FTP; tests you have made, etc. Manu. Mike R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having an issue where a user with a MAC can't see jpegs uploaded to a web site I built. They are getting some sort