Re: [PHP] Problem retrieving CN with ldap_search()

2010-02-18 Thread Marcel Loose
Hi all,

Sorry to reply to myself, but I finally solved the issue. In the end it
turned out it *did* have something to do with the LDAP configuration.
For some reason, retrieval of 'cn' attributes was disallowed, as can be
seen in this snippet from /etc/openldap/slapd.conf: 

access to attrs=userPassword,userPKCS12,cn 
 by self write 
 by * auth 

Removing 'cn' from 'attrs' solved the problem. 

Best regards, 
Marcel Loose. 



On 2/17/10, Marcel Loose  wrote:
> Hi all,
>
> I've posted this question to comp.lang.php a couple of days ago, but
up
> till now didn't get a really useful answer. So, here it is:
>
>
> I' m facing the following problem. I try to retrieve the Common Name
> (cn) from an LDAP database, using the commands:
>
> $result = ldap_search($ldap,$basedn, 'mail='.$email,
array('dn','cn'));
> $entries = ldap_get_entries($ldap, $result);
>
> The weird thing is that $entries[0]['cn'] is empty. I know the search
> command succeeded, because $entries[0]['dn'] contains the correct
> information. Furthermore, if I issue the following commands:
>
> $result = ldap_search($ldap,$basedn, 'mail='.$email);
> $entries = ldap_get_entries($ldap, $result);
> var_dump($entries);
>
> I get:
>
> array(2) { ["count"]=>  int(1) [0]=>  array(24) { ["objectclass"]=>
> array(4) { ["count"]=>  int(3) [0]=>  string(13)
> "shadowAccount" [1]=>  string(12) "posixAccount" [2]=>  string(13)
> "inetOrgPerson" } [0]=>  string(11) "objectclass" ["gecos"]=>
> array(2) { ["count"]=>  int(1) [0]=>  string(12) "Marcel Loose" }
> [1]=>  string(5) "gecos" ["uid"]=>  array(2) { ["count"]=>  int(1)
> [0]=>  string(5) "loose" } [2]=>  string(3) "uid" ["sn"]=>  array(2)
> { ["count"]=>  int(1) [0]=>  string(5) "Loose" } [3]=>  string(2)
> "sn" ["givenname"]=>  array(2) { ["count"]=>  int(1) [0]=>  string(6)
> "Marcel" } [4]=>  string(9) "givenname" ["uidnumber"]=>  array(2)
> { ["count"]=>  int(1) [0]=>  string(3) "511" } [5]=>  string(9)
> "uidnumber" ["mail"]=>  array(2) { ["count"]=>  int(1) [0]=>
> string(15) "lo...@astron.nl" } [6]=>  string(4)
> "mail" ["gidnumber"]=>  array(2) { ["count"]=>  int(1) [0]=>
> string(4) "1000" } [7]=>  string(9)
> "gidnumber" ["shadowlastchange"]=>  array(2) { ["count"]=>  int(1)
> [0]=>  string(5) "14127" } [8]=>  string(16)
> "shadowlastchange" ["homedirectory"]=>  array(2) { ["count"]=>  int(1)
> [0]=>  string(11) "/home/loose" } [9]=>  string(13)
> "homedirectory" ["loginshell"]=>  array(2) { ["count"]=>  int(1)
> [0]=>  string(9) "/bin/bash" } [10]=>  string(10)
> "loginshell" ["count"]=>  int(11) ["dn"]=>  string(35)
> "uid=loose,ou=people,dc=astron,dc=nl" } }
>
> As can be seen, the Common Name (cn), is mysteriously missing. The
> information IS present in the LDAP database, though. Here's a snippet
> of the output of 'slapcat', for the given user:
>
> dn: uid=loose,ou=people,dc=astron,dc=nl
> objectClass: shadowAccount
> objectClass: posixAccount
> objectClass: inetOrgPerson
> gecos: Marcel Loose
> uid: loose
> sn: Loose
> givenName: Marcel
> structuralObjectClass: inetOrgPerson
> entryUUID: 2375bf08-e435-102b-8b97-3952138d3cf7
> creatorsName: cn=Manager,dc=astron,dc=nl
> createTimestamp: 20070821132115Z
> uidNumber: 511
> mail: lo...@astron.nl
> gidNumber: 1000
> shadowLastChange: 14127
> cn: Marcel Loose
> userPassword:: <>
> homeDirectory: /home/loose
> loginShell: /bin/bash
> entryCSN: 20100104140045Z#00#00#00
> modifiersName: cn=Manager,dc=astron,dc=nl
> modifyTimestamp: 20100104140045Z
>
> Am I using ldap_search() incorrectly? Or is this a problem with the
> PHP-LDAP module? Or is it a caused by a misconfiguration of LDAP?
>
> Best regards,
> Marcel Loose.
>
>
>
> --
> 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] Problem retrieving CN with ldap_search()

2010-02-17 Thread Marcel Loose
Hi all,

I've posted this question to comp.lang.php a couple of days ago, but up
till now didn't get a really useful answer. So, here it is:


I' m facing the following problem. I try to retrieve the Common Name 
(cn) from an LDAP database, using the commands: 

$result = ldap_search($ldap,$basedn, 'mail='.$email, array('dn','cn')); 
$entries = ldap_get_entries($ldap, $result); 

The weird thing is that $entries[0]['cn'] is empty. I know the search 
command succeeded, because $entries[0]['dn'] contains the correct 
information. Furthermore, if I issue the following commands: 

$result = ldap_search($ldap,$basedn, 'mail='.$email); 
$entries = ldap_get_entries($ldap, $result); 
var_dump($entries); 

I get: 

array(2) { ["count"]=>  int(1) [0]=>  array(24) { ["objectclass"]=> 
array(4) { ["count"]=>  int(3) [0]=>  string(13) 
"shadowAccount" [1]=>  string(12) "posixAccount" [2]=>  string(13) 
"inetOrgPerson" } [0]=>  string(11) "objectclass" ["gecos"]=> 
array(2) { ["count"]=>  int(1) [0]=>  string(12) "Marcel Loose" } 
[1]=>  string(5) "gecos" ["uid"]=>  array(2) { ["count"]=>  int(1) 
[0]=>  string(5) "loose" } [2]=>  string(3) "uid" ["sn"]=>  array(2) 
{ ["count"]=>  int(1) [0]=>  string(5) "Loose" } [3]=>  string(2) 
"sn" ["givenname"]=>  array(2) { ["count"]=>  int(1) [0]=>  string(6) 
"Marcel" } [4]=>  string(9) "givenname" ["uidnumber"]=>  array(2) 
{ ["count"]=>  int(1) [0]=>  string(3) "511" } [5]=>  string(9) 
"uidnumber" ["mail"]=>  array(2) { ["count"]=>  int(1) [0]=> 
string(15) "lo...@astron.nl" } [6]=>  string(4) 
"mail" ["gidnumber"]=>  array(2) { ["count"]=>  int(1) [0]=> 
string(4) "1000" } [7]=>  string(9) 
"gidnumber" ["shadowlastchange"]=>  array(2) { ["count"]=>  int(1) 
[0]=>  string(5) "14127" } [8]=>  string(16) 
"shadowlastchange" ["homedirectory"]=>  array(2) { ["count"]=>  int(1) 
[0]=>  string(11) "/home/loose" } [9]=>  string(13) 
"homedirectory" ["loginshell"]=>  array(2) { ["count"]=>  int(1) 
[0]=>  string(9) "/bin/bash" } [10]=>  string(10) 
"loginshell" ["count"]=>  int(11) ["dn"]=>  string(35) 
"uid=loose,ou=people,dc=astron,dc=nl" } } 

As can be seen, the Common Name (cn), is mysteriously missing. The 
information IS present in the LDAP database, though. Here's a snippet 
of the output of 'slapcat', for the given user: 

dn: uid=loose,ou=people,dc=astron,dc=nl 
objectClass: shadowAccount 
objectClass: posixAccount 
objectClass: inetOrgPerson 
gecos: Marcel Loose 
uid: loose 
sn: Loose 
givenName: Marcel 
structuralObjectClass: inetOrgPerson 
entryUUID: 2375bf08-e435-102b-8b97-3952138d3cf7 
creatorsName: cn=Manager,dc=astron,dc=nl 
createTimestamp: 20070821132115Z 
uidNumber: 511 
mail: lo...@astron.nl 
gidNumber: 1000 
shadowLastChange: 14127 
cn: Marcel Loose 
userPassword:: <> 
homeDirectory: /home/loose 
loginShell: /bin/bash 
entryCSN: 20100104140045Z#00#00#00 
modifiersName: cn=Manager,dc=astron,dc=nl 
modifyTimestamp: 20100104140045Z 

Am I using ldap_search() incorrectly? Or is this a problem with the 
PHP-LDAP module? Or is it a caused by a misconfiguration of LDAP? 

Best regards, 
Marcel Loose. 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Problems with Mcrypt - encoding works, but decoding hangs

2004-08-23 Thread Marcel Guzman
Hi all,

I'm in the process of writing a script that will accept credit cards
through a secure html form,
 and then encrypt them using MCRYPT_RIJNDAEL_256 and store them in my mysql 
database.  

When I run the following code snippet, nothing is returned through the
server - the
connection is established, but the server appears to be hanged.
Through a process of
commenting and uncommenting lines, I've discovered that the decrypting
line is causing the
problem.

';

$encrypted = 
mcrypt_encrypt(MCRYPT_RIJNDAEL_256,$key,$ccno,MCRYPT_MODE_CBC,$iv);
echo 'Encrypted: ' . bin2hex ($encrypted) . '';
echo 'Encrypted base64: ' . base64_encode($encrypted) . '';

$iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256,
MCRYPT_MODE_CBC),MCRYPT_RAND);
$newccno = 
mcrypt_decrypt(MCRYPT_RIJNDAEL_256,$key,$encrypted,MCRYPT_MODE_CBC,$iv);
echo 'Decrypted: ' . $newccno . '';
echo 'Decrypted trimmed: ' . trim($newccno) . ''; 
?>


(in the above code block, if I comment out the mcrypt_decrypt line,
everything works fine)

Note - this *was* just installed on my webhost by my request - there
could have been an installation error. The files and instructions used
were the windows binaries at www.php.net/mcrypt . If you think this
question could be better answered on php-windows, please let me know
:)

Any suggestions? :)

Thanks!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Optimize simple file XOR code

2004-06-24 Thread Marcel Tschopp
Hi Marcus

Try this:

function CryptFile($hash, $filename)
{
// The key used is generated using another function.
// Since this function is only called once it has
// nothing to do with the performance of this function
$key = GenerateKey($hash);
$keylen = strlen($key = implode('', $key));

$handle = fopen($filename, 'r');
while (!feof($handle))
{
  // Set the time limit or the script will time out
  // on large files
  set_time_limit(30);

  $data = fread($handle, 8192);
  for ($i = 0; $i < strlen($data); $i = $i + $keylen)
  {
$data = substr_replace($data, substr($data, $i, $keylen) ^ $key, $i, $keylen);
  }

  // Return the encrypted version to the browser
  echo $data;
}
}

It should return the same results, but at my machine it is about 30
percent faster.

Cheers
Marcel


> Hi!
> 
> I'm using a very simple algorithm to encrypt files sent from the server
> "On Demand". The algorithm uses XOR for the encryption. My problem is
> that the code is very slow, it can only process about 40 KB per second
> on my system, so my question is, is there any more speed optimized way
> to write this code?
> 
> Here is my function:
> 
>   function CryptFile($hash, $filename)
>   {
> // The current position in the key generated below
> $key_pos = 0;
> 
> // The key used is generated using another function.
> // Since this function is only called once it has
> // nothing to do with the performance of this function
> $key = GenerateKey($hash);
> 
> $handle=fopen($filename, "r");
> while (!feof($handle))
> {
>   // Set the time limit or the script will time out
>   // on large files
>   set_time_limit(30);
> 
>   $data = fread($handle,8192);
>   for ($i=0; $i   {
> // Change the data read from the file by using
> // XOR with the key
> $data[$i] = $data[$i] ^ $key[$key_pos];
> 
> // Calculate the next position in the key
> $key_pos=($key_pos+1) % count($key);
>   }
> 
>   // Return the encrypted version to the browser
>   echo $data;
> }
>   }
> 
> My guess is that if one should start optimizing the code anywhere, it
> would be within the for-loop. Any ideas?
> 
> Thanks in advance!
> 
> Regards,
> Marcus
> 
> -- 
> 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] DSOFile issues

2004-06-22 Thread Marcel Tschopp
Hi everybody,

I need to get the Office Document Properties from MSWord-files and i
found DSOFile for COM:
http://support.microsoft.com/support/kb/articles/Q224/3/51.asp

But now the problem is, that the COM Object don't releases the file
lock. Here is the code I use:

getDocumentProperties($info['dirname'] . '/Dok0.doc');
$custProps = $docProps->customProperties;

while($elem = $custProps->next()) {
echo $elem->Name . ': ' . $elem->Value . '';
}

unset($custProps);
unset($docProps);
unset($propReader);

?>

I don't find anything online about that problem... Does anyone have
experience with DSOFile?

Thanks in advance,
Marcel Tschopp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Re: Auth_User

2004-06-21 Thread Marcel Tschopp
Eventually the apache module mod_ntlm (http://modntlm.sourceforge.net/)
could help... don't know if it really works but it looks very
interesting.

cheers
Marcel

> If you are using IIS with PHP as an ISAPI-module, it is possible to find out
> the NT-User through $_SERVER['AUTH_USER'].
> Apparently it is not so easy on Apache.
> Does anyone know a solution?
> 
> Gabor
> 
> 
> "Gerben" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> > This var means something else
> > when you write the following code:
> > Header("WWW-Authenticate: Basic realm=\"Enter username and
> password\"");
> > Header("HTTP/1.0 401 Unauthorized");
> > Your browser will produce a popup requesting a username an password
> >
> > This it what you get returned when using $_SERVER['AUTH_USER']
> >
> >
> >
> >
> > "Gabor NiederläNder" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > Hi!
> > >
> > > I have installed a Apache Server (+php) in a Windows NT network. I
> > > would like to identify the Windows NT user visiting my php pages.
> > > When I was using IIS, I think it was quite easy to find it out through
> > > the $_SERVER['AUTH_USER'] variable. But it doesn't seem to work with
> > > apache. Is there another way?
> > >
> > > Cheers,
> > > Gabor
> 
> -- 
> 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



Re: [PHP] Programming User-Customized Categories ??

2004-06-18 Thread Marcel Tschopp
Hey

Why don't you make a second table 'categories' and have the two tables
in relation?
For example:

Table 'contacts':
id   name  category_id
--
 0   John Doe3(Category "New York Office")
 1   Jane Smith  4(Category "Orlando Office")
 2   Mark Jones  2(Category "Creative")

Table 'categories':
id   nameparent_id
--
 1   Sales   0(Main category)
 2   Creative0(Main category)
 3   New York Office 1(Subcategory of "Sales")
 4   Orlando Office  1(Subcategory of "Sales")

So you have unlimited subcategories and the users can choose and add
them easily. In addition, you have normalized your data...

cheers
Marcel


On Fri, 18 Jun 2004 16:29:14 -0400
Monty wrote:

> Hi, I need to add the ability for users to define and set up their own
> categories and sub-categories that can be used to group contacts they enter
> into a database. Here's an example of how the data might be stored...
> 
> 
> NameMain Category   Sub Category
> -   -   
> John DoeSales   New York Office
> Jane Smith  Sales   Orlando Office
> Mark Jones  Creative
> Sarah Williams  Creative
> Kevin Brown Manager Office Manager
> Joe Johnson Manager Site Manager
>
> 
> I need to allow users to define the types of Main Categories they want, and
> to also define whether or not those Main Categories will have Sub
> Categories, which they can also define.
> 
> I know how to do this if the types of categories and sub-categories were
> pre-defined, but, I'm finding it a lot trickier to allow the users to
> customize these with their own category types. So, I'm hoping someone might
> be able to point me to an example of how custom categories and
> sub-categories can be programmed in PHP and set up in MySQL.
> 
> Any suggestions or advice would be much appreciated!
> 
> Monty
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--

Marcel Tschopp <[EMAIL PROTECTED]>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session on PHP 4.3.0

2002-11-04 Thread Marcel
Hi,

I'm having some problems with session on version 4.3.0.
On 4.1.1 it was working perfectly. Here are the sources
of login.php and logout.php:

login.php

session_start();
$GLOBALS["SID"] = "PHPSESSID=".session_id();
$GLOBALS["var1"] = $HTTP_SESSION_VARS["var1"];



logout.php

session_start();
$GLOBALS["SID"] = "PHPSESSID=".session_id();
session_destroy();
setcookie(session_name(),"","","/");




When user clicks to logout.php, the session must be destroyed,
with no need to close the browser.

Thanks,


-- 
Marcel Peruch
Web Developer
www.viaconnect.com.br
[EMAIL PROTECTED]
Linux User #271282

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] browser back-button problem

2002-10-16 Thread marcel

hi there
I am kind of a newbie to php
so probably I am doing it all the wrong way - if - please tell me

ok heres my problem:
the script:
I have  a user-group-administration script (php4), that loads data from
a textfile and then eables the admin to delete or create new user-passwords.
the script retreives the text data from the text-file and displays the
entrys.
to every entry there is a delete-button, that sends the number of the entry.
and there are formfields and a new-button that sends the new data.
the script that is called is the same script as the one that does the
displaying,
e.g. depending on the sent variables the script delets or creates an entry
then displays the new data.

the problem:
if someone uses the back-button of his browser, the data is transferred
again ( at
the moment I do it with POST out of the form), and the actions are executed
again.
e.g. when the user created a new entry, verytime he hits the back-button
will create
a new - similar - entry.

How can I prevent this?
I saw several forms, that displayed this: "form is expired" thing, if you
used the back-button (?).


thanks a lot
marcel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Last URL visited

2002-08-31 Thread Marcel Besancon

Hallo,

I don't know if I understood you correctly. But one way to get the url of
the last visited page is using

$foobar = getenv('HTTP_REFERER');

This write the url of the last visited page to the variable $foobar.

Hope this helps

Best regards

Marcel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: mysql_result

2002-08-10 Thread Marcel Besancon

Hi Sascha,

just use the modulus-operator (%).

It's the best way.

Bye Marcel
--
registered Fli4l-User #0388
Answer to the newsgroup please 


"Sascha Braun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001201c23f29$760a22e0$a48a07d5@billsgate">news:001201c23f29$760a22e0$a48a07d5@billsgate...
I need some help!

I am getting a result out of my link Database an want it to Display the
result in two
collums like this:

+-++
+ Result 1+  Result 2  +
+-++
+Result 3 + Result 4   +
+-++

and so on please help!

Thanx




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: PLEASE: Second request...

2002-05-29 Thread Marcel Besancon

Hi Shane,

> Second request... Please, any help out there for where I can download the
best GD
> module for PHP 4.0.6 on my WIN 2000 IIS box.

maybe this can help you

http://kromann.info/php4.php

Bye, Marcel




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Not a PHP-Problem ...

2002-05-29 Thread Marcel Besancon

Hi everybody,

this is not a PHP-problem. I just need ti know the whois-servers for the
following tld's.
.info, .net. As everybody knows the whois question for example .com has to
be send to "whois.networksolutions.com". I hope anybody knows a source where
to find some of the adresses.

Thank all of you

Marcel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: testing for blank var

2002-03-21 Thread Marcel Besancon

Hi Robert,

maybe your variable doesn't exist. Try using

if(!isset($variable))  {
missing-message  }
else  {
show $variable  }

I hope this helps.

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Marcel Besancon

Hi,

i know that one is server-side and the other is client-side. But what i
meant ist the following. I have a script with a form. By submitting this
form and checking out some values php should call a javascript-function
(such as an alert). You see the php-script shall call the
javascript-function by "refreshing" the whole page.

Bye,

Marcel

--
registered Fli4l-User #0388
"Scott Furt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Short answer: no.
>
> Long answer: have the PHP script output javascript code
> to the browser.
>
> PHP = server-side
> Javascript = client-side
>
> Marcel Besancon wrote:
> > Hi everybody,
> >
> > is there someone who can tell me how to call a javascript-function
by a
> > php-script.
> >
> > Thanks for each answer
> >
> > Marcel
> >
> > --
> > registered Fli4l-User #0388
> >
> >
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Marcel Besancon

Hi everybody,

is there someone who can tell me how to call a javascript-function by a
php-script.

Thanks for each answer

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Two easy HTML/CSS questions

2002-03-18 Thread Marcel Besancon

Hi Phil,

here's an answer to your first question. You can use colorchanging links
when put formatting code like this one:

a:link { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:black; text-decoration:none; font-size:13pt; }
a:hover { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:blue; text-decoration:underline; font-size:13pt;
background:darkgray; }
a:visited { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:black; text-decoration:none; font-size:13pt; }

into a css-file.

I'm sorry, but i don't know an answer for your second question. But like I
remember this must be possible with CSS too. But I don't know exactly how.

Hope this helps

Marcel Besancon


--
registered Fli4l-User #0388
"Phil Schwarzmann" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I know I shouldn't be asking these questions on this mailing list but
> you guys are ALWAYS EXTREMELY helpful...
>
> 1) I want a a text link to change color when the mouse is hovering over
> top of it.  How do I do this?  Im sure it's some CSS thingy.
>
> 2) Is it possible to make a "text field" smaller when using forms.
> Let's say I'm using font size 1, I want the text field to be just as
> small as the rest of text.
>
> Thanks again
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: IMAGE Manipulation

2002-03-16 Thread Marcel Besancon

Hi Dani,

> I'm trying to resize images from a big image to smaller image in
> dimension and also file size so that when a user upload an image into
> server, when a browser display the picture it desn't have to be as big.
> I hope my question make sense.

a good way for working with images is using the gd-library. Just look at
http://www.boutell.com/gd/. Ther's a possibility to download the extension
and there are some introductions too.

I hope this helps

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Changing 2 frames ...

2002-03-15 Thread Marcel Besancon

Hi everybody,

is it possible to change two frames at one time using a php-script. For
example: When I click on a link then the right _and _ the left frame should
change to another side. Ist this possible or do I have to use JavaScript
instead ???

Any answer can be useful

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Broken DLL's ...

2002-03-13 Thread Marcel Besancon

Hi everybody,

is it possible that there are some broken DLL's in the distributions ??
For example the php_curl.dll . I tried to uncomment it in the php.ini-file
and got an error. But by replacing the php_curl.dll with another
php_curl.dll from the net it works fine.

Is it only me who has this kind of "error" ???

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php.ini ...

2002-03-11 Thread Marcel Besancon

Hi,

thanks for last posting. But that doesn't work with me. Don't ask me
why. I will try further. Maybe I have better luck with this 4.1.2 version. I
was told that the php_gd.dll is included there.

Thanks a lot,

Sincerely

Marcel

--
registered Fli4l-User #0388
"Ray Hunter" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Before you installed did you make a copy of the php.ini file...?  If you
did
> not then it might have been overwritten with the new installation.
>
> Sounds like you did the basic installer installation.  You might need to
> download the zip file and do a manual installation to get the required
data.
>
>
>
> Thank you,
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -Original Message-
> From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php.ini ...
>
>
> Hi, it's me again,
>
> when I used the PHP 4.0.6 I had a php.ini with a lot of entries. Now,
at
> Version 4.1.1, there's a php.ini with this content:
>
> --
--
> -
> ; php.ini for PEAR tests
> include_path=..
> [mail function]
> SMTP= localhost ; for Win32 only
> sendmail_from= [EMAIL PROTECTED] ; for Win32 only
> upload_tmp_dir = C:\PHP\uploadtemp  ; temporary directory for HTTP
uploaded
> files (will use system default if not specified) [Session]
> session.save_path= C:\PHP\sessiondata; argument passed to save_handler
> [PHP]
> error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE | E_WARNING |
> E_COMPILE_WARNING | E_CORE_WARNING | E_USER_WARNING) ; display all errors
>
> --
--
> -
>
> Now, where can I find the entries for the extensions that you should be
> used? I want to use the gd-library. I copied the DLL to the include-path
(I
> don't know if that's the correct way !!!), but now I can't tell PHP to use
> the DLL!!! Please help me !!!
>
> Marcel
>
> --
> registered Fli4l-User #0388
>
>
>
> --
> 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] php.ini ...

2002-03-11 Thread Marcel Besancon

Hi, it's me again,

when I used the PHP 4.0.6 I had a php.ini with a lot of entries. Now, at
Version 4.1.1, there's a php.ini with this content:


-
; php.ini for PEAR tests
include_path=..
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
upload_tmp_dir = C:\PHP\uploadtemp  ; temporary directory for HTTP uploaded
files (will use system default if not specified)
[Session]
session.save_path= C:\PHP\sessiondata; argument passed to save_handler
[PHP]
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE | E_WARNING |
E_COMPILE_WARNING | E_CORE_WARNING | E_USER_WARNING) ; display all errors


-

Now, where can I find the entries for the extensions that you should be
used? I want to use the gd-library. I copied the DLL to the include-path (I
don't know if that's the correct way !!!), but now I can't tell PHP to use
the DLL!!! Please help me !!!

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Installing PHP 4.1.2

2002-03-11 Thread Marcel Besancon

Hi everybody,

i've got a problem again. I want to install PHP 4.1.2. Now my problem:
There's only a source code distribution on php.net. How do I install it on
Windows XP? I read the documentation, but I all I understood was "bla". So,
you see I understood nothing. Is there anyone who can explain it an easy way
???

Thanks.

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] gd-library ...

2002-03-09 Thread Marcel Besancon

Hi,

i'm trying to use the gd-library under windows, but it doesn't work. How
can I include the gd.dll? Where do I put this file? I tried some different
directories which are written in the php.ini as include-directories. What am
I doing wrong? Is there a way to use this library under windows???

Any hint can be useful.

Sincerely

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




AW: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Marcel Besancon

Hi, 

maybe it's a problem of netscape. In many cases netscape doesn't
work like the IE. Just remember CSS and other things !!!

Marcel

> -Ursprüngliche Nachricht-
> Von: Dani [mailto:[EMAIL PROTECTED]]
> Gesendet: Samstag, 19. Januar 2002 15:47
> An: Nick Wilson
> Cc: [EMAIL PROTECTED]
> Betreff: Re: [PHP] PHP - browser - ERROR !
> 
> Hi again!
> 
> I tried it and I still get the error.
> 
> Do you think that this has somthing todo with my PWS server? or the
installation
> of PHP?
> 
> thanks!
> 
> Nick Wilson wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > * On 19-01-02 at 12:35
> > * Dani said
> >
> > > Hi Nick!
> > > Thanks for the reply.
> > >
> > > here the code: This works on IE but not Netscape (strange!)
> > >
> > > session_start();
> > > if (!isset($lgname)&&!isset($passw))
> > >  {
> > > include("login_input.php");
> > >  }
> > >
> > >  else
> > >
> > >  {
> > >  if ($checkpsw)
> > >{
> > >   session_register("session_login");
> > >   $session_login =$lgname;
> > >   include("admin.php");
> > > }
> > >   else
> > >   {
> > >   echo"Not a member!";
> > >   }
> > > }
> > >
> > > thanks!
> > >
> > > > > Hi!
> > > > >
> > > > > I'm trying to make a user login page and it works fine with
Internet
> > > > > explorer. However when I try it using Netscape 4.5 I get this
ERROR
> > > > > message:
> > > > >
> > > > > "HTTP Error 405
> > > > >
> > > > > 405 Method Not Allowed
> > > > >
> > > > > The method specified in the Request Line is not allowed for
the resource
> > > > > identified by the request. Please ensure that you have
> > > > > the proper MIME type set up for the resource you are
requesting.
> > > > >
> > > > > Please contact the server's administrator if this problem
persists."
> >
> > Hmmm. I'm sorry Dani, I can't see *anything* really wrong with
it.
> > I suspect it's a session thing though unless one of your includes is
> > trying to post data of some kind?
> > Try taking all the session stuff out and seeing if it still produces
the
> > error and let us know what happens?
> >
> > Nick Wilson
> >
> > Tel:+45 3325 0688
> > Fax:+45 3325 0677
> > Web:www.explodingnet.com
> >
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.0.6 (GNU/Linux)
> >
> >
> iD8DBQE8SVvAHpvrrTa6L5oRAot6AKCixnV+2yD1A80yxgK6Ox8M+jJTyQCgl0t5
> > MKXb4aCs6kSIWZoipyvoPvA=
> > =BLMw
> > -END PGP SIGNATURE-
> >
> > --
> > 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 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 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]




AW: [PHP] MORE QUESTION - Editing Database

2002-01-10 Thread Marcel Besancon

Hi Dani,

i do prefer using a database. I think it is the most dynamic way
for creating and (important !!!) managing a website. Preformatted text
isn't a problem with a database. 

Bye, Marcel

> -Ursprüngliche Nachricht-
> Von: Dani [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 10. Januar 2002 18:37
> An: PHP LIST
> Betreff: [PHP] MORE QUESTION - Editing Database
> Wichtigkeit: Hoch
> 
> Hi again!
> 
> I'm trying to develop a website where the user can edit the article
> online. What is the best way to do this?
> 
> is it better using database or fopen() functions?
> 
> in mycase because the text (article ) is containing some pre formated
> text, which one is the best way to do it?
> 
> Thank you!
> 
> 
> 
> --
> 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 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] connect to sybase

2001-09-25 Thread Edney Marcel Imm

Hi

How I can connect to syBase?

Tks



[PHP] chat with php

2001-09-25 Thread Edney Marcel Imm

HI. 

Anyone have a chat with php?

tks



[PHP] php and Interbase

2001-08-29 Thread Edney Marcel Imme

HI. 

Anyone use php with Interbase here?


Tks. 
Edney Marcel Imme
ICQ: 109374340



[PHP] Fw: http methods

2001-08-16 Thread Edney Marcel Imme


Hi. 
Can anyone send me examples from http methods?
(PUT, HEAD, GET, POST, DELETE, TRACE). 

Tks

Edney Marcel Imme
[EMAIL PROTECTED]
Fone: Celular: 91124616
==
"Voce quer REALMENTE que o e-commerce de certo no Brasil ?  Então compre 
pela Internet..."
==
A informação transmitida destina-se apenas à pessoa a quem foi endereçada e pode 
conter 
informação confidencial, legalmente protegida e para conhecimento exclusivo do 
destinatário. Se o leitor desta informação não for o seu destinatário, fica ciente de 
que sua leitura, divulgação, distribuição ou cópia é estritamente proibida. Caso a 
mensagem tenha sido recebida por engano, favor comunicar o remetente e deletar o texto 
de qualquer computador ou servidor.



[PHP] RE: Macbinary? How to deal with it?

2001-05-15 Thread Dormanns Marcel

Hello Jason.

I had similar problems on windows. I found out that somewhere in my script
there was a fopen() and a consequent file read, which behaves different on
Unix than on windows when used on binary files. I could solve this by using
the b-switch with fopen(), forcing binary file (see docs for precise use).
It has no effect on Unix.

Hope this helps,

Marcel.


---
Marcel Dormanns, system manager
Kossuth Zsuzsanna Technical and Grammar School
6800 Hodmezovasarhely, Kaszap u 29, Hungary
Tel(work) +36-62-241811 Fax(work) +36-62-244884
SMS: [EMAIL PROTECTED]

 

-Eredeti üzenet-
Feladó: Jason Lam [mailto:[EMAIL PROTECTED]]
Küldve: Tuesday, May 15, 2001 01:15
Címzett: [EMAIL PROTECTED]
Tárgy: Macbinary? How to deal with it?


I am having a lot of trouble with letting user upload files and download
again (target group - mac user). I tried with many application files that
does not work (executable in PC terms). Everytime I upload this kind of
files, it will become corrupted, the content type of the upload is
application/x-macbinary. Is this the right type?

I have tried to make some self extracting file with stuffit (MacOS format,
filename.sea) then upload it. FTPing it back down, the file is already
corrupted, however just normal FTP won't corrupt the file, I am assuming
something has to do with handle of the uploaded file.

Can anyone provide some hints as to how to properly handle these mac files?

Jason Lam


--
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] error_log creates duplicate entries

2001-03-15 Thread Marcel Levy

I get this in my error log:

[Thu Mar 15 12:48:03 2001] [error] Strange
[Thu Mar 15 12:48:03 2001] [error] Strange
[Thu Mar 15 12:48:03 2001] [error] Strange

when I make a single call to error_log():



I'm running 4.0.3pl1, Apache 1.3.14 on 2.2.16-22smp. Any ideas?

-Marcel

Marcel Levy
[EMAIL PROTECTED]




-- 
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] Number in extense

2001-03-15 Thread Marcel Henrique Scandolara - Wide

How could make a function to write number in extense,  example:
Write 10
soon below appearsTEN

How ?

Thanks

Marcel Henrique




-- 
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] Value

2001-03-14 Thread Marcel Henrique Scandolara - Wide

How could make a function to write values in extense,  example:
Write 10
soon below appears(Ten)

How ?

Thanks

Marcel Henrique


-- 
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] values for extensive

2001-03-14 Thread Marcel Henrique Scandolara - Wide

As I could make a function to write values for extensive,  example:
It types 10
soon below appears (Ten)

Obliged for the attention

Marcel Henrique


-- 
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] TAB = ENTER ????

2001-03-14 Thread Marcel Henrique Scandolara - Wide

Please,

As I make to make keyboard key  to function equal keyboard key


Thanks

Marcel Henrique
from Brazil


-- 
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]