[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
[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
[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
[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, bu
[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
[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
en
[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
[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
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 un
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
[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
[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 Gen
[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 thought...
[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
successful
[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
[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 wha
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
[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 Maili
[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 express
[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 o
[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.
--
P
[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
[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 ar
[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 bu
[snip]
I'm glad that you were amused. Considering that I was talking about a
flat dB, then you have already shot yourself in the foot if your
"real database" is in the millions of entries and is flat. I hope to
God that normalization may be something you consider in your next
database design.
[
[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
m
[snip]
> if(!$ds=ldap_connect("foo")){
> echo "did not connect";
> }else {
> echo "connection successful";
> }
> $un = "user";
> $upw = "pass";
> echo "connect result is " . $ds . "";
> ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
> ldap_set_option($ds, LDAP_OPT_REFERRALS, 0)
[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 c
[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 posit
[snip]
while ($dbArray = mysql_fetch_array($querys)) {
$dbIDPic = $dbArray["IDPic"];
$dbPicNameSmall = $dbArray["picNameSmall"];
?>
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[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
[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
/srv/www/htdocs/test/ldapTes
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 o
[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,
[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
[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 a
[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
[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);
}
us
[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
[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
[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
[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 and
[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 (http
[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
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: http://www.php.net/unsub
45 matches
Mail list logo