php-windows Digest 27 Aug 2003 18:23:58 -0000 Issue 1889
Topics (messages 21259 through 21262):
Re: Web page timeout with PHP 4.3.3 on IIS & Win2K
21259 by: Phil Driscoll
graphs in flash to be integrated with php
21260 by: toby z
Weird timeout error
21261 by: Charles P. Killmer
Displaying one record per page
21262 by: Harpreet
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 ---
Sorry - I messed up building the installer. A correct version should be
available for download soon. In the meantime if you download the zip version
of the Windows binary and replace the php.exe on your machine with the one
from the zip (N.B. not the one in the cli folder) things should start
working.
Sorry again!
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
hay guyz
im stuck with graphs again ......
i am generating bar graphs in simple php code
now i have to replace these with "folor-full" pie charts in flash
i came accross 2 good flash pie-charts on the net but im clueless as
how i can integrate my php code with either one of these .....
n the one i like better has just these few lines for code:
// Copyright 2001 Zymotik.com
// Created by Ian Brown 3/7/2001
// Last Update: 5/7/2001
// set your colours!
// number of colours
colournum = 7;
// the colours in hex vars
// RRGGBB ( Hex Values! )
colour1 = 0x9CD3F5;
colour2 = 0x62B6F0;
colour3 = 0x0593E2;
colour4 = 0x0056C2;
colour5 = 0x004E9E;
colour6 = 0x003868;
colour7 = 0x002B47;
==========================================================
second flash pie chart:
stop();
// setup tooltip text field
this.fmtToolTip = new TextFormat();
this.fmtToolTip.font = "Arial";
this.fmtToolTip.size = 12;
this.createTextField("textToolTip", 1000, 0, 0, 1, 1);
this.textToolTip.autoSize = true;
this.textToolTip._visible = false;
this.textToolTip.border = true;
this.textToolTip.multiline = true;
this.textToolTip.selectable = false;
this.textToolTip.background = true;
this.textToolTip.backgroundColor = 0xFFFFE0;
newLabel = "";
newValue = "";
scale = 80;
n = 6;
rad = 200;
aValue = new Array(n);
aLabel = new Array(n);
for (var i = 0; i<n; i++) {
aValue[i] = 30+Math.random()*100;
aLabel[i] = "Label "+i;
}
attachMovie("panel", "panel", 3);
panel._x = 5;
panel._y = 5;
attachMovie("piegraph", "pg", 2);
pg._x = 400;
pg._y = 250;
pg._xscale = pg._yscale=scale;
pg.setRadius(rad);
function addNewSlice() {
var val;
if (newLabel == "" && newValue == "") {
val = Math.round(30+Math.random()*100);
pg.addSlice(val, "Label "+val);
} else {
val = parseFloat(newValue);
pg.addSlice(val, newLabel);
}
newLabel = "";
newValue = "";
}
function removeAllSlices() {
pg.removeAll();
}
function shrink() {
scale -= 10;
if (scale<10) {
scale = 10;
}
pg._xscale = pg._yscale=scale;
}
function grow() {
scale += 10;
if (scale>100) {
scale = 100;
}
pg._xscale = pg._yscale=scale;
}
function showLabels(bShow) {
pg.displayLabels(bShow);
}
function showToolTip(str) {
this.textToolTip.text = str;
this.textToolTip.setTextFormat(this.fmtToolTip);
this.textToolTip._x = this._xmouse;
this.textToolTip._y = this._ymouse-this.textToolTip._height;
this.textToolTip._visible = true;
}
function hideToolTip() {
this.textToolTip.text = "";
this.textToolTip._visible = false;
}
function isToolTipVisible() {
return this.textToolTip._visible;
}
==============================================================
now for my bar graphs code i pass "rprt_gf.php" 3 variables
1. title of hte graph
2. graph data
3. label == months
===============================================================
i cnt think of a proper and neat way to get about all this
i would really appriciate any ideas
thnx a million guyz .....
eternally stuck .......
toby ......
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
--- End Message ---
--- Begin Message ---
I have this script in the prepend directive.
<?
if (isset($REMOTE_ADDR))
$REMOTEADDR = $REMOTE_ADDR;
else
$REMOTEADDR = "";
if (isset($_SERVER["PATH_TRANSLATED"]))
$FILE = $_SERVER["PATH_TRANSLATED"];
else
$FILE = "";
if (isset($_SERVER["QUERY_STRING"]))
$QUERY = $_SERVER["QUERY_STRING"];
else
$QUERY = "";
if (isset($_SERVER["HTTP_USER_AGENT"]))
$USERAGENT = $_SERVER["HTTP_USER_AGENT"];
else
$USERAGENT = "";
error_log(date("m/d/Y
H:i:s")."\t".$FILE."\t".$QUERY."\t".$USERAGENT."\t".$REMOTEADDR."\r\n",3
,"e:\\errors\\perflogs\\".date("Ymd")."startperf.txt");
$TEMP = explode(" ",microtime());
$TIMINGstart = $TEMP[1] + $TEMP[0];
?>
This records the time that the script starts and a few other things and
writes them to a file.
A few days ago I got this error three times.
[19-Aug-2003 21:10:26] PHP Fatal error: Maximum execution time of 240
seconds exceeded in c:\php\include\begin.php on line 2
[19-Aug-2003 21:10:26] PHP Fatal error: Maximum execution time of 240
seconds exceeded in c:\php\include\begin.php on line 2
[19-Aug-2003 21:10:26] PHP Fatal error: Maximum execution time of 240
seconds exceeded in c:\php\include\begin.php on line 2
How could this script have gotten to line 2 and timed out? This script
runs all the time and has never done this before.
Windows 2000 Server SP2 IIS 5.0 PHP 4.3.2
I have these extensions enabled
extension=php_gd2.dll
extension=php_imap.dll
extension=php_mcrypt.dll
extension=php_mssql.dll
extension=php_openssl.dll
extension=php_pdf.dll
extension=php_pgsql.dll
extension=php_zip.dll
Charles Killmer
--- End Message ---
--- Begin Message ---
I have a sql command that returns more then one rows. I want to display one
record per page using NEXT to show the other records. Each page displaying
one record.
Help is appreciated.
Regards,
Harpreet Kaur
--- End Message ---