php-windows Digest 8 Dec 2001 15:36:46 -0000 Issue 891
Topics (messages 10801 through 10807):
Re: How to know how long a person stay
10801 by: Gerald Davis
urgent mail() function error
10802 by: Emad El-Din
10805 by: DL Neil
Security Question
10803 by: ajo.dpzone.com
Apache+PHP4 in Win95 OS, config. problem
10804 by: Kanchan Majumder
Re: Constructor functions
10806 by: John Lim
my MySQL hacked?
10807 by: G Schneider
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 ---
NEVER SAY it is impossible. Anything is possible
Michel the question is do you want to do the work needed?
1) setup a simple static "testbed" website. With index.html and 4-5
page1-5.html
2) setup the site to use the built in sessions feature of php4. If you
don't know what this is stop, and read manual or a good boook on php
3) don't call the pages directly. Create a script that is passed the page
you need as a variable.
i.e pages.php?p=index.html would grab the index.html page.
a) Have the script record the page, the "on time" (that is time page is
loaded first), and the session_id into a mysql database.
b) Have the script check to see if that session_id was on any other pages.
if so and there is no off-time then the on-time for this page is the
off-time for the old page.
c) Have the script parse the page and change all the direct links to
page.php links. I.e if the script sees page1.html it would change that to
page.php?p=page1.html
Now all your data is trapped in a mysql database
You should be able to write a simple script to extract it into some
meaningful reports, or a csv for further processesing.
ANYTHING is possible with PHP & MySQL.
Gerald
"Michel Laine" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I do not believe that this is possible, not as you would it to work
anyway.
> Something like this might be realized with sessions set to a very short
> timeout, but then your users might get pissed (due to the short timeout).
>
> Patrick Silva wrote:
>
> > Hello
> >
> > is it possible with PHP to know how much time a person stay on a web
page?
> >
> > thanks
> > /---------------------------------------------/
> > Patrick Silva
> > Gestion serveurs et domaines
> > Cyse Informatique
> > 105 avenue du Général Leclerc
> > 77400 Lagny sur marne (France)
> > tel : (33)1 64303232 - Fax : (33)1 64303222
> > tel : (33)5 55805498 - Fax : (33)5 55805499
> > E-mail : [EMAIL PROTECTED]
> > http://www.cyse.com
> > /---------------------------------------------/
>
> --
>
> Michel Laine
>
>
--- End Message ---
--- Begin Message ---
Hi all ,
I tried a lot to use the mail() function , but I'm always faced with an
error like this "Warning: Server Error in C:\apache\htdocs\mail.php on line
43".
I tried to get a script from the net, but it didn't work, I searched a lot
about this thing.
Do anyone have a solution?
I'm using Win98 with Apache webserver, and I'm connected to the internet.
--- End Message ---
--- Begin Message ---
Hi Emad - or is that "salaam"?
> I tried a lot to use the mail() function , but I'm always faced with an
> error like this "Warning: Server Error in C:\apache\htdocs\mail.php on line
> 43".
> I tried to get a script from the net, but it didn't work, I searched a lot
> about this thing.
> Do anyone have a solution?
> I'm using Win98 with Apache webserver, and I'm connected to the internet.
=where is your SMTP server (local or Internet)?
=what are the pertinent "SMTP" lines in the PHP.INI file?
=dn
--- End Message ---
--- Begin Message ---
PLEASE HELP!
Running PHP in Apache using the MODULE configuration.
Apache/1.3.14 (Win32) PHP/4.0.6 mod_ssl/2.7.2 OpenSSL/0.9.6 running.
With the following:
php_admin_flag safe_mode on
php_admin_value open_basedir c:/pr
php_admin_value doc_root c:/pr
php_admin_value user_dir c:/pr
IT SUCCESSFULLY blocks reads in directories other than c:/pr, but it DOES
NOT block unlinks (file deletion) outside of the c:/pr directory. So... My
users cannot read other users files, however they can delete anything they
want. Very strange. Is there a way (without using nt permissions) to block
the deleting of files like blocking the reading of files. With the above
configuration you CANNOT read from outside the c:/pr, but you can delete
files outside of it.
<?php
echo "Peace!";
//unlink ("c:/test.txt");// UNLINK WORKS (bad)
$fp = fopen ("c:/test.txt", "r"); // FAILS SECURITY CHECK (Good)
echo "Dude10";
?>
--- End Message ---
--- Begin Message ---
Hi All,
I had recently tried to configure php4.0.6 as apache(apache1.3.20) module in
my win95 OS
machine.
As per available php & apache documentation I had configured my both
apache and php. But when I tried to see phpinfo.php script at htdocs
directory, my browser opens up with a save as window. I had tried with
different articles, mainly with your's.But all in vain.please help me
to come out from this situation......
my configuration of httpd.conf for php4 is as below:-
LoadModule php4_module "c:/php/sapi/php4apache.dll"
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
<Directory "C:/Program Files/Apache Group/Apache/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride Options FileInfo
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm default.htm index.php
index.php3
</IfModule>
AddType application/x-httpd-php4 .php .phtml
AddType application/x-httpd-php4 .php3
with regards
Kanchan
--- End Message ---
--- Begin Message ---
Just set a class property instead of returning a value in your constructor.
Constructors do not return values.
Regards, John
Bharath Bhushan Lohray <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> how do i get the values returned by the constructor function ?
>
>
--- End Message ---
--- Begin Message ---
Okay, okay okay...
I got up this morning to discover that my MySQL server has had ALL its
databases DELETED except for the mysql.* one.
When looking in the mysql.user table, I discovered that there were now TWO
"root" users - except the new one required NO password.
Also, another root-access user had been given a twin (same username), but
requiring no password.
Into the bargain, all records on the mysql.db table had been erased.
Now what the HELL do you think caused this?
The server is protected by a firewall, running on IIS5/Windows2000, and
nope - nobody with root access gave their password away.
Could it have been a virus? This morning several viruses were cleared off
the hard-drive of the server (uploaded by members). Is there a virus that
can do this? If so, what is it?
Thankfully the MySQL server was not available for general use (to our
members) but was undegoing a sort-of 'testing period'. So nothing important
was lost. But I don't want to see this happen again! So can anybody shed any
light onto what could have caused this?!??!
Thanks,
- Jefferrs
(p.s. this post is being cross-posted to both alt.comp.lang.php and
alt.php.sql)
- Jefferrs
--- End Message ---