Re: [PHP] Re: php5 + php4 on same server

2003-07-25 Thread Volker
hi,

you also could run two static compiled versions of apache (if apache) with
php4 and 5 compiled in, but you need another ip-address to bind to - also
have to manage 2 apaches(not a problem or what? ,-).

sorry for my english.
volker
- Original Message -
From: "Comex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 12:42 AM
Subject: Re: [PHP] Re: php5 + php4 on same server


> <[EMAIL PROTECTED]>
> Comex:
> > <[EMAIL PROTECTED]>
> > Thomas Hochstetter:
> >> Hi guys.
> >>
> >> Sorry, i know that was discussed earlier this month ... i just looked
> >> for the posting again in the archives ... i could only find the
> >> question post ... but there was an answer.
> >>
> >> So, how do you setup the server again to have php4 run on the :80
> >> port and php5 on :8080 (apache server). Does it collide?
> >>
> >> Thanks
> >> Thomas
> >
> > I've done it... but you have to run one as CGI, one can be module or
> > CGI. To run one as CGI and one as module:
> >
> > LoadModule php5_module "/path/to/php4apache.dll"
> > ScriptAlias /php/ "/path/to/php4/folder/"
> > AddType application/x-httpd-php .php5
> > AddType application/x-httpd-php4 .php4
> > Action application/x-httpd-php4 /php/php.exe (I'm using windows)
> >
> > Or to run both as CGI:
> > ScriptAlias /php4/ "/path/to/php4/folder"
> > ScriptAlias /php5/ "/path/to/php5/folder"
> > AddType application/x-httpd-php .php5
> > AddType application/x-httpd-php4 .php4
> > Action application/x-httpd-php4 /php4/php.exe
> > Action application/x-httpd-php /php5/php.exe
>
> Oh, I'm stupid!  That is how you have .php5 as php5 and .php4 as php4...
if
> you're using virtual hosts, you just replace:
> AddType application/x-httpd-php4 .php4
> with:
> AddType application/x-httpd-php4 .php
>
> and put the AddType in the .
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Compile 4.3.2 Errors.

2003-05-31 Thread Volker Augustin
hi,
this sounds like a warning not like an error, your php is successfully
compiled...(most software i know an compile got this message.)
can you post a little bit more debug information?

volker

- Original Message -
From: "Alberto Ferrer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 31, 2003 3:16 PM
Subject: [PHP] Compile 4.3.2 Errors.


> Im compiling the last vercion of PHP 4.3.2 and says this after finish of
> compile.
> The system is a Redhat 7.3, Apache 1.3.27.
>
> ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
> /root/php-4.3.2/ext/mysql/libmysql/my_tempnam.c:115: the use of `tempnam'
is
> dangerous, better use `mkstemp'
>
>
>
> --
> --
> Alberto Ferrer
> [EMAIL PROTECTED]
>   http://www.barrahome.org
> --
> Syntax Error in KITCHEN.H: COFFEE not found.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
hi,
this is only a very fast response :))
is solved this kind of problem like that:
(quick solution for a chatboard - user cannot login for x seconds -
maxidletime)
/***two functions:**/

function logoutMsgBoardUser($UserName)

 global $MessageBoardTable,$SiteID;
 $DB=new connectDB();
 $actDate= date("Y-m-d H:i:s");
 $newMessage=addslashes($UserName)." logged out.";
 $host="System";
 $Query="update ".$MessageBoardTable."
  set logged_out='1' where
   name='".addslashes($UserName)."'
   and site_id='".$SiteID."'
   and logged_out!='1'
  ";
 $DB->Query($Query);
 $Query="insert into ".$MessageBoardTable."
(site_id,name,msg,created,host,archiv,aktiv,logged_out)
 values

  '".$SiteID."',
  '',
  '".$newMessage."',
  '".$actDate."',
  '".$host."',
  '0',
  '1',
  '1'
 )";
 $DB->Query($Query);
}

function getMsgBoardUserIdleTime($UserName)

 global $MessageBoardTable,$SiteID;
 $DB=new ConnectDB();
 $Query="select created from ".$MessageBoardTable."  where
site_id='".$SiteID."' and logged_out='0' and
name='".addslashes($UserName)."' and aktiv='1' order by id desc limit 1";
 $DB->Query($Query);
 if ($DB->next_record())

  $lastUserPost=$DB->Record['created'];
  $actDate= date("Y-m-d H:i:s");
  $Result=strtotime(date ($actDate))-strtotime($lastUserPost);
 } else

  $Result=0;
 }
 return $Result;
}
/***and the code... i think thats all**/
if ($msglogin=='1') {
 $newMessage=" entered the Messageboard";
 if (getMsgBoardUserIdleTime($MName) >0) {
  echo "Eine User mit diesem Namen ist bereits Online, bitte waehle einen
anderen...";
  $logged_out=true;
  $MName="";
 }
}

if (isset($MName) && $MName!="") {
 $MyIdleTime=getMsgBoardUserIdleTime($MName);
 if ($MyIdleTime > $MaxIdleTime) {
  logoutMsgBoardUser($MName);
  $logged_out=true;
  $MName="";
  echo " logged out by system after ".$MyIdleTime." seconds without saying
anything ;)";
 }
}

volker


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 4:11 AM
Subject: [PHP] trikky authentication question


> hi guys i have an authentication class , there is one last big issue to
> fix , i am trying to prevent multiple logins , it does this ok except ,
the
> first login gets kicked instead of the second one , i have a last_login
> date entry to work with , what else should i have so on the login check if
> the user is logged in , there is an issue using the logged in feature , ok
> u give it an interval of say 2 hours , this may prevent that person
> reloggin in for two hours right ?? :| , or say its a few minutes , i can
> log bak in after a few minutes and still kick the first login, what are my
> options
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
hmmm,
for me these few line are working well, user cannot login before
max-idletime is reached (i check the list every time an action is taken
on the board, if no user is online, i cant login forever and have to connect
as another user first ;)
thats all, you could check idletime for all users at the login window and
log them out if reached - before logging in 
volker

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, June 01, 2003 5:06 AM
Subject: RE: [PHP] trikky authentication question


> What if I accidentally close my browser and come back to log
> > in? The system will not let me because I'm still "logged_in" until X
> > minutes pass. Also with this method, you need to keep track of these
> > attempted log ins and somehow alert the first user.
>
> good question i'm checking this out atm :|
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] trikky authentication question

2003-06-01 Thread Volker Augustin
 i said that before!
 just a hint to think offany questions?
 volker
> - Original Message -
> From: "John W. Holmes" <[EMAIL PROTECTED]>
> To: "'Volker Augustin'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, June 01, 2003 5:48 AM
> Subject: RE: [PHP] trikky authentication question
> 
> 
> > > for me these few line are working well, user cannot login before
> > > max-idletime is reached (i check the list every time an action is
> > > taken
> > > on the board, if no user is online, i cant login forever and have to
> > > connect
> > > as another user first ;)
> >
> > And you call that a viable solution? That's ridiculous.
> >
> > ---John W. Holmes...
> >
> > Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
> >
> > PHP Architect - A monthly magazine for PHP Professionals. Get your copy
> > today. http://www.phparch.com/
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] File Upload on a MAC-Browser didn't work

2003-12-20 Thread Volker Dähn
Hi, 
 
The following script works on any browser on windows xp. But not on a mac
(osx)
It simply shows the temp-directoryname.
Is anybody out there who could help me to fix this problem?
How will the upload work with Safari?

Thanks for your help. 
 
This is the form for the upload:  
 
  
  
  
 
 
 
The following site checks the uplad and copies the file to a specific
folder:  
 
// if the Picture was uploaded  
if ($BildDatei!="" AND  
is_uploaded_file($_FILES['BildDatei']['tmp_name'])) {  
// Check for JPG  
if ($_FILES['BildDatei']['type']=='image/pjpeg') {  
// Move File  
$TestFile=$UserCoverDir.$ISBNFeld.".jpg";  
move_uploaded_file($_FILES['BildDatei']['tmp_name'], "$TestFile");  
}  
} else {  
echo "Save unsuccesfull";  
} 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: File Upload on a MAC-Browser didn't work

2003-12-23 Thread Volker Dähn
Hi Chris,

I already posted it as an SAFARI-ERROR to Apple.
Maybe you could do the same.
I think, it's more possible apple fixes the problem, the more error-messages
they get.

Actually i try to identify the situation in which the skript is echoing the
TMP-Directory.

This is the form for the upload:







The following site checks the uplad and copies the file to a specific
folder:

// if the Picture was uploaded
if ($BildDatei!="" AND
is_uploaded_file($_FILES['BildDatei']['tmp_name'])) {
// Check for JPG
if ($_FILES['BildDatei']['type']=='image/pjpeg') {
// Move File
$TestFile=$UserCoverDir.$ISBNFeld.".jpg";
move_uploaded_file($_FILES['BildDatei']['tmp_name'], "$TestFile");
}
} else {
echo "Save unsuccesfull";
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: File Upload on a MAC-Browser didn't work

2003-12-23 Thread Volker Dähn
Hi Chris,

I already posted it as an SAFARI-ERROR to Apple.
Maybe you could do the same.
I think, it's more possible apple fixes the problem, the more error-messages
they get.

Actually i try to identify the situation in which the skript is echoing the
TMP-Directory.

This is the form for the upload:







The following site checks the uplad and copies the file to a specific
folder:

// if the Picture was uploaded
if ($BildDatei!="" AND
is_uploaded_file($_FILES['BildDatei']['tmp_name'])) {
// Check for JPG
if ($_FILES['BildDatei']['type']=='image/pjpeg') {
// Move File
$TestFile=$UserCoverDir.$ISBNFeld.".jpg";
move_uploaded_file($_FILES['BildDatei']['tmp_name'], "$TestFile");
}
} else {
echo "Save unsuccesfull";
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: jpeg Uploader issue

2004-01-11 Thread Volker Dähn
Hi,

i had a problem like the one you descriped.
The problem was quite simple. In my case everything
worked fine with Windows-Web-Browsers but not with
MAC-Browsers.
Check the value of the filetype variable. There might be
differences between different plattforms.
Volker

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Unzip a file.

2003-11-17 Thread volker at multiartstudio dot de
tip, search php.net for zziplib

there are very useful hints and functions  from other users..
i found there everything i needed, but a class is somewhat 
bettersure.

regards,
volker
Raditha Dissanayake wrote:

For anyone playing around with zip files on a web application i hope 
you have updated your zip libraries there were some vulnerabilities in 
it recently.

Vincent M. wrote:

Kim Steinhaug wrote:

on phpclasses.org there is a ZIP class that does all you need to do.
Havnt got the time to give you the url right now, but look there.
All I found are classes to extract tar/gzip files:
http://www.phpclasses.org/search.html?words=zip&go_search=1&restrict=&method=and&sort=score 

Is there any I couldn't see ?

Thanks,
Vincent.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php