Hi. I use password() to excrypt my passwords when I'm adding users to my
mysql database. I'm wondering if there's a function to use to un-encrypt it
(for a web interface to change the password, and so the admin who is editing
user info can see what it is). Thanks for any help.
Jason
--
I tried to send this before, so if I did, forgive me, but I don't think it
worked last time .:)
I'm trying to find a way to handle errors by number. For example, if I get
a "directory already exists" error, I want to know what the number that is
so I can check the return value on the function
Hi again. I have a new problem. I have a form with a drop down list. When
the user chooses something from the list, I need a variable to change values
so it can be used upon submission of the form. I thought maybe I could
throw a little line of code into an onChange() function in the select
then again, in the context of what you're doing, why not just build in a
little php logic that knows if your select is a certain value, something
else should happen?
Well, the select can't be a value until the user choses something (the
option stuff). Based on the option the choose, a value
mname
input type=hidden name=inputNameToChange
select onChange="changeValue(this.options[this.selectedIndex].value);"
option value=value1label1
option value=value2label2
/select
/form
--end cutting--
DanO (javascript is your friend, not your enemy!)
-Original Message-
mname
input type=hidden name=inputNameToChange
select onChange="changeValue(this.options[this.selectedIndex].value);"
option value=value1label1
option value=value2label2
/select
/form
--end cutting--
DanO (javascript is your friend, not your enemy!)
-Original Message-
Hey all. Does anyone have any ideas how I can carry over a selected value?
:) It's probably easy but my mind is making it difficult. A value is
stored for a record in the DB which had been previously assigned through a
select statement. If that record gets edited, the value that was chosen
Does anyone know a function to give me the mySql field types? I saw the
function mysql_field_type, but that returns php types not mysql. What I
wanna do is if the type of the field is "Text" then I wanna make a
"textarea" to edit and add stuff. Thanks.
Jason
--
PHP General Mailing List
Hi all. In the project I'm working on, I've got a table with ids that are
written based on how many records are in the table. i.e., the first record
has an ID of 1, the 50th is 50, etc. When a row gets deleted (I created a
web interface, I don't want all these members using phpMyAdmin), the
Does anyone know of a function in version 3.0.7 that does the same thing to
shuffle(), which was implemented in 3.0.8? I'm trying to run a banner
script I found, and I guess we were 1 one-hundredth of a version off for
this thing...
Or, how painless is it to upgrade to the latest version? I'm
Hey folks. I have another htaccess question. I have an entire folder set
up to require authentication. It's in an htaccess file, not in each page.
I was sure that the variable that's passed from the authentication dialog
was $PHP_AUTH_USER, but it's not working when I use that in a query.
Ok, I understand that the epoch is a point in time that's static, but what
exactly is the epoch? I've heard it mentioned a lot on the list, but I have
no idea what it really is. :)
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Anyone know offhand a way to organize the output from a query by week? I'm
writing a work log app and I want the admin to see everyone's work ordered
first by lastname, and then by date. But only want that week's data to show
up, and maybe a dropdown with previous weeks available. Don't go
Hi all. I'm trying to pass an array to
another page, and I'm not having luck. I thought maybe it would do
something slick by passing it in the url, but it doesn't. So, how can I
pass the array? I've done it before by going through the array and making
a hidden input field for each of the
Anyone got any ideas on how to tell what the url you're at? One of my sites
is for a bank with a bunch of branches, and when people go to a site for a
branch, I want the "prequalify for loan" to know where the person came from
(it's the same page for all branches, but it just has a select box)
Hi. In some of my files, I have a require statement to get some global
stuff accessable. I also have some header() redirects. They don't work
(they worked before I added the requires). I moved the require under one of
the header()s and that one works now, but I can't move it under the other
Hi again. :) Does anyone know how to reference a value in an array or
object if the returned table has 2 fields of the same name. IE, I am
querying 2 tables and returning an id value from each. On both tables, the
id fieldname is "id". I know I can access the vals like $array[0] and
It's been my experience that Netscape doesn't support mistakes as well as IE
(example...forgetting a close td tag or close table, stuff like that), so
usually if I build a page, I use Netscape to check it and it almost always
works the same in IE. As far as php and ssl goes, isn't that all
Mmhmm...onChange() event...it's javascript. Go to webmonkey.com and search
for it. They have a cute little tutorial about how to do that. Good luck.
Jason
- Original Message -
From: Miguel Loureiro [EMAIL PROTECTED]
To: php-gen [EMAIL PROTECTED]
Sent: Wednesday, February 28, 2001
Hey all. I've written htaccess files and stuff with one or 2 users, and it
works fine. I decided that making an htgroup file would work best in my
situation though, so I went to webmonkey.com and followed their tutorial to
make the htaccess files. As far as I can tell, all of my files are
Um...yeah. Make the action of the form with the button be a script with the
statement.
- Original Message -
From: kaab kaoutar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 01, 2001 11:59 AM
Subject: [PHP] plese help!
Hi!
please i'm really in need of knowing
Heh...I'm a list frequenter today...
Ok, so I want to be able to do some things with php.
1) add a user to the .htpasswd file
I know I can use exec() to run commands on the server. The problem here is
that when I do "htpasswd .htpasswd username" I get prompted for passwords
twice. How the heck
(without upgrading php) to convert the text
files to unix format? Or am I looking in the wrong place for that value? Thanks for
your help.
-
Jason Jacobs
Support a Constitutional Amendment to protect the Pledge of Allegiance and National
Motto. Go to www.wepledge.com
for your help, as always.
-
Jason Jacobs
Factory7, LLC
Support a Constitutional Amendment to protect the Pledge of Allegiance and National
Motto. Go to www.wepledge.com
Hi all. I am switching a site I built to a new server, and the old site was written
with register_globals on. I believe the php version was the same, but I'm not sure
(and I can't check). The way I understand it, for older versions of php, one had to
use session_register($foo) and could use
I'm not sure if this is the right forum for this question, but I'm hoping someone can
help nonetheless. :)
I installed an SSL Cert. on a site the other day for a checkout page, and the php
won't parse. If I take the s off, it parses just fine. I have a feeling it's an
httpd.conf setting, but
Is this a virtual host ? How did you define the AddType in httpd.conf ?
Yes. And I believe our AddTypes are set for each v-host. In this case, the v-host
has its own AddTypes.
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
Like I mentioned, the
Hi all. I've been struggling with getting images to upload cleanly. I'm using php
4.2.2. When I look at the uploaded file info, it gives me no errors and the file size
is fine. But the picture is all messed up. I'm using the move_uploaded_file
function. The max size is 8mb in php.ini, and
if they're both arrays,
wouldn't it make sense that it should evaluate to true?
Thanks for your help.
-
Jason Jacobs
Factory7, LLC
Support a Constitutional Amendment to protect the Pledge of Allegiance and National
Motto. Go to www.wepledge.com
Hi y'all. I am working on a mail list app that's pretty simple...don't need to let
users post, only admins, and it's very straightforward. I tested it out with mail()
on 50 addresses, and it took 78 seconds plus massive server load. Part of that may be
the mail scanner we have, but I also
30 matches
Mail list logo