I'm being told that I need to have php compiled --with-dbm and it is not,
but it is complied --with-db3. Is that the same thing or do I need
recopile --with-dbm to use the dbmopen() function?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a way to have errors in script not output to the screen? I have a
page that creates an error which really isn't a problem and I don't want
users to see the error message.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I found this code on the php.net web site but am new to php and can't figure
out how to dispaly the difference once calucuated. Belowis the code I'm
using:
# --- Date Difference ---
#Date 1 from MySQL database recordset row
$date1 = $row_rsMESSAGES['privmsgs_date'];
#Date 2 - now
$date2 = date("ym
I'm trying to do a mail function where if the date the email was posted was
today then a "new message" would display, otherwise not.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm having users post messages to a MySQL database records and want to
retain the formatting (such as carriage returns and so forth).
I have everything actually working all except that the formatting. Messages
are being posted but when they are returned they lack the carriage returns.
I'd like to
That did it thanks!
V
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When posting to a MySQL database field database record slashes are being
added to the data where there is an apostrophe. How do I either, not have
the apostrophe posted without the slash or have it not displayed when it is
being retrieved?
Thanks
V
--
PHP General Mailing List (http://www.php.n
I'm having trouble when a user post a message to a MySQL database where if a
user create a user name like 'user&user' as the & symbol is used in URLs.
Does anyone have any idea how I can inform user that they have entered and
illegal character and are there are illegal characters that I should let
How do I create a graphic pie chart on the fly with PHP. I have already
figured out how to get the variables from the database and so forth am just
looking to create the graphics.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to create an array from a rocordset that will do somethingt like
this:
$datay=array(12,8,19,3,10,5,55,88,3);
the following is the code I have attempted to create, which is not working:
do {
$dat = ($row_rsCOUNTRY['CountryCount'] & ","
$row_rsCOUNTRY['CountryCount']);
} while ($row_rsCO
That gives me something that looks like this:
Array ( [0] => 34 [1] => 31 [2] => 16 [3] => 16 [4] => 6 [5] => 4 [6] => 4
[7] => 3 [8] => 2 [9] => 2 [10] => 2 [11] => 2 [12] => 2 [13] => 2 [14] => 2
[15] => 2 [16] => 1 [17] => 1 [18] => 1 [19] => 1 [20] => 1 [21] => 1 [22]
=> 1 [23] => 1 [24] => 1 [
I've setup a search page using PHP which when searching a MySQL 'varchar'
field it works just fine, but I'm trying to extend the search to include a
field that is a 'text' field and it keeps coming back with no results.
Is searching text fields allowed? It would seem that it only be logical that
i
I have a membership base that is logging into a php and MySQL based web site
and am wanting to be able to create a who's online (and perhaps an ability
to contact that person, but that's later) so that that person's profile is
available.
Anyone have any ideas where I could download a quick script
I've successfully created a search and result page for a dating site which
off of the result page is a detail page for reviewing the profile online and
so forth.
The problem I'm having is once a user does his/her search they may come up
with a number of results which after reviewing one of the mem
When I do that I get syntax errors in the SQL
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Simple answer is - use GET method instead of POST for your searches
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
That did it. Thanks (in all the years I have been doing this you think I
would have learned that already)
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Changing the method also implies changing $_POST to $_GET in your code.
--
PHP General
After upgrading to MySQL 4.0.1.2 I ma getting the message :
Fatal error: Call to undefined function: mysql_connect() in
/home/penpals/pub/mysql.php on line 3
Please help my production server is down!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Just so you know, MySQL is working.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This is not helping me. I know very well that I should not and I tried the
upgrade on two other machines and all went wll.
My problem still stands and a search does ntohiong but tell me to check that
the path is correct. If it worked before then obviously the path is fine,
unless something has cha
For some reason I do not see any error logs for today.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think the point is here that I can connect with a MySQL client, so MySQL
is running.
I cannot however connect using PHP. What would cause this?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm sorry I have no idea what that means.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try
> ldd /usr/lib/php4/mysql.so
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I try to restart Apche I get the following error:
PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' -
/usr/lib/php4/mysql.so: cannot open shared object file: No such file or
directory in Unknown on line 0
Any ideas, pleas ethis thing is still down.
--
PHP General Mail
There is no mysql.so file
"Lucas Lain" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ldd /usr/lib/php4/mysql.so?
>
> Vernon wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I try to install that I am told:
libmysqlclient.so.10 is needed by php-mysql-4.1.2-7.2.6
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OK, I looked up that file and found that I needed to install the
MySQL-shared-3.23.51-1.i386.rpm which I did and realized that I already have
the php-mysql installed. But am still getting the same erro message when
restarting.
However I did find the file you were asking about but in the /usr/lib/p
I finally got it!
I had to downgrade to an older verison of the php-mysql for God know what
reason. I am back up now.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I made the mistake of opening a web site with encrypting the passwords
stored in the database and want to encrypt them all in one fell swoop. Any
ideas on how to do that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all,
I'm using the following code to save an MD5 password into a database along
with an unencrypted username and email address:
$insertSQL = sprintf("INSERT INTO penpals (email, password, username) VALUES
(%s, MD5(%s), %s)",
All seems to have worked well, the password is encrypted and so for
I'm thinking that the MD5 function more than likely encrypts a password to
store into a database, and when you log in using the MD5 function it will
simply encrypt the value being passed along again the same way. Now I'm
wondering what happens when I user has lost there password and needs to
retrie
For what ever reason I cannot seem to get a user to login using MD5. The
user creates the password on log and it works fine, password encrypted and
all. I test to see if the process is working ok on creation by using the
UPDATE penpals SET password = MD5(password)
and the encrypted passwords matc
Anyone know of a video conferencing solution (hopefully GNU) for use within
a php web site? I'm looking to do something where a number of people can
video conference at the same time.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I need to have files that exist within a folder on my server based on the a
MySQL record that contains it's name. What command would I be looking for in
the php functions list? Anyone?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have users uploading images to a server and need to have those files
resized on upload. I looked under filesystem, but found nothing like that.
Anyone?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm setting up a user online system using MySQL where I have 4 fields, all
of which is working fine.
I need the information from all the fields but want only distinct values
based on the uname column. If I use the:
SELECT DISTINCT uname
FROM useronline
of course I come back with the values I des
could use a
ORDER BY command) the last one is the only one I want and only want to
return:
jimmy successfullogin.php
susan search.php
make sense?
"Arturo Barajas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Vernon,
>
> Don't know if I get it r
I've had to convert times in a MySQL field to a normal date, but never in
reverse. How to I convert a date in this format, 03/14/2003, to MySQL format
so it can be posted to a date field?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
I know that using stripslashes will remove \ using php but I'm having
trouble with posting quotation marks in a text record field. Anyone know how
I can get them to post to the database? It's basically like an email and I'd
like anything written to be able to post.
Thanks
--
PHP General Mailin
OK when I use the mysql_escape_string() it adds the slashes so that the
message will have \"the message\" so I've tried using the stripslashes() as
such:
$message =
stripslashes(mysql_escape_string($HTTP_POST_VARS['message']));
which then causes the orginal problem, so it seems that I keep tr
All the email coming from a web site, even though I have set the Reply-To,
have the Reply-To set to [EMAIL PROTECTED] Anyone have any ideas why? I
want the reply-to set to somethign else.
Here is what I have:
mail("$clubemail", "$subject", "$message" , "From: $email\r\n","Reply-To:
$email");
-
I am calculating distances between to record's zip codes using php and have
a need to sort the recordset by that value. How do I do something like this?
I mean it's not a value in the table that I can use the SQL ORDER BY
statement. I want to be able to have the distances closest to the individual
> When you say "using php" I'm assuming that this means you are not doing
> the calculation at the database, but rather in your PHP code.
Correct.
> Use the distance you've calculated as the numeric index of an array,
pointing to
> the record that corresponds to that distance.
Can you please exp
Please forgive the ignorance of this question but I am trying to use an
include for a site navigation menu and am having a hard time figuring out
how to point at the route of the site.
For instance I may have home set as index.php, but if my users are in
messages/index.php that will always bring t
Is there some thing that needs to be turned on in the php.ini in order to be
able to upload photos VIA php? I have the same script on one machine with
the right permissions on the upload dirs on one machine and am moving to
another machine which is not being uploaded. Funny thing is I'm not getting
I know this is sort of off topic but I was wondering it any one knew if
there was a GNU version of Webtrends or perhaps a GNU equivalent, maybe in
php to use on an Apache Linux Red Hat server?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
Not sure if there is an html tag or php that will tell a page not to display
any errors on the page, but does anyone know how to do that? I want to hide
any error that might be displayed, JavaScript or otherwise.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
I have a way of getting the distances from one zip code to the next in the
US, but I need to be able to do that for other countries as well.
I've found a web site on the net that sells a database of all postal codes
and their longitude and latitudes but they want a $1000 which I am not
willing to
I am very big on Internet security and anyone running a web server should
know IPChains and IPTables. If you don't get a couple of books and learn.
Once you understand how things work you we will be much better equipped to
handle any security issues that may come up.
Having said that you don't rea
I'm trying to delete two files in on fell shoop. One is defined with $file2
// returns "filename without extension"
$filename_small = substr($file1, 8, 10);
// returns define location and file name to delete
$file2 =
"/home/httpd/vhosts/servername/httpdocs/photoalbum/$filename_small";
// the other
Figured it out thanks anyway for looking.
:)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to add a variable to the end of a directory listing.
This will give me the root directory and show me all the files
exec('ls /home/httpd/vhosts/sitename.com/httpdocs/resumes/',
$filelist);
I figured I could do this but it shows me all the files in the root of the
site not of th
I'm using the "ORDER BY RAND() LIMIT 0,1" to give be a random record from a
recordset but it seems like it puts a real heavy load on the server. Is
there a better way to pull a random record from a database?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Here it is:
SELECT penpals.username, penpals.zoneid, penpals_photos.album,
penpals_photos.rating, zones.zone_id, zones.zone_code,
penpals_photos.filename, penpals.city
FROM penpals, penpals_photos, zones
WHERE penpals.username = penpals_photos.album AND penpals_photos.rating !=
'X' AND penpals.zon
I what to be able to set a variable based on user's screen resolution.
Can anyone tell me who to do that?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The point is I don't know how to do that. That's why I was asking. :)
Vern
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thats' great!
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not for nothing, but every time I post to this group I get treated poorly.
It has to do with php and I've already gotten an answer from this group, off
the PHP web site no less!
http://www.php.net/manual/en/faq.html.php#faq.html.javascript-variable
Doesn't take much to spread a little kindness. I
Missing the point all tighter.
The point now is merely that courtesy goes a long way. Why some one needs to
respond in such a fashion is beyond me.
I think it's pretty simple, if I'm posting to a php group, then obviously
I'm using php. Also very simple, yet again, is if you don't want to waste
y
I'm having trouble with the following code dispalying an error, which I
don't understand because the code actually works (other than the error). Any
ideas?
Login";
} else {
echo "Logout";
}
?>
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
That's the thing, everything works but the error message keeps coming up?
Runtime Error: Syntax Error
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anyone tell me what's wrong with theis code. I don't get any errors but
the databse is never updated:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey all, I'm coming over from programming ASP in VBScript and I know that a
wildcard there is '%' can anyone tell me what it is in PHP? Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a form that is acting like an email page where there Subject is being
submitted from one page to another and tagging the subject with "RE: ". I
want to be able tack the RE: on but only if it doesn't already have it
there. I know that I can use and if statement, but how to I check the left 4
Does anyone know how I can set something up that tells the distance between
one Zip Code and another? I'm needing to be able to set something up where
one user's record is compared to another and a distance is measured. Any
have any ideas?
--
PHP General Mailing List (http://www.php.net/)
To un
I've gotten Geozip, as was suggested here, and I need to return the value of
a form that contains two zip codes (one each from two different recordsets)
binded to hidden fields which is then submitted to the "cgi-bin/geozip.pl"
which then returns the distance between them.
My problem is how do I g
> In case you have them already available in your script, you could execute
> the geozip.pl using exec() or system(), and merging the result into your
> output.
They are in the script. But how do I use these exec() or system()? Are they
javascript? Could you give me an example?
Thanks
--
PHP
These pup session are going to drive me nuts!
I can't seem to get this session to register on the same page it is set. For
instance I load a record, then set a session right after it using:
session_register("suckered");
$suckered = $row_rouser['ID'];
The session is set throughout the site, but n
I'm wondering if anyone knows of a good file system script that allows some
one to do searches on files in a directory. For instance I'm storing resumes
in folder defined on upload dates and so forth and want to be able to do
searches through these files for keywords and would like to be able to do
Hello all,
I have been struggling for some time now to develop or find some product
that will allow me to scan documents (I have that part down no problem,
using OMNIPAGE 14.0) and put then into a searchable database with a copy of
it in some form that is readable like a formatted txt file.
I am
Some one is asking me to create a sub search on a search that has already
been done. For instance, the database has 50,000 records, a user does a
search for two keywords which yielded 1700 records. They want to now filter
that list with other keywords. The logic is that searching 1700 records has
I want to create an array with some text. Let's say the following:
$sometext = array(explode(" ", "Objective: Position as a Machine Attendant
and or Operator Summary - Over 16 years experience in packaging and
maintenance of various operating machinery. - 13 years experience in cutting
steel and o
I'm having trouble returning the value less the quatation marks from the
following:
$words=explode(" ", strtolower($keywords));
I'm having the words from the form field put into an array. Problem is if
the field contains something like
trackworker AND "New York"
It seperates the words
The search is already completd. The previous response answered my question.
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to use str_replace to ignore sertain characters from a recordset
field and it seems I am having difficulties with ignoring commas and
carriage returns. I've gotten the following but when searching for, let's
say, New York. When York is at the end of a sentence from a recordset field
it i
> could the problem be that you explode on " " so the phrase 'New York',
> having a space, is split up?
Could be. Some times the New is on one line and the York is on the next
line. I need for it to explode no matter what. How would I do that?
For instance the print_r for the array shows me this
> Nowhere in your replacement array do you check for, or remove,
> carriage returns.
> Add this \n to it:
> $replacement = array("\"", "\,", ".", "!", "?", "\n");
> Your exploded array should now be correct.
When I do this I get some really unexpected results. Almost everything comes
up bold.
--
I'm creating a resume database where I am having resumes submitted to this
database and keyword searches done. All works. Now I need to have a way of
tagging items found in the database much like a shopping cart.
So, I have a unique ID created each time someone does a search on the page
which is b
Sure glad I figured it out myself. :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm using the following to replace certain characters but am having troubles
with TABS. How do I find them?
$replacement = array("\"", ",", ".", "!", "?",";", ":",")","(","\n");
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In case anyone wanted to know I found it:
$replacement = array("\"", ",", ".", "!", "?",";", ":",")","(","\n", "\t",
"\v");
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm in the process of moving to a new server and no sessions are working.
Does something need to be set in the php.ini file? Why would sessions not be
working?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Figured it out.
Had to turn on RegisterGolbals (which I had, but didn't restart Apache).
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've gotten the one array down and I've figured out how to sort that array,
however, I need to sort the array by the modified date of the file. Here's
what I got so far:
";
}
}
}
?>
Any ideas on how to fix this? Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
This may be a stupid question, but I am sick and under the guy and am
wondering if you could you show me how to simply echo each file name using
the exmaple below?
Thanks
"Jim Lucas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Jim Lucas wrote:
ok, here would be my version of
Ok, I've gotten the following so far, which is giving me the results, except
it is still sorting by file name and not the file's date.
$file, 'filemtime' => $filemtime);
# This is the list of filemtimes to sort by later
$filemtimes[] = $filemtime;
# Sort array based on $filemtimes
# http:/
I'm really starting to feel incompitant here. Sorry to ask, but could you
show me what you mean?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
All is weel except for 2 things:
1. $filemtime = filemtime( $dir . $file ); needed to be changed to >
$filemtime = filemtime( $file );
2. The filename is the same filename over and over again.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
SOLVED!
I made the following change as well to fix the file name:
BEFORE:
echo date("m-d-Y", $entry['filemtime']) . " {$file}\n";
AFTER:
echo date("m-d-Y", $entry['filemtime']) . $entry['filename'] . " />\n";
One last question.
The $entry['filename'] is the file name and path:
/
That worked great. Thanks.
"Micah Gersten" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
http://us3.php.net/basename
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I want to be able to replace a space that comes from a form field (such as
in 123 My Street) with a + sign.
Can anyone help me with this?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
As much as I try I cannot get a file field in a form inserted into a MySQL
record. I've even tried to get it to echo to the page when the page is
submitted to itself and it's not reading the field.
What am I missing here?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: h
All I am trying to do is insert the file name, not the file. The file is
being uploaded to the server in a specific location. All I need is the
filename inserted into the database. I've gotten the upload part to work and
everything I just can't get the file name inserted for God knows what
reason.
> The uploaded file name will be $HTTP_POST_FILES["filename"]["name"] -- use
> that rather than $_POST["filename"].
I'm sorry I don't understand. What is the extra ["name"] for? When I use
this in the insert into the value that is inserted into the database is
Array, as opposed to the actual filen
Hiya,
Ive got a few websites that use sessions and I thought id upgrade them
now to use cookies. In the main file it calls the session start function,
and then this function is called, but it does not seem to work. I open a new
window and the cookie does not seem to auto log me on.
Sorry i
Thanks a million, must of had something else on my mind ;-)
Love,
Steve
XX
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hiya,
I am working on a generic JavaScript form checked, that takes the names
of the elements, with the first two letters being the type of element, so
its checks that it is right, if not gives a generic error message e.g. YOu
Need To Fill this in and selects it, or Sorry only numbers are allow
(PHP 4.23, GD 1.6.2 or higher)
Hiya,
I have code to place the picture in a database, and I normally shrink it
when the user requests a picture. What I would like it to change to is that
it should shrink or expand the picture to be 300 pixels wide and then place
it into the database. I thought
Hiya,
I know it is probably out there somewhere, but I cannot find out a
script to detect the browser. I have seen it, and I sorta remember how to do
it, but I just can't find it!
I have a script that adds nice features to my webpage, but if JavaScript
is off the site still can be used. Ba
Hiya,
I have had help from a very useful person on storing images in
databases, and basically now I don't want to do this. But I may end up
storing a lot of pictures, and don't want to mess around.
Is there a script or class, that is as simple as storing in a database,
that will handle pos
1 - 100 of 135 matches
Mail list logo