Re: [PHP] trans id problem
Hello Luciano, i have a big problem with form with method post. the php correclty add the hidden session variables but it seem that it does not arrive to the page. Having toggled session's use_trans_sid first time myself last week, take care to: * restart apache on the server side (you apparently did this, otherwise get wouldnt have worked) * reload the page on the browser side (after having disabled cookies), make sure the page is not cached (then it would be without PHPSESSID or with the wrong PHPSESSID) If then there is still a problem, you can check: * in the page containing the method=POST form there must be hidden ... tags somewhere with the PHPSESSID in the form's HTML source * as a last resort for any network transfer, you also could use http://www.wireshark.org/ to look at what really goes over the wire HTH, -- Holger Blasum +49-174-7313590 (cell) GnuPG 1024D/ACDFC3B769DC1ED66B47 signature.asc Description: Digital signature
Re: [PHP] ldap change password
Hi Fabio, On 03-07, Fabio Silva wrote: Hi all, i would like to know if anybody has a script in php that change the password of the users in ldap??? That the user can do it by yourself http://logout.sh/computers/ldap/ looks like a starting point. In that example, however the connection from the web server to the ldap server is not encrypted (which might be an issue if the webserver is different from the ldap server and you are not using ssh tunnelling for the connection), googling ldap_connect and 663 (the port of LDAP with TLS) gives you other recipes. (For the TLS exchange you would also have to generate an X.509 cert, see eg http://www.guug.de/veranstaltungen/ffg2003/papers/ffg2003-blasum-en.pdf for essentially the same where python was used in place of php.) Regards, -- Holger Blasum +49-174-7313590 (cell) GnuPG 1024D/ACDFC3B769DC1ED66B47 signature.asc Description: Digital signature
Re: [PHP] Matching logins to an old htpasswd file
Hello Ryan, On 03-03, Ryan A wrote: test:dGRkPurkuWmW2 (test:test) test1:dGlAW3zdxeAG2 (test1:test1) $php -r print crypt('test',base64_encode('test'));; - dGRkPurkuWmW2 $php -r print crypt('test1',base64_encode('test1'));; - dGlAW3zdxeAG2 So compare the password string with the output of crypt with the password as its key and salt argument. (References: http://www.htaccesstools.com/forum/index.php/t/25/ , crypt(3) man page) Remark: Asking users to send their login password via an unencrypted webpage only should be done within secure networks. (Anyone can sniff HTTP, use HTTPS otherwise.) HTH, -- Holger Blasum +49-174-7313590 (cell) GnuPG 1024D/ACDFC3B769DC1ED66B47 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PDF Overflow
On 02-28, Eddie Schnell wrote: I am writing a PHP file that outputs a PDF file that will have a bunch of data from the data base. After the ammount of data hits 24 pieces(23 with 0) i need it to go to a new page. I am using the PDFB Library which contains a custom barcode thing, FPDI+FPDF. PDFB's $pdf-AddPage(); looks like what you need? Kind regards, -- Holger Blasum +49-174-7313590 (cell) GnuPG 1024D/ACDFC3B769DC1ED66B47 signature.asc Description: Digital signature