[PHP] How to achieve mixed authentication/anonymous access

2010-04-14 Thread Dirk Thomas / 4wd media
e. Nor can the anonymous and authenticated parts be split in separate folders. Is this goal even possible or is the only way to not allow anonymous access (but for replacement a dummy user like "guest" with no password) or implement the auth in PHP? Any feedback is highly appreciated.

Re: [PHP] [PHP & MySQL] Introduction to using relational databases

2009-03-09 Thread Dirk
Thilo Klein wrote: Dear readers, I am new to relational DB but not to MySQL & PHP in general. I created a RDB using Powerdesigner. Struggling with the program's complexity I managed to create a set of databases being interconnected via (foreign) keys. What I want to know is how to use

Re: [PHP] [PHP & MySQL] Introduction to using relational databases

2009-03-09 Thread Dirk
t",$dbh) or die("Could not select first_test"); if (mysql_query("insert into people values('5','Hazel','Burger')")) { print "successfully inserted record"; } else { print "Failed to insert record"; } mysql_c

Re: [PHP] Re: PHP timezone is unstable...

2009-03-09 Thread Dirk
Nathan Rixham wrote: Dirk wrote: Nathan Rixham wrote: Dirk wrote: Hello, what could cause the timezone in PHP to, randomly, jump back and forth 6 hours now and then? from phpinfo(): date date/time support enabled "Olson" Timezone Database Version 0.system Timezon

Re: [PHP] Re: PHP timezone is unstable...

2009-03-09 Thread Dirk
Nathan Rixham wrote: Dirk wrote: Nathan Rixham wrote: Dirk wrote: Hello, what could cause the timezone in PHP to, randomly, jump back and forth 6 hours now and then? from phpinfo(): date date/time support enabled "Olson" Timezone Database Version 0.system Timezon

Re: [PHP] Re: PHP timezone is unstable...

2009-03-09 Thread Dirk
Nathan Rixham wrote: Dirk wrote: Hello, what could cause the timezone in PHP to, randomly, jump back and forth 6 hours now and then? from phpinfo(): date date/time support enabled "Olson" Timezone Database Version 0.system Timezone Database internal Defaul

[PHP] PHP timezone is unstable...

2009-03-09 Thread Dirk
quot;America/Chicago" and "Europe/Berlin" while "date.timezone" stays "Europe/Sweden" all the time... Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP timezone is unstable...

2009-03-09 Thread Dirk
een "America/Chicago" and "Europe/Berlin" while "date.timezone" stays "Europe/Sweden" all the time... Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] question regarding type hinting parameters of php functions

2007-11-26 Thread Dirk Thomas / 4wd media
perhaps it do something wrong?) Of course i can use int's, but in my opinion either a warning should be given or the function should gracefully handle the wrong typed parameter. Thank you for any feedback, Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reading binary http post

2006-02-23 Thread Dirk Vanden Boer
Manuel Lemos schreef: Hello, on 02/21/2006 03:40 PM Dirk Vanden Boer said the following: I have a C++ application that posts binary data to a php script that I created using libcurl. Everything works fine except when my binary data happens to start with the '&' symbol. In tha

Re: [PHP] Reading binary http post

2006-02-21 Thread Dirk Vanden Boer
Thanks for the info, it was really helpfull. One question though, is it necessary to first encode my data with the base64 algo, or can I skip that step and immediately urlencode my data? Dirk On 2/21/06, Richard Lynch <[EMAIL PROTECTED]> wrote: > You probably should be URL-encoding you

Re: [PHP] Reading binary http post

2006-02-21 Thread Dirk Vanden Boer
Thanks for the hint, I'm not doing any encoding at the moment, I'll try it out tomorrow. Dirk On 2/21/06, Paul Scott <[EMAIL PROTECTED]> wrote: > On Tue, 2006-02-21 at 19:40 +0100, Dirk Vanden Boer wrote: > > The post argument then looks like data=&A > >

[PHP] Reading binary http post

2006-02-21 Thread Dirk Vanden Boer
hen looks like data=&ÑÚA Reading the post is done like this: if (isset($_POST['data']) Is there a way to fix this problem? Thanks in advance Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Configure PHP

2005-03-15 Thread Dirk Kredler
, you must reconfigure and install php, good luck, Dirk Am Dienstag, 15. MÃrz 2005 14:00 schrieb Steven Sher: > Can someone please help me configure php. I have installed php on SUSE > 9.2 by default it loads php with session support disabled how do I > enable it, I know I am supposed to

Re: [PHP] Data Enryption

2005-01-12 Thread Dirk Kredler
Am Mittwoch, 12. Januar 2005 11:13 schrieb Shaun: > Hi, > > I have site that allows users to upload private information to our server. > We would like to encrypt the data for security reasons and only allow > certain users to be able to un-encrypt the data and view it. I have looked > at the PHP en

Re: [PHP] PHP Unit Tests - which framework to use?

2005-01-07 Thread Dirk Kredler
n and i must commit: He does his job on it very,very well :) So in one sentence: I use PHPUnit for PHP4 and PHPUnit2 for PHP5 and i am really happy with it. Have fun, Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Dirk Kredler
Hey again :) Peter Lauri: > But what if the array have a unordered keystructure? What your loop do is > to call the value with key $i, or am I wrong? What if the keys are strings? $arr= array(1 => "dirk", 'wife' => "iris", 'dog' => &qu

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Dirk Kredler
hey :) i use for this reason: for($i= 0, $size= sizeof($arr); $i < $size; $i++) { echo $arr[$i]; } Peter Lauri: > Best groupmember, > > For the moment when I loop an array I use something like this: > > reset($arr); > while($a=each($arr)) { > echo $a['value']; > } > > But the each() functi

Re: [PHP] Php 4 and Php 5 on same box

2004-10-28 Thread Dirk Kredler
sablot' '--with-iconv' '--with-mm' '--enable-dba' Both PHP versions reside in different directories and use different php.ini's. To use PHP5 i simply put a .htaccess file like this in the root of the php5-project-directory: Action php5-script /cgi-php5

Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Dirk Kredler
I found this one very usefull: http://shiflett.org/php-security.pdf You should anyway start at: http://php.net/security/ good luck, Dirk Am Dienstag, 26. Oktober 2004 13:44 schrieb Nick Wilson: > Hello all, > > I was wondering if anyone might have suggestions or useful links on >

Re: [PHP] PHP5 Tutorials...?

2004-10-25 Thread Dirk Kredler
Here: http://www.zend.com/php5/ Am Sonntag, 24. Oktober 2004 21:01 schrieb Michael Lauzon: > Where can I find detailed PHP5 tutorials, but written for the > beginner...they must be online tutorials as I cannot afford any > computer books at the moment?! > > -- > Michael Lauzon > http://phantasyr

Re: [PHP] Re: set multiple variables

2004-10-03 Thread dirk
$REMOTE_ADDR == "212.3.54.65" || $REMOTE_ADDR == "212.3.54.66" is correct On Sun, 3 Oct 2004 12:39:11 +0100, Graham Cossey <[EMAIL PROTECTED]> wrote: > > ||= OR > && = AND > > > > -Original Message- > From: argesson [mailto:[EMAIL PROTECTED] > Sent: 03 October 2004 11:30 > To: [EMAIL

Re: [PHP] How do I produce a random database query for each day or week?

2004-10-03 Thread dirk
call of your website. It's too early in the morning for details (I just stood up), but if you have questions about realization please ask. Dirk. On Fri, 01 Oct 2004 15:45:54 +0200, -{ Rene Brehmer }- <[EMAIL PROTECTED]> wrote: > At 10:31 01-10-2004, Graham Cossey wrote: > >

Re: [PHP] Submitting info from a form to a db

2004-09-15 Thread dirk
Try it with escaped qutation marks (\") -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Outputting HTML with PHP - Buffer Problem?

2004-09-12 Thread dirk
turn statement. In german you call this "Prozedur". Don't know if it's the same as procedure in english. But you will call this piece to see some output. Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array inside Class

2004-09-10 Thread dirk
Works fine within the constructor, thanks. Dirk On Fri, 10 Sep 2004 14:38:45 -0400, John Holmes <[EMAIL PROTECTED]> wrote: > From: "dirk" <[EMAIL PROTECTED]> > >> Try this: > >> var $input = array(1,2,3); > >> var $input2 = array(); > >&g

Re: [PHP] Array inside Class

2004-09-10 Thread dirk
Well, doesn't work either: Parse error: parse error, unexpected T_VARIABLE, expecting T_FUNCTION in /srv/www/htdocs/stundenplan/stpoo.php on line 5 I forgot to mention that I'm using php-5.0.1 before Dirk On Fri, 10 Sep 2004 14:26:22 -0400, John Holmes <[EMAIL PROTECTED]> wrot

[PHP] Array inside Class

2004-09-10 Thread dirk
Hello everybody, can anyone explain to me, why I can't resize an array inside a class? Sample Code: Output: Parse error: parse error, unexpected '(', expecting ',' or ';' in /srv/www/htdocs/stundenplan/stpoo.php on line 4 Thanks, Dirk -- PHP General Ma

RE: [PHP] unset Fuction

2004-02-10 Thread Oschlies Dirk (Praktikant FV/SLH)
$a; $a++; echo "$a"; $a = 0; } foo(); foo(); foo(); /// Now it outputs: 1 1 1 Regards, Dirk Oschlies -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Template Function

2003-12-18 Thread dirk maetens
site... HTH & good luck with the project, dirk ps: I welcome any insights you might gather on implementing template inheritance without the need for includes (by any means), as I will be facing a similar conversion project in the opening weeks of 2004. -- PHP General Mailing List (http://ww

[PHP] Re: PHP Webpage like MySql- need to be able to see all fields and edit

2003-07-25 Thread dirk . maetens
se an audience into the world of content management I recently incorporated it in a homegrown Content Management System and am very happy with it... As always everything depends on the knowledgeability of your userbase... Hope this helps, Dirk Maetens -- PHP General Mailing List (http://www.php.net

Re: [PHP] variable sized arrays & global vars - another newbie question

2003-07-15 Thread Dirk Kredler
Am Dienstag, 15. Juli 2003 14:39 schrieb bob pilly: > Can i declare an array that doesnt have a fixed size? Basically i want to > assign the results of a query to the array but obviously the query results > can change. Something along the lines of: $myarray= array(); > while($temp=mssql_fetch_arr

[PHP] PHP 4.3.0 and Sablotron 0.97

2003-02-04 Thread Dirk van Lyrop
r messages after which make stops: /usr/lib/libsablot.so: 'undefined reference to 'JS_*' where * stands for nearly 20 different JS "objects(methods?). Can someone tell me where the problem lies and give me at least a hint to solve it? Many thx in advance Dirk --

[PHP] Parsing a directory for specific files

2003-01-10 Thread Dirk van Lyrop
ance for these who can deliever solutions or ideas! Dirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43

2002-12-29 Thread Dirk Schiefke
Same applies here using XP pro SP1, apache 1.3.27 no dll will load even if the extensions path is set to the correct dir in this case J:\php-4.3.0\extensions - where they reside dirk On Sun, 29 Dec 2002 14:38:51 -, [EMAIL PROTECTED] (Rui Costa) wrote: > hi, > > Windows XP, Apac

[PHP] problem with memory_limit and php 4.2.3

2002-11-08 Thread Dirk Schmidt
Hi all, the httpd - Process on my linux-box exits (no segfault) when executing the following simple script with php 4.2.3. I don't get the expected error message ( something like 'Allowed memory size of 512000 bytes exhausted'). =[test Script]=== [end of Script]==

[PHP] Using checkboxes

2002-06-05 Thread Dirk Beijaard
some client side script to produce the differences. Does anyone know if there is a better way to do this? Thanks, Dirk.

[PHP] Writing IPTC tags

2002-06-03 Thread Dirk Bonenkamp - Bean IT
Hi all, Just wanted to know if it's possible to write iptc tags with php, and, if so, how? I can read them trough getimagesize(). TIA, Dirk Bean IT T: +31 (0)23 - 5422299 F: +31 (0)23 - 5422728 W: http://www.bean-it.nl -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Store file remotely using socket/fopen

2001-10-26 Thread dirk . maetens
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? BTW: I also messed with fopen("ftp://user:pass@...";) but fail

[PHP] Upload file(s) using socket/fopen

2001-10-25 Thread Dirk Maetens
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? BTW: I also messed with fopen("ftp://user:pass@...";) but fail

[PHP] How upload file(s) using socket/fopen

2001-10-25 Thread Dirk Maetens
Hello list, Simple Enough Objective: store file remotely (wu-ftp); MinorSnag: PHP's ftp-functions unavailable at localhost; BelowWorkaround: works fine for deleting remote file; MajorSnag: how to STORE a file remotely using socket? BTW: I also messed with fopen("ftp://user:pass@...";) but fail

[PHP] Passing files from A to B

2001-10-02 Thread Dirk Maetens
PROTECTED] would be nice) Thanks. -- Dirk Maetens Belgium -- 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] PHP an WinNT-Filesystem

2001-03-21 Thread Dirk Ritters
ub\blabla\pages\news\admin\publish.php on line 17 I gave writing permission to the directory \data\ but it doesn't work. Can you tell me please, what i have to do! Tanks a lot Dirk Ritters -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad