Re: [PHP] Group and count at the same time?

2002-08-15 Thread Adam Williams
=".$genre; $query = mysql_fetch_row($sql); // echo the results echo "You have $query ablums that are $genre"; } Thats just off top top of my head so it may or may not work. Adam On Thu, 15 Aug 2002, Jeff Lewis wrote: > I am using PHP to maintain a ca

RE: [PHP] Php.ini on Solaris?

2002-08-15 Thread Adam Williams
rename php.ini-dist thats with the php source code to php.ini and copy it to /usr/local/lib Adam On Thu, 15 Aug 2002, Randall Perry wrote: > > is usually in /usr/local/lib > > > Ok, just reinstalled 4.2.2 to make sure I didn't miss anything -- it

Re: [PHP] Php.ini on Solaris?

2002-08-15 Thread Adam Williams
think there is a bug with method=POST in php 4.2.2. Adam On Thu, 15 Aug 2002, Randall Perry wrote: > Thanks. I put it in /usr/local/lib and turned register_globals On (I plan on > setting it off after I rewrite all my scripts and give my hosting clients > no

Re: [PHP] quick question

2002-08-15 Thread Adam Williams
basically it is used for accessing a variable in an array. Adam On Wed, 14 Aug 2002, Chris Barnes wrote: > hey people, > I have been seeing something in a few php scripts i've been playing with and > i really dont know what it means or does. I'm

Re: [PHP] Invoking sendmail with PHP

2002-08-15 Thread Adam Williams
Why don't you just run sendmail 24/7 with -bd -q15 I'll check the queue continously and send out the emails as it receives them instantaneously. Adam On Thu, 15 Aug 2002, Daren Cotter wrote: > To recap, my problem is: > > I need some mailin

Re: [PHP] error message when run /usr/share/pear

2002-08-16 Thread Adam Williams
when running the ./configure for PHP did you use --with-mysql Adam On Fri, 16 Aug 2002, Ryan wrote: > What's wrong ? I am using RH7.3. I manually compile the php and install > it before. But later I install using the rpm. > > Thx for reply ! > &g

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread Adam Williams
configure script, so add to it a --with-imap and then save the file, and then run rpm -bb mod_php.spec (or whatever the name of it is) and then it will build the binary rpm in /usr/src/redhat/RPMS/i386 and you simply rpm -Uvh it. Adam On Sat, 17 Aug 2002 [EMAIL PROTEC

Re: [PHP] HTML - iframe

2002-08-19 Thread Adam Williams
Have you tried putting the IFRAME in a table and setting the background color of that table to the background of the rest of the page? Adam On Mon, 19 Aug 2002, David Buerer wrote: > Yes I know it's a PHP list, but I thought someone might have an idea on how &

[PHP] compile error

2002-08-19 Thread Adam Williams
rectory `/root/php-4.2.2/sapi' make: *** [all-recursive] Error 1 Has anyone else had similar errors and found a solution? Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread Adam Williams
If memory serves me right, -ba builds the binary and source rpms, and -bb only builds the binary rpm. Adam On Mon, 19 Aug 2002 [EMAIL PROTECTED] wrote: > Adam Williams wrote: > > > If I haven't responded too late, Install the SRPM package with rpm -ivh

Re: [PHP] Problem about rpm package of php

2002-08-19 Thread Adam Williams
I'd run -bb but the -ba will work just fine, you'll just delete the src.rpm it builds because you won't need it. Adam On Tue, 20 Aug 2002 [EMAIL PROTECTED] wrote: > So, which command that you recommend to run ? > > Adam Williams wrote: > &g

Re: [PHP] Re: Passing a PHP variable to javascript

2002-08-19 Thread Adam Williams
uff selected |50 | -- Adam On Mon, 19 Aug 2002, Pag wrote: > > Hi, i am coding a news manager backend for a client and i ran into a > little problem. > > I have two tables, one with the news and one with the comment

Re: [PHP] +=

2002-08-19 Thread Adam Williams
$string .= "world."; Adam On Mon, 19 Aug 2002, Alexander Ross wrote: > Is there a += equivilant for strings?? > > $string = "Hello"; > $string += "world."; > > I know that > $string = $string." world."; &

[PHP] Apache 2.0.40 and PHP

2002-08-20 Thread Adam Williams
having similar problems and have a solution? Or since PHP is working, even though the install errors out, to just not worry about it? Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parameters not seen

2002-08-20 Thread Adam Williams
is register_globals = off in php.ini? if so, that is why. Adam On Tue, 20 Aug 2002, Maris Kalnins wrote: > Hi! > > just installed latest php and apache on windows nt! > > to my big surprise when i am executing test.php?abc=testvalue > where test.ph

Re: [PHP] Freetds + Sybase-ct + mssql problems

2002-08-20 Thread Adam Voigt
Your path to the interface file must be wrong, in my php.ini I have it set to "/usr/local/freetds/conf/freetds.conf" Are you sure the path is right? Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-20 at 11:20, Benji Spencer wrote: > I finally got PHP 4.0.6 compiled with sybase-

Re: [PHP] Freetds + Sybase-ct + mssql problems

2002-08-20 Thread Adam Voigt
Hmm, weird, mine worked perfectly the first time through when I installed it, no havingto mess with permissions or anything. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-20 at 12:18, Benji Spencer wrote: > > >Your path to the interface file must be wrong, in > >my php.ini I

Re: [PHP] suggestions for a good php+mysql isp?

2002-08-20 Thread Adam Voigt
I've heard good things about hostway.com. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-20 at 12:27, db or not db wrote: > They (futurequest) really are impressive, but 39.95/month is a little pricey > for me...if they offered MySQL with the basic plans (with 1-2 db's instead &g

Re: [PHP] phpMyAdmin is this possible

2002-08-20 Thread Adam Williams
I always create a database by hand. On the console type: mysql -u root -p (It will prompt you for the mysql superuser's password. Then run: CREATE DATABASE db_name_here; Then you would use the grant statement accordly to give users permissions to it. Adam O

[PHP] PHP Web site down?

2002-08-21 Thread Adam Williams
e too. Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web site down?

2002-08-21 Thread Adam Williams
Thanks! Silly me, I'm always forgetting about the mirror sites ;) Adam On Wed, 21 Aug 2002, DL Neil wrote: > > Is it just me having network connectivity problems, or is the PHP website, > > http://www.php.net down? I tried connecting to it

Re: [PHP] Passing variables between servers

2002-08-21 Thread Adam Williams
Just suggestion but why not use md5($password) and then send the result of that in your GET? Adam On Wed, 21 Aug 2002, Mark McCulligh wrote: > I have two server. One running PHP/Linux the other running ASP/2000. > The user logins into the PHP server and s

Re: [PHP] problem with PostgreSQL

2002-08-21 Thread Adam Williams
idately after the "echo -n "$PSQL_START"" change the next line to: su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o -i start > /dev/null 2>&1" < /dev/null Adam On Wed, 21 Aug 2002, Ray Hunter

Re: [PHP] mysql upate return false?

2002-08-22 Thread Adam Williams
mysql_query($sql_statement) or die ("Couldn't run UPDATE statement"); Adam On Thu, 22 Aug 2002, Randy Johnson wrote: > I have a function > > > update_trans(); > > > in a mysql_query() that processes an update, what could i check for

Re: [PHP] New to PHP/mySQL - Help on script

2002-08-26 Thread Adam Williams
{ echo "We have $result[count] villas booked"; } and do the same again but change the statement to villa_id = 0 Adam On Mon, 26 Aug 2002, Ray Healy (Data Net Services) wrote: > Thanks for everyones help yesterday but nI have come up against a problem >

Re: [PHP] How do I call a CGI script from PHP?

2002-08-26 Thread Adam Williams
exec() and system() Adam On Mon, 26 Aug 2002, Matthew wrote: > I'm new to PHP and want to build a basic page. The one thing I cannot > find any documentation on is the seemingly simplistic question of how to run > a Perl script. I just want to

Re: [PHP] PHP - Chat?

2002-08-27 Thread Adam Williams
look around for phpmychat Maybe its on freshmeat.net? Adam On Tue, 27 Aug 2002, Andy wrote: > HI there, > > I am wondering if a Chat coded in PHP would be sufficiant for a medium sized > site. Maybe someone has a working example online. It would be no prob

Re: [PHP] PHP - Chat?

2002-08-27 Thread Adam Voigt
PHPOpenChat: http://phpopenchat.sourceforge.net/ Very good. Adam Voigt [EMAIL PROTECTED] > On Tue, 27 Aug 2002, Andy wrote: > > > HI there, > > > > I am wondering if a Chat coded in PHP would be sufficiant for a medium sized > > site. Maybe someone has a working

Re: [PHP] flaking out on foreach

2002-08-27 Thread Adam Voigt
Don't put a semicolon after the foreach. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-08-27 at 11:07, ROBERT MCPEAK wrote: > Why is this code: > > > $bob=array(1,2,3,5,6); > >

Re: [PHP] Re: Command Line

2002-08-27 Thread Adam Williams
each table. If you need the table names do SHOW TABLES; and if you need their structure use DESCRIBE table_name; Adam On Wed, 28 Aug 2002, Trevor Tregoweth wrote: > Hi > > I am very new to mysql, so any help please > > how to drop tables from a da

[PHP] Simple regexp

2002-08-28 Thread Adam Alkins
7;t. Anyone can help me with this? IPv6 addresses are just Hex with : characters, so I just need to validate that for the entire string. Thanks for your time. -- Adam Alkins http://www.rasadam.com --

Re: [PHP] file creation question

2002-08-29 Thread Adam Williams
Search the archives, this was explained 2-3 days ago how to dynamically generate a while without creating one on the server. Adam On Thu, 29 Aug 2002, John Hegele wrote: > I'm currently building a site for a band and one of the features I'd like to > of

[PHP] Simple regexp

2002-08-29 Thread Adam Alkins
Hi, I'm trying to do a simple regexp to validate if a whole string only contains the numbers 0 to 9, Letters a - f and A - F and the character : Why isn't ereg("[a-zA-Z0-9:]",$string) working? Guidance appreciated. -- Adam Alkins http://www.rasadam.com --

Re: [PHP] fun with register_globals

2002-09-04 Thread Adam Williams
use $_GET[id] in the place of $id for each instance. Like if you had $new = $id + 1 change it to $new = $_GET[id] + 1 and such... Adam On Wed, 4 Sep 2002, Kelly Meeks wrote: > Hi folks, > > I might be late to the game with these questions, but I've ju

Re: [PHP] php mysql error

2002-09-04 Thread Adam Williams
whats the permissions on /tmp? it should be set to 1777 Adam On Wed, 4 Sep 2002, ROBERT MCPEAK wrote: > Our box recently went down and after reconfiguring it we're left with a > semi-operation mySQL. One error I'm getting is this: > > mys

Re: [PHP] simple problem

2002-09-04 Thread Adam Williams
if ($i%3 = 0) { echo "something"; } On Wed, 4 Sep 2002, Cirkit Braker wrote: > what would be the best, most efficient way to print something every three > times a loop runs > > for ($i=0; $i<$num_products; $i++) > { > echo "something"; >} > > this happens every t

Re: [PHP] PHP & MySQL & Apache on Linux vs. Solaris

2002-09-05 Thread Adam Williams
Go to www.mysql.com and make sure you are using the latest version of MySQL. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: > Hi > > Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine > I'm having weird problems with MySQL crashing whil

RE: [PHP] PHP & MySQL & Apache on Linux vs. Solaris

2002-09-05 Thread Adam Williams
I haven't had any problems with mysql like you are having. I would recommand you recompile the source rpm to the binary rpms and then install them. Adam On Thu, 5 Sep 2002, Boaz Yahav wrote: > I'm using 3.23.52-log > > -Original Message- &g

RE: [PHP] unix timestamp

2002-09-06 Thread Adam Voigt
$date = date("U",strtotime("-7 day")); Have a nice day. Adam Voigt [EMAIL PROTECTED] On Fri, 2002-09-06 at 12:37, Mike richardson wrote: > The attached class is a date utility that I created a long time ago. > > It parses out SQL dates, does differences, and

Re: [PHP] php4 w/ apache2 using module

2002-09-06 Thread Adam Williams
what commands are you giving it to compile and what errors you getting? Adam On Fri, 6 Sep 2002, yoda2005 wrote: > Is there any way to do it? I cant seem to get it to install as a module > nomatter what I do. Right now I have it running as a cgi parser but some &

Re: [PHP] How to print a mysql result

2002-09-06 Thread Adam Williams
echo "$sql"; Adam On Sat, 7 Sep 2002, Chuck PUP Payne wrote: > Hi, > > I am having a problem with menu options being pass on to my database. Is > there a way that I can see what is sql statement that is passing on to the > database? Say mayb

Re: [PHP] RE: A straightforward user login coding

2002-09-09 Thread Adam Williams
search google for using PHP sessions and you will print the session ID into the URL. Adam On Tue, 10 Sep 2002, YC Nyon wrote: > I been searching for a user authentication codes all night but got no where > with the results. > Therefore, if someone can tell me

Re: [PHP] PHP Source files

2002-09-09 Thread Adam Voigt
Umm, maybe I'm confused, but here's an answer, not sure if it's right: The code in the braces will never be executed because $a will always be ateast $b if not greater (assuming $c has a value) which means that it couldn't be greater, however it could be >= if $c wa

Re: [PHP] PHP Source files

2002-09-09 Thread Adam Voigt
Oh, ok, I was wondering cause I thought the question was fairly basic, as for where in the actual source code to PHP expressions are processed I have no idea. I bet they know in the php-dev mailing list though, you might want to try there. Adam Voigt [EMAIL PROTECTED] On Mon, 2002-09-09 at 12

Re: [PHP] Server date and time

2002-09-10 Thread Adam Williams
If you are using mysql, you can use the NOW() function to insert the time into a date field. It will insert the time that is on the server's clock. Adam On Tue, 10 Sep 2002, Christian Ista wrote: > Hello, > > When a use insert the row in a table, I'

Re: [PHP] basic voting

2002-09-11 Thread Adam Williams
Most sites log by IP but if its the IP of a firewall, it would only be one vote from everyone behind the firewall. Adam On Thu, 12 Sep 2002, Justin French wrote: > Hi, > > I'm looking to implement very basic like it | hate it voting for a product > o

Re: [PHP] question

2002-09-11 Thread Adam Williams
I just wanted to chime in here and say that Julie Meloni's books are awesome. I have PHP Essentials and her Teach yourself PHP in 24 hours book. I plan to buy her PHP Fast and Easy 2nd edition very soon. Adam On Wed, 11 Sep 2002, Miles Thompson wrote: > Juli

Re: [PHP] PHP and Special Characters

2002-09-11 Thread Adam Williams
use stripslashes() or turn on magic quotes in php.ini On Wed, 11 Sep 2002, Rick King wrote: > Apache: 1.3.23 > PHP: 4.1.2 > > Hello PHP Guru's! > > I have created a simple web form. When the form is complete and submitted, > the results are emailed to an email account. But I have noticed that th

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
Have a php page that runs exec() or system() and does a whois query on the domain you want and then have it output the text to a page. Very simple to do, less then 2 minutes of coding. Adam On Thu, 12 Sep 2002, yasin inat wrote: > please anyone can help me ab

Re: [PHP] Re: Cry for help

2002-09-12 Thread Adam Williams
it run cut -d | -f 4 yourfile.txt and then return you the output. Adam On Thu, 12 Sep 2002, Chad Winger wrote: > Thanks for the reply :P > > I found it actually. Now I have the apache and php running, and am able to > run my aforementioned test script locally

Re: [PHP] A question about .php file extension

2002-09-12 Thread Adam Williams
make a directory called phptest and put a file, index.php in it...never tried it tho. On Thu, 12 Sep 2002, LI DONG wrote: > Hello everyone, > > It is a question about .php file extension. Is there any way to access PHP4 > script in Apache 1.3.x without .php extension? For example, how to use > >

RE: [PHP] Extracting Numbers from a string.

2002-09-12 Thread Adam Williams
that'll work because PHP will change its cast from a currency to a integery before adding. Adam On Thu, 12 Sep 2002, David Buerer wrote: > OK y'all, go ahead and shoot me, but this is what I'd do: > > $mystring="enters $56.55 for exampl

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
try with and see if that works. Adam On Thu, 12 Sep 2002, Tom Ray wrote: > Yes, but how do you format the information that comes back out of the > whois? I'm doing this: > > > $whois = system("whois [EMAIL PROTECTED]"); > > print "$w

Re: [PHP] whois query

2002-09-12 Thread Adam Williams
try using nl2br() on it before you print it. Adam On Thu, 12 Sep 2002, Tom Ray wrote: > Nope still comes up with everything in one big line. I'm running through > different options right now..but I'm tired and my brain is starting to > hurt :) >

Re: [PHP] PERMISSIONS

2002-09-12 Thread Adam Williams
you don't. php/apache run as the user nobody for security purposes. Adam On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote: > HI, > I am trying to use a script php with the command: > system("mkdir /home/hosting/test"); > but the PERMISSION

RE: [PHP] time() problem

2002-09-18 Thread Adam Voigt
Change it to an INT or a VARCHAR datatype, the mysql timestamp field uses MySQL's date/time formmating. If you decide to let MySQL use it's own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix timestamp from that date field. Adam Voigt [EMAIL PROTECTED] On Wed, 2002-0

Re: [PHP] editor php

2002-09-19 Thread Adam Williams
/bin/vi :) Adam On Thu, 19 Sep 2002, Gian Michele wrote: > Hi, > does any body knows a cool editor for php that run under redhat 7.x and > where i can find? > tanks -- Gian Michele > > > -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Is php even right for this design?

2002-09-19 Thread Adam Voigt
x27;s fairly easy. 4. I've never seen PHP round a number because it thought it was a string. =) Actually, if it's a string, it's more likely to interepret it as a "don't touch me variable". (That makes sense to me anyway). Adam Voigt [EMAIL PROTECTED] On Thu, 2002-0

Re: [PHP] Best practice question

2002-09-19 Thread Adam Voigt
One extra variable to be declared to catch the true (if you do try and catch it) and one extra line (the return line in the function), I'd say skip it if you know your never returning anything different. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-19 at 13:17, Jon Haworth wrote: >

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Adam Williams
Yeah, apache 2.0 and php don't like each other. Adam On Fri, 20 Sep 2002, pierre.samson wrote: > I'm building a new server and would like to use: > php4 > apache 2.xxx > mod_ssl > MySQL > mod_perl > > Is there any major hurdle? > &

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Adam Williams
The PHP coders are still working to have full compatability with apache 2.0. I know for example posting one variable in a form messes up, but posting 2 or more variables works fine. There is a entry n the bug database about this, so hopefully it will be fixed soon. Adam

Re: [PHP] apache problem......

2002-09-24 Thread Adam Williams
If you areusing IE you have to pu tin the http:// infront of it, its one of those quirky IE only things. Don't have to do that in Mozilla/Netscape. Adam On Tue, 24 Sep 2002, Anil Garg wrote: > hi > in my httpd.conf i have added a virtual host as: > &

Re: [PHP] Getting started with PHP

2002-09-26 Thread Adam Williams
read the install section of the PHP manual at www.php.net and then read the tutorial. Adam On Wed, 25 Sep 2002, Sauron wrote: > Hi all > > I am brand new to PHP, I have a friend that develops in it and I'm > interested in learning more about it. I am fa

RE: [PHP] Encrypted MySQL passwords

2002-09-26 Thread Adam Voigt
Maybe you could somehow setup your SSH tunnel before-hand (at server start up or something) and use that instead. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-09-26 at 12:40, John Holmes wrote: > > I am connecting to a mysql server on a remote machine, and opened up > port > >

Re: [PHP] Quick question.

2002-10-01 Thread Adam Voigt
Everything you need: http://www.php.net/ftp Adam Voigt [EMAIL PROTECTED] On Tue, 2002-10-01 at 11:50, Simon Angell wrote: > Hi everyone. > I asked this a week or so ago but i am unsure if it got to the list, so here > we go again. > > I am trying to get a remote file to be cop

Re: [PHP] Call HTML from php

2002-10-01 Thread Adam Williams
www.php.net/header Adam On Tue, 1 Oct 2002, Anna Gyor wrote: > Hi, > > how can I call a html site from my php script? I want to redirect the user > to different html site depends on the php script result. > > Thanks! > > > > > -

Re: [PHP] Informix Connection

2002-10-03 Thread Adam Williams
php will need. You will need to compile php using --with-informix. I'll email you back in a second with an email sent to me on how to compile it all. Adam On Thu, 3 Oct 2002, Mark Colvin wrote: > I have php 4.1.2 running on a linux 7.2 box. I want to make a conne

[PHP] Good Practice: Variables, Error Reporting and Security

2002-10-04 Thread Adam Royle
th PHP, but still maintaining a good code structure (and sensible programming logic). Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] More On: Good Practice: Variables, Error Reporting and Security

2002-10-05 Thread Adam Royle
s stuff helps some people out there. Also, can anyone see any problems with my function? (Performance-wise or security-wise). Adam /* Credit given to: Maxim Maletsky <[EMAIL PROTECTED]> Alter variables for the versions prior to 4.1.0 NOTE: $_REQUEST global variable is NOT supported.

Re: [PHP] More On: Good Practice: Variables, Error Reporting and Security

2002-10-05 Thread Adam Royle
where you are putting more than one statement in one line is difficult to debug, but thats different from targeting spelling errors. Adam On Sunday, October 6, 2002, at 07:57 AM, Sascha Cunz wrote: > Am Samstag, 5. Oktober 2002 20:44 schrieb Adam Royle: >> I very much appreciate the s

Re: [PHP] Another problem

2002-10-08 Thread Adam Voigt
You might be getting the emails in HTML mode, try adding "Content-type:text/ascii" to your extra headers section of the mail command. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-10-08 at 12:22, [EMAIL PROTECTED] wrote: > *sigh* They never stop. > > I have a series of lines t

Re: [PHP] mail problem Sendmail 8.12.4

2002-10-08 Thread Adam Voigt
In your sendmail path, do you have -t -i appended to the path? Like: /usr/bin/sendmail -t -i Adam Voigt [EMAIL PROTECTED] On Tue, 2002-10-08 at 13:15, Devin Atencio wrote: > > I am trying to get PHP to send mail through my FreeBSD machine > and my machine is running Sendmail 8.12.4, a

[PHP] Transfer to another server - my sessions don't work!

2002-10-08 Thread Adam Royle
info from phpinfo(); if that helps. If I echo $GLOBALS['PHPSESSID'] it looks like a regular session id. I can get the info on the first page after I have chucked it into the session, but it doesn't seem to get it when I go to the next page. Thanks. Adam --- page1.php

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Adam Voigt
$myarray[2] = md5($myarray[2]); $split[$counter] = implode(",",$myarray); $counter++; } $save = implode("\n",$split); $f = fopen("outfile.csv","w"); fwrite($f,$save); fclose($f); Don't quote me on that though since thats just off the top of

Re: [PHP] Encrypting passwords in a flat file before import

2002-10-09 Thread Adam Voigt
Oh, and if you wanted to do it after you inserted, you could just do: mysql_query("UPDATE tablename SET pwfieldname = md5(pwfieldname);"); On Wed, 2002-10-09 at 08:39, Verdon Vaillancourt wrote: > Hi, > > I hope this question isn't too basic... > > I have a flat file (CSV) that I want to impor

[PHP] crypt() function

2002-10-14 Thread Adam Plocher
e fine, but if you append anything to the end of the password string, it will still allow authentication (ie 'blah12345' will still work, even though the password is 'blah'). Completely random passwords do not work, so it seems to be doing SOME checking. Any help would be very appreciated. Thanks -Adam

Re: [PHP] WYSIWYG HTML Editor

2002-10-15 Thread Adam Voigt
Theres a properitory Microsoft tag you can add to a frame in a frameset, which will make little virtual editor. I guess you could look on microsoft.com for it, but it doesn't work on anything but I.E. 5.5 and later I believe. Adam Voigt [EMAIL PROTECTED] On Tue, 2002-10-15 at 12:46, Chris

Re: [PHP] sessions

2002-10-24 Thread Adam Voigt
27;t, just stop them dead with an exit; statement. Course this won't help for people behind the same public IP, but it's a start. You could also verify against what the browser identify's itself as, etc. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-24 at 08:32, Shaun wrote: > Hi,

RE: [PHP] sessions

2002-10-24 Thread Adam Voigt
Well I suppose you could, but I wouldn't. If your worried about someone stealing someone's sid when they are using a random one, then having a fixed one would be even worse in this respect since they only have to get it once instead of every time the session is re-initiated. Adam Vo

Re: [PHP] sessions

2002-10-24 Thread Adam Voigt
500,000 unique hits a month and we have not had a single complaint of people's session's being dropped. Adam Voigt, Cisco Certificed Network Associate [EMAIL PROTECTED] On Thu, 2002-10-24 at 09:35, 1LT John W. Holmes wrote: > It's common for IP addresses to change while pe

RE: [PHP] sessions

2002-10-24 Thread Adam Voigt
#x27;s can route the same IP subnet while maintaining two seperate routes to the internet. Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions

2002-10-24 Thread Adam Voigt
be runnign IE if it was a browser check, I'm willing to live with the possibility that someone could lose there session (though it hasn't happened yet) and if it does maybe we'll look at a different way to do it. Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] sessions

2002-10-24 Thread Adam Voigt
Half of them are paying users, trust me, if there was a problem, they would complain, god knows they do about every tiny comma missing in the text, etc. On Thu, 2002-10-24 at 10:06, Jaime Bozza wrote: > > Really? Your IP randomly changes when your surfing between say > > yahoo.com and msn.com does

Re: [PHP] sessions

2002-10-24 Thread Adam Voigt
> Yes, overall, a 99% solution is all we can hope for. But all I'm saying is > why even check the IP address? What added security does this give you? > > The hard part is hijacking the session ID. If you can figure out someone's > session ID, then I'm pretty sure it wouldn't be hard to figure out

[PHP] Sessions FINAL

2002-10-24 Thread Adam Voigt
I'm just going to erase all future threads in reguard to it, because frankly I don't want to argue, and don't care what you think because it works perfectly for me. Adam Voigt, CCNA [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with informix

2002-10-21 Thread Adam Williams
I'd go back to apache 1.3.27 and php-4.2.3 if I were you and see if that fixes your problem. I run Informix, PHP, and Apache on a server and have had no problems. Adam On Mon, 21 Oct 2002, Erwin Speybroeck wrote: > Hi, > > I'm struggling with a pro

Re: [PHP] Mail() function

2002-10-28 Thread Adam Voigt
Try: mail($Destino,"$Assunto",$Mensagem); Adam Voigt [EMAIL PROTECTED] On Mon, 2002-10-28 at 13:39, Rodrigo de Oliveira wrote: > Hi guys I'm having the following problem: > > I have a mail() function that works by itself, coming from a html form, but when i >try

Re: [PHP] Webserver-Administration

2002-10-28 Thread Adam Williams
look up webmin on your favorite search engine. Adam On Mon, 28 Oct 2002, [ISO-8859-1] Jochen Kächelin wrote: > How can I use PHP to admin my Apache over the browser? > > How do big providers allow their customers to admin their > subdomains, forwarders,

Re: [PHP] Framed Redirect

2002-10-29 Thread Adam Voigt
What do you mean framed redirect? If you mean make frame go to a different url, just use javascript. If you mean make a link target a frame, just use target= in the a href. On Tue, 2002-10-29 at 09:11, Martin Wright wrote: > I'm new to PHP :( > > Can someone either give me a hint on how to achiev

Re: [PHP] Php web hosting

2002-10-31 Thread Adam Voigt
I've recently had a very good experience with a hosting company, there website is at: http://www.spenix.com/ Great feature set, superior support, and so-far perfect uptime/performance in hardware, software, and bandwidth. I definetly recommend them to anyone looking for quality hosting.

[PHP] Missing

2002-10-31 Thread Adam Voigt
Ok, what am I missing? The file "sdlksd" doesn't exist, and the program's not dying, any ideas? #!/usr/local/php_4.2.3/bin/php -q Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Missing

2002-10-31 Thread Adam Voigt
For some reason, if I didn't change it to: die("DOH!\n"); it wouldn't work, I guess in console mode, you have to shunt an extra newline character (\n) before it will work. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 11:28, Chris Hewitt wrote: > Adam Voigt wr

[PHP] Stop At Return

2002-10-31 Thread Adam Voigt
n the max 12 it will keep waiting for 12 characters of input) any ideas? (Other then to loop through taking what character at a time checking to see if it's the return key.)? Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Adam Voigt
Not a very good solution, but +4 weeks works. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 11:33, Jeff Bearer wrote: > date("Y-m-d",strtotime("+1 month")) > > returns December 1st! This happens when you add 1 month to any day that > doesn't exist in

Re: [PHP] unlink function

2002-10-31 Thread Adam Voigt
Unlink function isn't broken, you just don't have the correct rights set on the files, so PHP can't erase them, fix the permissions and that will take care of that error. Adam Voigt [EMAIL PROTECTED] On Thu, 2002-10-31 at 12:46, Andres, Cyrille wrote: > Hello everyone, >

Re: [PHP] command to determine the end of a page?

2002-10-31 Thread Adam Voigt
I tried to do what your talking about, never found a way, other then guessing where it would end with a lot of test runs. We ended up switching to writing out PDF's which is much more scientific where you can just check X,Y coordinates to see where you are on the page. Adam Voigt [EMAIL PROT

[PHP] Problem with 4.2.3?

2002-11-01 Thread Adam Humphrey
I can modify to allow the browser to get the HTML before the PHP code? Or any other way to get the old behavior? Any input would be helpful. Thanks, Adam [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ASTemplate

2002-11-03 Thread Adam Atlas
GPL, but I might change it to the LGPL later so it can be more widely used. Anyway, I hope people enjoy ASTemplate! --Adam Atlas -- Adam Atlas Your mouse has moved. Windows has to reboot for changes to take effect. [ OK ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 4.2.3 compile problem on OSX

2002-11-04 Thread Adam Atlas
mpile/install PHP, I successfully compiled/installed Apache 1.3.27, which seems to work as expected. I also upgraded to the latest Apple Developers Kit, and related update patches. Any ideas? Thanks, Kris -- Adam Atlas "640K of computer memory ought to be enough for anybody." - Bill Gate

Re: [PHP] Finding HTML

2002-11-05 Thread Adam Voigt
$f = fopen("$url_with_button","r"); $data = fread($f,100); fclose($f); if(substr_count($data,"$your_homepage_link") == 0) mysql_query("DELETE FROM users WHERE thereurl = '$url_with_button';"); or something like that. On Tue, 2002-11-05 at 12:20, Stephen wrote: > I'm about to undergo

<    1   2   3   4   5   6   7   8   9   10   >