[PHP] Re: Converting HTML to BBCode [SOLVED]

2006-03-07 Thread J_K9
Hi, Thank you for that - although I do have to admit that I don't understand a single bit of the reg-exp part. :) It is now working flawlessly! Here is the final code I used: ---CODE--- !-- Note - input textarea and submit button already coded here in XHTML -- ?php $text = ''; if (

[PHP] encrypt and decrypt in php

2006-03-07 Thread suresh kumar
I searched google,weberdev and php.net sites. i implemented the 2 encrypt and decrypt functions mcrypt_encrypt(),mcrypt_decrypt() and mcrypt_ecb() functions.but it not working properly.i dont need more complicated encrypt and decrypt functionality.just i want to encrypt my user id when i pass

[PHP] Re: encrypt and decrypt in php

2006-03-07 Thread Barry
suresh kumar wrote: I searched google,weberdev and php.net sites. i implemented the 2 encrypt and decrypt functions mcrypt_encrypt(),mcrypt_decrypt() and mcrypt_ecb() functions.but it not working properly.i dont need more complicated encrypt and decrypt functionality.just i want to encrypt

[PHP] Re: PHP Post to other Servers

2006-03-07 Thread João Cândido de Souza Neto
My suggestion is that you use the ftp functions of php. With this you can put your files into anywhere do you want. Robert Sandie wrote: Want to load balance a server and send image uploads to a different box with PHP installed. What would the correct method to authenticate on the second

Re: [PHP] Re: PHP4 with MYSQL5

2006-03-07 Thread João Cândido de Souza Neto
An example that don't work is delimiter |. Chris wrote: João Cândido de Souza Neto wrote: I receive aa answer by e-mail in order this telling me that i must upgrade my php4 to php5. It means that a php4 server don't works fine with mysql5 server? João Cândido de Souza Neto wrote:

[PHP] Multiple directories in open_basedir

2006-03-07 Thread Carles Xavier Munyoz Baldó
Hi, I want to use the open_basedir PHP configuration directive in order to restrict the file access to serveral directories for one of my domains. I'm using: php_admin_value open_basedir /dir1/path/;/dir2/path/ in the domain virtual host configuration for my Apache web server, but it doesn't

[PHP] LDAP - The Adventure Continues

2006-03-07 Thread jblanchard
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 - $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, dc=foo,dc=local, cn=*); $ds is the connection to the LDAP server Does anyone know what this

RE: [PHP] LDAP - The Adventure Continues SOLVED

2006-03-07 Thread jblanchard
[snip] Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 - $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, dc=foo,dc=local, cn=*); $ds is the connection to the LDAP server Does anyone know what

Re: [PHP] LDAP - The Adventure Continues

2006-03-07 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to (8388608 / 1024) / 1024 = 8. allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 - $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, dc=foo,dc=local, cn=*); $ds is the

Re: [PHP] Re: Converting HTML to BBCode [SOLVED]

2006-03-07 Thread Rafael
Hi, I'm glad it worked (so far, hehe) Also, there's something I forgot to tell you (though I think you may as well be already doing this): there will be some unknown tags for the to_bbcode() function (even maybe some variations of those that it should recognize but it won't), so you

Re: [PHP] Prepared statements

2006-03-07 Thread Julius Hacker
Anthony Ettinger wrote: On 3/6/06, Anthony Ettinger [EMAIL PROTECTED] wrote: On 3/6/06, Julius Hacker [EMAIL PROTECTED] wrote: Curt Zirzow wrote: I assume your loop is something like: while(condition) { $auction_parts['id'] = 'some value'; $auction_parts['name']

[PHP] include not working properly?

2006-03-07 Thread robert mena
Hi, I am facing a strange problem. One of my classes uses a include(Log.php) to enable to to use the Log class that comes with pear. *Fatal error*: require_once() [function.requirehttp://www.manaushoteis.tur.br/function.require]: Failed opening required 'Log.php'

[PHP] what is wrong with my big array

2006-03-07 Thread Ross
I cannot see it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what is wrong with my big array

2006-03-07 Thread Ross
get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway', 10 = 'Dundee City Council', 11 = 'East Ayrshire Council',

Re: [PHP] what is wrong with my big array

2006-03-07 Thread Stut
Ross wrote: I cannot see it If it helps... neither can we! -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread Ray Hauge
On Tuesday 07 March 2006 08:08, Ross wrote: $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway', 10 = 'Dundee City Council', 11 =

Re: [PHP] what is wrong with my big array

2006-03-07 Thread Barry
Stut wrote: Ross wrote: I cannot see it If it helps... neither can we! -Stut And again: PHP is best coded with open eyes: (O_O) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: what is wrong with my big array

2006-03-07 Thread Ross
Nice spot ray! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread Stut
Ross wrote: get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway', 10 = 'Dundee City Council', 11 = 'East

[PHP] Re: what is wrong with my big array

2006-03-07 Thread João Cândido de Souza Neto
I think that the error is in the line above that. Ross wrote: get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and

Re: [PHP] Re: what is wrong with my big array

2006-03-07 Thread João Cândido de Souza Neto
You're Right. I don't saw that. Stut wrote: Ross wrote: get a parse error! $region_array = array('a' ='All of Scotland', 1 ='Aberdeen City Council', 2 ='Aberdeenshire Council', 3 ='AngusCouncil', 5 ='Argyll and Bute Council', 6 = 'Clackmannanshire Council', 9 ='Dumfries and Gallowalloway',

[PHP] [Semi-OT] Online-Shops

2006-03-07 Thread Michelle Konzack
Hello *, After trying out more then 30 Online-Shops (mostly written in PHP) I have not found a suitable one for me because of laking in functionality or grave security problems (I have cracked some of them myself being not a cracker). OK, I was looking for an open source one and for free.

[PHP] php and suid

2006-03-07 Thread Michelle Konzack
Hello *, since PHP-CGI's can be set suid, how can this done IF I can not use CGI because all off my webpages are PHP pages? Greetings Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant

[PHP] Re: simplify DOM api

2006-03-07 Thread Rob Richards
Andreas Korthaus wrote: Rob Richards wrote: You can also look at using xmlwriter, when creating serialized trees, that automatically does escaping for you. Hm, AFAIK latest xmlwriter versions provide an OO API. Do you know about any documentation for it? I will try to add some time

[PHP] Classes and OOP

2006-03-07 Thread Wolf
I'm looking for a couple of good books or online sources where I can get a lot better grasp of Classes and OOP programming in general. Mostly I use PHP so that is the best option. Thanks, Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Poker stats GET/POST page devleopment

2006-03-07 Thread The Doctor
Someone wishes to develop a site using PHP/SQL . Here are the specs: The site the client is looking for is not a gaming site. It is a site where players register to keep track of their winnings on GAMING sites. It will have a freeroll side(where players get points not money) and a Money

Re: [PHP] Classes and OOP

2006-03-07 Thread Kim Hunter
PHP5 Objects, Patterns and Practice 1590593804 - Matt Zandstra - Apress This is a good way to get a good grasp of object-oriented programming covers the basics of uml as well as using decent examples to explain the use of objective programming (unlike all the web sites out there that i tried to

Re: [PHP] Classes and OOP

2006-03-07 Thread Anthony Ettinger
On 3/7/06, Wolf [EMAIL PROTECTED] wrote: I'm looking for a couple of good books or online sources where I can get a lot better grasp of Classes and OOP programming in general. Mostly I use PHP so that is the best option. Thanks, Robert PHP5 - Objects, Patterns, and Best Practices

[PHP] max unique number

2006-03-07 Thread Pieter du Toit
Hi guys How do i get a unique max number from a mysql table column? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] max unique number

2006-03-07 Thread jblanchard
[snip] How do i get a unique max number from a mysql table column? [/snip] SELECT MAX(number) FROM table LIMIT 1; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Poker stats GET/POST page devleopment

2006-03-07 Thread Miles Thompson
At 12:26 PM 3/7/2006, The Doctor wrote: Someone wishes to develop a site using PHP/SQL . Here are the specs: The site the client is looking for is not a gaming site. It is a site where players register to keep track of their winnings on GAMING sites. It will have a freeroll side(where

RE: [PHP] max unique number

2006-03-07 Thread Philip Hallstrom
[snip] How do i get a unique max number from a mysql table column? [/snip] SELECT MAX(number) FROM table LIMIT 1; That might not be unique though... I'm wondering if the original poster is looking for AUTO_INCREMENT (ie. sequences) to ensure a unique id to use for insertion...? -- PHP

Re: [PHP] max unique number

2006-03-07 Thread John Meyer
Philip Hallstrom wrote: [snip] How do i get a unique max number from a mysql table column? [/snip] SELECT MAX(number) FROM table LIMIT 1; That might not be unique though... I'm wondering if the original poster is looking for AUTO_INCREMENT (ie. sequences) to ensure a unique id to use for

[PHP] LDAP and Single Sign On

2006-03-07 Thread Justin Cook
We are developing an intranet for my company. I would like to implement a single sign on service. We have Active Directory on one server and the intranet is being housed on a Redhat Linux server. When the internal user pulls up the intranet, I would like it to check to see if they successfully

RE: [PHP] encrypt and decrypt in php

2006-03-07 Thread Shaunak Kashyap
When you say that it is not working properly, what exactly is the problem? Are you getting any error messages? What version of PHP are you using? What platform is PHP installed on? The reason I ask those questions is that http://us2.php.net/manual/en/ref.mcrypt.php states that the mcrypt

RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread Shaunak Kashyap
Maybe this will help: http://us2.php.net/manual/en/ref.ldap.php Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main: 323.330.9900 www.worldpokertour.com Confidentiality Notice: This e-mail transmission

[PHP] What am I missing?

2006-03-07 Thread Gustav Wiberg
Hi there! Why... I have this code: bAdd manufacturer:/bbr form name=frmMan action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php echo $frmIDManufacturer;?frmModel=?php echo $frmIDModel;? method=post input type=text size=30 name=frmManufacturerName input type=submit value=ok

RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread Justin Cook
I've been there. I can connect and search my active directory, that's no problem. I'm more curious on how to check to see if they have already authenticated to the domain. _ From: Shaunak Kashyap [mailto:[EMAIL PROTECTED] To: Justin Cook [mailto:[EMAIL PROTECTED],

Re: [PHP] What am I missing?

2006-03-07 Thread Joe Henry
On Tuesday 07 March 2006 11:45 am, Gustav Wiberg wrote: form name=frmMan action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php echo $frmIDManufacturer;?frmModel=?php echo $frmIDModel;? method=post input type=text size=30 name=frmManufacturerName input type=submit value=ok

RE: [PHP] What am I missing?

2006-03-07 Thread Shaunak Kashyap
It is more of an HTML/HTTP question than PHP but here's my shot at a possible explanation: The file containing the form code seems to live in the /mobilkamera/admin/ directory. Therefore action=admin/phpfunctions... implies that the form is to be submitted to that path starting from the current

Re: [PHP] What am I missing?

2006-03-07 Thread Gustav Wiberg
- Original Message - From: Shaunak Kashyap [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED]; PHP General php-general@lists.php.net Sent: Tuesday, March 07, 2006 8:05 PM Subject: RE: [PHP] What am I missing? It is more of an HTML/HTTP question than PHP but here's my shot at a

RE: [PHP] OpenSSL error:0E06D06C:configuration file routines:func(109):reason(108) ??!

2006-03-07 Thread Daevid Vincent
I just tried this with PHP 5.1.1 and OpenSSL 0.9.7i and got the exact same errors. -Original Message- I copied and pasted the example found here: http://www.php.net/openssl_csr_new And this one too: http://www.php.net/manual/en/function.openssl-pkey-new.php And I get the output

[PHP] Re: What am I missing?

2006-03-07 Thread David Dorward
Gustav Wiberg wrote: I have this code: bAdd manufacturer:/bbr Bold then a line break? Shouldn't this be a heading? action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php The requested URL /mobilkamera/admin/admin/phpfunctions/addnewmanufacturer.php was not found on this

RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread jblanchard
[snip] We are developing an intranet for my company. I would like to implement a single sign on service. We have Active Directory on one server and the intranet is being housed on a Redhat Linux server. When the internal user pulls up the intranet, I would like it to check to see if they

[PHP] class constants

2006-03-07 Thread Arnaldo Gandol
how can I to iterate the class constant without knowing their names?, I've reviewed the Class/Object Functions and Reflexion and nothing, I dont want to use static class variables, can any one help.

[PHP] Building php-pcre extension on windows

2006-03-07 Thread Manish Marathe
PHP experts everywhere!! I am building PHP 5.1.2 on windows without pcre-regex extension. I am building building pcre independently and then I am building the extension php_pcre.dll. I build few other extensions too. I keep the extensions in c:\php\extensions which is set in php.ini. I am

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-07 Thread jblanchard
[snip] As far as I can tell you will have to ask the user to login at the web application level again, but you can verify it against your AD via LDAP with the basic stuff from http://www.php.net/ldap [/snip] We are sitting here having a discussion on login techniques and I cam up with a

Re: [PHP] include not working properly?

2006-03-07 Thread Chris
robert mena wrote: Hi, I am facing a strange problem. One of my classes uses a include(Log.php) to enable to to use the Log class that comes with pear. *Fatal error*: require_once() [function.requirehttp://www.manaushoteis.tur.br/function.require]: Failed opening required 'Log.php'

Re: [PHP] class constants

2006-03-07 Thread Chris
Arnaldo Gandol wrote: how can I to iterate the class constant without knowing their names?, I've reviewed the Class/Object Functions and Reflexion and nothing, I dont want to use static class variables, can any one help. Constants aren't per class, they are per system. Whether you define them

Re: [PHP] Prepared statements

2006-03-07 Thread Curt Zirzow
On Mon, Mar 06, 2006 at 10:03:10PM +0100, Julius Hacker wrote: Curt Zirzow wrote: I assume your loop is something like: while(condition) { $auction_parts['id'] = 'some value'; $auction_parts['name'] = 'some value'; ... $insert-execute(); } Yes, thats it.

RE: [PHP] class constants

2006-03-07 Thread Shaunak Kashyap
Constants aren't per class, they are per system. Whether you define them in a class or not won't change this. You can list all constants using http://www.php.net/manual/en/function.get-defined-constants.php Actually, PHP5 allows constants per class, aka class constants. I think that's

Re: [PHP] class constants

2006-03-07 Thread Chris
Shaunak Kashyap wrote: Constants aren't per class, they are per system. Whether you define them in a class or not won't change this. You can list all constants using http://www.php.net/manual/en/function.get-defined-constants.php Actually, PHP5 allows constants per class, aka class

RE: [PHP] class constants

2006-03-07 Thread Jared Williams
Hi, ReflectionClass getConstant getConstants hasConstant http://www.ren.dotgeek.org/classbrowser/class.php?class=ReflectionClass Jared -Original Message- From: Arnaldo Gandol [mailto:[EMAIL PROTECTED] Sent: 07 March 2006 21:03 To: php-general@lists.php.net Subject: [PHP] class

[PHP] Incremental Date Based ID

2006-03-07 Thread Kevin Murphy
I'm trying to set up an ID field that works like this for news articles that are posted to a website. 2006-03-05a 2006-03-05b I know how to generate the date, and I am pretty sure I can generate the letter code based on counting the number of rows and then assigning the next letter (we

Re: [PHP] class constants

2006-03-07 Thread Arnaldo Gandol
I've try this with no successful results. the constant rr and gg were not in the array $ee. ?php class something { const rr = lala; const gg = ggerer; } $ee = get_defined_constants(); foreach ($ee as $key = $value) echo $key. = .$value./br; ? On 3/7/06, Jared Williams [EMAIL

[PHP] Re: Incremental Date Based ID

2006-03-07 Thread Al
Kevin Murphy wrote: I'm trying to set up an ID field that works like this for news articles that are posted to a website. 2006-03-05a 2006-03-05b I know how to generate the date, and I am pretty sure I can generate the letter code based on counting the number of rows and then assigning the

Re: [PHP] Incremental Date Based ID

2006-03-07 Thread Chris
Kevin Murphy wrote: I'm trying to set up an ID field that works like this for news articles that are posted to a website. 2006-03-05a 2006-03-05b I know how to generate the date, and I am pretty sure I can generate the letter code based on counting the number of rows and then assigning

Re: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Kevin Murphy
Well, part of the issue is that I want to be able to use this as part of the link: /news.php?article=2006-03-05a /news.php?article=2006-03-05b which i will eventually do a htacess rewrite to make it look like /news/2006-03-05a.php /news/2006-03-05a.php I don't think I can do that with just

Re: [PHP] class constants

2006-03-07 Thread Arnaldo Gandol
?php class something { const rr = lala; const gg = ggerer; } $hh = new ReflectionClass('something'); print_r($hh-getConstants()); ? Thank you, I've try this above and works, I hadn't seen the message below. Excuse my english. On 3/7/06, Jared Williams [EMAIL PROTECTED] wrote:

Re: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Chris
Kevin Murphy wrote: Well, part of the issue is that I want to be able to use this as part of the link: /news.php?article=2006-03-05a /news.php?article=2006-03-05b which i will eventually do a htacess rewrite to make it look like /news/2006-03-05a.php /news/2006-03-05a.php I don't think I

RE: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Shaunak Kashyap
A possible solution: Make a composite primary key where the first field is the date and the second field would be of type enumeration (A..Z, in ascending order). Then use MAX(second field) WHERE first field = today's date to figure out the next primary key. Shaunak Kashyap Senior Web Developer

Re: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Gerry Danen
Kevin, You can do it with a Unix timestamp, but that would just confuse the issue. Have you considered using two fields instead of one? An article ID and and article sub-ID would be retrieved as article ID = date, and all sub-ID's descending. The first record in the list would contain the

Re: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Gerry Danen
Should have read the whole thread first, I guess... :) Gerry http://groups.yahoo.com/group/php_and_mysql/ On 3/7/06, Shaunak Kashyap [EMAIL PROTECTED] wrote: A possible solution: Make a composite primary key where the first field is the date and the second field would be of type enumeration

Re: [PHP] Incremental Date Based ID

2006-03-07 Thread Miles Thompson
At 08:46 PM 3/7/2006, Kevin Murphy wrote: I'm trying to set up an ID field that works like this for news articles that are posted to a website. 2006-03-05a 2006-03-05b I know how to generate the date, and I am pretty sure I can generate the letter code based on counting the number of rows and

Re: [PHP] Re: Incremental Date Based ID

2006-03-07 Thread Miles Thompson
At 09:05 PM 3/7/2006, Kevin Murphy wrote: Well, part of the issue is that I want to be able to use this as part of the link: /news.php?article=2006-03-05a /news.php?article=2006-03-05b which i will eventually do a htacess rewrite to make it look like /news/2006-03-05a.php

[PHP] test security of code

2006-03-07 Thread Gregory Machin
Hi Is there an application that can pass source code and report potential security problem and or the live site ? Many thanks -- Gregory Machin [EMAIL PROTECTED] [EMAIL PROTECTED] www.linuxpro.co.za www.exponent.co.za Web Hosting Solutions Scalable Linux Solutions www.iberry.info (support and