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

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

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

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

2006-03-10 Thread jblanchard
[snip] We are sitting here having a discussion on login techniques and I cam up with a thought...why not have a login script write a cookie that then coulod be read by PHP and compared against the AD via LDAP? Does anyone see any gotcha's with that kind of process? Couldn't I write my own

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

2006-03-10 Thread jblanchard
[snip] First, let me apologize for having to take it to a basic level. I'll admit that I'm fairly new to web development, but this is something I could *really* use at work and I want to make sure I understand (just to set the stage, we use Windows/Active Directory/MS SQL Server at work,

RE: [PHP] .DAT file with PHP

2006-03-08 Thread jblanchard
[snip] I want to use PHP to show the contents of the DAT from back to front. HOw do I do that? [/snip] Open the file, read it into an array, read the array backwards and close the file. Start with http://www.php.net/fopen and http://www.php.net/array they are both in the manual. -- PHP

RE: [PHP] .DAT file with PHP

2006-03-08 Thread jblanchard
[snip] Sorry im new but, how do we read from a file to an array? I've studied C but not with PHP and it's not working for me... Suggestions? [/snip] First, read and understand, as much as possible, TFM. It should go something like this $foo = fopen(my.dat, r); while(!feof($foo)){ $bar =

[PHP] Calling Curt Z, Curt Z to the white courtesy phone please

2006-03-08 Thread jblanchard
Sorry for the post listites, I have lost Curt Z's info and need him to contact me. More to the point, can you post the Newbie Guide that you revamped so well? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Zoomable map

2006-03-08 Thread jblanchard
I have been searching for this, but maybe one of you has seen it before and can save me some time. I need a class that will allow me to create a zoomable map application. I have a map, I just need folks to be able to zoom and scroll,etc. TIA! -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Calling Curt Z, Curt Z to the white courtesy phone please

2006-03-08 Thread jblanchard
[snip] You mean this? :) http://zirzow.dyndns.org/php-general/NEWBIE It might need some rewording and a few tweeks here and there. It is almost turning more into a php-general charter. For those wanting to know the original: http://zirzow.dyndns.org/php-general/NEWBIE.orig [/snip] Yes, that

RE: [PHP] Zoomable map

2006-03-08 Thread jblanchard
[snip] I have been searching for this, but maybe one of you has seen it before and can save me some time. I need a class that will allow me to create a zoomable map application. I have a map, I just need folks to be able to zoom and scroll,etc. TIA! http://script.aculo.us/ might have what

RE: [PHP] Zoomable map

2006-03-08 Thread jblanchard
[snip] http://script.aculo.us/ might have what you need... [/snip] No zoomable maps here, a bunch of Ajax and Javascript stuff though. Right. If you have a map, this will give you tools to zoom and scroll... [/snip] Really, I did not see those tools. I must not have looked closely enough.

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

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

2006-03-06 Thread jblanchard
[snip] You must have a column that is sequential in some way. An auto-incremented column, timestamp, or some other device that will allow you to step through regardless of gaps in sequence. If you do not have such a column then you could add one. You see, now that's the problem. If you have a

RE: [PHP] Detect where someone comes from

2006-03-06 Thread jblanchard
[snip] I was wondering if there was a way I can see where people are linking to me from. Can I find this in php? [/snip] HTTP_REFERRER is good to see where people are coming from, if it is set. Are you wanting to see if people have links to your site? If so, you're going to need a spider. --

RE: [PHP] Mysql Rows

2006-03-06 Thread jblanchard
[snip] That's the reason when I started this thread I made it clear that I was NOT talking about a relational dB but rather a simple flat file. What I find interesting in all of this exchange -- however -- is that everyone agree's renumbering the id of a dB is something you don't do, but no

RE: [PHP] Regexp matching in SQL

2006-03-06 Thread jblanchard
[snip] I am trying to simplify an SQL query that is pretty much like below: $sql = SELECT * FROM table WHERE keyword RLIKE '$expression1' OR keyword RLIKE '$expression2' ; The different terms '$expression1' and '$expression1' come from an array. Is there any way to within one regular

RE: [PHP] Re: PHP4 with MYSQL5

2006-03-06 Thread jblanchard
[snip] 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? [/snip] http://www.php.net/mysqli is designed to work with versions of MySQL 4.1.n and above. It requires PHP5 -- PHP General

RE: [PHP] output Today's date

2006-03-05 Thread jblanchard
[snip] ls there anyway I can set the date to the timezone of the clients timezone? For example, if a person opens the web page at 3/6 12:01 EST and another person opens the same page at 3/5 10:01 MST I would like the date to be the above days on the client computers. I know everyone knows this

RE: [PHP] Mysql Rows

2006-03-05 Thread jblanchard
[snip] R O B said: That Rod guy, he's such a card! I'd add something, but Jay has already covered my list in a more recent email than this one to which I'm responding :) jblanchard (who I think is Rod) said: [/snip] I am definitely not Rod. [snip] For sake of argument, let's agree

RE: [PHP] LDAP confusion

2006-03-04 Thread jblanchard
[snip] if(!$ds=ldap_connect(foo)){ echo did not connect; }else { echo connection successful; } $un = user; $upw = pass; echo connect result is . $ds . br /; ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); ldap_set_option($ds, LDAP_OPT_REFERRALS, 0); if ($ds) {

RE: [PHP] Mysql Rows

2006-03-04 Thread jblanchard
[snip] my reasoning for needing the users number in a database is this... i am going to be doing a lottery type thing where i grab a random number between 1 and the result of mysql_num_rows($result)... that is the reason the gaps matter. the while loop didn't work for me so if anyone could help

RE: [PHP] LDAP confusion

2006-03-03 Thread jblanchard
[snip] I vaguely recall you couldn't do an anonymous bind to an active directory system - you had to properly authenticate before you could do a search. You didn't include the bind stuff so I can't tell if that's the problem :) [/snip] I thought that I was not doing an anonymous bind, until I

RE: [PHP] Coordenates latitude / longitude on PHP

2006-03-02 Thread jblanchard
[snip] I have to create some maps from a latitude / longitude points. Do anyone know how to convert it to plane coordenates? (In order to show it on a bitmat) I have already found a function but does not work very well ... [/snip] Plain coordinates? You mean as in X, Y coordinates? If so, lat

RE: [PHP] echo'ing a variable and cat'ing text

2006-03-02 Thread jblanchard
[snip] echo $thedata.@mdah.state.ms.us; [/snip] Try echo $thedata.'@mdah.state.ms.us'; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] echo'ing a variable and cat'ing text

2006-03-02 Thread jblanchard
[snip] Hi, I just tried that, didn't make a difference, still not getting my expected output. Try echo $thedata.'@mdah.state.ms.us'; [/snip] Ooops, my bad, try echo $thedata .'@mdah.state.ms.us'; And please do not top post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] LDAP confusion

2006-03-02 Thread jblanchard
I am trying to work through connecting to and using LDAP with PHP. Thus far I am able to connect and bind, but I cannot search. $sr=ldap_search($ds, CN=configuration,DC=onecall,DC=local, cn=*); Gives me Warning: ldap_search(): Search: Operations error in /srv/www/htdocs/test/ldapTest.php on

RE: [PHP] LDAP confusion

2006-03-02 Thread jblanchard
[snip] I am trying to work through connecting to and using LDAP with PHP. Thus far I am able to connect and bind, but I cannot search. $sr=ldap_search($ds, CN=configuration,DC=onecall,DC=local, cn=*); Gives me Warning: ldap_search(): Search: Operations error in

RE: [PHP] Only 4 of 5...

2006-03-02 Thread jblanchard
[snip] I have 5 posts in the table, but the images shown are only four! Why? [/snip] Are you counting starting with 1 or 0? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Only 4 of 5...

2006-03-02 Thread jblanchard
[snip] while ($dbArray = mysql_fetch_array($querys)) { $dbIDPic = $dbArray[IDPic]; $dbPicNameSmall = $dbArray[picNameSmall]; ? img src=phonepics/?php echo $idModel;?_?php echo $dbPicNameSmall;? alt=testbild från mobil border=1 width=120 height=130 ?php [/snip] Is

RE: [PHP] LDAP confusion

2006-03-02 Thread jblanchard
[snip] Aha! It may not be me. The LDAP server is Win2003 and has some known problems when searching LDAP. I haven't located a solution, but if you are privy to one or two or ten could you let me know? [/snip] Well, I thought that I had escaped the hell of a Windows world when I accepted this

RE: [PHP] Failed to open stream

2006-03-01 Thread jblanchard
[snip] I have two *identical*l routines residing on two difference hosts -- one works and the other doesn't. [/snip] Is safe mode 'on' on one and not the other? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] More CLASS help

2006-02-28 Thread jblanchard
[snip] I am not sure if what I am doing here is a problem or not. Pointers? class mySubnet { var $data; function SubnetSettings( $level, $add_vlan, $edit_vlan, $del_vlan ) { } } [/snip] Call the constructor outside of the class. $subnets = new mySubnet; -- PHP General Mailing List

RE: [PHP] working with ini files

2006-02-28 Thread jblanchard
[snip] I have created my own ini file. I can read the values into an array fine. but What I want to do is change a value in the ini file. Example file.ini dog = 3 cat = 4 fish = 7 altered file.ini dog = 3 cat = 5 fish = 7 [/snip] ini_set is for the php.ini, not yours. You will need to open

RE: [PHP] Array sort question

2006-02-28 Thread jblanchard
[snip] How can I sort a 2 dimensional array by number of elements? [/snip] Start by RTFM http://www.php.net/manual/en/function.count.php

RE: [PHP] Array sort question

2006-02-28 Thread jblanchard
[snip] I love how infinitely helpful people on this mailing list are. It's a wonder people are being turned off to PHP. There's no one here willing to help new people more than throwing them RTFM responses. [/snip] Are you new here? I would rather teach a man how to fish than give him his supper

RE: [PHP] Array sort question

2006-02-28 Thread jblanchard
[snip] If you say so. In that case, jblanchard, I apologize for my outburst. [/snip] Apology accepted. Look, several of us have been on this list for years and have helped several others through their issues. Mailing lists like this (try a C++ newsgroup for example) are much more merciless than

RE: [PHP] Array sort question

2006-02-28 Thread jblanchard
[snip] That's not entirely fair. I would have said his usort() suggestion was a better pointer than a link to count() - which gives no hint as to how to sort the list, which is after all what the OP's trying to do. ObSuggestion: function byLength($a, $b) { return sizeof($a) - sizeof($b); }

RE: [PHP] Sr. PHP Salary North Carolina

2006-02-27 Thread jblanchard
[snip] Can anyone possibly tell me what the salary range is for a Sr. PHP/MySQL Developer in North Carolina? [/snip] Have you tried looking at salary.com ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Testing

2006-02-24 Thread jblanchard
I am conducting a test of my new e-mail address. This is only a test. If this were not a test you would be instructed to tune into your locale emergency sarcasm system. Please RTFM and Have a PHP Day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: