php-windows Digest 12 Oct 2001 02:50:17 -0000 Issue 800
Topics (messages 9804 through 9812): session open failed 9804 by: Web user Large File Uploads 9805 by: Josh Tegart Re: Help with Php4.06 installation 9806 by: Mihail Bota emailing a submission to a web based news service 9807 by: Nick Allen gif support trouble 9808 by: mates unique sessions 9809 by: CJD Re: session open failed and header() don't redirect 9810 by: Robert W. Biddle unable to load fonts 9811 by: mates php 9812 by: ChaoticWorks.cs.com 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 ---Hi, There are problems with session, Please give me some advice. Thank you! Mike System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations are default in php.ini) when the 1.php is running, the IE shows 2 errors as below: Warning: open(/tmp\sess_5176646ce5a800db9101970b80d507f6, O_RDWR) failed: m (2) in c:\program files\apache group\apache\htdocs\web1\1.php on line 2 Warning: Cannot add header information - headers already sent by (output started at c:\program files\apache group\apache\htdocs\web1\1.php:2) in c:\program files\apache group\apache\htdocs\web1\1.php on line 6 ------------------------------- The scripts of 1.php: (1.php and 2.php are under the same base directory) <? session_start(); require("html-head.inc"); $name="user"; session_register("name"); header("Location: 2.php"); /* let the IE automatically turn to the 2.php */ require("html-foot.inc"); ?> ------------------------------- The scripts of html-head.inc: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>page title</title> </head> <body> ----- The scripts of html-foot.inc: </body> </html>--- End Message ---
--- Begin Message ---Do we really have to wait 2 versions for large file uploads (> 20 megs) to work?--- End Message ---
--- Begin Message ---Yeah, I solved the problem. It was a simple thing, I did not have the correct path. Steve--yes, "ppp" is the name of the server, since I am using a ppp connection. Thanks to all who tried to help me! Mihai On Wed, 10 Oct 2001, Steve Yates wrote: > MB> Error:"The specified CGI application misbehaved by not returning a > MB> complete > MB> set of HTTP headers. The headers it did return are:" > > I do remember encountering this at one point, but unfortunately > don't recall my solution. :-/ Make sure that you have modified the > registry so PWS will execute PHP properly. Have test.php include > something simple like just a call to phpinfo(). Or, have it be plain > html, no PHP code. When PHP parses it, it should just output the plain > html. Have you made sure the temporary directory in php.ini exists? I > seem to recall it was something along these lines. > > MB> the path I try to access through Netscape > MB> is: http://ppp/scripts/database/test.php > > Is "ppp" the name of your server? > > - Steve Yates > - SRT Enterprises > - Before you criticize someone, you should walk a mile in their shoes. > That way, when you criticize them, you're a mile away and you have their > shoes. > > / Taglines by Taglinator - www.srtware.com / > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >--- End Message ---
--- Begin Message ---do you know if it's possible to email a new thread to a web based news server. assuming the news server was an nntp one, I think it's within PHP's capabilities to retrieve an email say every half and hour via POP3 and then post it to the News server using IMAP. If so how could we schedule this? Many thanks in advance, Nick.--- End Message ---
--- Begin Message ---hi, i'm getting the following error message: ImageGif: No GIF support in this PHP build in .... if i use imagepng...it works fine and the image shows correctly the gd_dll is loaded at start up. any idea? i'm also having trouble loading fonts with the imagettftext function. i copied the file verdana.ttf into the same directory with the script, but i get: Could not find/open font in ... even though the file is there. any idea? thanks a lot. libor--- End Message ---
--- Begin Message ---When using sessions, is each session_id unique? Is there a way of making sure they are? ____________________ CJD--- End Message ---
--- Begin Message ---I had the same problem with my website earlier.... my problem was I didn't have permission for the IIS/Guest user to write to my session directory. That gave me the same error you got, so you might wanna check it out. -Rob [EMAIL PROTECTED] "Web User" <[EMAIL PROTECTED]> wrote in message 002601c15144$3908f980$f7905fd3@hexiao">news:002601c15144$3908f980$f7905fd3@hexiao... > Hi, > There are problems with session and header(); > Please give me some advice. > Thank you! > Mike > > > System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations > are default in php.ini) > when the 1.php is running, the IE shows 2 errors as below: > > Warning: open(/tmp\sess_5176646ce5a800db9101970b80d507f6, O_RDWR) failed: m > (2) in c:\program files\apache group\apache\htdocs\web1\1.php on line 2 > > Warning: Cannot add header information - headers already sent by (output > started at c:\program files\apache group\apache\htdocs\web1\1.php:2) in > c:\program files\apache group\apache\htdocs\web1\1.php on line 6 > > ------------------------------- > The scripts of 1.php: (1.php and 2.php are under the same base directory) > <? > session_start(); > require("html-head.inc"); > $name="user"; > session_register("name"); > header("Location: 2.php"); /* let the IE automatically turn to the 2.php */ > require("html-foot.inc"); > ?> > ------------------------------- > The scripts of html-head.inc: > <html> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> > <title>page title</title> > </head> > <body> > > ----- > The scripts of html-foot.inc: > </body> > </html> > > > > > > > > > > >--- End Message ---
--- Begin Message ---hi, i have the following script: <?php Header ("Content-type: image/png"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "verdana.ttf", "Testing... Omega: "); Imagepng ($im); ImageDestroy ($im); ?> i copied the verdana.ttf into the same directory where the script file is. it doesn't work. any idea what might wrong? libor--- End Message ---
--- Begin Message --- For some reason whenever I do a multiple drop down box in php and click submit, the page it transfers too says that there were undefined index's. Which does not make sense because it worked for one of my friends and its an example right our of "Beginning PHP4."
Thanks
-Sean---- End Message ---
listbox.ZIP
Description: Zip archive