php-windows Digest 2 Oct 2004 21:29:12 -0000 Issue 2417

Topics (messages 24679 through 24681):

Re: File Upload problem
        24679 by: Scott Carr

Commas conundrum
        24680 by: Anne Shroeder

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

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 --- Ok, now it is getting even more wierd. My 5.0.2 File Upload stopped functioning again.

I stopped and restarted apache with 502, and it still failed.

I moved the folder to php.502, and then moved php.432 back to php. Restarted apache and everything worked.

Scott Carr
OpenOffice.org
Documentation Maintainer



Scott Carr wrote:

I went through the following.

5.0.2 - Did not work
4.3.9 - Did not work
4.3.8 - Did not work
4.3.2 - Original.  Worked
4.3.9 - Worked
5.0.2 - Worked

I didn't change anything, that I know of. This is strange. The php.ini file was changed at the 4.3.2 check, but there was no change in the php.ini file.

Scott Carr
OpenOffice.org
Documentation Maintainer



Scott Carr wrote:

Scott Carr wrote:

I am trying to use File Upload in PHP 5.0.2.
The file is showing up without error, as you can see in the array:

As a check, I sent a large file (~4Mb) and was able to see the file being written to the temp directory, as the file being pointed to by tmp_name.

When I run is_uploaded_file($values['uploadfile']['tmp_name']), I am getting an error saying the file is not an Upload File.

Log Entries around the problem:
[01-Oct-2004 10:58:05] PHP Notice: Tmp File: c:\winnt\temp\php2B.tmp in C:\Apache2\htdocs\client\import.php on line 112
[01-Oct-2004 10:58:05] PHP Warning: File Upload failed in C:\Apache2\htdocs\client\import.php on line 116



I am using QuickForm to build the form. This has worked before, but not on this system. Is there something I am missing?


Thanks

Scott Carr
OpenOffice.org
Documentation Maintainer


--- End Message ---
--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
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]

--- End Message ---

Reply via email to