php-windows Digest 6 Mar 2002 04:43:33 -0000 Issue 1031

Topics (messages 12466 through 12478):

Re: session probs
        12466 by: Ryan Marrs

Re: Output of PHP ist truncated
        12467 by: Mike Eynon

php4apache-eapi.dll / Apache 1.3.22 / ModSSL
        12468 by: Eric Roussille

Re: File corruption during HTTP Upload
        12469 by: Nicole Amashta
        12471 by: Stevens, Julian C
        12472 by: Ryan Marrs

PHP Config tool
        12470 by: Scott St. John

Displaying a MS Access - Medium time field
        12473 by: Asendorf, John

Re: mail() function EXTREMELY slow
        12474 by: James F

Help me pleaase !!!!
        12475 by: Athar Hameed
        12476 by: Collins, Robert
        12478 by: Athar Hameed

text input file
        12477 by: niels

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 ---
Make sure your phpsession directory is created.  For windows this is not
always done.  Go into your php.ini and find the directory that is the
session directory, and make sure it exists.

Ryan

-----Original Message-----
From: secrgb [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 05, 2002 8:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] session probs

[Tue Mar 05 15:42:00 2002] [error] [client 127.0.0.1] Premature end of
script headers: c:/php/php.exe

this is the error from error.log
now after reinstalling apache has php.exe an error ...


"Richard Black" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
>
> What error do you get??
>
> Can you copy us the error message, and maybe a snipplet of code???
>
> Richy
>
> ==========================================
> Richard Black
> Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
> Tel: 0141 435 3504
> Email: [EMAIL PROTECTED]
>
> -----Original Message-----
> From: secrgb [mailto:[EMAIL PROTECTED]]
> Sent: 05 March 2002 12:32
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] session probs
>
>
> hey
> i have apache with php 4.1.1
> the problem is that i cant use:
> session_start();
> session_register("mysession");
>
> The problem is that an error comes by using them...
>
> Can somebody help me?
>
> Jaan aga Secrgb
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have also seen this happen.  After playing with a few things... I finally
got the problem to go away by adding in a bunch of line feeds.  The problem
I saw seemed to be a buffering problem of some kind.  When I made sure that
the html being generated had line lengths of no more than 120 chars in
width, everything just started working.

As well, this seems to be a Win32 thing only.  I did not have this problem
in Linux running the exact same script.

// Mike Eynon
// www.MikeEynon.com
// 1366 Bulb Ave.
// Santa Cruz, CA  95062
// 831.588.2388

-----Original Message-----
From: Rolf [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 11:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Output of PHP ist truncated


Hello,

im trying to use PHP on W2k ADV Server with phprojekt.
Everytime i call an php script the output is truncated on the screen.
i just see some input fields, but no text.

Can anybody help me?
    Rolf



--
bis die mails
Rolf                          mailto:[EMAIL PROTECTED]

- ---o<-----o<-----o<-----o<-----o<-----o<-----o<-----o<-----o<--
 /°\   --- MACH MIT!!! ---
 \ /  ASCII ribbon campaign -
  X        gegen HTML
 / \    in Mail und News
- ---o<-----o<-----o<-----o<-----o<-----o<-----o<-----o<-----o<--



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

--- End Message ---
--- Begin Message ---
Hello,
My system is WinNT 4.
I try to run Apache 1.3.22 + modSSL + PHP 4.1.1 (from php4Win).
I use php4apache-eapi.dll but I still have the warning message :

"[warn] Loaded DSO php4apache-eapi.dll uses plain Apache 1.3 API, this
module might crash under EAPI! (please recompile it with -DEAPI
)"

Has anybody experienced that kind of problem ?

Thanks for help


--- End Message ---
--- Begin Message ---
Check your PHP.ini and make sure that your fileupload size matches the
maximum upload size you want.

See this section in you php.ini:

<snip>

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if
not
; specified).
upload_tmp_dir = "e:\uploadtemp"

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

</snip>

*The last line there is where you specify your max file upload size. I
believe default is usually 2 MB.

-Nicole
www.aeontrek.com

"Julian C Stevens" <[EMAIL PROTECTED]> wrote in message
news:"DSLEXXCH3-020305122516Z-36776*/PRMD=BAEDSL/ADMD=GOLD 400/C=GB/"@MHS...
> I am running PHP 4.1.1 with Apache 1.3.20 on Windows NT, and have recently
> started observing a bizarre file corruption effect.
> I first noticed this when transferring an RTF file with an embedded image.
On
> arriving at the web server, the image disappeared and, after examining the
> file I found 4 very small differences - the file size was not altered at
all.
>
> Now I have found that zip files are becoming corrupted in transit. A
perfectly
> good zip file appears on the webserver with various CRC errors!
>
> I'm using a simple http form to upload the files, and the problem only
seems
> to occurr if the files are fairly large (typically 2Mb or more).
> However, I need to be able to transfer much larger files than these
(intranet
> only).
>
> Please can anyone suggest where this apparent corruption could be coming
from.
>
> Thanks,
>
> Julian Stevens
> --
>
>
>
>
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************


--- End Message ---
--- Begin Message ---
Thanks for the suggestion, but I have 
upload_max_filesize = 50M
and I'm seeing corruption on files as small as 8Mb.

<snip>

Check your PHP.ini and make sure that your fileupload size matches the
maximum upload size you want.

See this section in you php.ini:

<snip>

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

</snip>

*The last line there is where you specify your max file upload size. I
believe default is usually 2 MB.

-Nicole
www.aeontrek.com

"Julian C Stevens" <[EMAIL PROTECTED]> wrote in message
news:"DSLEXXCH3-020305122516Z-36776*/PRMD=BAEDSL/ADMD=GOLD 400/C=GB/"@MHS...
> I am running PHP 4.1.1 with Apache 1.3.20 on Windows NT, and have recently
> started observing a bizarre file corruption effect.
> I first noticed this when transferring an RTF file with an embedded image.
On
> arriving at the web server, the image disappeared and, after examining the
> file I found 4 very small differences - the file size was not altered at
all.
>
> Now I have found that zip files are becoming corrupted in transit. A
perfectly
> good zip file appears on the webserver with various CRC errors!
>
> I'm using a simple http form to upload the files, and the problem only
seems
> to occurr if the files are fairly large (typically 2Mb or more).
> However, I need to be able to transfer much larger files than these
(intranet
> only).
>
> Please can anyone suggest where this apparent corruption could be coming
from.
>
> Thanks,
>
> Julian Stevens
> --




********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--- End Message ---
--- Begin Message ---
I have actually found that corruption showed up when magic_quates_gpc was
turned on.

I would check that if I were you.


Ryan

-----Original Message-----
From: Stevens, Julian C [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 05, 2002 1:16 PM
To: 'Nicole Amashta'; '[EMAIL PROTECTED]%INTERNET'
Subject: RE: [PHP-WIN] Re: File corruption during HTTP Upload

Thanks for the suggestion, but I have 
upload_max_filesize = 50M
and I'm seeing corruption on files as small as 8Mb.

<snip>

Check your PHP.ini and make sure that your fileupload size matches the
maximum upload size you want.

See this section in you php.ini:

<snip>

; Maximum allowed size for uploaded files.
upload_max_filesize = 40M

</snip>

*The last line there is where you specify your max file upload size. I
believe default is usually 2 MB.

-Nicole
www.aeontrek.com

"Julian C Stevens" <[EMAIL PROTECTED]> wrote in message
news:"DSLEXXCH3-020305122516Z-36776*/PRMD=BAEDSL/ADMD=GOLD 400/C=GB/"@MHS...
> I am running PHP 4.1.1 with Apache 1.3.20 on Windows NT, and have recently
> started observing a bizarre file corruption effect.
> I first noticed this when transferring an RTF file with an embedded image.
On
> arriving at the web server, the image disappeared and, after examining the
> file I found 4 very small differences - the file size was not altered at
all.
>
> Now I have found that zip files are becoming corrupted in transit. A
perfectly
> good zip file appears on the webserver with various CRC errors!
>
> I'm using a simple http form to upload the files, and the problem only
seems
> to occurr if the files are fairly large (typically 2Mb or more).
> However, I need to be able to transfer much larger files than these
(intranet
> only).
>
> Please can anyone suggest where this apparent corruption could be coming
from.
>
> Thanks,
>
> Julian Stevens
> --




********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Not sure if this has been brought up before or not, but AnalogX has a 
great gui config tool for your PHP.INI files!  

http://www.analogx.com/contents/download/network/phpconf.htm

Download, install and check it out!

-Scott

--- End Message ---
--- Begin Message ---
I have a MS Access 2000 database, which has a field whose format is "Medium
Time" named $class_time.

The $class_date (Format "Short Date") prints with no problem.

If I try to take the field from the database (without formatting) and echo
it, I get "1899-12-30 13:00:00"

If I try: date ("format", strtotime($class_time)) with the $class_time field
I get an unexpected error (probably because the date (as you can see above)
is prior to Dec 13, 1901).

If I try: date ("format", $class_time) I get 7:31 PM for every entry.

Any solutions?  This isn't my database, so I'd prefer not to screw with it
too much if I can help it.  CODE FOLLOWS:

$class_date = $schedule->fields[0];
$class_date = date ("l, F j, Y", strtotime ($class_date));
$class_time = $schedule->fields[1];
$class_time = date ("g:i A", $class_time ); //<--I have tried this with
strtotime also to no avail
        
echo "<td>$class_date<br />$class_time</td>\n"; //echoes date wonderfully,
time all messed up 




---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--- End Message ---
--- Begin Message ---
I personally found that messages were slow on my machine (going to an
external mail server) and I discovered that if you can use the built-in IIS
(Windows) SMTP mail server you'll have no more problems.  The built-in IIS
SMTP server was easily 1000 times faster in my case.  Of course, if you
don't have it installed, you may have to install and configure it, but it's
very simple.  Start menu - settings - control panel - add/remove programs -
add windows components - Internet - default SMTP server - check the box.
(Basically)

Be sure you don't allow external access (preferably block all inbound
connections at your firewall) or use an IP address restriction of 127.0.0.1
to prevent relaying.

-James F

"Ross Fleming" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> You should be able to do it, I know I do:
>
>
> [mail function]
> ; For Win32 only.
> SMTP= smtp.isp.com ; for Win32 only
>
> ; For Win32 only.
> sendmail_from= [EMAIL PROTECTED] ; for Win32 only
>
>
> However, I'm aware that this is an extremely pernickity thing, and that
lots
> of people have problems getting it to work
>
> -----Original Message-----
> From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 23:27
> To: [EMAIL PROTECTED]; php-windows
> Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
> Yeah, I know about the max time variable, but it would be unacceptable to
> take over a minute or two to send a handful of emails!
>
> I read an article that said you could use your ISP's SMTP server for the
> mail() function, but that didn't seem to work.
>
>
>
> Matt Hillebrand
> Web Developer
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> -----Original Message-----
> From: Ross Fleming [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 3:28 PM
> To: Matt Hillebrand; php-windows
> Subject: RE: [PHP-WIN] mail() function EXTREMELY slow
>
>
> I hope you're not spamming... ;)
>
> In php.ini:
>
> max_execution_time=30     ; Maximum execution time of each script, in
> seconds
>
> Change it to what you need.  The speed is pretty much dependent on your
SMTP
> server though.
>
> Ross
>
> -----Original Message-----
> From: Matt Hillebrand [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 23:13
> To: php-windows
> Subject: [PHP-WIN] mail() function EXTREMELY slow
>
>
> I'm using the SMTP server that my company owns, but it takes forever just
to
> send one email message. Trying to send a batch of emails with PHP's mail()
> function takes so long, that the script expires and I get an error
message.
>
> I tried searching the archives of this list, but that search page seems to
> be broken.
>
> Thanks!
>
>
> Matt Hillebrand
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>


--- End Message ---
--- Begin Message ---
Greetings,

Can anyone please help me. I am having this weird problem. I am using PHP
4.1.1 on windows as an apache module (sapi). Everything was working
perfectly, until today. I dint even do anything and things stopped working.
I built this database application. I connect to the database using the file
dbconnect.inc. But when i use

require ("dbconnect.inc");

it doesnt work and i get this error message:

Fatal error: Failed opening required '1' (include_path='') in
c:\apache\htdocs\jokes\submit_joke.php on line 3

I am not doing anything wrong, because the application was working
absolutely fine until today. There are no typos and no other silly mistakes.

Take for example this file, index.php

<?php

 require ("dbconnect.inc") or die();

 echo "<form method=\"post\" action=\"submit_joke.php\">\n";

.
.
.
?>

Here the require works fine. The values are read from the database and
inserted into the form at proper places. But when form is submitted
(submit_joke.php) I get the above mentioned error. Its happening in all my
applications which were all working fine.

submit_joke.php is as follows:

<?php

 require ("dbconnect.inc") or die("require failed!");

 // or die ("require failed.");

 $joke_date = date ("Y-m-d");

 echo $joke_text . "<br>";
 echo $joke_date . "<br>";
 echo $joke_category_id . "<br>";

 $query = "INSERT INTO new_jokes VALUES
('','$joke_text','$joke_date','$joke_category_id')";

 $result = mysql_query ($query) or die ("mysql_query failed.");

?>


--- End Message ---
--- Begin Message ---
it is possible you are doing multiple requires for the same file try
require_once ("dbconnect.inc");

Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]


-----Original Message-----
From: Athar Hameed [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Help me pleaase !!!!


Greetings,

Can anyone please help me. I am having this weird problem. I am using PHP
4.1.1 on windows as an apache module (sapi). Everything was working
perfectly, until today. I dint even do anything and things stopped working.
I built this database application. I connect to the database using the file
dbconnect.inc. But when i use

require ("dbconnect.inc");

it doesnt work and i get this error message:

Fatal error: Failed opening required '1' (include_path='') in
c:\apache\htdocs\jokes\submit_joke.php on line 3

I am not doing anything wrong, because the application was working
absolutely fine until today. There are no typos and no other silly mistakes.

Take for example this file, index.php

<?php

 require ("dbconnect.inc") or die();

 echo "<form method=\"post\" action=\"submit_joke.php\">\n";

.
.
.
?>

Here the require works fine. The values are read from the database and
inserted into the form at proper places. But when form is submitted
(submit_joke.php) I get the above mentioned error. Its happening in all my
applications which were all working fine.

submit_joke.php is as follows:

<?php

 require ("dbconnect.inc") or die("require failed!");

 // or die ("require failed.");

 $joke_date = date ("Y-m-d");

 echo $joke_text . "<br>";
 echo $joke_date . "<br>";
 echo $joke_category_id . "<br>";

 $query = "INSERT INTO new_jokes VALUES
('','$joke_text','$joke_date','$joke_category_id')";

 $result = mysql_query ($query) or die ("mysql_query failed.");

?>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
But everything was working fine. What has gone wrong now.

----- Original Message -----
From: "Collins, Robert" <[EMAIL PROTECTED]>
To: "'Athar Hameed'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 2:29 AM
Subject: RE: [PHP-WIN] Help me pleaase !!!!


> it is possible you are doing multiple requires for the same file try
> require_once ("dbconnect.inc");
>
> Robert W. Collins II
> Webmaster
> New Orleans Regional Transit Authority
> Phone : (504) 248-3826
> Email : [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Athar Hameed [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 2:54 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Help me pleaase !!!!
>
>
> Greetings,
>
> Can anyone please help me. I am having this weird problem. I am using PHP
> 4.1.1 on windows as an apache module (sapi). Everything was working
> perfectly, until today. I dint even do anything and things stopped
working.
> I built this database application. I connect to the database using the
file
> dbconnect.inc. But when i use
>
> require ("dbconnect.inc");
>
> it doesnt work and i get this error message:
>
> Fatal error: Failed opening required '1' (include_path='') in
> c:\apache\htdocs\jokes\submit_joke.php on line 3
>
> I am not doing anything wrong, because the application was working
> absolutely fine until today. There are no typos and no other silly
mistakes.
>
> Take for example this file, index.php
>
> <?php
>
>  require ("dbconnect.inc") or die();
>
>  echo "<form method=\"post\" action=\"submit_joke.php\">\n";
>
> .
> .
> .
> ?>
>
> Here the require works fine. The values are read from the database and
> inserted into the form at proper places. But when form is submitted
> (submit_joke.php) I get the above mentioned error. Its happening in all my
> applications which were all working fine.
>
> submit_joke.php is as follows:
>
> <?php
>
>  require ("dbconnect.inc") or die("require failed!");
>
>  // or die ("require failed.");
>
>  $joke_date = date ("Y-m-d");
>
>  echo $joke_text . "<br>";
>  echo $joke_date . "<br>";
>  echo $joke_category_id . "<br>";
>
>  $query = "INSERT INTO new_jokes VALUES
> ('','$joke_text','$joke_date','$joke_category_id')";
>
>  $result = mysql_query ($query) or die ("mysql_query failed.");
>
> ?>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi,

I have input file with fields delimited by tabs.  One field contains an html anchor 
with javascript (for paypal) to be printed in the resulting html file.  
But when I printf(), that one field causes a "too few arguments error".  I've used the 
htmlentities() to replace the quotes(" and '), & out but to no avail.
It won't even print the buffer containing an entire text line, before exploding() it 
into fields.  
ohhhh...how the hours have passed by!
Thanks
Niels


--- End Message ---

Reply via email to