php-windows Digest 17 Aug 2003 08:42:57 -0000 Issue 1874
Topics (messages 21169 through 21177):
Re: [PHP] Time formatting from int (seconds)
21169 by: H Marc Bower
Session problems
21170 by: Creative Solutions New Media
21171 by: Kai Wenk
21172 by: Creative Solutions New Media
PHP and Windows .NET Server 2003
21173 by: QuazarWebDesign.aol.com
21174 by: Shadow
21175 by: Nick H. - Network Operations
Tell me reason and How to do it
21176 by: Michael Bao
Re: Looking for Debugger program.
21177 by: Dennis Lee
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 Paul,
Try this out.
function duration($amount)
{
$seconds = $amount % 60;
if ($seconds < 10) { $seconds = "0".$seconds; }
$minutes = (($amount - $seconds) / 60) % 60;
if ($minutes < 10) { $minutes = "0".$minutes; }
$hours = ($amount - ($minutes * 60) - $seconds) / 3600;
$duration = $hours.":".$minutes.":".$seconds;
echo $duration;
}
duration($nameofvariableholdingsecondshere);
The if statements are just to pretty it up and put some leading 0's in if
needed. If you didn't want to actually echo it, you could modify it to
return the values instead, which you can then manipulate however you needed
to. There may be an even more streamlined way, but I just came up with
that, so there ya go. :)
(V)
----- Original Message -----
From: "Paul Menard" <[EMAIL PROTECTED]>
> Quick question about the best (and easiest) way to
> format a display string into the HH:MM:SS format from
> an integer var.
>
> Is there a PHP function that will provide this? I've
> looked at the various functions and all are used for
> taking a date/time as use. Or is there a function
> someone has written and would like to share it?
>
> In my case I have the result of a subtraction of two
> date in which seconds are returned as in 980 seconds,
> 576 seconds etc. To make this readable to the user of
> the web page and so they do not need to mentally
> calculate the HHMMSS.
--- End Message ---
--- Begin Message ---
Hoping someone can help.
I'm getting the following errors string to start a session.
Warning: session_start() [function.session-start]:
open(/tmp\sess_801eb94975c2de92f1085a8d4521af12, O_RDWR) failed: No such
file or directory (2) in G:\Program Files\Apache
Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at G:\Program Files\Apache
Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php:1) in G:\Program
Files\Apache Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache
limiter - headers already sent (output started at G:\Program Files\Apache
Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php:1) in G:\Program
Files\Apache Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
The only line of worth in the script is session_start(); And it's being
call in the very first line...before anything else.
Anyone know what is happening?
Thx
Tim Winters
Manager, Creative Development
Sampling Technologies Incorporated (STI)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
W: 902 450 5500
C: 902 430 8498
--- End Message ---
--- Begin Message ---
Creative Solutions New Media wrote:
I'm getting the following errors string to start a session.
Warning: session_start() [function.session-start]:
open(/tmp\sess_801eb94975c2de92f1085a8d4521af12, O_RDWR) failed: No such
file or directory (2) in G:\Program Files\Apache
Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
Warning: session_start() [function.session-start]: Cannot send session
cookie - headers already sent by (output started at G:\Program Files\Apache
Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php:1) in G:\Program
Files\Apache Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
Warning: session_start() [function.session-start]: Cannot send session cache
limiter - headers already sent (output started at G:\Program Files\Apache
Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php:1) in G:\Program
Files\Apache Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
The only line of worth in the script is session_start(); And it's being
call in the very first line...before anything else.
Anyone know what is happening?
Do you have set the right session-directory in the php.ini, respectively
does this this directory exsist?
If not, you get this first error.
The following errors are results of this missing directory.
Greets, Kai
--
Kai G.K. Wenk
icq: #83858166
mobil: 0170/4240151
web: http://www.boozerchat.de
--- End Message ---
--- Begin Message ---
Worked great....
Thank you
Tim Winters
Manager, Creative Development
Sampling Technologies Incorporated (STI)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
W: 902 450 5500
C: 902 430 8498
-----Original Message-----
From: Kai Wenk [mailto:[EMAIL PROTECTED]
Sent: August 16, 2003 7:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Session problems
Creative Solutions New Media wrote:
> I'm getting the following errors string to start a session.
>
> Warning: session_start() [function.session-start]:
> open(/tmp\sess_801eb94975c2de92f1085a8d4521af12, O_RDWR) failed: No such
> file or directory (2) in G:\Program Files\Apache
> Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
>
> Warning: session_start() [function.session-start]: Cannot send session
> cookie - headers already sent by (output started at G:\Program
Files\Apache
> Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php:1) in G:\Program
> Files\Apache Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
>
> Warning: session_start() [function.session-start]: Cannot send session
cache
> limiter - headers already sent (output started at G:\Program Files\Apache
> Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php:1) in G:\Program
> Files\Apache Group\Apache2\htdocs\Imptech\www\SOS\User\step1.php on line 1
>
> The only line of worth in the script is session_start(); And it's being
> call in the very first line...before anything else.
>
> Anyone know what is happening?
Do you have set the right session-directory in the php.ini, respectively
does this this directory exsist?
If not, you get this first error.
The following errors are results of this missing directory.
Greets, Kai
--
Kai G.K. Wenk
icq: #83858166
mobil: 0170/4240151
web: http://www.boozerchat.de
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I am trying to install PHP on Windows Server 2003 with IIS 6.0 and the
installer says that it could not configure my web server! Help! I don't know the
exact error msg, but there was something about a missing OCX file(???).
any help would be great!
Thanks in advance!
__________________
Quazar Web Design
If you've got the time, we've got the design!
--- End Message ---
--- Begin Message ---
First, don't use the windows installer
Second, do a manual install
Third, it works....did it last week and it works nicely....downloaded 4.3.3
from www.php.net and installed according to the instructions at
http://www.php.net/manual/en/install.iis.php
--
Shadow
www.shadowsnetwork.com
--- End Message ---
--- Begin Message ---
I replied to one of these a long while back. The URL for the information
has changed. Here's a complete KB style how-to on installing php under IIS
6.0:
http://dedntfaq.hostingsupport.com/iis6_php_install.txt
Regards,
Nick H.
Network Operations Center
[EMAIL PROTECTED]
Please rate my performance! http://www.supportteam.net/rate.php3
Please submit all new support requests to
http://ticketmonster.hostingsupport.com/
-------------------------------------------
Privileged/Confidential Information may be contained in this message. If
you are not the addressee indicated in this message (or responsible for
delivery of the message to such person), you may not copy or deliver this
message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.
Opinions, conclusions and other information in this message that do not
relate to the official business of my firm shall be understood as neither
given nor endorsed by it.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 16, 2003 8:30 PM
Subject: [PHP-WIN] PHP and Windows .NET Server 2003
: I am trying to install PHP on Windows Server 2003 with IIS 6.0 and the
: installer says that it could not configure my web server! Help! I don't
know the
: exact error msg, but there was something about a missing OCX file(???).
:
: any help would be great!
: Thanks in advance!
:
:
: __________________
: Quazar Web Design
: If you've got the time, we've got the design!
:
--- End Message ---
--- Begin Message ---
After installed PHP4.3.2 and runned my main page, this error information will display
as follows,
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a
page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an
Apache Action directive.
For more information as to why this behaviour exists, see the manual page for CGI
security.
For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit the manual
page.
PHP Warning: Unknown(): gd: Unable to initialize module Module compiled with module
API=20010901, debug=0, thread-safety=1 PHP compiled with module API=20020429, debug=0,
thread-safety=1 These options need to match in Unknown on line 0
please tell me reason and how to correct it,
thank you,
Michael
--- End Message ---
--- Begin Message ---
have a look at http://www.dzsoft.com/dzphp.htm
"Alejandro C. Garrammone" <[EMAIL PROTECTED]> ????
news:[EMAIL PROTECTED]
> Someone know how to find a debugger program for PHP?...because it's hard
to
> debug with the Notepad.
>
> Thxs in advance,
>
> Alex
>
--- End Message ---