php-general Digest 21 Feb 2003 12:26:50 -0000 Issue 1896
Topics (messages 136431 through 136482):
Re: string manipulation
136431 by: Leif K-Brooks
136432 by: Kelly Protsko
136433 by: Joachim Krebs
LDAP next prev howto
136434 by: Roger Thomas
Re: Class VS Functions
136435 by: Tom Rogers
Re: Cannot add header information
136436 by: John W. Holmes
Computer Authorization
136437 by: Chris Cook
136438 by: Ray Hunter
136440 by: John W. Holmes
136442 by: Chris Cook
136446 by: Chris Cook
136447 by: Chris Knipe
136448 by: Ernest E Vogelsinger
Re: simple ereg question
136439 by: John W. Holmes
Re: Smarty and FAI
136441 by: John W. Holmes
Re: Calling a COM object
136443 by: YC Nyon
Re: smarty vs. patTemplate vs. includes - newbie q
136444 by: John W. Holmes
Re: AUTH (.htaccess style)
136445 by: Sebastian
Re: sessions
136449 by: Justin French
MAC address user recognition?
136450 by: Leo Spalteholz
136451 by: Ray Hunter
136452 by: Jason Sheets
136455 by: Chris Cook
136456 by: Leo Spalteholz
136465 by: Ernest E Vogelsinger
136470 by: Ernest E Vogelsinger
php_mcrypt.dll
136453 by: Daniel Guerrier
136457 by: Bob Irwin
136466 by: W. Enserink
Regarding cache problem (fwd)
136454 by: J.F.Kishor
Re: Forms and MySql date
136458 by: Frank Keessen
136473 by: v0idnull
136474 by: v0idnull
mysql_fetch problem
136459 by: Alec Solway
Database Persistance Layer
136460 by: Joe Njeru
Re: RSA implementation
136461 by: José León Serna
button not seen
136462 by: DIKSHA NEEL
136467 by: Hugh Danaher
136468 by: RIVES Sergio SOFRECOM
136469 by: Jason Wong
136472 by: Hugh Danaher
136479 by: Mincu Alexandru
button not opening
136463 by: DIKSHA NEEL
136471 by: Jason Wong
php code arranging program
136464 by: mashar
PHP 4.2.1 vs. 4.2.3
136475 by: Rob
selection in form-field
136476 by: Michiel van Heusden
136477 by: Awlad Hussain
ZIP extension
136478 by: Torakiki
mr. jason wong kind attention
136480 by: DIKSHA NEEL
test
136481 by: Guram Mosashvili
LDAP charset problem
136482 by: rage_against.gmx.at
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Try this (untested):
print preg_replace('|<[^<]*$|','$1',$text);
Gregory Heinrichs wrote:
little help please, looking for correct functions to use to search for the
last occurrence of a character in a string and truncate everything in
front of it including the searched for character.<
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
--- End Message ---
--- Begin Message ---
Use strrpos() which will find the last occurrence of something in a
string then just use substr() to pull everything from that point on in
the string.
Kelly
-----Original Message-----
From: Gregory Heinrichs [mailto:[EMAIL PROTECTED]]
Sent: February 20, 2003 5:13 PM
To: [EMAIL PROTECTED]
Subject: [PHP] string manipulation
little help please, looking for correct functions to use to search for
the
last occurrence of a character in a string and truncate everything in
front of it including the searched for character.<
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This is the best method
echo substr(strrchr($string, $char), 1);
------------
On 21 February 2003 at 00:13:02, Gregory Heinrichs wrote:
> little help please, looking for correct functions to use to search for the
> last occurrence of a character in a string and truncate everything in
> front of it including the searched for character.<
--- End Message ---
--- Begin Message ---
is it possible to retrieve a bunch of records from an ldap tree and do a
next-prev navigation on those records ? example script pls.
--
roger
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--- End Message ---
--- Begin Message ---
Hi,
Friday, February 21, 2003, 9:41:46 AM, you wrote:
CF> Hi.
CF> I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of
CF> docs showing the possibilities in php coding with Class's but the true is
CF> that the "reability" of the code with Class's i steal can make the same with
CF> normal functions.
CF> I ask for the ppl, to give me examples (theorics preferencly) about
CF> situations that Functions cant handle with the job :\
CF> Sorry my terrible bad english...
CF> Cláudio Franco
It is more a case of organisation than a do/can't do situation. Classes help
keep all related functions and variables together. One thing springs to mind is
function names can be the same in different classes and they won't conflict
where with just functions by themselves they would have to be different.
--
regards,
Tom
--- End Message ---
--- Begin Message ---
> Guys, Guys, why are you harrasing this poor chap?
>
> one sure simple way is..
> at the begining
> <?
> ob_start();
> ....
>
> Starts output beffering.. and at the end,
> ....
> ob_end_flush();
> ?>
> Throws out all the buffered output to the browser at the other end.
>
> now add header info any place before ob_end_flush(); and get no errors
!!!
Indeed... work around the problem instead of solving it... no need for
fundamentals...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
Hello all,
I am looking into an application that only specific computers can access. A
login does not work since we only want people to log in from certain
computers. IP numbers dont work since they are dynamic. Cookies work
temporarily, but are often deleted and are not the most secure route. Any
suggestions for accomplishing this?
Thanks for any help,
Chris
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
--- End Message ---
--- Begin Message ---
domain name, wins, kerberos, nis, mac-address
those might be what you need...
if you are using dhcp then you can get the ip information from the dhcp
number based on the mac address...
but remember that these can be spoofed...
On Thu, 2003-02-20 at 17:59, Chris Cook wrote:
> Hello all,
>
> I am looking into an application that only specific computers can access. A
> login does not work since we only want people to log in from certain
> computers. IP numbers dont work since they are dynamic. Cookies work
> temporarily, but are often deleted and are not the most secure route. Any
> suggestions for accomplishing this?
>
> Thanks for any help,
> Chris
>
>
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
> I am looking into an application that only specific computers can
access.
> A
> login does not work since we only want people to log in from certain
> computers. IP numbers dont work since they are dynamic. Cookies work
> temporarily, but are often deleted and are not the most secure route.
Any
> suggestions for accomplishing this?
Those are your options. Nothing is going to be 100% because anything
client side can be spoofed.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
thanks for the response. I have tried MAC addresses. I get them from the arp
table. The only problem is that the arp table is no longer available outside
of the local network. Can I get them from else where? Any more suggestions?
Thanks,
Chris
From: "Rich Gray" <[EMAIL PROTECTED]>
To: "Chris Cook" <[EMAIL PROTECTED]>
Subject: RE: [PHP] Computer Authorization
Date: Fri, 21 Feb 2003 01:05:43 -0800
>
> Hello all,
>
> I am looking into an application that only specific computers can
> access. A
> login does not work since we only want people to log in from certain
> computers. IP numbers dont work since they are dynamic. Cookies work
> temporarily, but are often deleted and are not the most secure route.
Any
> suggestions for accomplishing this?
>
> Thanks for any help,
> Chris
>
MAC addresses?
Rich
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--- End Message ---
--- Begin Message ---
Can I get the any of this information through php or do I need adjust the
settings on the server. Doing it through php is preferable...
I was also thinking of having an application installed on the client to
gather information and send it to my php script. However, I have little idea
where to start with that...
Thanks again,
Chris
From: Ray Hunter <[EMAIL PROTECTED]>
To: Chris Cook <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Computer Authorization
Date: 20 Feb 2003 18:11:59 -0700
domain name, wins, kerberos, nis, mac-address
those might be what you need...
if you are using dhcp then you can get the ip information from the dhcp
number based on the mac address...
but remember that these can be spoofed...
On Thu, 2003-02-20 at 17:59, Chris Cook wrote:
> Hello all,
>
> I am looking into an application that only specific computers can
access. A
> login does not work since we only want people to log in from certain
> computers. IP numbers dont work since they are dynamic. Cookies work
> temporarily, but are often deleted and are not the most secure route.
Any
> suggestions for accomplishing this?
>
> Thanks for any help,
> Chris
>
>
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
--- End Message ---
--- Begin Message ---
You can also maybe look at client side SSL Certificates...
----- Original Message -----
From: "Chris Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 2:59 AM
Subject: [PHP] Computer Authorization
> Hello all,
>
> I am looking into an application that only specific computers can access.
A
> login does not work since we only want people to log in from certain
> computers. IP numbers dont work since they are dynamic. Cookies work
> temporarily, but are often deleted and are not the most secure route. Any
> suggestions for accomplishing this?
>
> Thanks for any help,
> Chris
>
>
>
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
At 01:59 21.02.2003, Chris Cook said:
--------------------[snip]--------------------
>I am looking into an application that only specific computers can access. A
>login does not work since we only want people to log in from certain
>computers. IP numbers dont work since they are dynamic. Cookies work
>temporarily, but are often deleted and are not the most secure route. Any
>suggestions for accomplishing this?
--------------------[snip]--------------------
If you have your site on SSL (https://), you could install a client
certificate on the client machines, and either configure apache to require
the certificate, or query the HTTP environment for a matching certificate
in your PHP file.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--- End Message ---
--- Begin Message ---
> I'd like to verify input data transferred from a form and make sure it
> is numeric data or null before my program executes. I am using this
> syntax, which doesn't work:
>
> for ($i=1;$i<=3;$i++)
> {
> if (ereg('[0-9]+','$_POST["gamt_$i"]'))
> {
> continue;
> }
> else
> {
> die("Non-numeric data entered in grass entry field(s).");
> }
> }
>
> No matter what I put in the fields, the program dies and I get the
death
> message. What can I do to fix this?
Why not just use is_numeric() and empty()? No need for regular
expressions.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
> My provider is free.Fr
> chmod is disabled
>
> Is it possible to use Smarty on my web pages ?
You have to chmod one of the Smarty directories so Smarty can write it's
cache to it. Maybe this can be disabled, though, I'm not sure.
So if you mean you can never chmod a file and smarty requires it, then
no, you can't use it.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--- End Message ---
--- Begin Message ---
Hi,
Is there a tutorial on how to call COM objects in PHP?
My PHP runs on Windows.
TIA
nyon
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003
--- End Message ---
--- Begin Message ---
> I'm designing a site with about 100 different pages. I'm debating
whether
> to
> use a template mechanism such as smarty or patTemplate vs just
creating
> pages and including the body templates based on the url parameters. I
> realize you get a layer of abstraction using the template mechanisms,
but
> with the scheme that I have in mind the users will only be editing the
> pages
> that are marked body_foo.php. These body pages would be basically pure
> html,
> so they can't really screw anything up in the php logic. They would be
> called off an index.php that has a bunch of includes, header.php,
> body.php,
> footer.php etc, this page would be off limits to the user for editing.
>
> >From what I understand, both smarty and patTemplate are popular and
both
> have supporters and detractors, is one template significantly faster
or
> more
> stable than the other?
Smarty is considerably faster. I've benchmarked the two next to each
other with some other templating systems.
> If I just use includes, am I gonna run into problems, other than the
loss
> of
> elegance and some abstraction that a template system might offer. My
site
> will have approx 100 pages, with a peak of 600,000 hits per day.
No, includes will work just fine. No one says you have to use templates.
They provide some overhead, but are very useful in a multi-user
development environment.
---John Holmes...
--- End Message ---
--- Begin Message ---
Can someone test this code, It prompts to login, but does not accept my username and
or password .. I have a feeling its a server configuration problem but i need someone
to help me confirm it.
Running php version 4.2.3. Apache/1.3.27 - I have tried using
$_SERVER['PHP_AUTH_USER'] and $HTTP_SERVER_VARS['PHP_AUTH_USER'] .. neither works =\
I am just including this script into a script I want to protect.
Thanks.
<?php
$checkservername = "localhost";
$dbcheckusername = "";
$dbcheckpassword = "";
$dbcheckbase = "";
$encryptedpw = true; // password encrypt? (md5)
$realm = "This site is private!";
$auth = false;
if (isset( $PHP_AUTH_USER ) && isset($PHP_AUTH_PW)) {
mysql_connect( $checkservername, $dbcheckusername, $dbcheckpassword )
or die ( 'Unable to connect to server.' );
mysql_select_db( $dbcheckbase )
or die ( 'Unable to select database.' );
if ($encryptedpw) {
$chkpw = md5($PHP_AUTH_PW);
} else {
$chkpw = $PHP_AUTH_PW;
}
$sql = ("SELECT * FROM user WHERE username = '$PHP_AUTH_USER' AND password =
'$chkpw' AND (usergroupid = '6')");
$result = mysql_query( $sql )
or die ( 'Unable to execute query.' );
$num = mysql_numrows( $result );
if ( $num != 0 ) {
$auth = true;
}
}
if ( ! $auth ) {
header( "WWW-Authenticate: Basic realm=\"$realm\"" );
header( "HTTP/1.0 401 Unauthorized" );
echo 'Authorization Required!';
exit;
}
?>
----- Original Message -----
From: Sebastian
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 4:34 AM
Subject: AUTH (.htaccess style)
Greetings.
I have a member system which each user has a unique ID, username and password.
I want to secure some of my scripts with .htaccess style login, Basically I would
like to fetch the username and password from mysql database, the password is encrypt
using md5 hash.
I would like to the ability to include the file into any script I would like to
protect and validate the user based on the information that is stored on the mysql
database.
Conclusion: Does anyone know of a handy script that I could use?
Thanks in advanced.
--- End Message ---
--- Begin Message ---
on 21/02/03 5:34 AM, Joseph Bannon ([EMAIL PROTECTED]) wrote:
> I'm starting to use sessions for my website and wanted
> to know some things before I fully commit to use them.
>
> 1) How are sessions different from cookies other than
> where the information is stored?
A session is just a method of maintaining state (ie, a way of recognising
the same browser/client on each request). One of the methods for
maintaining this state is cookies, the other is by passing a SID around in
the URL.
In the case of cookies, the ONLY data being stored client side is a session
ID... if you choose to *entirely* manage your session via cookies, then
you'd have to store more data on the client side cookies (uid, pass,
preferences, etc).
> 2) Does session data stored on the server
> automatically delete after a certain time?
Yes. There's a lifetime setting (seconds), and there's a garbage cleanout
routine. Once the garbage probability has been triggered AND the session
lifetime has expired, THEN it gets deleted.
> 3) Is a session id created for each user per each
> browser or just per each user?
Each BROWSER/CLIENT... in the case of cookie based sessions, the cookie is
set on the browser, containing a session id... Yes, the user could spoof the
cookie on another machine and continue the session, but I dount that was
your question. Same with URLs -- the session is passed around via URL, the
user *could* grab the SID out of the URL, and append it to another URL on
another browser/machine.
Justin
--- End Message ---
--- Begin Message ---
I've been thinking about how to do authentication and user recognition
for my site without cookies. I had this idea but I don't really know
if its possible at all.
If I got the IP address from the request could I use ARP to get the
MAC address for that IP? If so I could compare that MAC address with
a (previously obtained) database of addresses and if it matches they
would automatically be logged in. So I could preauthorize my friends
and remember other users once they have signed up.
It seemed like a cool idea but is this at all possible or am I just
insane?
Thanks,
Leo
--- End Message ---
--- Begin Message ---
Remember that the mac address gets changed by devices on the network...
--
Ray
On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote:
> I've been thinking about how to do authentication and user recognition
> for my site without cookies. I had this idea but I don't really know
> if its possible at all.
> If I got the IP address from the request could I use ARP to get the
> MAC address for that IP? If so I could compare that MAC address with
> a (previously obtained) database of addresses and if it matches they
> would automatically be logged in. So I could preauthorize my friends
> and remember other users once they have signed up.
>
> It seemed like a cool idea but is this at all possible or am I just
> insane?
>
> Thanks,
> Leo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
MAC addresses are used for on a LAN and not the Internet. Using a MAC
address might work for identification on a LAN BUT in most operating
systems you can easily change the effective MAC address on the card.
It would probably be better to look for some other form of
identification like SSL certificates or a cookie with the secure bit on
so it will only be sent over an SSL connection.
If you were concerned about the overhead of SSL you could make only your
login page go over SSL and the rest of your site go over normal HTTP.
Jason
On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote:
> I've been thinking about how to do authentication and user recognition
> for my site without cookies. I had this idea but I don't really know
> if its possible at all.
> If I got the IP address from the request could I use ARP to get the
> MAC address for that IP? If so I could compare that MAC address with
> a (previously obtained) database of addresses and if it matches they
> would automatically be logged in. So I could preauthorize my friends
> and remember other users once they have signed up.
>
> It seemed like a cool idea but is this at all possible or am I just
> insane?
>
> Thanks,
> Leo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have used MAC address authentication using the arp table and it worked for
what I used it for, but it does only work over the local network and
spoofing is an issue. Using a cookie in conjuction with a MAC address helps
the authentication, but it sounds like SSL is the way to go...
Does anyone have any suggestions on where to start learning SSL?
Thanks,
Chris
From: Jason Sheets <[EMAIL PROTECTED]>
To: Leo Spalteholz <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] MAC address user recognition?
Date: 20 Feb 2003 21:13:16 -0700
MAC addresses are used for on a LAN and not the Internet. Using a MAC
address might work for identification on a LAN BUT in most operating
systems you can easily change the effective MAC address on the card.
It would probably be better to look for some other form of
identification like SSL certificates or a cookie with the secure bit on
so it will only be sent over an SSL connection.
If you were concerned about the overhead of SSL you could make only your
login page go over SSL and the rest of your site go over normal HTTP.
Jason
On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote:
> I've been thinking about how to do authentication and user recognition
> for my site without cookies. I had this idea but I don't really know
> if its possible at all.
> If I got the IP address from the request could I use ARP to get the
> MAC address for that IP? If so I could compare that MAC address with
> a (previously obtained) database of addresses and if it matches they
> would automatically be logged in. So I could preauthorize my friends
> and remember other users once they have signed up.
>
> It seemed like a cool idea but is this at all possible or am I just
> insane?
>
> Thanks,
> Leo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
--- End Message ---
--- Begin Message ---
On February 20, 2003 08:13 pm, Jason Sheets wrote:
> MAC addresses are used for on a LAN and not the Internet. Using a
> MAC address might work for identification on a LAN BUT in most
> operating systems you can easily change the effective MAC address
> on the card.
Good call. I thought there was some fundemental problem I just
couldn't remember enough from my networking class to put my finger on
it.
> It would probably be better to look for some other form of
> identification like SSL certificates or a cookie with the secure
> bit on so it will only be sent over an SSL connection.
Yeah I'm not super concerned about security and such, this is only a
personal page so something simple will do the job. I think I'll just
end up hacking together my own encryption algorithm and then storing
encrypted passwords in a cookie.
Hehe. Security through obscurity, everyones favorite way :)
Thanks,
Leo
--- End Message ---
--- Begin Message ---
At 05:13 21.02.2003, Jason Sheets said:
--------------------[snip]--------------------
>MAC addresses are used for on a LAN and not the Internet. Using a MAC
>address might work for identification on a LAN BUT in most operating
>systems you can easily change the effective MAC address on the card.
Most dialup users will most probably have the same Mac address since DUN
creates a fake MAC.
>If you were concerned about the overhead of SSL you could make only your
>login page go over SSL and the rest of your site go over normal HTTP.
You can do this, but you cannot to pass the session token via cookie, since
https://yourdomain.com
and
http://yourdomain.com
are seen as different hosts, thus a cookie (default setting) will not be
shared among these.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--- End Message ---
--- Begin Message ---
At 06:28 21.02.2003, Chris Cook said:
--------------------[snip]--------------------
>I have used MAC address authentication using the arp table and it worked for
>what I used it for, but it does only work over the local network and
>spoofing is an issue. Using a cookie in conjuction with a MAC address helps
>the authentication, but it sounds like SSL is the way to go...
>
>Does anyone have any suggestions on where to start learning SSL?
--------------------[snip]--------------------
Homepage of modssl:
http://www.modssl.org/
I have successfully set up a site using SSL and a client certificate.
Apache is configured to require a client certificate, however you could
easily modify this to have it optional, and perform some legal action if
the CS is missing or invalid.
Apache configuration (anonymized):
<VirtualHost 1.2.3.4:443>
ServerName myhost.com
DocumentRoot "/etc/httpd/home/myhost.com"
SSLEngine on
# this is the server certificate and key
SSLCertificateFile /etc/httpd/certs/myhost.com.crt
SSLCertificateKeyFile /etc/httpd/certs/myhost.com.key
# Client certificate handling
SSLVerifyClient require # may use "Optional" as keyword
SSLVerifyDepth 10
SSLCACertificateFile /etc/httpd/certs/myhost.com.ca.crt
SSLOptions +StdEnvVars +CompatEnvVars +FakeBasicAuth
</VirtualHost>
In PHP, I check:
$cacert_ou = $_SERVER['SSL_CLIENT_S_DN_OU'];
$cacert_em = $_SERVER['SSL_CLIENT_S_DN_Email'];
if (!empty($cacert_ou) && !empty($cacert_em)) {
// valid certificate - login the user
}
else {
// no or invalid certificate (not an option here)
}
The client certificate is set up in a way that the "OU" property
(organizational unit) holds the company identifier of the user, and the
"Email" property holds the user identifier. This is how my client generates
the certificates, I have to live with that.
In your case you could easily create your certificates to:
1 - not be password protected so anyone on the machine can transmit it
2 - have a unique topekn per machine in one of its properties (OU, for
example).
HTH,
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--- End Message ---
--- Begin Message ---
I'm trying to use the mcrypt function on winXP using
php 4.3.1 and IIS 5. First the dll would not load but
I got past that by placing the libmcrypt.dll in my
system32. Now it loads but when I try to use mcrypt I
get
Warning: mcrypt_encrypt(): Module initialization
failed in
E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on
line 6
I don't think it's the code, it's pretty simple.
$key = "longencrytionkey";
$text = "danny";
echo($text . "<br>");
$newtext = mcrypt_encrypt("MCRYPT_BLOWFISH",$key,
$text, "ecb");
echo($newtext);
How do I get mycryt extension to work properly on
windows?
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--- End Message ---
--- Begin Message ---
Did you try the php.net website? Because I haven't used it, I can't help
you other than doing a quick google search which produces the following
link - which contains information on a workaround for a similar problem. Do
a find on the page for 'failed'.
http://si.php.net:8888/manual/en/ref.mcrypt.php
Best Regards
Bob Irwin
Server Admin & Web Programmer
Planet Netcom
----- Original Message -----
From: "Daniel Guerrier" <[EMAIL PROTECTED]>
To: "php user group" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 4:12 PM
Subject: [PHP] php_mcrypt.dll
> I'm trying to use the mcrypt function on winXP using
> php 4.3.1 and IIS 5. First the dll would not load but
> I got past that by placing the libmcrypt.dll in my
> system32. Now it loads but when I try to use mcrypt I
> get
>
> Warning: mcrypt_encrypt(): Module initialization
> failed in
> E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on
> line 6
>
> I don't think it's the code, it's pretty simple.
> $key = "longencrytionkey";
> $text = "danny";
> echo($text . "<br>");
>
> $newtext = mcrypt_encrypt("MCRYPT_BLOWFISH",$key,
> $text, "ecb");
> echo($newtext);
>
>
> How do I get mycryt extension to work properly on
> windows?
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
>
Scanned by PeNiCillin http://safe-t-net.pnc.com.au/
--- End Message ---
--- Begin Message ---
hi Daniel,
AFAIK there are not many people with a good working mcrypt dll, if any at
all. In the past there have been more people asking for this, but I can't
remember something came out of it. So if you have one please let the group
know, many will be very interested. If you want to you can download the
original code yourself together with a C comipiler and cook&bake your own
dll for windows....
regards Wilbert
----- Original Message -----
From: "Daniel Guerrier" <[EMAIL PROTECTED]>
To: "php user group" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 6:12 AM
Subject: [PHP] php_mcrypt.dll
> I'm trying to use the mcrypt function on winXP using
> php 4.3.1 and IIS 5. First the dll would not load but
> I got past that by placing the libmcrypt.dll in my
> system32. Now it loads but when I try to use mcrypt I
> get
>
> Warning: mcrypt_encrypt(): Module initialization
> failed in
> E:\IIS\wwwroot\savehiphop\admin\access\encrypt.php on
> line 6
>
> I don't think it's the code, it's pretty simple.
> $key = "longencrytionkey";
> $text = "danny";
> echo($text . "<br>");
>
> $newtext = mcrypt_encrypt("MCRYPT_BLOWFISH",$key,
> $text, "ecb");
> echo($newtext);
>
>
> How do I get mycryt extension to work properly on
> windows?
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-------------------------
Pas de Deux
Van Mierisstraat 25
2526 NM Den Haag
tel 070 4450855
fax 070 4450852
http://www.pdd.nl
[EMAIL PROTECTED]
-------------------------
--- End Message ---
--- Begin Message ---
Hi all,
I am attaching the php file that will display a circle and on
top of it, it will show the current time. When its reloaded using the
browser's reload option. updated time is displayed. If the url is typed in
the address bar and the request is sent, it doesnt display updated time.
As a test I tried it in Netscape 7 instead of Netscape 4.75 and it worked
as expected.
I would like to get some help to fix it in the earlier version of
Netscape.
With lots of hope I'am expecting valuable solution.
Thanks & Regards,
- JFK
<?php
header("Cache-control: no-cache");
header ("Pragma: no-cache");
Header("Content-type: image/jpeg");
$image=ImageCreate(200,200);
$gray=ImageColorAllocate($image,0,204,204);
$blue=ImageColorAllocate($image,0,0,204);
ImageArc($image,50,65,70,70,0,360,$blue);
ImageString($image,3,20,20,time(),$blue);
ImageJPEG($image);
ImageDestroy($image);
?>
--- End Message ---
--- Begin Message ---
Hi,
You can let the users enter a date as 20-02-2003 into a textfield with the
name $userdate
Then you can use this function to convert it;
$date_array = split("-", $userdate);
$mysqldate = $date_array[2]."-".$date_array[1]."-".$date_array[0];
Store $mysqldate into the database!
Regards,
Frank
----- Original Message -----
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: "Mike Tuller" <[EMAIL PROTECTED]>
Cc: "php mailing list list" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 11:48 PM
Subject: [PHP] Re: Forms and MySql date
> You could use the TO_DATE function to convert that text string into a
> date, or reformat it in PHP to yyyy-mm-dd which mysql will take
> automatically (at least I think so)
>
> On Thu, 20 Feb 2003, Mike Tuller wrote:
>
> > I have a form that I want to enter a date into a MySql database. I
> > currently have the column in the database set as Date, and can't seem
> > to get the date I enter into the text field to go into the database
> > using the format yymmdd. I could change the column to varchar, and then
> > it would enter, but this will be a database that I want to keep track
> > of purchases, and if it is entered in as text, I wouldn't be able to do
> > calculations such as showing how old something is.
> >
> > How can I have a text field where a person enters the date and have
> > that information entered into the database?
> >
> > Mike
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
To avoid user error (remember, 90% of internet users are stupid and
illogical and don't know anything), just have drop down menus for the dates
and months and allow the user to enter in the year
then just do:
$mysqldate = $_POST["month"]."-".$_POST["date"]."-".$_POST["year"];
-----Original Message-----
From: Frank Keessen [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 1:21 AM
To: Philip Hallstrom
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Forms and MySql date
Hi,
You can let the users enter a date as 20-02-2003 into a textfield with the
name $userdate
Then you can use this function to convert it;
$date_array = split("-", $userdate);
$mysqldate = $date_array[2]."-".$date_array[1]."-".$date_array[0];
Store $mysqldate into the database!
Regards,
Frank
----- Original Message -----
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: "Mike Tuller" <[EMAIL PROTECTED]>
Cc: "php mailing list list" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 11:48 PM
Subject: [PHP] Re: Forms and MySql date
> You could use the TO_DATE function to convert that text string into a
> date, or reformat it in PHP to yyyy-mm-dd which mysql will take
> automatically (at least I think so)
>
> On Thu, 20 Feb 2003, Mike Tuller wrote:
>
> > I have a form that I want to enter a date into a MySql database. I
> > currently have the column in the database set as Date, and can't seem
> > to get the date I enter into the text field to go into the database
> > using the format yymmdd. I could change the column to varchar, and then
> > it would enter, but this will be a database that I want to keep track
> > of purchases, and if it is entered in as text, I wouldn't be able to do
> > calculations such as showing how old something is.
> >
> > How can I have a text field where a person enters the date and have
> > that information entered into the database?
> >
> > Mike
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I apologize
the correct order is YYYY-MM-DD so you would do:
$mysqldate = $_POST["year"]."-".$_POST["month"]."-".$_POST["date"];
-----Original Message-----
From: v0idnull [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 4:37 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Forms and MySql date
To avoid user error (remember, 90% of internet users are stupid and
illogical and don't know anything), just have drop down menus for the dates
and months and allow the user to enter in the year
then just do:
$mysqldate = $_POST["month"]."-".$_POST["date"]."-".$_POST["year"];
-----Original Message-----
From: Frank Keessen [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 1:21 AM
To: Philip Hallstrom
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Forms and MySql date
Hi,
You can let the users enter a date as 20-02-2003 into a textfield with the
name $userdate
Then you can use this function to convert it;
$date_array = split("-", $userdate);
$mysqldate = $date_array[2]."-".$date_array[1]."-".$date_array[0];
Store $mysqldate into the database!
Regards,
Frank
----- Original Message -----
From: "Philip Hallstrom" <[EMAIL PROTECTED]>
To: "Mike Tuller" <[EMAIL PROTECTED]>
Cc: "php mailing list list" <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 11:48 PM
Subject: [PHP] Re: Forms and MySql date
> You could use the TO_DATE function to convert that text string into a
> date, or reformat it in PHP to yyyy-mm-dd which mysql will take
> automatically (at least I think so)
>
> On Thu, 20 Feb 2003, Mike Tuller wrote:
>
> > I have a form that I want to enter a date into a MySql database. I
> > currently have the column in the database set as Date, and can't seem
> > to get the date I enter into the text field to go into the database
> > using the format yymmdd. I could change the column to varchar, and then
> > it would enter, but this will be a database that I want to keep track
> > of purchases, and if it is entered in as text, I wouldn't be able to do
> > calculations such as showing how old something is.
> >
> > How can I have a text field where a person enters the date and have
> > that information entered into the database?
> >
> > Mike
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have the following call:
SELECT * FROM facility LEFT JOIN fuel USING(facilityID) LEFT JOIN fuelType
ON fuel.TypeID=fuelType.ID WHERE facility.facilityID=$facilityID
The data is returned properly using mysql_fetch_row(), but
mysql_fetch_assoc() and mysql_fetch_object() set the ID of the facility to
NULL for one of the returned entries. It also looks properly when issued in
the mysql commander center. Any ideas?
--- End Message ---
--- Begin Message ---
Hi All,
I have developed some code based on open source DBPL by Shawn Bedard of Jig
Technologies. It works fine but is about 10 times slower than my normal Data
Classes. My web application will be handling lots of data for a small-medium
sized (50 employees) organization. I think the speed reduction will be felt
by the end users. Do you know of any ways one can improve on a database
persistance layer or should I try to incorporate bothe approaches?
Thanks in advance,
Joe Njeru
Nairobi, Kenya
"
Vote for the Kenyan Safari Rally on www.wrc.com
The toughest rally in the world!
"
--- End Message ---
--- Begin Message ---
El jue, 20-02-2003 a las 18:51, Matt Vos escribió:
> So forward the ports (80,443) to a box that u can run a webserver on, then
> you can user SSL.
It's an stand-alone firewall product, it's a box to be placed on a
customer, it's not a custom solution, so I cannot relay on another
machine. I need it for the Firewall Administration Utility ;-)
Regards.
--- End Message ---
--- Begin Message ---
dear all,
hi!
i have a php script filecheck2.php in which i have written the
following code.
$fp = fopen("sundar.html", "w");
fwrite($fp, "<html><head><title>diksha</title></head><body><h1>i
solved problem!");
//fwrite($fp,"</h1>your login name is : $login</h1>");
fwrite($fp,"<pre>");
fwrite($fp,"<input type=button name=valid value=\"Validate\">");
fwrite($fp, "</bodY></html>");
fclose($fp);
now when i run the php script, i am able to see "i solved
problem"
on my screen according to the code.
but i CANNOT SEE THE BUTTON !
can anyone please tell me why?
regards,
diksha.
--- End Message ---
--- Begin Message ---
Diksha,
It's very late in phpland perhaps all the coders have gone out for coffee.
However, perhaps "button" isn't what you want, try radio, submit or
checkbox.
Also, do a google search on html and button to see what's out there.
Cheers,
Hugh
----- Original Message -----
From: "DIKSHA NEEL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 12:05 AM
Subject: [PHP] button not seen
> dear all,
>
> hi!
> i have a php script filecheck2.php in which i have written the
> following code.
>
> $fp = fopen("sundar.html", "w");
> fwrite($fp, "<html><head><title>diksha</title></head><body><h1>i
> solved problem!");
> //fwrite($fp,"</h1>your login name is : $login</h1>");
> fwrite($fp,"<pre>");
> fwrite($fp,"<input type=button name=valid value=\"Validate\">");
> fwrite($fp, "</bodY></html>");
> fclose($fp);
>
> now when i run the php script, i am able to see "i solved
> problem"
> on my screen according to the code.
> but i CANNOT SEE THE BUTTON !
>
> can anyone please tell me why?
>
> regards,
> diksha.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
indeed. Your problem is an html problem because when i launch your script with
IE, the button is there but with Netscape not... Netscape is more 'strict'
than IE. When there is a single end of </head> missing for example you don't
see what you were trying to output...
So I do agree with Hugh.
Sergio
Hugh Danaher a écrit :
> Diksha,
> It's very late in phpland perhaps all the coders have gone out for coffee.
> However, perhaps "button" isn't what you want, try radio, submit or
> checkbox.
> Also, do a google search on html and button to see what's out there.
> Cheers,
> Hugh
> ----- Original Message -----
> From: "DIKSHA NEEL" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 21, 2003 12:05 AM
> Subject: [PHP] button not seen
>
> > dear all,
> >
> > hi!
> > i have a php script filecheck2.php in which i have written the
> > following code.
> >
> > $fp = fopen("sundar.html", "w");
> > fwrite($fp, "<html><head><title>diksha</title></head><body><h1>i
> > solved problem!");
> > //fwrite($fp,"</h1>your login name is : $login</h1>");
> > fwrite($fp,"<pre>");
> > fwrite($fp,"<input type=button name=valid value=\"Validate\">");
> > fwrite($fp, "</bodY></html>");
> > fclose($fp);
> >
> > now when i run the php script, i am able to see "i solved
> > problem"
> > on my screen according to the code.
> > but i CANNOT SEE THE BUTTON !
> >
> > can anyone please tell me why?
> >
> > regards,
> > diksha.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Friday 21 February 2003 16:05, DIKSHA NEEL wrote:
> i have a php script filecheck2.php in which i have written the
> following code.
>
> $fp = fopen("sundar.html", "w");
> fwrite($fp, "<html><head><title>diksha</title></head><body><h1>i
> solved problem!");
> //fwrite($fp,"</h1>your login name is : $login</h1>");
> fwrite($fp,"<pre>");
> fwrite($fp,"<input type=button name=valid value=\"Validate\">");
> fwrite($fp, "</bodY></html>");
> fclose($fp);
>
> now when i run the php script, i am able to see "i solved
> problem"
> on my screen according to the code.
> but i CANNOT SEE THE BUTTON !
Try adding some <FORM> tags (opening and closing).
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Nothing increases your golf score like witnesses.
*/
--- End Message ---
--- Begin Message ---
Diksha,
A quick google search shows that "buttons" are likely a javascript thing,
not an html or php thing. Also, I agree with Jason Wong in that <form
action= method= > and </form> tags should be in your script too.
----- Original Message -----
From: "DIKSHA NEEL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 12:05 AM
Subject: [PHP] button not seen
> dear all,
>
> hi!
> i have a php script filecheck2.php in which i have written the
> following code.
>
> $fp = fopen("sundar.html", "w");
> fwrite($fp, "<html><head><title>diksha</title></head><body><h1>i
> solved problem!");
> //fwrite($fp,"</h1>your login name is : $login</h1>");
> fwrite($fp,"<pre>");
> fwrite($fp,"<input type=button name=valid value=\"Validate\">");
> fwrite($fp, "</bodY></html>");
> fclose($fp);
>
> now when i run the php script, i am able to see "i solved
> problem"
> on my screen according to the code.
> but i CANNOT SEE THE BUTTON !
>
> can anyone please tell me why?
>
> regards,
> diksha.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Now let's see .... your "sundar.html" would look like this after your
script and a little indenting
<html>
<head>
<title>
diksha
</title>
</head>
<body>
<h1> i solved problem </h1>
<pre>
<input type=button name=valid value="Validate">
</body>
</html>
The first thing you do if you would like to write good html you validate
it at http://www.w3.org/ HTML Validator section.
The HTML Validator 1st error: No DOCTYPE definition (of course it's
optional in almost all browsers but the HTML standard says that it is
REQUIRED)
I added this DOCTYPE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
revalidate and you get this errors:
-- W3c Validator --
Below are the results of attempting to parse this document with an SGML
parser.
1. Line 13, column 7: end tag for "PRE" omitted, but its
declaration does not permit this (explain...).
</body>
^
2. Line 11, column 5: start tag was here (explain...).
<pre>
^
-- /W3c Validator --
so the code must look like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
diksha
</title>
</head>
<body>
<h1> i solved problem </h1>
<pre>
<input type="button" name="valid" value="Validate">
</pre>
</body>
</html>
And of course:
-- W3c Validator --
This Page Is Valid HTML 4.01 Transitional!
-- W3c Validator --
now .. your php script would look something like this:
-- PHP SCRIPT --
<?php
$fp=fopen("sundar.html","w");
$html_page=<<<END_HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
diksha
</title>
</head>
<body>
<h1> i solved problem </h1>
<pre>
<input type="button" name="valid" value="Validate">
</pre>
</body>
</html>
END_HTML;
fwrite($fp,$html_page);
fclose($fp);
?>
-- /PHP SCRIPT --
This should solve the problem .. It works great in Mozilla and IE but I can't test
it in Netscape because I don't have Netscape installed.
Hope it helps ...
--
Mincu Alexandru intelinet.ro
Tel:+4 0745 369719 +4 021 3140021
www.intelinet.ro [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
hi everybody,
why isn't anybody replying my last mail subject "button not
opening"
regards,
diksha.
--- End Message ---
--- Begin Message ---
On Friday 21 February 2003 16:21, DIKSHA NEEL wrote:
> why isn't anybody replying my last mail subject "button not
> opening"
It's quite rude to be asking questions like this. People reply if and when
they want to. If you want prompt support you should probably be paying
someone.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Yow! We're going to a new disco!
*/
--- End Message ---
--- Begin Message ---
hi all,
i want to organize some php code making by someone else for being good
looking and being understandable . for this work is there a any program?
thanks
mashar
--- End Message ---
--- Begin Message ---
Hi there,
I was wondering if anyone could tell me what the difference is between PHP
4.2.1 and 4.2.3?? I am already aware of the POST exploit
(http://online.securityfocus.com/archive/1/283533/2002-07-19/2002-07-25/0)
in 4.2.1. How easy is it to actually expoloit this bug?
Are there any other differences (I looked around the php site but couldn't
find anything to tell me what the differences are - if there
is somewhere just please point me to it)?
The reason I ask is that we are trying to run PHP 4.2.3 through IPlanet 6SP5
on Solaris, but it keeps crashing on the db_return function (and
the webserver reboots). According to the IPlanet docs, IPlant runs fine
with PHP 4.2.1, so we want to downgrade, but I want to ensure that
we're not using anything in our app that relies on special 4.2.3
functionality. If anyone can comment on the whole IPlanet/Solaris thing
(I've already read all the stuff in the php docs about installing PHP on
Solaris and I followed the instructions faithfully) I would
also appreciate that.
Thanks
---
Rob
**************************
Rob Cherry
mailto:[EMAIL PROTECTED]
+27 21 447 7440
Jam Warehouse RSA
Smart Business Innovation
http://www.jamwarehouse.com
**************************
--- End Message ---
--- Begin Message ---
i have quite an easy question:
is there a way in PHP to trace the selection in a certain form-field?
i need this for building a simple html-edit application,
which allows a user to select his/her text within a field, and then click
'bold' for instance..the PHP should insert <b> before the selection, and
</b> after the selection.
1) should i use PHP or is this a typical JavaScript-thing? (or a
combination?)
2) if you could help with a function or small script I would me most
grateful
grace
michiel
--- End Message ---
--- Begin Message ---
PHP is a server side language, you need a DHTML web based editor..
try this exellent FREE editor
http://www.interactivetools.com/products/htmlarea/
----- Original Message -----
From: "Michiel van Heusden" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 9:46 AM
Subject: [PHP] selection in form-field
> i have quite an easy question:
>
> is there a way in PHP to trace the selection in a certain form-field?
> i need this for building a simple html-edit application,
> which allows a user to select his/her text within a field, and then click
> 'bold' for instance..the PHP should insert <b> before the selection, and
> </b> after the selection.
>
> 1) should i use PHP or is this a typical JavaScript-thing? (or a
> combination?)
> 2) if you could help with a function or small script I would me most
> grateful
>
> grace
> michiel
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
In the ZIP extension, is plan to add a kind of zip_entry_crc32() whitch
return the crc32's entry?
>> Paolo
--- End Message ---
--- Begin Message ---
Respected Mr. Jason Wong,
I am sorry you felt bad, but please let me add that
I had no intentions of being rude of anybody.
It just happened that today I did not find anybody on
the mailing list and asked the question casually out of
curiosity.And in reply wanted to know what are the normal
timings during which you guys are available for your
precious help.
I request you not to misconstrue my innocent words.
Begging for apology,
Sincerely yours,
Ms. Diksha Neel
--- End Message ---
--- Begin Message ---
test
--- End Message ---
--- Begin Message ---
Hello,
I 've a problem with the LDAP charset, the special chars of an LDAP entry
aren't displayed right. I tried to convert it with the function
string ldap_t61_to_8859 ( string value)
but this function istn't avaliable. I have PHP 4.2.2 installed, and it
should be avaliable since 4.0.2.
Of course I have activated the LDAP extension. Is it possible that i have to
activate something additional?
Is there way to translate t61 to iso-8859-1 charset without using the LDAP
function?
Or is there any other way to fix my problem?
Thanks for helping,
best regards
Harald Reingruber
P.S. Please excuse my bad english.
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
--- End Message ---