[PHP] Re: Hidding HTML Input Elements values approach

2006-03-13 Thread David Dorward
pedro mpa wrote: > So, for example a typical country select box, its option values are > encrypted with the previous created key on page request and decrypted > (after form submission f.ex.) on the validation code: So the value attribute contains an encrypted representation of the country name ..

Re: [PHP] X-Mailer and headers when sending mail

2006-03-13 Thread Angelo Zanetti
Paul Scott wrote: On Mon, 2006-03-13 at 13:41 -0800, Angelo Zanetti wrote: * 0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set to high * 1.3 MSGID_NO_HOST Message-Id has no hostname * 2.0 HEADER_COUNT_CTYPE Multiple Content-Type headers found * 0.8 PRIORITY_NO_NAME Message has priority setti

Re: [PHP] X-Mailer and headers when sending mail

2006-03-13 Thread Paul Scott
On Mon, 2006-03-13 at 13:41 -0800, Angelo Zanetti wrote: > * 0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set to high * 1.3 > MSGID_NO_HOST Message-Id has no hostname * 2.0 > HEADER_COUNT_CTYPE Multiple Content-Type headers found * 0.8 > PRIORITY_NO_NAME Message has priority setting, but no > X

[PHP] PHP code not functioning on search page

2006-03-13 Thread Bruce Gilbert
I have a bit of PHP rotating image code and time stamp that work fine on every page except my search page http://inspired-evolution.com/search.php. I installed a PHP based search engine called Zoom Search as a plug-in in Dreamweaver. Since the code works on every other page, I am not sure why it wo

[PHP] Re: Looking for PHP SSO-engine

2006-03-13 Thread Manuel Lemos
Hello, on 03/13/2006 09:56 PM Roger Thomas said the following: > Are there are PHP projects that focuses on Single Signon/Signoff like > Pubcookie, CAS, Cosign etc? Please advise. TIA. I am not sure, but I think LiveUser is for that purpose: http://pear.php.net/package/LiveUser/ -- Regards,

[PHP] Re: Printing library in PHP ?

2006-03-13 Thread Manuel Lemos
Hello, on 03/13/2006 09:44 AM robert mena said the following: > I am currently migrating an application originally written with Delphi to > PHP. Everything is going fine except the printing of the reports that does > not produce the same visual result (i.e does not look the same or has some > ali

Re: [PHP] Re: Possible hacker using php script to send e-mails?

2006-03-13 Thread Manuel Lemos
Hello, on 03/13/2006 06:38 AM Merlin said the following: > Hello Manuel, > > this seems to be the right track. However I do not have linebrakes in > there, but the message gets passed by POST. This is my script error.php: Notice these two lines of your script: > $from = $_POST[from]; >

[PHP] Looking for PHP SSO-engine

2006-03-13 Thread Roger Thomas
Are there are PHP projects that focuses on Single Signon/Signoff like Pubcookie, CAS, Cosign etc? Please advise. TIA. --roger --- Sign Up for free Email at http://ureg.home.net.my/ --- -- PHP Gener

Re: [PHP] array_search and multi-dimensional arrays

2006-03-13 Thread Philip Thompson
On Mar 13, 2006, at 5:54 PM, jonathan wrote: I'd like to return the first key value in the following array such that England would return 1 rather than 3 which is the second key value. Any help would be greatly appreciated. $c[1][]="Vietnam"; $c[1][]="China"; $c[1][]="Thailand"; $c[1][]="En

Re: [PHP] array_search and multi-dimensional arrays

2006-03-13 Thread jonathan
looks like this works. Is there any problem with it that people can see? $c[1][]="Vietnam"; $c[1][]="China"; $c[1][]="Thailand"; $c[1][]="England"; $c[2][]="USA"; $c[2][]="Japan"; print_r($c); foreach($c as $key=>$value) { if(array_search("England",$value)) { echo $key;

Re: [PHP] Memory and BLOB's

2006-03-13 Thread tedd
Jochem and tedd discussed: Isn't assigned memory just blocks of reserved addresses for the requesters use? It shouldn't make any difference where, or how much, a block of memory is. To move from a field in a record to another field is just following memory addresses from one field to another

Re: [PHP] DB calls vs Session solution

2006-03-13 Thread Grant Young
Hi Jochem. the nice thing about programming with my 'data framework' is that its very generic, flexible and interspective (generating abitrarily complex sql/html/? from objects) ... which comes with a great cost. so I have code that is really very very heavy but if you consider the (complete|di

RE: [PHP] Hidding HTML Input Elements values approach

2006-03-13 Thread pedro mpa
> -Mensagem original- > De: jblanchard > I don't see any problem with the approach, but I would ask why... Because if I write original ids or values matching those on database (or other data source) they can easily be changed on client side, that is the main purpose. Another purpose is to

RE: [PHP] Hidding HTML Input Elements values approach

2006-03-13 Thread jblanchard
[snip] I would like some feedback on this approach for encrypting HTML input element values such as Checkbox, Radio, Select, Hidden, etc, and Javascript code related to those elements. [/snip] I don't see any problem with the approach, but I would ask why... -- PHP General Mailing List (http://ww

[PHP] Hidding HTML Input Elements values approach

2006-03-13 Thread pedro mpa
Greetings. I would like some feedback on this approach for encrypting HTML input element values such as Checkbox, Radio, Select, Hidden, etc, and Javascript code related to those elements. The procedure is when a user first arrives at the site a session structure is created and in it I create a r

Re: [PHP] DB calls vs Session solution

2006-03-13 Thread Jochem Maas
Curt Zirzow wrote: On Mon, Mar 13, 2006 at 03:30:18PM +0100, Jochem Maas wrote: I just realized I must be evil ;-) Arn't we all :) more so for the random switch to inline+bottom posting :-) ... Ah, see this is a bit different, and goes along the theory of a cost has to come from s

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Ben Litton
Something that is chiefly bottlenecked at the database isn't going to be improved enough at the C level to be worth the trouble. Always optimize where it's slow. Database design and indexing helps. Minimizing unnecessary queries, writing good ones, helps too. Once you get to the point that

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Curt Zirzow
On Mon, Mar 13, 2006 at 10:32:55PM +0900, joseph wrote: > mr. maas, > > psychic me you are a man. > > i created an index, no change. but i already knew that because one of > the cases where an index is never used is when > > The key used to fetch the rows is not the same as the one use

Re: [PHP] DB calls vs Session solution

2006-03-13 Thread Curt Zirzow
On Mon, Mar 13, 2006 at 03:30:18PM +0100, Jochem Maas wrote: > I just realized I must be evil ;-) Arn't we all :) > secondly I take 'the cache your db results in the session' > to an extreme - by shoving serialized ResultSet objects (with all > results in tow of course) into shared memory by way

Re: [PHP] recommendations for good breacrumbs script

2006-03-13 Thread Wolf
http://www.baskettcase.com/classes/breadcrumb/ is a pretty good script that has a lot of functionality with it and that I have used for a while. Robert Bruce Gilbert wrote: > Hello, > > I am looking around for a good PHP breadcrumbs navigation script that > would out put a path based on file st

Re: [PHP] Memory and BLOB's

2006-03-13 Thread Jochem Maas
tedd wrote: Jochem said: reorder the fields so that the VARCHARS are at the end of the table (and the BLOB field at the very, very end of the table). Why the importance of BLOB's being at the end of the table? its a guestimate based on something I read a while back, the reason was somethin

Re: [PHP] determining client's external IP

2006-03-13 Thread Miles Thompson
At 02:39 PM 3/13/2006, tedd wrote: Jochem wrote: life is not that simple here are some functions I wrote as an attempt to to better than 'REMOTE_ADDR' - interested if these allow you to retrieve the same IP as whatismyip.com: -snip- A most impressive piece of code -- thank you, it works

Re: [PHP] determining client's external IP

2006-03-13 Thread tedd
Jochem wrote: life is not that simple here are some functions I wrote as an attempt to to better than 'REMOTE_ADDR' - interested if these allow you to retrieve the same IP as whatismyip.com: -snip- A most impressive piece of code -- thank you, it works great! While you appear to get down

[PHP] Memory and BLOB's

2006-03-13 Thread tedd
Jochem said: reorder the fields so that the VARCHARS are at the end of the table (and the BLOB field at the very, very end of the table). Why the importance of BLOB's being at the end of the table? Isn't assigned memory just blocks of reserved addresses for the requesters use? It shouldn't m

Re: [PHP] Creating a unique index ID

2006-03-13 Thread tedd
Hey all, I've got a project where I'm taking form information from the user and writing records to several tables in a MySQL database. The problem I'm having is I need to write a unique number for the ID column of the records. Auto increment won't work because I could have conflicts due to repl

Re: [PHP] need a help to connect php to sql server . thanks admin.

2006-03-13 Thread Jochem Maas
John Nichel wrote: Jochem Maas wrote: [EMAIL PROTECTED] wrote: [snip] can someone send me a tutorial for how to connect my dynamic page to sql server? may sql server 2000. i'm a college student and need learn more about php. thanks admin.. [/snip] To learn more about PHP start with the manua

RE: [PHP] Creating a unique index ID

2006-03-13 Thread Tim A. Yarbrough
-Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 9:50 AM To: Jeff Cc: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] Creating a unique index ID Jeff wrote: >>-Original Message- >>From: Jared Williams [mailto:[EMAIL PROT

Re: [PHP] need a help to connect php to sql server . thanks admin.

2006-03-13 Thread John Nichel
Dave Goodchild wrote: No need for rudeness... Boo-hoo. No need to respond off list when not asked to do so. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] need a help to connect php to sql server . thanks admin.

2006-03-13 Thread John Nichel
Jochem Maas wrote: [EMAIL PROTECTED] wrote: [snip] can someone send me a tutorial for how to connect my dynamic page to sql server? may sql server 2000. i'm a college student and need learn more about php. thanks admin.. [/snip] To learn more about PHP start with the manual -- and stop callin

Re: [PHP] need a help to connect php to sql server . thanks admin.

2006-03-13 Thread Jochem Maas
[EMAIL PROTECTED] wrote: [snip] can someone send me a tutorial for how to connect my dynamic page to sql server? may sql server 2000. i'm a college student and need learn more about php. thanks admin.. [/snip] To learn more about PHP start with the manual -- and stop calling us 'admin' ;-)

RE: [PHP] Creating a unique index ID

2006-03-13 Thread Tim A. Yarbrough
Using the auto_increment_offset will take care of this problem. Because say server A can be configured to use odd numbers and server B can be configured to use even numbers. You can also set this up in a more complex fashion for the offsets if your running more then 2 servers. -Original Mess

Re: [PHP] Creating a unique index ID

2006-03-13 Thread Jochem Maas
Jeff wrote: -Original Message- From: Jared Williams [mailto:[EMAIL PROTECTED] Sent: Monday, March 13, 2006 10:16 To: 'Jeff'; php-general@lists.php.net Subject: RE: [PHP] Creating a unique index ID Hey all, I've got a project where I'm taking form information from the user and wri

RE: [PHP] Creating a unique index ID

2006-03-13 Thread Jeff
> -Original Message- > From: Jared Williams [mailto:[EMAIL PROTECTED] > Sent: Monday, March 13, 2006 10:16 > To: 'Jeff'; php-general@lists.php.net > Subject: RE: [PHP] Creating a unique index ID > > > > > > Hey all, > > > > I've got a project where I'm taking form information from th

RE: [PHP] need a help to connect php to sql server . thanks admin.

2006-03-13 Thread jblanchard
[snip] can someone send me a tutorial for how to connect my dynamic page to sql server? may sql server 2000. i'm a college student and need learn more about php. thanks admin.. [/snip] To learn more about PHP start with the manual -- http://www.php.net/odbc -- PHP General Mailing List (http://w

[PHP] need a help to connect php to sql server . thanks admin.

2006-03-13 Thread choe chii
can someone send me a tutorial for how to connect my dynamic page to sql server? may sql server 2000. i'm a college student and need learn more about php. thanks admin.. - Brings words and photos together (easily) with PhotoMail - it's free and

RE: [PHP] Creating a unique index ID

2006-03-13 Thread Jared Williams
> Hey all, > > I've got a project where I'm taking form information from the > user and writing records to several tables in a MySQL database. > > The problem I'm having is I need to write a unique number for > the ID column of the records. Auto increment won't work > because I could have

RE: [PHP] Creating a unique index ID

2006-03-13 Thread Jim Moseby
> I've got a project where I'm taking form information from the user and > writing records to several tables in a MySQL database. > > The problem I'm having is I need to write a unique number for the ID > column of the records. Auto increment won't work because I could have > conflicts due to rep

[PHP] Creating a unique index ID

2006-03-13 Thread Jeff
Hey all, I've got a project where I'm taking form information from the user and writing records to several tables in a MySQL database. The problem I'm having is I need to write a unique number for the ID column of the records. Auto increment won't work because I could have conflicts due to repli

Re: [PHP] DB calls vs Session solution

2006-03-13 Thread Jochem Maas
I just realized I must be evil ;-) firstly I'm top posting. secondly I take 'the cache your db results in the session' to an extreme - by shoving serialized ResultSet objects (with all results in tow of course) into shared memory by way of the APC extension... this is of course evil because Rasm

Re: [PHP] Re: Blogger post failed

2006-03-13 Thread joseph
i got that too. on a post on a different topic though than the one we were working on. 2006-03-13 (월), 14:37 +0100, Jochem Maas 쓰시길: > I have never been to blogger.com, let alone posted something to it. > anyone have any idea what this is about? is google trying to assimilate me > or something? >

[PHP] Re: [SPAM] Re: [PHP] DB calls vs Session solution

2006-03-13 Thread joseph
> > > > I have got some expensive sql queries (doing lots of LEFT JOINS) that result > > in anything between 10 to 1 results. I need to do paging on those. So > > far I have used a LIMIT solution which will not do anymore because you don't > > get the whole total. i just decided to issue a cou

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

2006-03-13 Thread jblanchard
[snip] I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logged in. Store the username in the ses

[PHP] Re: Blogger post failed

2006-03-13 Thread Jochem Maas
I have never been to blogger.com, let alone posted something to it. anyone have any idea what this is about? is google trying to assimilate me or something? [EMAIL PROTECTED] wrote: Blogger could not process your message at this time. Error code: 6.1C18D13 Original message: From: [EMAIL PROTEC

Re: [PHP] Re: Possible hacker using php script to send e-mails?

2006-03-13 Thread Jochem Maas
Merlin wrote: Hello Manuel, this seems to be the right track. However I do not have linebrakes in there, but the message gets passed by POST. This is my script error.php: 'they' are posting stuff to your mailer that includes fullblown mail headers ... you're going to have to strip out the c

Re: [PHP] what would a c extension buy me

2006-03-13 Thread joseph
mr. maas, psychic me you are a man. i created an index, no change. but i already knew that because one of the cases where an index is never used is when > The key used to fetch the rows is not the same as the one used in the > > ORDER BY: > > which is the case here. (index creation

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Jochem Maas
joseph wrote: > sorry, i made a mistake before. > > >>> 9795 Query select >>>word,def,wordid,pos,posn,wordsize,syn from korean_english where word >>>like '운전할' order by wordsize desc >> >>in cases when you are not using the wildcard tokens (percentage signs) >>try changi

[PHP] Re: [SPAM] [PHP] determining client's external IP

2006-03-13 Thread joseph
this is what gnuboard4 uses to process logins $tmp_sql = " insert into $g4[login_table] ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '$_SERVER[REMOTE_ADDR]', '$member[mb_id]', '$g4[time_ymdhis]', '$lo_location', '$lo_url' ) ";^M i thought about proxy proxy servers upstream from us

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Jochem Maas
... >>>word,def,wordid,pos,posn,wordsize,syn from korean_english where word >>>like '운전할 %' order by wordsize desc >> >>oh would you look at this >>you're ordering by WORDSIZE. >>stick an index on WORDSIZE!!! > > > > http://dev.mysql.com/doc/refman/5.0/en/order-by-optimization.html > >

[PHP] Re: [SPAM] [PHP] determining client's external IP

2006-03-13 Thread joseph
this is what gnuboard4 uses to process logins $tmp_sql = " insert into $g4[login_table] ( lo_ip, mb_id, lo_datetime, lo_location, lo_url ) values ( '$_SERVER[REMOTE_ADDR]', '$member[mb_id]', '$g4[time_ymdhis]', '$lo_location', '$lo_url' ) ";^M i thought about proxy proxy servers upstream from us

[PHP] Printing library in PHP ?

2006-03-13 Thread robert mena
Hi, I am currently migrating an application originally written with Delphi to PHP. Everything is going fine except the printing of the reports that does not produce the same visual result (i.e does not look the same or has some aligmment issues). >From what I've read I should use CSS to achieve

Re: [PHP] what would a c extension buy me

2006-03-13 Thread joseph
sorry, i made a mistake before. > >9795 Query select > > word,def,wordid,pos,posn,wordsize,syn from korean_english where word > > like '운전할' order by wordsize desc > > in cases when you are not using the wildcard tokens (percentage signs) > try changing the query to u

Re: [PHP] what would a c extension buy me

2006-03-13 Thread joseph
many points given to my esteemed and humble correspondant for: 1) > psychics-php is a seperate mailing lists, please channel/mindmeld the correct > subscription procedure from John Nichel ;-) > points to me for a quick comeback ( word is indexed, wordsize is not) 1) per mysql website ... >

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Jochem Maas
joseph wrote: > fellow php programmers, > > sorry to you two who were kind enough to take the time to attempt to > answer my question. i thought it was enough to say "i had 550 lines > with a bunch of sql calls and loops and big data structures" psychics-php is a seperate mailing lists, please

Re: [PHP] X-Mailer and headers when sending mail

2006-03-13 Thread Angelo Zanetti
Thanks, Paul and Curt, I will have a look at those suggestions, meanwhile the error Im getting is: Yes, hits=6.4 required=5.0 tests=HEADER_COUNT_CTYPE, INVALID_MSGID,MSGID_NO_HOST,PRIORITY_NO_NAME,X_PRIORITY_HIGH autolearn=no version=2.63 ** * 0.5 X_PRIORITY_HIGH Sent with 'X-Priority' set

Re: [PHP] what would a c extension buy me

2006-03-13 Thread joseph
fellow php programmers, sorry to you two who were kind enough to take the time to attempt to answer my question. i thought it was enough to say "i had 550 lines with a bunch of sql calls and loops and big data structures" to help you make a better assessment i will summarize in more detail now.

Re: [PHP] a .php that calls to itself (permission problems)

2006-03-13 Thread Stut
Andrés Cañada wrote: Changing to "get" form method, the problem dissapears but I'd like to use "post". Check the web server configuration to ensure that POST requests are allowed. It sounds like they're not. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] a .php that calls to itself (permission problems)

2006-03-13 Thread Andrés Cañada
El Lunes, 13 de Marzo de 2006 11:49, Andrés Cañada escribió: > I have an index2.php in a folder inside "public_html/folder/" > when I type the URL of this page, I can see it perfectly. The problem is > when I use a form with some submit buttons inside index2.php that submit > information to itself

[PHP] a .php that calls to itself (permission problems)

2006-03-13 Thread Andrés Cañada
I have an index2.php in a folder inside "public_html/folder/" when I type the URL of this page, I can see it perfectly. The problem is when I use a form with some submit buttons inside index2.php that submit information to itself . I mean that index.php sends information to itself and then proce

Re: [PHP] Re: Possible hacker using php script to send e-mails?

2006-03-13 Thread Merlin
Hello Manuel, this seems to be the right track. However I do not have linebrakes in there, but the message gets passed by POST. This is my script error.php: IsHTML(false); $mail->From = $mailadress_webmaster; $mail->FromName = $email_from_name_2; $mail->AddAddress($mailadress_webmaster); $m

Re: [PHP] what would a c extension buy me

2006-03-13 Thread Jochem Maas
joseph wrote: hi, my site is www.myowndictionary.com i use javascript to create definitions for words (from open source dictionaries) as pop-ups and hook word-lists for vocabulary study with that. i can now parse the html from rss feeds and match only text of interest. i just wrote my own mult

Re: [PHP] determining client's external IP

2006-03-13 Thread Satyam
- Original Message - From: "David Calkins" <[EMAIL PROTECTED]> To: Sent: Monday, March 13, 2006 2:20 AM Subject: [PHP] determining client's external IP My web page needs to determine the client's external IP address, i.e., the IP address that others viewing the web page would be abl

Re: [PHP] determining client's external IP

2006-03-13 Thread Jochem Maas
David Calkins wrote: My web page needs to determine the client's external IP address, i.e., the IP address that others viewing the web page would be able to use to contact that user's machine (assuming they've setup the appropriate forwarding into their actual machine of course). In this environ