[PHP] Re: Where To Find Resources About Programming Style (my bleedin' code is so darn ugly)

2002-02-17 Thread Christian Blichmann
but saves you _much_ time when resuming your work after a longer interruption / when working in a team). My suggestions for comments are as follows: Ok, sorry for this mega-posting, hope it helps. P.S.: Your code _always_ works?

[PHP] Re: storing arrays

2002-02-17 Thread Christian Blichmann
You then will be able to do this: To unserialize: > 2) Is it possible to specify the name of the key to each item of an array > when you get the array using file(). Yep, you'll get the same array back... -- Christian Blichmann _ don'

[PHP] Re: Outputing XML to browser???

2002-02-16 Thread Christian Blichmann
Whoops, sent you a wrong .htaccess - file, here's what I really use (the other one was old): AddType application/x-httpd-php .php .php4 .htm .html .xml .xhtml DirectoryIndex index.xml index.xhtml IndexIgnore .htaccess .htpasswd -- Christian Blic

[PHP] Re: Outputing XML to browser???

2002-02-16 Thread Christian Blichmann
e to using XML is using XHTML 1.0 (either transitional or strict) in your .html - files: http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Don't forget to end your empty tags with /&g

[PHP] Re: browser reload button

2002-02-14 Thread Christian Blichmann
ng as proper credit is given. Regards, -- Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address. _ do you wa

[PHP] Re: Authentication with sessions - Recommendation and suggestions?

2002-02-14 Thread Christian Blichmann
d in mind: > > [...] Well, looks fine to me, except that I would use some more sophisticated session-id (like: http://www.domain.com/pathto/file.html?ID=12345678) to show off a bit ;-) Regards, -- Christian Blichmann _ don't hesitate - email me

[PHP] Re: Implement @-domains with PHP?

2002-02-13 Thread Christian Blichmann
Hi folks! To end the discussion of how my posting has to be understood, I will further explain my idea: In Germany there's a web-space provider called 1&1 puretec (http://www.puretec.de/). They offer a feature called @-domain: Every time a user enters something like http:[EMAIL PROTECTED]/pat

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
"Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You can look over the environment vars available to you with a quick call > to phpinfo() . Thanks for replying, but as Philip stated in his reply to my question its that the actu

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
done without popping up the login dialog??? - btw, I know how to do this whole thing in JavaScript (using the location object), but that won't work for text browsers or oldtimers like NN 2.x. Can I use a blank password like in "http://someUserText:

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
"Peter Janett" <[EMAIL PROTECTED]> wrote in message 022101c1b3ef$809cf450$4de70142@peters">news:022101c1b3ef$809cf450$4de70142@peters... > $what_you_want = "$HTTP_HOST" . "$REQUEST_URI"; Well, thanks - but it didn't work for me (don't have the $REQUEST_URI variable set)... btw, my setup is: PHP 4

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
Hello Again! "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'd like to retrieve the "http://someReallyWeirdAtDomain"-part. > > > I think you misunderstood my question, my problem is not how to parse the URI, I discovere

[PHP] Substitute for getenv() when using ISAPI ??

2002-01-27 Thread Christian Blichmann
v("HTTP_USER_AGENT"); // Check if visit already counted $id = 0; $counted = false; $r = mysql_query("SELECT visitor.id, visitor.ip, visitor.useragent, visits.timestamp FROM visitor, visits WHERE visitor.id = visits.visitor_id ORDER BY visitor.id DESC"); // ... ===

[PHP] getenv() replacement when running as ISAPI ???

2002-01-26 Thread Christian Blichmann
heck if visit already counted $id = 0; $counted = false; $r = mysql_query("SELECT visitor.id, visitor.ip, visitor.useragent, visits.timestamp FROM visitor, visits WHERE visitor.id = visits.visitor_id ORDER BY visitor.id DESC"); // ... === CUT HERE === Christian Blichmann _

Re: [PHP] Re: Resalution Dection

2002-01-25 Thread Christian Blichmann
ht This might be helpful for you as well... Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address. _ do you want to know

[PHP] Re: PHP IDE

2002-01-25 Thread Christian Blichmann
Code Completion, ...), but it's not primarily focused on PHP... Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address.

[PHP] getenv() replacement when running as ISAPI ???

2002-01-25 Thread Christian Blichmann
heck if visit already counted $id = 0; $counted = false; $r = mysql_query("SELECT visitor.id, visitor.ip, visitor.useragent, visits.timestamp FROM visitor, visits WHERE visitor.id = visits.visitor_id ORDER BY visitor.id DESC"); // ... === CUT HERE === Christian Blichmann _