[PHP] Re: Using Header() to pass information...

2006-04-22 Thread Tim Van Wassenhove
, Tim Van Wassenhove http://timvw.madoka.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: http protocols defining what gets sent between web server and browser

2005-11-25 Thread Tim Van Wassenhove
for the questions is to get a better understanding of 'man in the middle attacks' as this applies to web server apps. In that case you might want to look at tcp/ip and http over ssl too. -- Met vriendelijke groeten, Tim Van Wassenhove http://timvw.madoka.be -- PHP General Mailing List (http

Re: [PHP] OT - database and indexes... but anyone please?

2005-09-26 Thread Tim Van Wassenhove
, a primary key can't be a special case of an index. -- Met vriendelijke groeten, Tim Van Wassenhove http://timvw.madoka.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: headers .vs javascript location.href

2005-09-18 Thread Tim Van Wassenhove
the documentation of output buffering you will see that it does *not* buffer headers.. -- Met vriendelijke groeten, Tim Van Wassenhove http://timvw.madoka.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [php]: monthly statistics

2005-09-18 Thread Tim Van Wassenhove
auto_increment, `StampDate` date NOT NULL default '1999-12-31', PRIMARY KEY (`id`) ) TYPE=MyISAM AUTO_INCREMENT=26050 ; All you need to do is SELECT .. GROUP BY YEARMONTH(StampDate) and you're ready to go.. -- Met vriendelijke groeten, Tim Van Wassenhove http://timvw.madoka.be -- PHP

[PHP] Re: Way for script to discover it's path?

2005-09-18 Thread Tim Van Wassenhove
. Is it possible to do this? I looked at the various file related php functions but didn't see anything resembling 'my_path()' You might also want to check out the __FILE__ constant.. http://be.php.net/manual/en/language.constants.predefined.php -- Met vriendelijke groeten, Tim Van Wassenhove http

Re: [PHP] LAN IP address

2005-08-29 Thread Tim Van Wassenhove
vriendelijke groeten, Tim Van Wassenhove http://timvw.madoka.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need help with a string

2004-10-08 Thread Tim Van Wassenhove
with the previous part of the string. preg_match_all() is what you want to use. You can easily match everything up to the time since it's formed with a :00 at the end each time. If i'm not mistaken, preg_split on \d{0,2}:\d{2} -- Met vriendelijke groeten, Tim Van Wassenhove http://www.timvw.info -- PHP

[PHP] Re: move_uploaded_file() problem

2004-10-08 Thread Tim Van Wassenhove
, you could extend your upload script so that it uploads all the files with ftp to localhost. This way they will be owned by the ftp-user. -- Met vriendelijke groeten, Tim Van Wassenhove http://www.timvw.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Creating a Sequence from Array

2004-10-08 Thread Tim Van Wassenhove
-- Met vriendelijke groeten, Tim Van Wassenhove http://www.timvw.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session handlers

2004-10-02 Thread Tim Van Wassenhove
the database too. Which makes the security argument in this case invalid. -- Met vriendelijke groeten, Tim Van Wassenhove http://www.timvw.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: htmlArea look-a-like

2004-07-21 Thread Tim Van Wassenhove
browsers. I've also found EditLive! and am intrigued by it. Does anyone know of anthing else like these availlable on the market? You can try http://home.mysth.be/~timvw/test/ (user/pass webmaster/webmaster) Source at http://home.mysth.be/~timvw/programming/php/easyform.zip -- Tim Van Wassenhove

[PHP] Re: convert degrees to heading

2004-07-16 Thread Tim Van Wassenhove
a switch -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: convert degrees to heading

2004-07-16 Thread Tim Van Wassenhove
PROTECTED] Sent: Friday, July 16, 2004 3:59 PM To: Tim Van Wassenhove Cc: php Subject: Re: [PHP] Re: convert degrees to heading Works beautifully. Thanks! .Rene On Friday, July 16, 2004, at 04:36 PM, Tim Van Wassenhove wrote: function degrees2compass($degrees) { $compass

[PHP] Re: Regular Expressions

2004-07-15 Thread Tim Van Wassenhove
/ -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ereg question/prob...

2004-07-15 Thread Tim Van Wassenhove
be in the $reg array any ideas/comments on where my mistake is would be appreciated... Will it work with 123.123.txt ? If you have a look at the file functions in the manual, you'll find much better solutions like pathinfo(); -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP

[PHP] Re: Regular Expressions

2004-07-15 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Red Wingate wrote: Oh guess it would be even better and faster to only use: /Last Name:([^\n]*)/ In most environments is strpos and substr even faster ;) -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Tim Van Wassenhove
: include_once 'pureHTML.php'; readfile is in this case more appropriate imho -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail problem

2004-07-11 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Joao Gomes wrote: [mail function] ; For Win32 only. SMTP = [EMAIL PROTECTED] I don't think [EMAIL PROTECTED] is a valid hostname. -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Passing Variables

2004-07-11 Thread Tim Van Wassenhove
.. and read it again.. and again... http://www.php.net/manual. You can find the answer in the section on variables, predefined variables to be more precise. -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Login Verification

2004-07-10 Thread Tim Van Wassenhove
they logged in incorrectly. Meaby you can have a look at pear::auth ? -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem with downloading some pdf's

2004-07-09 Thread Tim Van Wassenhove
the 'default:' case Probably because you forgot to put a break. Also this is discussed in the manual. And a lazy programmer would lookup the extension - content-type relationship in a file like /etc/mime.types :) -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List

[PHP] Re: breadcrumb app...

2004-07-09 Thread Tim Van Wassenhove
posting a form... -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Malicious SQL

2004-07-08 Thread Tim Van Wassenhove
check for ';' in the request variable and if found yell at the user, that can be fun. bugs.php.net does this. Or use prepared statements with mysqli -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Client IP

2004-07-08 Thread Tim Van Wassenhove
addresses in the 192.168.X.Y range) that use a proxy. You'll see the address of the proxy in $_SERVER['REMOTE_ADDR']. And i doubt that is what you were looking for :) -- Tim Van Wassenhove http://home.mysth.be/~timvw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Greg wrote: If I compare a script using PEAR::DB with a script using standard functions (and which supports mysql, pgsql and sqlite databases), the script using PEAR::DB is 10 times slower than the other. Conclusion : if you want to use PEAR::DB package, you'll

[PHP] Re: create if table not exists

2004-05-16 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], John Taylor-Johnston wrote: How can I check if a table exists in a mysql db. $query = 'IF NOT EXISTS table CREATE TABLE table (..)'; mysql_query($query); -- Tim Van Wassenhove http://home.mysth.be/~timvw/contact.php -- PHP General Mailing List (http