php-windows Digest 7 Mar 2003 21:44:54 -0000 Issue 1623
Topics (messages 18889 through 18909):
Re: I am having probles getting apache to work with php
18889 by: Thomas
basic sessions...
18890 by: venu gopal
18891 by: Rich Gray
18895 by: Radovan Radic
18896 by: Jill.Ramonsky.Aculab.com
18897 by: Stephen Edmonds
Re: WIN 2000 ACCESS VIOLATION PROBLEMS
18892 by: Jill.Ramonsky.Aculab.com
Re: MySQL Table Locks
18893 by: fran.thomas.barclays.co.uk
18894 by: Rich Gray
Develope a Windows PHP Extension.
18898 by: Brian 'Bex' Huff
Not rhetorical: Why upgrade php when current version is working fine?
18899 by: Beach, Jim
18905 by: John Lim
18908 by: Christoph Grottolo
serial interface
18900 by: Simon Bauer
Im almost there just a little more help
18901 by: Stephen K Knight
18906 by: Thomas
Re: Can anyone share an LDAP authentication script!!
18902 by: Shaffin Bhanji
405 - Method Not Allowed
18903 by: Chris Morris
Recursive function within a class
18904 by: Olafsson
18907 by: Thomas
PHP and DB2 on AS400
18909 by: Sridhar Moparthy
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 ---
dont use Windows ME!!!!
"Stephen K Knight" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am currently running on a Windows Box the OS is ME
> I have installed apache 2.0.44 and I have downloaded the newest PHP
download
> for windows.
> I have read the configuration manual repeatedly for getting the php into
the
> apache httpd.conf doc file. but I still cannot get php to be recognized.
>
> Can anyone help me with this?
>
--- End Message ---
--- Begin Message ---
I am developing an intranet website using
programming tool - php 4.1.1 running as a module,
HTML, Javascript.
webserver - apache 1.3.x.
browser - Internet Explorer 5.0 / Netscape 6.2
platform - Windows 2000.
I am having problems with sessions. i am not able to
understand what's
wrong with following fragment of code.
first.php
<?php
session_start();
if(!isset($_SESSION['count']))
$_SESSION['count']=0;
else
$_SESSION['count']++;
?>
I am having a link to next.php from this page.
next.php
<?php
if(!isset($_SESSION['count']))
echo "variable not set";
else
echo $_SESSION['count'];
?>
the output of the above code in next.php when loaded
is "variable not set" why is it so, do i need to make
any changes in the php.ini or is it something to do
with the browser. I had browsed through the archive
and refered "[PHP-WIN] newbie Basic sessions..." but
it didn't help me much.
I also tried with session.use_tras_sid "On" and "Off"
even that didn't work.
kindly guide me in this regard.
following are the session settings in php.ini.
register_globals = Off
session.save_handler = files
session.save_path = c:/temp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = c:/cookies
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 = 180
session.use_trans_sid = 1
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"
venugopal
Advanced Micronic Devices Ltd.
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--- End Message ---
--- Begin Message ---
> I am developing an intranet website using
> programming tool - php 4.1.1 running as a module,
> HTML, Javascript.
> webserver - apache 1.3.x.
> browser - Internet Explorer 5.0 / Netscape 6.2
> platform - Windows 2000.
>
> I am having problems with sessions. i am not able to
> understand what's
> wrong with following fragment of code.
>
You need a session_start() on every page that needs to examine/update
$_SESSION[] ...
Rich
--- End Message ---
--- Begin Message ---
>
> You need a session_start() on every page that needs to examine/update
> $_SESSION[] ...
>
> Rich
BTW, why is autostart_session default to off in php.ini ? Does it mean it is
not good that session autostarts on every page?
--- End Message ---
--- Begin Message ---
I don't know the answer to this, but one thought that springs to mind is
maybe it's considered "rude" to send cookies to people if you don't actually
need them.
I'm only guessing. Don't take this as definitive.
Cheers,
Jill
-----Original Message-----
From: Radovan Radic [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] basic sessions...
BTW, why is autostart_session default to off in php.ini ? Does it mean it is
not good that session autostarts on every page?
--- End Message ---
--- Begin Message ---
> ----- Original Message -----
> From: "Radovan Radic" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 2:40 PM
> Subject: Re: [PHP-WIN] basic sessions...
>
>
> > >
> > > You need a session_start() on every page that needs to examine/update
> > > $_SESSION[] ...
> > >
> > > Rich
> >
> > BTW, why is autostart_session default to off in php.ini ? Does it mean
it
> is
> > not good that session autostarts on every page?
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
Normally there is no point to starting a session on every page... it depends
on what your site is designed to do! Plus, it can become resource intensive
if you needlessly start sessions when they aren't used... Nothing to do with
being rude ;-)
Stephen
--- End Message ---
--- Begin Message ---
OK, no need to shout.
It's okay to speak in lower case, you know. We _can_ hear you.
Jill
-----Original Message-----
From: Daniel Masson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] WIN 2000 ACCESS VIOLATION PROBLEMS
RECENTLY I INSTALLED PHP ON A WIN 2000 AND WHEN THE WIN STARTS AND THE
IIS SERVICE STARTS AND PHP WORKS OK ... BUT AFTER SOME MINUTES OF BEING
UP , .. THE SCRIPT RESPONSES:
PHP has encountered an Access Violation at 0119295E
AND LATER THE PHP SCRIPTS ARE NOT ACCESIBLE ANY MORE THROUGH BROWSER,
AND FINALLY I GET FROM IE "THE PAGE CANNOT BE DISPLAYED"
THIS IS HAPPENING WITH 4.2.1 AND 4.3.0 INSTALLED AS IIS MODULE.
ANY IDEAS ABOUT HOW TO SOLVE THIS ???
--- End Message ---
--- Begin Message ---
Anyone any idea how to check whether a table is locked? In particular I use
FLUSH TABLES WITH READ LOCK before backup starts and want to know whether
this has happened.
Thanks in advance,
. : Fran Thomas
Internet communications are not secure and therefore the Barclays Group
does not accept legal responsibility for the contents of this message.
Although the Barclays Group operates anti-virus programmes, it does not
accept responsibility for any damage whatsoever that is caused by
viruses being passed. Any views or opinions presented are solely those
of the author and do not necessarily represent those of the Barclays
Group. Replies to this email may be monitored by the Barclays Group
for operational or business reasons.
--- End Message ---
--- Begin Message ---
> Anyone any idea how to check whether a table is locked? In
> particular I use
> FLUSH TABLES WITH READ LOCK before backup starts and want to know whether
> this has happened.
>
> Thanks in advance,
>
> . : Fran Thomas
Fran
I don't believe there is any method to show the lock status of a table -
well at least not one that can be queried at the SQL level... I guess you
could kludge it by using calls to GET_LOCK(),RELEASE_LOCK() instead ...
HTH
Rich
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The FIRST thing to do is make sure that you can compile PHP from scratch on Windows:
http://www.php.net/manual/en/install.windows.php#install.windows.build
The info on how to write your own extension to PHP is also online:
http://www.php.net/manual/en/zend.php
Basicly, making one on Windows is exactly the same as on Linux... except for the
fact that you do compiling with Visual STudio, and all the command-line tools
will have to be executed in Cygwin.
when installing 'Cygwin', you must specificly download the developer apps
'flex', 'bison', 'automake', and 'autoconf'. Otherwise, after you set up Visual
C++, it will complain about them not being available.
I always meant to write up a step-by-step doc on this... but I never found the
time ;)
- --
Brian 'Bex' Huff <[EMAIL PROTECTED]>
PGP Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5A06A150
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE+aL/KmexGJFoGoVARAtT8AKCuRZvadCMScV2epjNvqDkHLFwFpwCggfpA
jnM9mA+5yE7JEO3LTrEMrlo=
=lzGg
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
I imagine there are some people with opinions on this list so I'd really
appreciate some commentary and philosophy on this subject if you want.
Deride me if you must.
For the past 3 months I've been learning PHP using 4.06, Apache 1.3.20,
MySQL 3.23, all running smoothly on Win98. I downloaded a package
containing these versions configured to run on windows, so admittedly I
didn't have much configuring to do on my own. So far it's been
difficult, rewarding and fun.
Last week I decided to upgrade to the current package containing PHP
4.2.3, Apache 1.3.27, MySQL 4. No problems with the download and install
except now my php pages no longer connect to my database and I'm getting
some errors I never got before.
I've been able to fix some of the problems but others persist. I
understand that I need to read the manuals, check the forums and consult
the books I've been using. If I would take more time to do this I'd be
better off for it. I have done that to a considerable degree and have
learned a lot. But I'm also a little pressed for time and have an
exciting website I want to get launched.
So now I'm pondering why should I upgrade when what I had was working
just fine?
Jim
--- End Message ---
--- Begin Message ---
Hi
I think any version of PHP 4.0.6 is ok, provided you close all known
security holes.
I believe there are a few, you should check php.net for more info.
Regards, John
"Jim Beach" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I imagine there are some people with opinions on this list so I'd really
appreciate some commentary and philosophy on this subject if you want.
Deride me if you must.
For the past 3 months I've been learning PHP using 4.06, Apache 1.3.20,
MySQL 3.23, all running smoothly on Win98. I downloaded a package
containing these versions configured to run on windows, so admittedly I
didn't have much configuring to do on my own. So far it's been
difficult, rewarding and fun.
Last week I decided to upgrade to the current package containing PHP
4.2.3, Apache 1.3.27, MySQL 4. No problems with the download and install
except now my php pages no longer connect to my database and I'm getting
some errors I never got before.
I've been able to fix some of the problems but others persist. I
understand that I need to read the manuals, check the forums and consult
the books I've been using. If I would take more time to do this I'd be
better off for it. I have done that to a considerable degree and have
learned a lot. But I'm also a little pressed for time and have an
exciting website I want to get launched.
So now I'm pondering why should I upgrade when what I had was working
just fine?
Jim
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] (Jim Beach) wrote:
>For the past 3 months I've been learning PHP using 4.06, Apache 1.3.20,
>MySQL 3.23, all running smoothly on Win98. I downloaded a package
>containing these versions configured to run on windows, so admittedly I
>didn't have much configuring to do on my own. So far it's been
>difficult, rewarding and fun.
>
>Last week I decided to upgrade to the current package containing PHP
>4.2.3, Apache 1.3.27, MySQL 4. No problems with the download and install
>except now my php pages no longer connect to my database and I'm getting
>some errors I never got before.
Did you read about the register_globals change in 4.1.0? For severe
security reasons, the 'register_gobals' parameter is by default set to
off starting with version 4.1.0. This breaks many existing scripts,
you are still able to turn in back on in the newer versions (in
php.ini).
However, PHP5 will be released without register_globals - so you'll
have to correct your scripts anyway.
You'll find lots of posts about this issue in the mailing list
archives.
Christoph
--- End Message ---
--- Begin Message ---
Hello!
I have problems if i want to communicate with my serial interface.
someone told me to try with the COM functions, but i didn't find any
examples in the internet.
i hope someone can help me!
thanks
simon
--- End Message ---
--- Begin Message ---
Below is all of my code. The first is my html page that calls my php page.
I do not know php well enough to edit the code to make this work. I need
the image to go to a folder called "logos" on my C drive. The actual path
is:
C:\Program Files\Apache Group\Apache2\htdocs\logos
Could someone please make the changes to my code so that it will work!
Thank you Thank you!!!
********HTML Page***********
<html>
<form action="fileupload2.php" method=post enctype="multipart/form-data">
submit this file: <input type=file name="userfile"><br>
rename to: <input type=text name="newname"><br>
<input type=submit><br>
</form>
</html>
**********PHP Page *************
<?
if(!empty($userfile))
{
$abpath = "logos/" . $newname;
echo "FileUpload2.php";
echo $username;
echo $newname;
echo $abpath;
//copy the file
// copy($userfile, "$abpath");
//destroy the uploaded file
// unlink($userfile);
// write javascript to store the newname
// echo "<script language='javascript'>\n";
// echo "newname = '" . $newname . "';\n";
// echo "</script>\n";
}
?>
If someone could fix this I would greatly greatly apreciate it!
In Kindness
Stephen K Knight
--- End Message ---
--- Begin Message ---
remove all the //'s to start with
<?php
if(!empty($userfile))
{
$abpath = "logos/" . $newname;
// copy the file
copy($userfile, "$abpath");
//destroy the uploaded file
unlink($userfile);
// write javascript to store the newname
echo "<script language='javascript'>\n";
echo "newname = '" . $newname . "';\n";
echo "</script>\n";
}
?>
"Stephen K Knight" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Below is all of my code. The first is my html page that calls my php
page.
> I do not know php well enough to edit the code to make this work. I need
> the image to go to a folder called "logos" on my C drive. The actual path
> is:
> C:\Program Files\Apache Group\Apache2\htdocs\logos
>
> Could someone please make the changes to my code so that it will work!
> Thank you Thank you!!!
>
> ********HTML Page***********
> <html>
>
> <form action="fileupload2.php" method=post enctype="multipart/form-data">
> submit this file: <input type=file name="userfile"><br>
> rename to: <input type=text name="newname"><br>
> <input type=submit><br>
> </form>
> </html>
>
> **********PHP Page *************
> <?
>
> if(!empty($userfile))
> {
> $abpath = "logos/" . $newname;
>
> echo "FileUpload2.php";
> echo $username;
> echo $newname;
> echo $abpath;
>
> //copy the file
> // copy($userfile, "$abpath");
>
> //destroy the uploaded file
> // unlink($userfile);
>
> // write javascript to store the newname
> // echo "<script language='javascript'>\n";
> // echo "newname = '" . $newname . "';\n";
> // echo "</script>\n";
> }
>
> ?>
>
> If someone could fix this I would greatly greatly apreciate it!
>
> In Kindness
> Stephen K Knight
>
--- End Message ---
--- Begin Message ---
** PRIVATE **
Hello,
I am new to PHP and was wondering if anyone can share an LDAP
authentication script. I need a user to fill in a Username and Password
and need to check if the user exists in an LDAP database. If the user
exists let him/her proceed, else show the login screen again with the
username filled in addition to an LDAP error message...
Thanks for your help,
Shaffin.
Shaffin N. Bhanji
Technical Manager
Cambridge Technology Partners, the global eServices company of Novell,
Inc.
www.ctp.com
905.946.4817 | office
416.524.9520 | cell
905.940.2688 | fax
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I am running the latest version of PHP on Windows 2000 Server & the latest
version of Apache. I have a PHP script that is used to process a POST
request. Simple enough, right? Well, whenever thsi script is called, I get
a 405 Method Not Allowed error. The script is in a folder off of the
"htdocs" folder. Is this an Apache configuration issue? Anyone else
experienced this?
--- End Message ---
--- Begin Message ---
Hello
I´ve a small problem. I´ve created a class with serveal functions but when
I try to make a recursive function within the class it generates an error
Fatal error: Call to undefined function: getforum() in
C:\riddarinn\clsForum.php on line 55
Isn´t it possible to make a recursive functions within a class like this;
class cClass
{
function a($x)
{
...
a($y);
}
}
thanx
Oli
--- End Message ---
--- Begin Message ---
im not sure if i understand your question completely
but u can call a function in a class like so
classname::functionname($vars);
"Olafsson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello
>
> I´ve a small problem. I´ve created a class with serveal functions but
when
> I try to make a recursive function within the class it generates an error
>
> Fatal error: Call to undefined function: getforum() in
> C:\riddarinn\clsForum.php on line 55
>
> Isn´t it possible to make a recursive functions within a class like this;
>
> class cClass
> {
> function a($x)
> {
> ...
> a($y);
> }
> }
>
> thanx
> Oli
>
>
--- End Message ---
--- Begin Message ---
Hi,
Is it possible to access(run SQL queries on) DB2 database in AS400 from PHP
on Windows/Unix?
If so, how?
Could you please advise some positive and negative ( if any) to work with
DB2 and PHP?
Thank You in Advance,
Sridhar Moparthy
--- End Message ---