RE: [PHP] Getting the last record in a mysql table FINALLY!!

2002-01-17 Thread Niklas Lampén
Well, ofcourse you have to have the table + field names right. ;) Niklas -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 18. tammikuuta 2002 9:38 To: [EMAIL PROTECTED] Cc: Php-General Subject: Re: [PHP] Getting the last record in a mysql table FINALLY!! Niklas

Re: [PHP] installing php3 and php4 on the same server

2002-01-17 Thread Brian Clark
* Manu Verhaegen ([EMAIL PROTECTED]) [Jan 18. 2002 02:40]: > Hi, Hi, > We have installed apache 3 and PHP3, can we install PHP4 on the same > server the we can use PHP3 and PHP4 See the INSTALL file for the following section: USING PHP 3 AND PHP 4 AS CONCURRENT APACHE MODULES Recent oper

RE: [PHP] installing php3 and php4 on the same server

2002-01-17 Thread Alex Dowgailenko
Question is, why would you want to? php3 scripts will work fine under php4. > -Original Message- > From: Manu Verhaegen [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2002 2:39 AM > To: [EMAIL PROTECTED] > Subject: [PHP] installing php3 and php4 on the same server > > > Hi, > We have i

[PHP] installing php3 and php4 on the same server

2002-01-17 Thread Manu Verhaegen
Hi, We have installed apache 3 and PHP3, can we install PHP4 on the same server the we can use PHP3 and PHP4 Thanks,

Re: [PHP] Getting the last record in a mysql table FINALLY!!

2002-01-17 Thread hugh danaher
Niklas, I needed to change the statement slightly, but it did put me on the right track. Thanks again, Hugh $result=mysql_query("SELECT id FROM my_table ORDER BY id DESC, id limit 1"); $id=mysql_result($result,0); - Original Message - From: Niklas Lampén <[EMAIL PROTECTED]> To: Php-Gene

Re: [PHP] help installing php

2002-01-17 Thread Juni Adi
On Thu, 17 Jan 2002, Anas Mughal wrote: |I haven't seen any RPMs for PHP. Yes there are RPMs for PHP (ftp.mirror.ac.uk) |However, I have installed using the source. It works |fine. |Try to install the CGI version first. That is easier. |Than, you could dive into the apache module stuff. Ok, I'm

Re: [PHP] Getting the last record in a mysql table

2002-01-17 Thread Alex Chau
Another option under same condition is: 'SELECT MAX(ID) AS LASTID FROM MY_TABLE' Alex Chau Niklas Lampén wrote: >If you have ID that is a incrementing number, you could just query like >this: >'SELECT ID FROM MY_TABLE ORDER BY ID DESC, LIMIT 1' > >And there you have just one result, the last (

[PHP] command line are -c doesn't work on win2k?

2002-01-17 Thread Jeff D. Hamann
I've been trying to figure out what was wrong with my script... from the command line, php mail_test.php and getting, X-Powered-By: PHP/4.0.6 Content-type: text/html attempting to deliver the mail Warning: Unknown error in mail_test.php on line 3 Then I found a solution at http://bugs.php

RE: [PHP] Getting the last record in a mysql table

2002-01-17 Thread Niklas Lampén
You're welcome. Heh, why to make too hard. :) Niklas -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 18. tammikuuta 2002 8:40 To: [EMAIL PROTECTED] Subject: Re: [PHP] Getting the last record in a mysql table Niklas, Now that sounds like a solution! Thanks, Hugh

Re: [PHP] Re: Computer Science and PHP

2002-01-17 Thread Brian Clark
* Manuel Lemos ([EMAIL PROTECTED]) [Jan 18. 2002 00:47]: > Hello, Hi Manuel, > Francesco Gallarotti wrote: > > I am a student in a college in NY state. Here we have several > > servers and dozens of courses on computer science. No server is PHP > > ready and no course instructor knows anything

[PHP] Argentina Hosting

2002-01-17 Thread Juan Germano
Hi everyone. Do anybody knows about a good web hosting service php/mysql enabled? Juan Germano [EMAIL PROTECTED]

[PHP] test

2002-01-17 Thread Steven Maroney
mail server was down... makeing sure im still on the list steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Getting the last record in a mysql table

2002-01-17 Thread Niklas Lampén
If you have ID that is a incrementing number, you could just query like this: 'SELECT ID FROM MY_TABLE ORDER BY ID DESC, LIMIT 1' And there you have just one result, the last (biggest) ID number. Niklas -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: 18. tammik

Re: [PHP] Getting the last record in a mysql table

2002-01-17 Thread hugh danaher
Are you sure? I thought mysql_num_rows() would give you the ID number of the last row in a table IF AND ONLY IF there hasn't been any row deletions. I expect to have deletions, but I'll try it out anyway. Thanks, Hugh - Original Message - From: Jason Murray <[EMAIL PROTECTED]> To: 'hugh

Re: [PHP] WAP

2002-01-17 Thread qartis
An easier way to do this is (in wap.php): \n"); echo("http://www.wapforum.org/DTD/wml_1.1.xml\";>\n\n"); ?> And then continue with tags. This will be parsed by php but will also have correct headers for WAP browsers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Using include() and URL's

2002-01-17 Thread Sterling Hughes
> In regards to 1, neither of them are. they're just examples I was testing. > > As for your second note, it need only include the page, it needs only to > display the page. It works fine with local references, just not with URL's. > You can't use URL includes on the windows systems, only un

[PHP] Re: Computer Science and PHP

2002-01-17 Thread Manuel Lemos
Hello, Francesco Gallarotti wrote: > > I am a student in a college in NY state. Here we have several servers and > dozens of courses on computer science. No server is PHP ready and no course > instructor knows anything about PHP. Why do you think this is happening? I > really like PHP and I am u

[PHP] Re: differences between ini_set() with php cgi and module?

2002-01-17 Thread Yasuo Ohgaki
Gk wrote: > First of all, does php cgi use php.ini at all? > Is it the exact same behavior as the module version in realtion to > php.ini settings and the ability to change them with ini_set()? > > My ISP runs php as a cgi, version > He tells me that I cannot change php.ini variable, upload_max_f

RE: [PHP] Getting the last record in a mysql table

2002-01-17 Thread Jason Murray
> I thought this would be easy but it ain't. What I want is > the id number of the last record in a table. If you use mysql_num_rows() and decrement it by one, you'll have the ID of the row you can use with mysql_result. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] Getting the last record in a mysql table

2002-01-17 Thread hugh danaher
Help! I thought this would be easy but it ain't. What I want is the id number of the last record in a table. I've tried a number of variations to the following but am getting no where! Any help will be greatly appreciated. Hugh $results=mysql_query(" SELECT last_insert_id() FROM MY_TABLE ")

Re: [PHP] Generating a new line in a text file

2002-01-17 Thread Chris Janes
: : Ah, so you're opening the file in something that doesn't understand : newlines and prefers line feeds, then. : : In that case you'll want to use \r instead of \n. : : Jason You'll never guess what, that doesn't work either... still pretty black blocks, but no new line... In a foolish move (p

Re: [PHP] AUTO_INCREMENT problems

2002-01-17 Thread J.F.Kishor
hello, I think the following may solve your problem. alter table patients change id id mediumint (9) default 0 not null primary key auto_increment; On Thu, 17 Jan 2002, Phil Schwarzmann wrote: > I have an exsisting table without any rows. I tried to add a new column > to it and make it an "a

RE: [PHP] Generating a new line in a text file

2002-01-17 Thread Jason Murray
> : Don't know why it's got everyone else stumped. > : > : "\n" is the new line character. Make sure you use it in "" and > : not in ''. > : > : Jason > > Unfortunately, that doesn't work either, it changes the \n that > appeared at the end of the new line to a single black block. It > does not

Re: [PHP] Generating a new line in a text file

2002-01-17 Thread Chris Janes
: : Don't know why it's got everyone else stumped. : : "\n" is the new line character. Make sure you use it in "" and : not in ''. : : Jason : Unfortunately, that doesn't work either, it changes the \n that appeared at the end of the new line to a single black block. It does not put the next quo

RE: [PHP] Generating a new line in a text file

2002-01-17 Thread Jason Murray
> It should be fairly simple, but it's got me and everyone else > I've asked utterly stumped, all I need to do is place the data > from a form on a newline in a text file, I can get the data into > the text file, but I can't seem to get it on a new line. Don't know why it's got everyone else s

[PHP] Generating a new line in a text file

2002-01-17 Thread Chris Janes
It should be fairly simple, but it's got me and everyone else I've asked utterly stumped, all I need to do is place the data from a form on a newline in a text file, I can get the data into the text file, but I can't seem to get it on a new line. Here's what I have at the moment: $quote = st

Re: [PHP] Using include() and URL's

2002-01-17 Thread John (News)
In regards to 1, neither of them are. they're just examples I was testing. As for your second note, it need only include the page, it needs only to display the page. It works fine with local references, just not with URL's. At 06:33 AM 1/18/02 +0200, you wrote: >A couple of comments: >1. Your i

Re: [PHP] Using include() and URL's

2002-01-17 Thread Bogdan Stancescu
A couple of comments: 1. Your include() statement specifies a different file than your error message - which one is right? 2. From what I recall (but I'm not positive), using a protocol type at the beginning of the location ("http://";) means that your server will actually use that (i.e. parse it

Re: [PHP] Re: php 4.1 and DOMXML question.

2002-01-17 Thread Aaron
Peter Clarke wrote: >"Aaron" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >>Well that works. But its a little bizzare. I have to do that to get the >>content of a node even when that node has no children... >> >>e.g. >> >> >>SOME TEXT GOES HERE

[PHP] differences between ini_set() with php cgi and module?

2002-01-17 Thread GK
First of all, does php cgi use php.ini at all? Is it the exact same behavior as the module version in realtion to php.ini settings and the ability to change them with ini_set()? My ISP runs php as a cgi, version He tells me that I cannot change php.ini variable, upload_max_filesize to larger than

Re: [PHP] dynamic module or static?

2002-01-17 Thread Cary Mathews
> > I'm no guru on the topic, but I found that when configuring the DSO with > MySQL (--with-mysql=/usr/local/mysql), it would always garble the PHP > module. Eventually I got it all set up by not specifying a directory > (in other words, just using "--with-mysql") in that configure argument. > B

[PHP] Re: 1st 100 charactors that are pulled from a mySql Database

2002-01-17 Thread Daniel Grace
"Philip J. Newman" <[EMAIL PROTECTED]> wrote in message 007a01c19fbe$2fbfb4e0$0401a8c0@philip">news:007a01c19fbe$2fbfb4e0$0401a8c0@philip... > Would like to know if there is away that I can only print out the 1st 100 charactors that are pulled from a mySql Database, anyone help? > > Philip J. Newm

Re: [PHP] Does any have the 'edit_member.php' script ....

2002-01-17 Thread Tyler Longren
Perhaps you could post the error and the line that it occurs on. Someone here might be able to offer some help. tyler - Original Message - From: "Mike C" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 7:48 PM Subject: [PHP] Does any have the 'edit_member.ph

[PHP] Does any have the 'edit_member.php' script ....

2002-01-17 Thread Mike C
In electronic format that I can have? It is included in the book 'MySQL' by Paul DuBois ? I have a parse error in my script that I simply cannot find (after many, many tries). TIA Regards Mike C -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

[PHP] 1st 100 charactors that are pulled from a mySql Database

2002-01-17 Thread Philip J. Newman
Would like to know if there is away that I can only print out the 1st 100 charactors that are pulled from a mySql Database, anyone help? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

Re: [PHP] MySQL and PHP

2002-01-17 Thread hugh danaher
Brandon, Try using single quotes rather than doubles in the values e.g. ('something','something else') hugh - Original Message - From: Brandon Orther <[EMAIL PROTECTED]> To: PHP User Group <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 2:25 PM Subject: [PHP] MySQL and PHP > Hello,

[PHP] Feature Suggestion

2002-01-17 Thread Mike Eheler
If this is the wrong place for it, please point me to the right place. This is real small, though.. I'd like to see a shorthand for defining arrays.. for example $ucase_alphabet = array(['A'..'Z']); (creates an array of all alphabet characters, uppercase) $numeric = array([1..100]); Or someth

Re: [PHP] help installing php

2002-01-17 Thread Miles Thompson
Juni, Apache, MySQL and PHP are really well debugged when it comes to installation, and I found installation from source easier than messing with .rpms on RH systems and with dselect on Debian. The following article at DevShed has really good instructions: http://www.devshed.com/Server_Side/PH

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
I'm using my workstation as an all in one test box. It's running, IIS 4.0, and PHP for Windows version 4.0.6. At 11:13 AM 1/18/02 +1100, you wrote: > > The file is running on an NT box and can be accessed fine > > through IIS. It is only when using the include() statement to > > this file that p

RE: [PHP] Computer Science and PHP

2002-01-17 Thread Robert Covell
They are trying to prepare you for what "they believe" businesses want. What will give you the best opportunity to get a job once out of college. When I was in college our teachers sat down with the businesses that came to campus for recruiting and asked "What should we be teaching to suit your ne

RE: [PHP] include() and URL's

2002-01-17 Thread Jason Murray
> The file is running on an NT box and can be accessed fine > through IIS. It is only when using the include() statement to > this file that problems occur. If I do a local path map to it, > it will include fine but when using an URL it gives that error. Can you retrieve the file from that URL

RE: [PHP] Computer Science and PHP

2002-01-17 Thread Jason Murray
> Why PHP is so not popular in the computer science teaching area? Well, here at RMIT in Melbourne Australia they're teaching all the first year students PHP... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

RE: [PHP] include() and URL's

2002-01-17 Thread John (News)
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Hippie. At 05:02 PM 1/17/02 -0700, you wrote:

RE: [PHP] include() and URL's

2002-01-17 Thread Johnson, Kirk
Does the file have persmissions such that it is include()-able by nobody? Kirk > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] include() and URL's > > > I'm trying to include

[PHP] Computer Science and PHP

2002-01-17 Thread Francesco Gallarotti
I am a student in a college in NY state. Here we have several servers and dozens of courses on computer science. No server is PHP ready and no course instructor knows anything about PHP. Why do you think this is happening? I really like PHP and I am using it in my personal website to work with som

[PHP] include() and URL's

2002-01-17 Thread Hippie
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the

[PHP] Using include() and URL's

2002-01-17 Thread Hippie
I have a simple command similar to this. include ("http://www.cci.net.au/default.htm";); When it parses the php file it is contained in though I get the following response. Warning: Failed opening 'http://flurry.cci.net.au/template/index.php' for inclusion (include_path='') in C:\Inetpub\wwwroo

[PHP] MySQL

2002-01-17 Thread Brandon Orther
Hello, I am trying to insert data, but it willnot take the # Does anyone know how to escape the # sign in mysql? Thanks Brandon Sorry if I was a bit Off Tapic

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Mehmet Kamil ERISEN
If you are using sessions, use it as a session variable. --- "John (News)" <[EMAIL PROTECTED]> wrote: > I need to pass a variable e.g. $var1 from one PHP page to > another. The > only conditions are that the variable cannot be shown in > the source > code on the end users machine nor can it be pa

[PHP] Include() and URLs

2002-01-17 Thread John (News)
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the

Re: [PHP] Passing PHP Variables

2002-01-17 Thread Ben Sinclair
Either use sessions or pass it via POST in using a form. -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: "John (News)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 4:48 PM Subject: [PHP] Passing PHP Variables > I need to pass a variable e.g.

[PHP] Passing PHP Variables

2002-01-17 Thread John (News)
I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- PHP G

Re: [PHP] MySQL and PHP

2002-01-17 Thread Sam Masiello
What is the error that you are getting? --Sam - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 5:25 PM Subject: [PHP] MySQL and PHP > Hello, > > I am trying to use mysql through php. When I tr

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread Richard Baskett
I would definitely have to agree. The way I do it is encrypt it one way and there is no way to recover the password.. at least anytime soon within the next year or so. If they forget their password I give them a temporary password and then they can go change it to whatever they want, if they wan

Re: [PHP] help installing php

2002-01-17 Thread Anas Mughal
I haven't seen any RPMs for PHP. However, I have installed using the source. It works fine. Try to install the CGI version first. That is easier. Than, you could dive into the apache module stuff. --- Juni Adi <[EMAIL PROTECTED]> wrote: > Hello, > > I'm new to PHP (actually I'm just about to

RE: [PHP] "Unable to Jump Row" ?!?

2002-01-17 Thread Jason Murray
> > Here is the code on line 39 > > > > $d = mysql_result($result, $c, "id"); > > > > the field "id" is an auto_increment column. > > $c is an exsisting row in the query, $result. > > > > Any help? > > Yes, it looks like $result doesn't contain anything, so maybe > your SQL is messed up.

RE: [PHP] "Unable to Jump Row" ?!?

2002-01-17 Thread Jason Murray
> Here is the error... > > Warning: Unable to jump to row 1 on MySQL result index 2 in > /blahblahblah/patient/display_search_results.php on line 39 This means that the query you executed didn't return enough rows to count up to ... 1. > Here is the code on line 39 > > $d = mysql_result($r

[PHP] Re: MySQL and PHP

2002-01-17 Thread Philip Hallstrom
Does your query have a semicolon in it when you run it in PHP? Or did you paste the below from a mysql session? -p On Thu, 17 Jan 2002, Brandon Orther wrote: > Hello, > > I am trying to use mysql through php. When I try to run the following > query it does nothing. I am trying to figure out

[PHP] "Unable to Jump Row" ?!? <-- NEVERMIND

2002-01-17 Thread Phil Schwarzmann
..I figured it out.

[PHP] "Unable to Jump Row" ?!?

2002-01-17 Thread Phil Schwarzmann
I keep getting this damn error message from MySQL even though it displays the correct results. Here is the error... Warning: Unable to jump to row 1 on MySQL result index 2 in /blahblahblah/patient/display_search_results.php on line 39 Here is the code on line 39 $d = mysql_result($result,

[PHP] Re: printing an XML node

2002-01-17 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Thomas Gagne wrote: > dumpmem works great for entire documents, but what is the strategy for > printing the contents of a single node? It is impossible to use dumpmem > on a node since the code looks for a 'doc' property that doesn't exist > in nodes. it's not possible a

[PHP] MySQL and PHP

2002-01-17 Thread Brandon Orther
Hello, I am trying to use mysql through php. When I try to run the following query it does nothing. I am trying to figure out if it is the query or php I am having a problem with. Does anyone see a problem with the below query? (Note: This is for mysql) QUERY: INSERT INTO page_properties (

[PHP] Re: printing an XML node

2002-01-17 Thread J Smith
You might want to check out php's XML extensions... http://www.php.net/manual/en/ref.xml.php J Thomas Gagne wrote: > dumpmem works great for entire documents, but what is the strategy for > printing the contents of a single node? It is impossible to use dumpmem > on a node since the code lo

Re: [PHP] encrypting passwords, how to decrypt?

2002-01-17 Thread Paul Roberts
a nice starter on encryption http://www.onlamp.com/pub/a/php/2001/07/26/encrypt.html?page=1 Paul Roberts [EMAIL PROTECTED] "Hawk" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Ok, even if I don't need encryption I thought I

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread J Smith
We have a similar set up at our work, but we still encrypt our users' passwords. That way not even the dba knows what passwords other people use, although the s/he can still change the password for any user on our site. A lot of people use the same password for everything they do, and it would

RE: [PHP] encrypting passwords, how to decrypt?

2002-01-17 Thread Rick Emery
Did you try print $query to ensure it contained what you expected? -Original Message- From: Hawk [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] encrypting passwords, how to decrypt? Ok, even if I don't need encryption I thought

Re: [PHP] string to array??

2002-01-17 Thread Erik Price
Yes thank you, I thought I would have heard about it before now if all brackets were deprecated! ;) I bit, though, when I read that page you linked to. Thanks for the clarification though. Erik On Thursday, January 17, 2002, at 03:49 PM, Steve Edberg wrote: > Sorry if I was less than to

[PHP] Re: PHP and mySQL

2002-01-17 Thread Gary
that is nix command. On window you need to start MySQL one of two ways. http://www.mysql.com/doc/W/i/Windows.html HTH Gary Morten Nielsen wrote: > Hi, > > I try to use mySQL through PHP, but I can't get it to work. > Both PHP and mySQL is installed on my computer (win2k). The PHP manual says >

Re: [PHP] Who wants to answer the questions and be paid for that?

2002-01-17 Thread Chris Allen
heh, How much for a follow-up question? - Original Message - From: " Vlasyuk Valera" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 17, 2002 3:20 PM Subject: [PHP] Who wants to answer the questions and be paid for that? > Hi, > > I own http://www.cgi-network.net po

[PHP] general encryption question

2002-01-17 Thread Conor McTernan
sorry for posting this here, I should probably look at the documentation, but i was just wondering what funcionality the PHP mcrypt extension provides. I think I read on this list that it does DES, does it do any RSA, or other crypto algorithms, the reason I ask is because I need to implement so

[PHP] Who wants to answer the questions and be paid for that?

2002-01-17 Thread Vlasyuk Valera
Hi, I own http://www.cgi-network.net portal. And have area about programmming. Now i'm looking for people who can help me to answer on PHP questions at php-general mailing list i'll pay for that 0,06$ for each answer. Valery Vlasyuk -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] help installing php

2002-01-17 Thread Juni Adi
Hello, I'm new to PHP (actually I'm just about to begin) and have problem with installing. I'm looking for version of PHP that will be suit to RH 6.2 and MySQL 3.23.47? (my RH package didn't include any php rpms). I've tried some version 4 rpms but always have error on dependency stuffs. So,

RE: [PHP] More image questions...

2002-01-17 Thread Chris Wright
Zara: >> If I have a user input a file in an html form for uploading, is there any way that I can pull the name of the file that was uploaded out some how? << If your file field is called "the_file" $the_file_name $the_file_type $the_file_size are all created and contain good stuff to play wit

[PHP] Re: encrypting passwords, how to decrypt?

2002-01-17 Thread Philip Hallstrom
If you are going to us encrypted passwords, then it goes something more like this: - user fills out form picking a login and a password. - php encrypts the password using say md5 and puts the encrypted form into the database. - user tries to login typing in their login and password. - php encry

Re: [PHP] PHP and mySQL

2002-01-17 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * On 17-01-02 at 21:57 * Morten Nielsen said - --with-mysql. But I can't figure out what that means. That looks like a Unix(ish) command? > Hi, > > I try to use mySQL through PHP, but I can't get it to work. > Both PHP and mySQL is installe

[PHP] encrypting passwords, how to decrypt?

2002-01-17 Thread Hawk
Ok, even if I don't need encryption I thought I might go ahead and try to learn it, and as I said in the previous post I managed to get it working everywhere but on the login script first I have a form that sends username and password to login.php, in that file I have something like this I know

[PHP] PHP and mySQL

2002-01-17 Thread Morten Nielsen
Hi, I try to use mySQL through PHP, but I can't get it to work. Both PHP and mySQL is installed on my computer (win2k). The PHP manual says I should run php.exe --with-mysql. But I can't figure out what that means. I am using a graphical development environment for PHP, where I have told where my

Re: [PHP] string to array??

2002-01-17 Thread Steve Edberg
Sorry if I was less than totally clear; I was referring to this part of the page: Characters within strings may be accessed by specifying the zero-based offset of the desired character after the string in curly braces. Note: For backwards compatibility, you ca

Re: [PHP] Business objects functionality in PHP

2002-01-17 Thread Miles Thompson
Chris, I don't, but let's this. Geoff Caplan brought up the topic of patterns in PHP for certain frequently used patterns several months ago. So where do I go to look at business objects, or patterns. Miles At 01:39 PM 1/17/2002 -0600, Chris Boget wrote: >Has anyone written (or know of someth

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Thu, 17 Jan 2002 13:47:06 -0500, you wrote: > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >you could save the password to a database, associated with >an ID number, then pass the ID number. > >DATABASE: >- >id| password >12345 | blah$$ > >URL: >form.php?id=12345 I

RE: [PHP] More image questions...

2002-01-17 Thread Gonzalez, Zara E
A little more looking and I found my solution :) Apparently php automatically makes some variables if you have track_vars turned on. http://php3.de/manual/en/html/features.file-upload.html If anyone is interested. Zara -Original Message- From: Gonzalez, Zara E Sent: Thursday, January

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread py
"security is measured by the weakest link in the chain" so I would say that the database needs to be well protected and the password encrypted. py At 12:14 PM 1/17/2002 -0800, you wrote: >We had a client who wanted us to encrypt their >passwords. Our argument was that maybe their database >is

[PHP] Re: Image Fields and PHP...

2002-01-17 Thread Lerp
Hi again, I guess one really good reason for not storing images directly in a db table is performance. When you store a blob in a table it affects the whole database's performance. It slows it down, that's why the most common method is to store the images in a dir on the webserver and store only

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Fri, 18 Jan 2002 03:39:21 +0800, you wrote: >On Friday 18 January 2002 02:36, Floyd Baker wrote: > >> The thing is, I *was* using GET in the refresh line and I guess I >> wasn't saying that. Moreover I want to pass passwords in the same >> transfer but obviously letting them show up in the ur

Re: [PHP] encrypting passwords etc..

2002-01-17 Thread Anas Mughal
We had a client who wanted us to encrypt their passwords. Our argument was that maybe their database is not well protected. Only the dba and the application should have access to the database. No-one else should be able to view their data anyways. We didn't see any need to encrypt the passwords.

[PHP] More image questions...

2002-01-17 Thread Gonzalez, Zara E
If I have a user input a file in an html form for uploading, is there any way that I can pull the name of the file that was uploaded out some how? For example, I have this code for my form: Upload a file: NOTE: Max file size is KB Whe

[PHP] encrypting passwords etc..

2002-01-17 Thread Hawk
Ok I got it working now, with the update and database connect etc.. thanks guys :) this is not a problem(yet), more a thought.. is it really necesary to encrypt passwords, I mean, what does it prevent, me from seeing them using mysql.exe ? :p I tried and it worked fine to almost all points.. worke

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Jason Wong
On Friday 18 January 2002 02:36, Floyd Baker wrote: > The thing is, I *was* using GET in the refresh line and I guess I > wasn't saying that. Moreover I want to pass passwords in the same > transfer but obviously letting them show up in the url is not cool... If I understand you correctly you'r

[PHP] Business objects functionality in PHP

2002-01-17 Thread Chris Boget
Has anyone written (or know of something) that works similar to business objects that is written in PHP? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-ma

[PHP] htmlspecialchars() alias

2002-01-17 Thread Jason G.
Hello General and Dev list, Considering the fact that it is good practice to use htmlspecialchars() anytime you are outputting non-html content to the browser... After typing the 16 characters in the htmlspecialchars() function thousands of times... I was wondering if it would be feasible to

[PHP] printing an XML node

2002-01-17 Thread Thomas Gagne
dumpmem works great for entire documents, but what is the strategy for printing the contents of a single node? It is impossible to use dumpmem on a node since the code looks for a 'doc' property that doesn't exist in nodes. -- .tom -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] matching user to tables

2002-01-17 Thread Gary
Hello All, I written a script(sessions) that authenticates a user and passes that information on to a menu. Then menu displays according to the users permission level. The thing works with several table joins ETC. What I need to do in the next step is to assign the menu and certain tables to

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Miles Thompson
Hawk, If you have a working login, can we safely assume that there is information in the database for each user? If so, then we won't bother discussing insert statements, but concentrate on updates. We'll also assume that $user has update privileges on the database. The normal form of an upda

RE: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread scott [gts]
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 you could save the password to a database, associated with an ID number, then pass the ID number. DATABASE: - id| password 12345 | blah$$ URL: form.php?id=12345 - Scott Hurring - Internet Programmer GraphicTy

RE: [PHP] Fatal error: Call to a member function on a non-object (again)

2002-01-17 Thread Sandeep Murphy
hi again, One other strange thing that I didnt mention before.. if I insert(type) the xml data directly within the parser or refer to an external xml file, it runs fine but if I try to dynamically send the xml data to the parser , I repeatedly kept getting the fatal error .. thnx, sands -O

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Dennis Moore
Try using mysql_error() to display the mysql error message before issuing your die(). this will give more information to troubleshoot. You may not have the right privileges set up in your database where you can update or insert into the database or table. /dkm - Original Message - Fr

RE: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Sandeep Murphy
Hi, Thnx a lot for your suggestion.. Well the moment I removed the space the error disappeared but the page doesnt show any output ... tried trapping errors but none appears.. any further ideas pl!!! Thnx again, sands -Original Message- From: Jason G. [mailto:[EMAIL PROTECTED]] Sent: q

Re: [PHP] Passing vars w/refresh w/register globals off?

2002-01-17 Thread Floyd Baker
On Fri, 18 Jan 2002 01:03:19 +0800, you wrote: >On Friday 18 January 2002 00:41, Floyd Baker wrote: >> On Thu, 17 Jan 2002 07:06:50 +0200, you wrote: >> >What do you mean by 'hidden'? If you're talking about a hidden form input, >> >how can it not be post? >> > >> >Bogdan >> >> Just saying I've t

Re: [PHP] PHP & MySQL problems, updating database..

2002-01-17 Thread Erik Price
The reason you aren't seeing any errors is because you used "or die()" -- to the best of my knowledge, this replaces any standard errors that PHP would normally generate. It appears that you have omitted the second argument to mysql_query(). A common mistake that I've made many times myself.

Re: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Jason G.
First of all, make sure the $root->children() returns an array of objects. Second of all, remove the space between $All_nodes and [1]. Your code should look like: $childNodes=$All_nodes[1]->children(); If that does not work, you may have to create a temp var to use... $tmp = $All_nodes[1]; $chi

  1   2   >