[PHP] Before to submission RFC datas

2007-11-30 Thread Norde-Amijkzegl Tomas


All of yous people, hi!

I seeing yesterday on the Googles for RFC 0001 so I asking
you to enforce you helping My head from pain before I submissioning
the Officials.

For before to submission RFC Datas to Ietf on List Proposals, I asking
much discussionality by Community.  I proposing smartly and goodly writed
RFC for banishment of Nigger peoples from internet in countries where
no internet for exist!!  If not by other Webs then by ASP PHP Java and
mores for Technologie it is so yesness?  Rightly I am knowing and You
welcome to be expected for helping this Me.  I not paying for You works.
Is beautiful for Open Source works like I giving back for some future year
when not for looking Microsoft.  I know you thinking Fucking Microsofts
like Me for.  Yes.

For stopping access of internet for some peoples, less fraud coming from
Nigeria, yes?  Banishing for ever maybe Great possibility but not needing.
Probably most long for be 1 year.  Then review for allowed back accessing.

Why me?  I having credit cardage stolen Informations on the Online place
from Nigeria like a lots many peoples.  So for stopping they are from
accessing Internet like life is for stopping them steal You Informations
from pants like Me.

Never I writing RFC before now time, so You are going to help Me for do
that right now while I sleep.

What I doing for submission this RFC Datas like PHP?  You putting all John
Handcock
(hi to American Friends! ;-) ) which is being You name on a Petition.  I not
paying.  For true?

Byes while You write to Me!!

Yes.

-Tomas

-- 
View this message in context: 
http://www.nabble.com/Before-to-submission-RFC-datas-tf4925553.html#a14097130
Sent from the PHP - General mailing list archive at Nabble.com.

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



[PHP] Hellos?

2007-11-30 Thread Norde-Amijkzegl Tomas

I for getting You helps on this Important Question?  RFC do not write itselfs
for Onlines.

Fastly responsing me for stopping accessing by make Law for RFC.  Then
Internet President stopping all accessing from Nigeria right soon.  Yes!

No more stolens of Identities and Passwords.  No more stolens of Credit
Cardings.  No more cryings.  No more Wifes leaving because You poor from
stolens of every Coin like Me have!!

What they doing?  Inventing Internet for only Nigeria their own?  I Laugh!!

Responsing Me now for help Me get RFC becomes Law.  Together we Friends stop
stolens life!!  Take back Your breath!!

Yes.

-Tomas
-- 
View this message in context: 
http://www.nabble.com/Hellos--tf4926170.html#a14099278
Sent from the PHP - General mailing list archive at Nabble.com.

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



[PHP] Why You doing no talks?

2007-11-30 Thread Norde-Amijkzegl Tomas

You normal responsing fastly, why not for Important Questions like I did for
post?

You must respond Me now so I can write RFC for stopping they accessing
Online right now!  Make no more days come!

Yes.

-Tomas
-- 
View this message in context: 
http://www.nabble.com/Why-You-doing-no-talks--tf4925962.html#a14098657
Sent from the PHP - General mailing list archive at Nabble.com.

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



[PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread Tomas Telensky

Hi,

Is there any possibility to trigger an action when the session is inactive
for some time? I need to log users' login and logout, and so I need to know
about logouts caused by timeout. Neither there seems to be a possibility 
of a workaround like walking through all my sessions for timeouted ones
and destroy them myself.

I have searched through the PHP doc and didn't found anything. So probably
this is a feature request. Where should I post it? PHP's bug reporting system,
unlike many common bug reporting systems, doesn't seem to distinguish
between bugs and feature requests.

I think this concept of being possible to define something like 
custom session destructor is obvious and useful enough to be worth
implementing to PHP.

Thanks for help,

Tomas

-- 
 No Software Patents! -- Allowing patents over software ideas will
seriously affect the Creativity, Productivity and Freedom of all.
Link: http://www.nosoftwarepatents.com/
--
Defend your freedom by signing a petition.
Link: http://petition.eurolinux.org/index_html?LANG=en

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



Re: [PHP] Trigger an action on session timeout - feature request?

2007-11-12 Thread Tomas Telensky

Hi,

this is obvious and is not related to the problem. I meant something
completely different - launch an action when PHP timeouts/destroys
particular session. Regardless of whether the user accesses the page or not.

(E.g. for the  need to close some records in database, but that's not
important)

Tomas


 You could simply validate the user with 
 
 session_start();
 $tbaged = false;
 if (isset($_SESSION['user_id'])) {
$user = new User($_SESSION['user_id']);
$tbaged = true;
 else {
$login = $_REQUEST['screename'];
$password = $_REQUEST['pword'];
$login = clean($login);
$password = clean($pword);
$user = checkLogin($login,$pword);
if (!is_null($user)) {
 $tbaged = true;
}
 }
 
 if (!$tbaged) {
session_destroy();
die(You are not logged in.);
 }
 
 
 
 
 -Original Message-
 From: Tomas Telensky [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 12, 2007 12:20 PM
 To: php-general@lists.php.net
 Subject: [PHP] Trigger an action on session timeout - feature request?
 
 
 Hi,
 
 Is there any possibility to trigger an action when the session is inactive
 for some time? I need to log users' login and logout, and so I need to know
 about logouts caused by timeout. Neither there seems to be a possibility 
 of a workaround like walking through all my sessions for timeouted ones
 and destroy them myself.
 
 I have searched through the PHP doc and didn't found anything. So probably
 this is a feature request. Where should I post it? PHP's bug reporting
 system,
 unlike many common bug reporting systems, doesn't seem to distinguish
 between bugs and feature requests.
 
 I think this concept of being possible to define something like 
 custom session destructor is obvious and useful enough to be worth
 implementing to PHP.
 
 Thanks for help,
 
   Tomas
 
 -- 
  No Software Patents! -- Allowing patents over software ideas will
 seriously affect the Creativity, Productivity and Freedom of all.
 Link: http://www.nosoftwarepatents.com/
 --
 Defend your freedom by signing a petition.
 Link: http://petition.eurolinux.org/index_html?LANG=en
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
 No Software Patents! -- Allowing patents over software ideas will
seriously affect the Creativity, Productivity and Freedom of all.
Link: http://www.nosoftwarepatents.com/
--
Defend your freedom by signing a petition.
Link: http://petition.eurolinux.org/index_html?LANG=en

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



[PHP] Re: Using constructs like unset() in expressions like ()()

2004-12-17 Thread Tomas Tintera
Richard Lynch wrote:
Perhaps something like this:

function my_unset($var){
 global $$var;
 $wasset = isset($$var);
 unset($$var);
 return $wasset;
}

my_unset(a); //unset($a);



Or, in a more general way:

function forcereturn ($php){
 return eval($php);
}


Damned if I understand *why* you want this, mind you. :-)
Thank you, Richard. That's what I am looking for.
Your first solution may not be usable, because the variable to unset may
not be a global variable. The second solution (that using eval()) may
have a bug, because the unset() is called in a local-scope of the
function forcereturn() (and so the variable unset()ted differs from
the variable that we really want to unset()).
However, there can be used eval() instead of forcereturn():
?php (True==False) or (eval('unset($a);')); ?
Nevertheless, this solution has defects for general use: A lot of
expressions with no return value can't be called with eval() (e.g.
eval('break;') is not a good idea).
However I don't say I need to use a break command. All I needed was
already said. Thank you.
--Tomas_Tintera
ps. I want it because it seems to be practical to write the whole
program in a one expression (usually composed of AND and OR
operators). And it's nice. When reading such a code, you can feel as
when reading poetry ;).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Using constructs like unset() in expressions like ()()

2004-12-16 Thread Tomas Tintera
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't be used as a
part of other expression; it can be only used as a stand-alone
statement), so I thing it could be good if there were some construct
which makes expression with return value from expression with no return
value.
It is not possible to use just
?php (True==False) or (unset($a)); ?
I have read the whole front section of the PHP manual (and a lot of the
rest) but haven't found a construct like that.
Is there such a construct in PHP? If there is, what is its name?
--Tomas_Tintera
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Using constructs like unset() in expressions like ()()

2004-12-16 Thread Tomas Tintera
Thanks for your answers (you probably don't understand me).
I am looking for some construct (or statement or function) which allows
to do this:
?php (True==False) or (construct_i_am_looking_for(unset($a))); ?
Note that the unset() has no return value (and so it can't be used as a
part of other expression; it can be only used as a stand-alone
statement), so I thing it could be good if there were some construct
which makes expression with return value from expression with no return
value.
It is not possible to use just
?php (True==False) or (unset($a)); ?
I have read the whole front section of the PHP manual (and a lot of the
rest) but haven't found a construct like that.
Is there such a construct in PHP? If there is, what is its name?
--Tomas_Tintera
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Using constructs like unset() in expressions like ()()

2004-12-15 Thread Tomas Tintera
Hi all.
Is there some construct, which evaluates any type of its parameter (like 
t_echo, t_unset) and returns some value with normal type (like 0)? What?

I would like to unset a variable in an operation like ()?unset():() and 
I can not use if because if does not return normal type of value 
(like 0 or 'a') and can not be used in operations like ()  ().

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


[PHP] different behaviour converting float to integer

2004-10-04 Thread Tomas Kuliavas

When php 5.0.2 converts float to integer, it uses biggest possible integer
value. Other php versions overflow and use negalive integers.

How to reproduce it:
echo (int)0xde120495;

Expected result (php 5.0.1, 4.3.9 and 4.1.2):

-569244523

Actual result (only php 5.0.2):
--
2147483647

Is this a standard behaviour of all future php versions or some error in php?

OS details: Linux Debian Sarge

PHP compilation details (vanilla php-5.0.2.tar.bz2):
./configure --disable-debug --with-apxs=/somepath/apache/bin/apxs
--prefix=/somepath/php
--with-config-file-path=/somepath/
--with-pcre-regex --enable-mbstring --enable-session --disable-all
--with-gettext=shared,/usr

php.ini details:
error_reporting=E_ALL
display_errors=on
register_globals=off
asp_tags=on
short_tags=off

Please CC to my email.
-- 
Tomas

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



[PHP] removing html attributes by preg_replace

2003-02-17 Thread Tomas Lehuta
hello!
could somebody please help me to build a regexp to strip some attributes
from html code?
i'd like to remove all class= attributes from html, but the example below
seems not match
i don't know what i'm doing wrong, this simply doesn't work!

?php
$html = 'A href=http://www.anywhere.com; class=link/A';
echo input:br.htmlspecialchars($html).hr;
$html = preg_replace(|(\w+[^]*) +class=\?.*\?([^]*)|iU, \\1\\2,
$html);
echo output:br.htmlspecialchars($html).hr;
?

input:
A href=http://www.anywhere.com; class=link/A
output:
A href=http://www.anywhere.comlink;/A

why this always removes 'class=' only???
thanx for any help

-lharp-
_
aurius media studio
http://www.aurius.sk




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




[PHP] list files in a dictory and its subdirectories

2003-02-03 Thread Tomas Vorobjov
hey!

this is the code I'm using to get into array all filenames in a directory:


$mydir = mydir //the directory name
$output_file = fopen($data_file, w);
$begin = ?
\$files_name = array(;

fwrite($output_file, $begin);

$output_file = fopen($data_file, w);
if ($handle = opendir('./$mydir/')) {
while (false !== ($filename = readdir($handle))) {
if ($file != .  $filename != ..) { // !is_dir($filename)
can be added
$element = \$filename\,;
fwrite($output_file, $element);
}
}
closedir($handle);
}
fwrite($output_file,\\);\r\n);
fwrite($output_file, ?);
fclose($output_file);

chmod($output_file, 0777); //to preview

echo the list has been succesfully created;


now, how can I make the script to look into subdirectories of ./$mydir/
and output also those filenames into the same or another array?

thank you

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




[PHP] Hi!!

2002-12-16 Thread Tomas Lopez
Hi ALL!

I'm new on PHP (just a few mounths) and i'm learning , my problem is that i 
dont have good projects to do., can someone tell me where can i enroll in a 
good proyect o someone to help..

Thank you so much.

Tomas Lopez

_
MSN. Más Útil Cada Día http://www.msn.es/intmap/


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



[PHP] Problems with sessions

2002-10-30 Thread Tomas Kubis
Hello,
 I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On

I have two sripts:

first.php
?
session_start();
$ID = $txtusername . md5(microtime());
session_register('ID');
...

Header(Location: second.php);
?

second.php

?
.
.SELECT uzivatel from uzivatele WHERE md_hash='$ID';
?

In second.php ID is empty; but in previous version of php work it ok??

thanks
Tomas Kubis



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




[PHP] problem with global vars

2002-10-30 Thread Tomas Kubis
Hello,
 I have big problem. I upgraded PHP from 4.1.2 to 4.2.3 and my scripts with
doesn´t work. Please help me!
in php.info register globals=On

For example I have one script:
first.php
?
global $a;
$a=150;
Header(Location: second.php);
?

second.php

?
echo $a;
echo $GLOBALS['a'];
echo END;
?

Where I have a bug?

Thank you very much

Tomas Kubis



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




[PHP] Discarded extension on file download

2002-04-19 Thread Tomas Mikulecky

Hi

I am trying to offer downloading files from a web server, using PHP.

The files are gzipped text and have all .txt.gz extensions. Now while on
Windows systems both IE and Netscape offers to download it under the
full name (althought IE adds [some_number] to the base of the file
name), under Unix or Linux systems (tested with netscape 4.7) the '.gz'
part is discarded from the file name and the file is saved with .txt
only. Downloaded file is still gzipped.

The part of script serving the files is as follows:

header(Content-type: application/octet-stream);
header(Content-Disposition: attachment; filename=$my_filename);
echo($file_body);

What am-I doing wrong? Thanks in advance

Tom


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




[PHP] PHP as offline tool?

2001-09-16 Thread Tomas Valusek

Hello,

I'd like to create a series of web pages and burn them to CD. To achieve a
unified layout of these pages, I'd like to use PHP to generate them. I'm
working on Win98 with no web server installed and a dial-up connection to
net. What's the php.exe's command line syntax? I can't find it in the
manual.

Thanks for any help.

Tomas Valusek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP as offline tool?

2001-09-16 Thread Tomas Valusek

Hello,

thank you for your help - I could get all the switches of PHP executable by
using a -? switch. It's just pity they aren't documented in manual ...

Tomas Valusek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] General info about sessions?

2001-09-16 Thread Tomas Valusek

Hello,

where can I find an introduction to sessions in PHP? They are mentioned in
manual for example in a Serializing objects - objects in sessions section,
but there toesn't seem to be any section covering sessions in general. How
they work? Where to use this feature?

Tomas Valusek



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] redirect to another page in PHP???

2001-07-20 Thread Tomas

I add this way to the list:

header(Refresh: 0;url=$myurl); (it´s really the same that using META
tag!)

Ok, I want to make you note that:
1)  echo META HTTP-EQUIV='Refresh' CONTENT='0; URL=$myurl';
2)  header(Refresh: 0;url=$myurl);

Work fine when sending cookies... (setcookie function)
... while:

3)  header (Location: $myurl);

Seems to work faster but it doesn't work with cookies (at least in my
experience... ;-)

Bye,  Tomas.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: for() problem on php-4.0.6

2001-07-09 Thread Tomas

Why don't you use an integer? For and strings don't like each other very
much...

?
for ($i = 0; $i  12; $i++ ) {
$idx = sprintf(%02d, $i + 1);
echo  option value='$idx'$idx\n;
}
?

Bye! 8-)
Espeleta Tomas




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]