php-windows Digest 17 Sep 2003 04:39:25 -0000 Issue 1913
Topics (messages 21398 through 21401):
Re: php 4.3.3 / 4.1. - variable problem
21398 by: Wolfgang Schneider
ADO Connection problems
21399 by: Joe Mack
globals on globals off (ACK!!)
21400 by: Frank Tudor
Re: clearing cache ...... still not workin out
21401 by: toby z
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 ---
On Tue, 16 Sep 2003 18:35:30 +0200, Wolfgang Schneider wrote:
Hello everybody
sorry to bother you again .. but I found "the solution" to my
problem ...
>This worked without a problem with my previous php 4.1.2 .... but it
>displays and empty page under the new php 4.3.3 .... because the
>variables in the page are not being replaced by the values passed to
>them ...
>
>Does anyone have an idea what and where the difference in the two php
>versions is? and where I need to perhaps add something either in the
>php.ini file ?
Someone here wanted to play a "funny" on me and had changed the
setting concerning globals in php.ini while I was away from the PC
for a minute to get a cup of coffee ... :-) and was greaty
enjoying himself playing the "I don't know" fellow while I was so
sure that I had the correct settings and the thing would not work ...
As you can see, sometimes the "problem" is somewhere one might not as
easily suspect it ...
Have a good day!
Wolfgang
--- End Message ---
--- Begin Message ---
I am having problems making things happen in a Microsoft Access Database
that I am connecting to through an ADO Connection using PHP. I know a
little bit about PHP and how to code, but this is the first time I have
played around with the ADO Connection and Command objects.
I am getting no error messages or anything, but when I browse the database,
my changes are not being posted. Here is an example of what I am trying to
do. Hopefully, I am just missing a step along the way.
$dbFile = '\\\\SERVER\\FOLDER\\BackEnd.mdb';
$conn = new COM('ADODB.Connection');
$conn->Open("DRIVER=Microsoft Access Driver (*.mdb);DBQ=$dbFile");
$cmd = new COM('ADODB.Command');
$cmd->ActiveConnection = $conn;
$cmd->CommandText = "UPDATE TABLE1 SET FIELD1 = '$parm1' WHERE FIELD2 =
'$parm2';";
$cmd->Prepared = TRUE;
$RSet = $cmd->Execute();
Any assistance anyone can offer would be greatly appreciated. Thank you.
Joe
--- End Message ---
--- Begin Message ---
This is more for a linux group post but I know someone can
provide enlightenment on this issue.
I have the latest version of apache and php I have created my
entire sie in a foxserv environment on windows but my production
environment is on mandrake linux 9.1
The globals are set to off but i'll be damned if I know where I
can set them to on.
I found a php.ini-dist and a php.ini-recommended file but
changing these files does nothing.
can someone give me some give me a hand with this?
Thanks,
Frank
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
--- End Message ---
--- Begin Message ---
thnx piotr but nothing aint working
i have tried practically everything possible
so i went for the dirty thinggy .....
i have turned some browser settigns around in explorer .....
(my clients wont switch to another im sure :) )
i switched temporary internet files settings
-> check for newer versions of the page
-> auto to every visit to the page
and i have no choice but to there ma slef n change it for them .....
sometimes ...... i hate these dirty things i have to do ......
thnx a mill for ur help pal ..... :)
toby
--- Piotr Pluciennik <[EMAIL PROTECTED]> wrote: > I think the
problem is in the code mentioned below.
>
> <table width='100%' border='0'>
> <tr><td> </td></tr>
> <tr><td> </td></tr>
> <tr> <td align='center'>
> <img src=abc.jpg>
> </td> </tr>
> </table>
> ");
>
> You are creating a file abc.jpg, then showing it to
> the client via the link. You are not sending any
> headers regarding this jpg file.
>
> Try this way - create graph generating php file:
>
> graph.php file:
> **************************************************
> <?php
> Header("Content-type: image/jpeg");
> Header("Expires: Fri, 10 Jun 1976 07:00:00 GMT");
>
> $pth = "abc.jpg";
> $im = imagecreatefromjpeg($pth);
>
> // some operations with your image - create your graph
>
> Imagejpeg($im); // send to the client
> ImageDestroy($im); // free resources
> ?>
> **************************************************
>
> then in your html try to place such generated image:
>
> <IMG SRC='graph.php?if needed - your parameters'
> WIDTH='width' HEIGHT='height' BORDER='0'>
>
> Headers will be sent and your graph will be reloaded.
>
> It's based on a real world :-) working program i wrote
> long ago. I've changed only type gif to your jpeg...
> so check exactly functions names.
>
> HTH, let me know
> Piotr
>
>
> --- toby z <[EMAIL PROTECTED]> wrote:
> > heres my code pitor
> > for generate_graph.php
> >
> > this file is included in all query files ......
> >
> >
> > =======================
> >
> >
> > // ma data
> >
> > $max_data = count($gfData);
> >
> > for ($k = 0; $k < $max_data; $k++)
> > {
> > //$arrData[$k] = $gfData[$k] * $factor ;
> > $data[$k] = $gfData[$k] ;
> > }
> >
> >
> >
> >
> > // Create the Pie Graph.
> > $graph = new PieGraph(650,400,"auto");
> > $graph->SetShadow();
> >
> >
> > //split title :P:P:P ! ! ! !
> >
> > $newStr="";
> >
> > $newStr = explode( "/r/n", $title );
> >
> > $graph->title->Set("$newStr[0]");
> > $graph->subtitle->Set("$newStr[1]");
> > $graph->title->SetFont(FF_VERDANA,FS_BOLD,18);
> > $graph->title->SetColor("darkblue");
> > $graph->legend->Pos(0.1,0.2);
> >
> > // Create 3D pie plot
> > $p1 = new PiePlot3d($data);
> > $p1->SetTheme("sand");
> > $p1->SetCenter(0.4);
> > $p1->SetSize(150);
> >
> > // Adjust projection angle
> > $p1->SetAngle(45);
> >
> > // Adjsut angle for first slice
> > $p1->SetStartAngle(45);
> >
> > // Display the slice values
> > $p1->value->SetFont(FF_ARIAL,FS_BOLD,11);
> > $p1->value->SetColor("navy");
> >
> > // Add colored edges to the 3D pie
> > // NOTE: You can't have exploded slices with edges!
> > $p1->SetEdge("navy");
> >
> >
> > for ($i = 0; $i < $max_data; $i++)
> > {
> > if ($arrData[$i] > $max_value)
> > $max_value = $arrData[$i];
> >
> > if ( strlen($label[$i]) > $max_label_width )
> > $max_label_width = strlen($label[$i]);
> >
> > $p1->SetLegends($label);
> >
> > $ttl_rkrdz = array_sum($gfData);
> > }
> >
> >
> > $graph->Add($p1);
> > $graph->Stroke("abc.jpg");
> >
> > echo("
> > <table width='100%' border='0'>
> >
> > <tr><td> </td></tr>
> > <tr><td> </td></tr>
> > <tr> <td align='center'>
> > <img src=abc.jpg>
> > </td> </tr>
> > </table>
> >
> > <br><br><br>
> > ");
> >
> >
> >
> > $table_text = "<table align='center'
> > border='0'><tr><td
> > align='center'> </td></tr>
> >
> > <tr><td align='center'></td></tr><tr><td
> > align=center ><br><table
> > border=4><tr>";
> >
> >
> >
> > for ($i = 0; $i < $max_data; $i++)
> > {
> > if ($arrData[$i] > $max_value)
> > $max_value = $arrData[$i];
> >
> > if ( strlen($label[$i]) > $max_label_width )
> > $max_label_width = strlen($label[$i]);
> >
> > $table_text = $table_text . "<th> " . $label[$i] .
> > " </th>";
> > $ttl_rkrdz = array_sum($gfData);
> >
> > }
> > $table_text = $table_text . "</tr>";
> > $table_text = $table_text . "<tr>";
> >
> >
> > for ($i = 0; $i < $max_data; $i++)
> > {
> >
> > $table_text = $table_text . "<td style=
> > \"font-family: $font\" >" .
> > $gfData[$i] . "</td>";
> >
> >
> > }
> > $table_text = $table_text . "</tr>
> > </table></td></tr>
> > <tr>
> > <td style= \"font-family: $font\"> </td>
> > </tr>
> > <tr><td> </td></tr>
> >
> > <tr> <td>
> > <table border='4' align=center>
> > <tr>
> > <th width='50%' valign='center' style=
> > \"font-family: $font\">
> > Total Records </th>
> > <td width='50%' valign='center' style=
> > \"font-family: $font\">
> > $ttl_rkrdz </td>
> > </tr>
> > </table>
> > </td>
> > </tr>
> > <tr><td> </td></tr>
> > <tr><td> </td></tr>
> > <tr><td> </td></tr>
> > ";
> >
> > echo($table_text);
> >
> >
> > =========================================
> >
> >
> > thnx a mill again
> >
> > toby
> >
> >
> > --- Piotr Pluciennik <[EMAIL PROTECTED]> wrote:
> > > How do you send
> > this file generated graph to the
> > > client browser?
> > > Are you using one of the functions ImagePNG(),
> > > ImageWBMP(), ImageJPEG()
> > > or
> > > are you presenting a link to your graph in php
> > > generated html output?
> > >
> > > Piotr
> > >
> > > --- toby z <[EMAIL PROTECTED]> wrote:
> > > > thnx guyz
> > > >
> > > > but i have tried
> > > >
> > > > header("Expires: Mon, 26 Jul 1997 05:00:00
> > GMT");
> > > > // Date in the
> > > > past
> > > > header("Last-Modified: " . gmdate("D, d M Y
> > H:i:s")
> > > > . " GMT"); //
> > > > always modified
> > > > header("Cache-Control: no-store, no-cache,
> > > > must-revalidate"); //
> > > > HTTP/1.1
> > > > header("Cache-Control: post-check=0,
> > pre-check=0",
> > > > false);
> > > > header("Pragma: no-cache");
> >
> > > > // HTTP/1.0
> > > >
> > > >
> > > > and it aint working either .....
> >
> === message truncated ===
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---