Re: [PHP] Which script runs first?

2005-01-08 Thread Rens Admiraal
The way frames are loaded is actually dependent of many things I think (size and browser e.g.), so, most secure is to use javascript, or, let PHP check if the var is set, and if not, reload... you can do this like this: javascript: left.php: // can be a little different, but I think it is corr

[PHP] Install PHP4 on a Apache2 + PHP5 system

2004-12-20 Thread Rens Admiraal
Hi guys, I have a server on which Apache2 and PHP5 are functioning well, but I also want to build in support for PHP4 because the webmail package I use isn't compatible with PHP5... So, I need to install PHP4 next to PHP5, and make my in httpd.include use PHP4 for my webmail directory... Any

Re: [PHP] proxy - detect

2004-11-26 Thread Rens Admiraal
Is only possible with proxy servers which support it (transparant proxy's)... otherwise it won't work... Brad Ciszewski wrote: does anyone know the function to get the IP address before the proxy-IP?

Re: [PHP] help with html through php

2004-11-21 Thread Rens Admiraal
thnx ;-) this really is shorter, and easier to use... !!! M. Sokolewicz wrote: Rens Admiraal wrote: Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Rens Admiraal
Mulley, Nikhil wrote: Hi Rens, Can you please be more specific or can you show some practical examples or procedural way ? Thanks, Nikhil --Smile Always , it costs nothing -Original Message- *From:* Rens Admiraal [mailto:[EMAIL PROTECTED] *Sent:* Sunday, November 21

Re: [PHP] help with html through php

2004-11-21 Thread Rens Admiraal
Hi Todd, Maybe I can show you a technique which is real helpful to me... You can make a HTML file which you use as template, and add some standard strings (character chains) to it... Like [TIME], or [ACTIVE_USER]... When you open the HTML document in your browser, you can see where your time and

Re: [PHP] Crypt Function-- Encryption and Decryption

2004-11-21 Thread Rens Admiraal
What would be the use of a hash if it was easy to recover ? You can use it by storing the hash of a password, en when the user supplies you his password in a script, you hash it again... and compare those two hashes... Trying to recover the value from which the hash is the result is called crack

Re: [PHP] Where to learn about these topics

2004-11-21 Thread Rens Admiraal
Hi, I don't have any documentation you can use I think, but I have some comments on what you say... By part 1 you say: how do I handle the workflow when the data in related tables doesn't yet exist? Do I force a user to enter data into 5 different forms first? Do I have a place to enter the new d

Re: [PHP] Uploading Images

2004-11-01 Thread Rens Admiraal
yes, using the Glib for example... you can set a MAX FILE SIZE for the images you upload, and check it afterwards for size and format. After that you move the temporary files to their destination folder... check http://www.php.net/manual/en/features.file-upload.php and http://www.php.net/manual

Re: [PHP] trying 2 pull data out table and populate a list box

2004-10-28 Thread Rens Admiraal
you mean: $query = " SELECT ProvinceID, Description FROM province ORDER BY Description ASC "; $result = @mysql_query ($query, $connection) or die (mysql_error()); while ($row = @mysql_fetch_array($result)) { $options .= "{$row["Description"]}\n"; } $selectBox = "\n" . $options . "\n"; echo $se

Re: [PHP] https://...

2004-10-28 Thread Rens Admiraal
But keep in mind that the var containing the value (I think $_SERVER["HTTPS"] is the right one) is only set when https:// is used... Vail, Warren wrote: Depends on the server and the release, but my apache shows If($_SERVER["HTTPS"] == "on") // if true is secure Lots of other information like cyp

Re: [PHP] https://...

2004-10-28 Thread Rens Admiraal
You can find the exact $_SERVER var by checking the values printed by this loop: foreach ($_SERVER as $var => $value) { echo "\$_SERVER[\"{$var}\"] = {$value}"; } Vail, Warren wrote: Depends on the server and the release, but my apache shows If($_SERVER["HTTPS"] == "on") // if true is secure L

Re: [PHP] Re: [PEAR-DEV] windows 98 support?

2004-10-24 Thread Rens Admiraal
Helgi, /quote: As a side note, correct me if I'm wrong, but didn't MS discount anymore support/updates to win98 sometime this year, thus making that OS even more unsecure, so maybe like I pointed out above, is too much work to support such legacy OS./ Supporting an OS is also depending on how many