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

2006-04-22 Thread Tim Van Wassenhove
e URL (as written in RFC2616 section 14.30) -- 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: http protocols defining what gets sent between web server and browser

2005-11-25 Thread Tim Van Wassenhove
a few minutes, I'd appreciate it. As stated, the underlying > reason 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 gr

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

2005-09-26 Thread Tim Van Wassenhove
.. Therefore, 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: Way for script to discover it's path?

2005-09-18 Thread Tim Van Wassenhove
> specified includes. 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] Re: [php]: monthly statistics

2005-09-18 Thread Tim Van Wassenhove
unter` ( > `id` int(10) NOT NULL 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 vrien

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

2005-09-18 Thread Tim Van Wassenhove
tions, but still get the same > error... Now, if you read 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

Re: [PHP] LAN IP address

2005-08-29 Thread Tim Van Wassenhove
et at dynip etc? -- 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: Creating a Sequence from Array

2004-10-08 Thread Tim Van Wassenhove
you meet a value that is greater than the current biggest. Now it's only a matter of building the new array, and resetting your index to 0 when it's as big as the biggest found earlier. http://www.php.net/functions http://www.php.net/foreach -- 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: move_uploaded_file() problem

2004-10-08 Thread Tim Van Wassenhove
hown. If you really want another user to be the owner of the files, 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 Gene

Re: [PHP] Need help with a string

2004-10-08 Thread Tim Van Wassenhove
atch_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 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
rs can read from your session.save_path, i'm pretty sure they'll be able to read the credentials you use in the scripts to connect 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
sion to work in any Mac 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/program

Re: [PHP] Re: convert degrees to heading

2004-07-16 Thread Tim Van Wassenhove
> From: René Fournier [mailto:[EMAIL 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

[PHP] Re: convert degrees to heading

2004-07-16 Thread Tim Van Wassenhove
7;N', 'NNW', 'NNE', 'NE', ...); $index = $heading_degrees / sizeof($compass); return $compass[$index]; } Or you could use 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

[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 Lis

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

2004-07-15 Thread Tim Van Wassenhove
;s the > "extension" of the file. my understanding of the docs, says that the > "extension" should 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

[PHP] Re: Regular Expressions

2004-07-15 Thread Tim Van Wassenhove
;Jason \nStreet:abc" /Last Name:\s+(.*?)\n/ -- 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: PHP and HTML Conventions

2004-07-13 Thread Tim Van Wassenhove
clude_once(). Just give > the file a php extension: > > 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: Passing Variables

2004-07-11 Thread Tim Van Wassenhove
l.. 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/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.n

Re: [PHP] Login Verification

2004-07-10 Thread Tim Van Wassenhove
and > an error told them 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: breadcrumb app...

2004-07-09 Thread Tim Van Wassenhove
the back button after 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

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

2004-07-09 Thread Tim Van Wassenhove
// but it just didn't work last time...it was always > // taking 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/m

Re: [PHP] Client IP

2004-07-08 Thread Tim Van Wassenhove
mple people on a lan (with let's say ip 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> --

Re: [PHP] Malicious SQL

2004-07-08 Thread Tim Van Wassenhove
cast it as an int, or check > is_numeric(), etc. ...). Some people 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/~ti

[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 G

[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,