php-windows Digest 4 Oct 2004 13:17:10 -0000 Issue 2419

Topics (messages 24685 through 24688):

Re: WinXP- PHP install: Premature end of script headers
        24685 by: George Broyles

ORIG_SCRIPT_NAME
        24686 by: Kevin Williams

about excel
        24687 by: Alex qi

Re: Commas conundrum
        24688 by: Gryffyn, Trevor

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Thank you, Thank you, Thank you

That was the problem. I knew it had to be some simple detail that I was
missing. I REALLY appreciate your help.

George B
[EMAIL PROTECTED]

-----Original Message-----
From: DvDmanDT [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 03, 2004 12:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: WinXP- PHP install: Premature end of script headers

You are not supposed to use php.exe, use php-cgi.exe.. php.exe doesn't
generate any HTTP headers like cgi's are required to, therefore the error...

-- 
// DvDmanDT
MSN: dvdmandt�hotmail.com
Mail: dvdmandt�telia.com
"George Broyles" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> I have successfully installed Apache 2.0.51 on my Windows XP machine. I
also
> installed PHP 5.0.1 under c:\php and configured the php.ini as in the
> instructions. I am now trying to execute a php page in my browser. I
created
> an index.php with the following content:
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body bgcolor="#FFFFFF" text="#000000">
> PHP TEST PAGE
> <? phpinfo(); ?>
> </body>
> </html>
>
> If I rename the file to index.html, it renders correctly when going to
> http://localhost/. But as index.php I get a 500 server error to the
browser,
> and the following in the apache error log:
> [Sat Oct 02 15:43:42 2004] [error] [client 127.0.0.1] Premature end of
> script headers: php.exe
>
> I believe that I must have something incorrect or missing in the apache
> httpd.conf. I will copy all the php related entries that I have in there
> here:
> *****
> <IfModule mod_dir.c>
>     DirectoryIndex index.html index.html.var
>     DirectoryIndex index.htm
>     DirectoryIndex index.php
>     DirectoryIndex index.php3
>     DirectoryIndex default.html
>     DirectoryIndex default.htm
> </IfModule>
>
> ScriptAlias /php/ "/php/"
>
> AddType application/x-httpd-php .php
>
> Action application/x-httpd-php /php/php.exe
> *****
>
> I can include the entire httpd.conf, if anyone feels it's necessary.
>
> I've searched for a long time for a solution to this problem, and I find
> lots of people asking the same question. But I have yet to see an answer.
> The closest to an answer I've seen, is that someone said they installed
php
> as an apache module and that took care of their problem, but I don't know
> how to install php as a module either.
>
> Any ideas out there??
>
> George
> [EMAIL PROTECTED]

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

--- End Message ---
--- Begin Message --- I have PHP 5.0.2 working in Apache 2.0.52 as a module, on WinXP SP2, and I'm trying to test coWiki (CVS-HEAD). I'm using Komodo 3.0.1 (eval) to debug it over the XDebug 2.0 beta1 debugger.

There is a point in the code which fails because $_SERVER['ORIG_SERVER_NAME'] is not defined. As a matter of fact, phpinfo() show none of the ORIG_ variables are defined. Is there a php.ini configuration option which might affect this, or is this a function of mod_php vs. CGI execution?

Kevin
(newbie - be gentle) ;)

--- End Message ---
--- Begin Message ---
hi:

I output the result from mysql to an excel file. yet, it works in Linus but IE. 
anyone know why? 

thanks.

--- End Message ---
--- Begin Message ---
Hey Anne.  How are you "importing" the file?   Looks like your comma
delimited file also uses double-quotes to delineate the data (which is
normal for CSVs).  I'd say just split the lines on the commas (as you're
probably doing) with explode or something, then count how many entries
you got.  If it's more than the number of columns you're looking for,
parse through the data to find where you have some quotes and
concatenate the offending columns.

Or look for the quotes and merge those two items that way.


It should be fairly predictable.  You either have  ,data,  or you have
,"data, data",  (with or without the middle comma).  There shouldn't be
too many other variants to the data structure.


Someone probably has a much more clever way of doing this like with
regex's or something, but it's all about how you're collecting your
data.

Good luck!

-TG

> -----Original Message-----
> From: Anne Shroeder [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 01, 2004 8:25 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Commas conundrum
> 
> 
> I'm trying to import a .csv file into a table.  One of the 
> columns of the
> .csv file looks like this:  Manila, Philippines. I want this 
> data to go into
> one field:  "address"
> 
> When I do the import with stripslashes (magic_quotes_gpc is 
> turned on) it
> does this:
> 
> insert into helpdesk values( '0',  '"Manila', 'Philippines"')
> 
> which obviously doesn't work.  What am I doing wrong?
> 
> Anne
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--- End Message ---

Reply via email to