php-windows Digest 25 Sep 2002 13:04:44 -0000 Issue 1356
Topics (messages 15987 through 15999):
session under windows
15987 by: Antonello Oliveri
15999 by: Rich Gray
how can I run jpgraph in WinXP correctly?
15988 by: devuser
which smtp server can I install in windows used only myself?
15989 by: devuser
15992 by: Steve Yates
IIS/Apache in window
15990 by: devuser
Array issue
15991 by: Kit Kerbel
15994 by: Ignatius Reilly
Re: @include ...
15993 by: Ozcan Dogan
about session
15995 by: Sichta Daniel
15997 by: Matt Kynaston
Cannot find cookie!!!!!HELP
15996 by: Sjaak
fulltext search through a pdf doccument .....
15998 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 ---
I've istalled PHP ver. 4.2.3 on two Windows98SE machines and on a WindowsXP
machine all running PWS 4.0 and/or Apache 1.3.22.
Sessions seem not work. correcly. PHP write the file
ss_xxxxxxxxxxxxxxxxxxxxxxxx the first time and then it' doesn't update it
and variables registered are not rescued and initializad to the correct
value, in other words they are not setted.
I tried different configuration of the php.ini according with directives
from www.php.net . and giving ( to be sure ) to run the different examples
about session publishet on the official site.
This is the content of the Session section:
[Session]
session.save_handler=user
session.save_path=C:\windows\temp
session.use_cookies=1
session.name=PHPSESSID
session.auto_start=1
session.cookie_lifetime=0
session.cookie_path=/
session.cookie_domain=
session.serialize_handler=php
session.gc_probability=1
session.gc_maxlifetime=1440
session.referer_check=
session.entropy_length=0
session.entropy_file=
session.cache_limiter=nocache
session.cache_expire=1
session.use_trans_sid=1
url_rewriter.tags="a=href,area=href,frame=src,input=src,form=fakeentry"
Alternative checked and unckecked track_vars and register_globals
directives without any results....
this simple code:
<?php
if (!session_is_registered('count')) {
session_register("count");
$count = 0;
}
else {
$count++;
}
?>
working perfectly under RedHatLinux7.3 with 4.1.x PHP doesn't work on any
Windows platform I tested.... ( the page is blank )..
I'm thinking it's most probably a bugs or a undocumented features for
windows...but it makes de-facto unusable PHP on windows..
Some ideas ? Some particular attention o tricks for configuring php.ini ....
some directives in http.conf ? some workaround for PWS4.0...or BUG?...or
I'm stupid ? ( another most valuable choose )
Thanks in advance,
PS:Apache load PHP as module ... PWS use PHP as CGI
--- End Message ---
--- Begin Message ---
Where's the session_start()?
You need it on every page that is gonna use session vars I think..
Rich
-----Original Message-----
From: Antonello Oliveri [mailto:[EMAIL PROTECTED]]
Sent: 24 September 2002 18:27
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] session under windows
I've istalled PHP ver. 4.2.3 on two Windows98SE machines and on a WindowsXP
machine all running PWS 4.0 and/or Apache 1.3.22.
Sessions seem not work. correcly. PHP write the file
ss_xxxxxxxxxxxxxxxxxxxxxxxx the first time and then it' doesn't update it
and variables registered are not rescued and initializad to the correct
value, in other words they are not setted.
I tried different configuration of the php.ini according with directives
from www.php.net . and giving ( to be sure ) to run the different examples
about session publishet on the official site.
This is the content of the Session section:
[Session]
session.save_handler=user
session.save_path=C:\windows\temp
session.use_cookies=1
session.name=PHPSESSID
session.auto_start=1
session.cookie_lifetime=0
session.cookie_path=/
session.cookie_domain=
session.serialize_handler=php
session.gc_probability=1
session.gc_maxlifetime=1440
session.referer_check=
session.entropy_length=0
session.entropy_file=
session.cache_limiter=nocache
session.cache_expire=1
session.use_trans_sid=1
url_rewriter.tags="a=href,area=href,frame=src,input=src,form=fakeentry"
Alternative checked and unckecked track_vars and register_globals
directives without any results....
this simple code:
<?php
if (!session_is_registered('count')) {
session_register("count");
$count = 0;
}
else {
$count++;
}
?>
working perfectly under RedHatLinux7.3 with 4.1.x PHP doesn't work on any
Windows platform I tested.... ( the page is blank )..
I'm thinking it's most probably a bugs or a undocumented features for
windows...but it makes de-facto unusable PHP on windows..
Some ideas ? Some particular attention o tricks for configuring php.ini ....
some directives in http.conf ? some workaround for PWS4.0...or BUG?...or
I'm stupid ? ( another most valuable choose )
Thanks in advance,
PS:Apache load PHP as module ... PWS use PHP as CGI
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
It can run correctly in Linux.
But I can not run it in WinXP correctly. Who can help me?
first error is the font.
--- End Message ---
--- Begin Message ---
I run php and apache , mysql in my laptop.
and it only used for myself.
I want install a smtp server in my laptop.
which smtp server can I install?
--- End Message ---
--- Begin Message ---
Mercury (www.pmail.com) can be set to only accept SMTP mail from a
specific IP address. Set it for 127.0.0.1 and then send your mail to
'localhost'.
- Steve Yates
- He who laughs last probably made a backup.
~ Do you like my taglines? Add them to your messages and
~ laugh through hundreds more by downloading Taglinator
~ at www.srtware.com today!
--- End Message ---
--- Begin Message ---
PHP runs more slowly in window with IIS than Apache.
Do you think so?
--- End Message ---
--- Begin Message ---
I have this in my code:
<input type="checkbox" name="tack[]" value="<?echo
odbc_result($rs3,"dTackID");?>">
I'm passing this to a javascript function like this to check all checkboxes:
onClick="this.src = check(document.forms[0].elements['horse[]'],
document.forms[0].elements['trailer[]'],
document.forms[0].elements['tack[]'])"
My problem is this...if there are two horse/trailer/tack checkboxes on the
page...it will check/uncheck them fine. However, if there is only one
element in the array when passed in, it will do nothing to the checkbox. No
errors show up or anything, just nothing happens to the lone checkbox.
Here is the javascript code for those interested:
<SCRIPT LANGUAGE = "JavaScript">
var checkflag = "false";
function check(field, field1, field2)
{
if (checkflag == "false")
{
if(field)
{
for (i=0; i<field.length; i++)
{field[i].checked = true;}
}
if(field1)
{
for (i=0; i<field1.length; i++)
{field1[i].checked = true;}
}
if(field2)
{
for (i=0; i<field2.length; i++)
{field2[0].checked = true;}
}
checkflag = "true";
return "images/button_unselectall.gif";
}
else
{
if(field)
{
for (i=0; i<field.length; i++)
{field[i].checked = false;}
}
if(field1)
{
for (i=0; i<field1.length; i++)
{field1[i].checked = false;}
}
if(field2)
{
for (i=0; i<field2.length; i++)
{field2[i].checked = false;}
}
checkflag = "false";
return "images/button_selectall.gif";
}
}
</script>
If you can help that would be great, thanx in advance,
Kit
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--- End Message ---
--- Begin Message ---
Are you sure about this checked() function? Is it a custom function of your own?
Methinks the standard way to check/ uncheck a checkbox would be:
document.myform.mycheckboxfield.checked = true ; (or false)
HTH
Ignatius
--------------------------------------------------------------------------------
----- Original Message -----
From: Kit Kerbel
To: [EMAIL PROTECTED]
Sent: Wednesday, September 25, 2002 4:26 AM
Subject: [PHP-WIN] Array issue
I have this in my code:
<input type="checkbox" name="tack[]" value="<?echo
odbc_result($rs3,"dTackID");?>">
I'm passing this to a javascript function like this to check all checkboxes:
onClick="this.src = check(document.forms[0].elements['horse[]'],
document.forms[0].elements['trailer[]'],
document.forms[0].elements['tack[]'])"
My problem is this...if there are two horse/trailer/tack checkboxes on the
page...it will check/uncheck them fine. However, if there is only one
element in the array when passed in, it will do nothing to the checkbox. No
errors show up or anything, just nothing happens to the lone checkbox.
Here is the javascript code for those interested:
<SCRIPT LANGUAGE = "JavaScript">
var checkflag = "false";
function check(field, field1, field2)
{
if (checkflag == "false")
{
if(field)
{
for (i=0; i<field.length; i++)
{field[i].checked = true;}
}
if(field1)
{
for (i=0; i<field1.length; i++)
{field1[i].checked = true;}
}
if(field2)
{
for (i=0; i<field2.length; i++)
{field2[0].checked = true;}
}
checkflag = "true";
return "images/button_unselectall.gif";
}
else
{
if(field)
{
for (i=0; i<field.length; i++)
{field[i].checked = false;}
}
if(field1)
{
for (i=0; i<field1.length; i++)
{field1[i].checked = false;}
}
if(field2)
{
for (i=0; i<field2.length; i++)
{field2[i].checked = false;}
}
checkflag = "false";
return "images/button_selectall.gif";
}
}
</script>
If you can help that would be great, thanx in advance,
Kit
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
At 07:01 AM 25/09/2002, Wolfgang Schneider wrote:
>What's the difference between these:
>(1) @include("../lang/english/trad4all.inc.php");
>(2) include("../lang/english/trad4all.inc.php");
>
>What does the "@" indicate in fron of the "include" ? Anyone have any
>clue?
tells the server to ignore any errors generated by php
Regards,
Ozcan
___________________________________________________________________
Ozcan Dogan | E-mail: [EMAIL PROTECTED]
Information Technology Officer | Tel: +61 3 8344 7929
Faculty of Engineering, Room G47 | Fax: +61 3 9347 2480
The University of Melbourne | http://www.eng.unimelb.edu.au
Victoria 3010, Australia |
___________________________________________________________________
--- End Message ---
--- Begin Message ---
Hi,
env: WXP prof, php 4.12
I need to destroy session on <body onUnload=""> . Only way I can do it (so
far) is opening new small window on unload event and in this new window I
call session_destroy. Is there any other way ?
DS
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.swh.sk <http://www.swh.sk/>
ICQ:84700861
--- End Message ---
--- Begin Message ---
The browser doesn't communicate anything to the server when the page
unloads, so it's difficult... Have a look at register_shutdown() - you can
use that to call a function when the page finishes processing (or the user
hits 'stop') - not the same as the unload event, but as close as you'll get.
But why do you need to do this? Why can't the script destroy the session
earlier?
Matt
> -----Original Message-----
> From: Sichta Daniel [mailto:[EMAIL PROTECTED]]
> Sent: 25 September 2002 07:31
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] about session
>
>
> Hi,
>
> env: WXP prof, php 4.12
>
> I need to destroy session on <body onUnload=""> . Only way I
> can do it (so
> far) is opening new small window on unload event and in this
> new window I
> call session_destroy. Is there any other way ?
>
> DS
>
> mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> http://www.swh.sk <http://www.swh.sk/>
> ICQ:84700861
>
>
>
--- End Message ---
--- Begin Message ---
Dear all,
I have a windows 2000 server with IIS5 and Latest version of PHP.
When i use the beneath script i get the following result:
(at the webserver i open IE and type....:)
http://localhost/info.php >>>>>> He find's the COOKIE
http://www.mywebsite.com/info.php He does not find the COOKIE???????????
Please help me...
Script:
============================================================================
=====================
<?php
//Verbinding maken met de database
include("db/beheer/dbconnect.php");
setcookie('test','Dit komt uit een cookie!!',time(0)+3600,'/','',0);
echo "<br><table align='center'><tr><td><font
size='+1'><b>Openingstijden:</b></font></td></tr></table><br>";
$query = mysql_query ("SELECT * from openingstijden");
echo "<table align='center' border='1'>";
echo
"<tr><td><b>Nr.</b></td><td><b>Vestiging</b></td><td><b>Maandag</b></td><td>
</td></tr>";
//$teller = 1;
while ($row = mysql_fetch_array ($query))
{
echo "<tr><td>".$teller."</td>";
echo "<td>";
if ($row['vestigingid'] == 1)
{
echo "Trio woonplaza / Profijtmeubel";
}
if ($row['vestigingid'] == 2)
{
echo "Trendhopper Druten";
}
if ($row['vestigingid'] == 3)
{
echo "Trendhopper Arnhem";
}
echo "</td>";
echo "<td>van ".$row['maandagopen']." tot ".$row['maandagsluiten']."</td>";
$teller = $teller+1;
echo "</tr>";
}
echo "</table>";
if (empty($HTTP_COOKIE_VARS))
{
echo "<br><center><b>KAN GEEN COOKIE VINDEN :-(</b></center>";
}
else
{
$cookie = $HTTP_COOKIE_VARS["test"];
echo "<br><center><b>COOKIE GEVONDEN!! inhoud = ".$cookie."</b></center>";
}
?>
--- End Message ---
--- Begin Message ---
hi guyz ....
i no this is the rong mailing list for this but im
pretty desprete ... so plz pardon me ....
i ve to search a pdf doccument through fulltext and
there r some images containg text which are to be
included in this search
i know this is possible since they search through pdf
doccuments on the net all the time through search
engines and all but
how can i perform a fulltext search inside my site
which has these pdf doccuments stored in mysql
(4.0.1-alfa) ?????
id b eternally gratefull if anyone cud help me .....
thnx a zillion ....
toby ....
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---