Re: [PHP] MySQL Locking Question

2001-10-05 Thread Chip
Well here is the situation. 1. Jack opens record A to change an entry. 2. Jill opens record A to change an entry. 3. Jack finishes his changes and saves the data. 4. Jill finishes her changes and saves the data. Jill just over wrote whatever Jack did. The only method I could think of to prevent

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Rasmus Lerdorf
> 1. Jack opens record A to change an entry. > 2. Jill opens record A to change an entry. > 3. Jack finishes his changes and saves the data. > 4. Jill finishes her changes and saves the data. Well, if you only update the fields that changed then who cares? The fields that Jill changes are going

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Chip
> Well, if you only update the fields that changed then who cares? The > fields that Jill changes are going to overwrites Jack's changes anyway. > Locking the record and having Jack finish before Jill can start isn't > going to change the end result which would be that Jill's changes are > going

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Rasmus Lerdorf
> OK that example is poor I admit...but do you see the reasoning behind > locking? If a lock was in place Jill would't be able to edit her post > because she would get a message stating that Admin Jack was allready editing > it. GET_LOCK has no way of conveying that information. You would need

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Chip
Hmmm...that is true It would still prevent Jill from editing. I'll probably add a locked_by field to convey the user info. For Dead Locks: A. Browser Closed Before Finishing Edit: From what I have read Get_Lock locks are automatically released when connections terminate. I'm

[PHP] mssql & freetds & php4 & linux

2001-10-05 Thread Christopher William Wesley
I'm running php 4.0.6.7rc2-3 with freetds 0.52-3 support on a debian linux server. This is a winning combination to work with MSSQL2000. However I'm running into some odd behavior when performing multiple queries on the same connection (link) identifier. I create a connection to the dbms and se

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Rasmus Lerdorf
> A. Browser Closed Before Finishing Edit: > From what I have read Get_Lock locks are automatically released > when connections terminate. I'm new to this so am unsure if MySQL will > terminate the connection when the browser is closed. If not does MySQL > disconnect users after a

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Chip
So once a user logs into a MySQL Server via PHP, if they don't logout, they stay logged in forever??? Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > A. Browser Closed Before Finishing Edit: > > From what I have read Get_Lock

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Rasmus Lerdorf
> So once a user logs into a MySQL Server via PHP, if they don't logout, they > stay logged in forever??? Depends how you write your application. If you are using persistent connections you log in and out of mysql durig a single request. If you use persistent connections you log in once and

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Don Read
On 06-Oct-2001 Chip wrote: >> Well, if you only update the fields that changed then who cares? The >> fields that Jill changes are going to overwrites Jack's changes anyway. >> Locking the record and having Jack finish before Jill can start isn't >> going to change the end result which would be

Re: [PHP] MySQL Locking Question

2001-10-05 Thread Mark
I don't think get_lock will work here anyway since the only way to use it is with persistent connections, and there's no guarantee the person will get the same connection with the second request, he probably won't. without persistent connections the lock will die when the script finishes. On Fri,

[PHP] FYI = ( Single_Concatenated_Q*2<=Double_Parsed_Q*2 );

2001-10-05 Thread Maxim Maletsky
Hello everyone, Knowing how much most of you like using double quotes I though to test it a bit. I was writing an article for PHPBeginner.com and made this interesting proven conclusion: Concatenating single quotes is faster unless you concatenate them more than two. Then game changes into the

[PHP] Easy Question

2001-10-05 Thread Chip
When you write a php script to access a database,edit records, etc., is the entire thing 1 giant PHP page or a bunch of different ones? If it can be written both ways, which is the better way to do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Easy Question

2001-10-05 Thread Maxim Maletsky \(PHPBeginner.com\)
> When you write a php script to access a database,edit > records, etc., is the entire thing 1 giant PHP page or a > bunch of different ones? A giant one If it can be written both ways, > which is the better way to do it? Depends how big is your 'giant'. It is all about your coding style

RE: [PHP] Easy Question

2001-10-05 Thread Richard Heyes
> When you write a php script to access a database,edit records, > etc., is the > entire thing 1 giant PHP page or a bunch of different ones? If it can be > written both ways, which is the better way to do it? Using seperate files eases code maintenance and prevents parsing of redundant code. -

RE: [PHP] Easy Question

2001-10-05 Thread Don Read
On 06-Oct-2001 Chip wrote: > When you write a php script to access a database,edit records, etc., is the > entire thing 1 giant PHP page or a bunch of different ones? If it can be > written both ways, which is the better way to do it? > I tend to write based on function: userland.php adminlan

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Mukul Sabharwal
http://www.paphe.com/php/tutorials/230101.php an encryption class = * Know more about me: http://www.geocities.com/mimodit * __ Do You Yahoo!? NEW from Yahoo! GeoCities - quick an

Re: [PHP] Easy Question

2001-10-05 Thread Joel Ricker
My Database functions are all wrapped up in an easy to use class. The methods look something like this: $db = new DB; $q = "SELECT * FROM ATable"; $db->query($q); while ($db->next_record()) { $db->p("SomethingOrOther"); } For the PHP script itself, the content management system I wrote up

[PHP] First? or Last?

2001-10-05 Thread bestbiz4u
Dear Friend, Are you looking for your first Internet business...or your last? If it's your first, I bet you'd like it to be your last! Your last would be the one that allows you to achieve your full time income on a part time basis, is stable, will be there for your heirs, and give you the

[PHP] Re: Html email with Flash content embedded

2001-10-05 Thread Richard Lynch
So, send a link? Or, convince Yahoo not to strip out the attachment? Or convince your friend to use a different way to get this email? There really isn't anything PHP can do to fix the problem of Yahoo email filters. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL P

[PHP] Re: next and previous links

2001-10-05 Thread Richard Lynch
You want to look into MySQL's LIMIT clause. There are quite a few scripts as examples in the code archives: http://php.net/links.php -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Vol

[PHP] Re: How to eliminate "Warning: Undefined variable: " messages

2001-10-05 Thread Richard Lynch
You're better off using: if (isset($xx)) instead, but you can change error_reporting Read php.ini Or, http://php.net/error_reporting -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Vo

[PHP] Re: mail problem (reading mail from a pop3 server)

2001-10-05 Thread Richard Lynch
http://php.net/imap/ You may want to read all the other pages that are parallel with that one. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.

[PHP] Re: PHP is NOTa Bloated Kludge, end of discusion?

2001-10-05 Thread Richard Lynch
> >OK, true. But, this is necessary if you want PHP to automatically > >connect to different DBs. > >A plus to portability and a minus to... (to what?) The first minus is to performance -- You route through more and more layers of functions as you add databases and functionality. The next minus

[PHP] Re: help with exec()...

2001-10-05 Thread Richard Lynch
> $cmd="mysqldump .. > somefile.sql"; > > if( !fopen("somefile.sql","r") ) { print error message }; > > $cmd is correct... I've copy-pasted it tons of times in the command shell Were you the "nobody" user when you did that? It really doesn't count for much if you weren't, cuz PHP runs as "no

[PHP] Re: random numbers help

2001-10-05 Thread Richard Lynch
You should call mt_srand((double) microtime() * 100) once, and only once, in any given script. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmus

[PHP] Re: read_exif_data crashes when reading image

2001-10-05 Thread Richard Lynch
Try the suggestions for dealing with crashes at http://bugs.php.net -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Orig

[PHP] Re: running php as owner

2001-10-05 Thread Richard Lynch
> I am running php on apacheon linux. Right now my php scripts > access the data as the user that is running apache. I would like > them to access the data as the user who is the owner of the script. > Can this be done? How? Is this a good idea (IE: are there hiden > programs to watch out for)

[PHP] Another Header headed nowhere

2001-10-05 Thread Hugh Danaher
What I want to do is to open a new browser page after some data is entered in a form. I have a $php_self that enables $high_value and $low_value to become set and the code snip comes after the end of the form. From reading a help book and looking at the on-line manual, I think I need to send

[PHP] RE: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Jerome Ponsin
For me this really a bug in php compilation with oracle 8.1.7 within apache 1.3.20 : The problem occurs with php 4.0.5, php4.0.6 but also with latest snapshot... For Php -> ./configure --with-apache=/root/apache_1.3.20 --with-mysql --enable-ftp --en able-inline-optimization --disable-debug --wit

Re: [PHP] Another Header headed nowhere

2001-10-05 Thread Naintara Jain
Use JavaScript within PHP. If you want to open a new browser window, add the following to the script window.open('url','winname','window features');" ; ?> look up the 'open' method in JavaScript. - Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL

[PHP] What is wrong (was: How to simulate any browser)

2001-10-05 Thread Kamil Nowicki
Hello again I had a problem: 1. I was able to open one certain web page with any normal browser and got proper output 2. I was able to open the same page with cURL and got the same proper output 3. When I used fopen("http://server.com/","r") or file("http://server.com","r") I got

[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Markus Fischer
Again, is this patch against some kind of libc problem? Because standard 8.1.7 does not support glibc 2.2.x, only 2.1.(x|3) ? But there is little from php that can be done I think. For testing try to build a cgi module and see if that works. If so IMHO its not a php problem. I always took dsit

Re: [PHP] System(), exec(), Passthru(), etc

2001-10-05 Thread David Robley
On Fri, 5 Oct 2001 13:54, ReDucTor wrote: > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: "ReDucTor" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, October 05, 2001 2:21 PM > Subject: Re: [PHP] System(), exec(), Passthru(), etc > > > On Fri, 5 Oct 2001 1

[PHP] PHP is NOTa Bloated Kludge, end of discusion?

2001-10-05 Thread Ben . Edwards
"Maxim Maletsky \(PHPBeginner.com\)" <[EMAIL PROTECTED]> on 05/10/2001 01:43:57 To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc: Subject: RE: [PHP] PHP is a Bloated Kludge, discuss! Firstly let me say that you lot have been great. Lots of useful stuff and no flame, big Respect! Sorry

Re: [PHP] cgi bug workaround

2001-10-05 Thread David Robley
On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote: > hi all, > > I've been asked to do some work on some servers where php can only run > as cgi. Unfortunately it seems that php has a bug which means that > > #!/usr/local/bin/php > > gets printed out at the top of each page if I do this. > >

Re: [PHP] cgi bug workaround

2001-10-05 Thread James Peter Gregory
On Fri, 5 Oct 2001, David Robley wrote: > On Fri, 5 Oct 2001 15:15, James Peter Gregory wrote: > > hi all, > > > > I've been asked to do some work on some servers where php can only run > > as cgi. Unfortunately it seems that php has a bug which means that > > > > #!/usr/local/bin/php > > > >

Re: [PHP] php in css not working with IF's

2001-10-05 Thread Jon Farmer
Budweiser if ( A != 10 or A != 9 ) -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

[PHP] Adding zeros to date

2001-10-05 Thread Daniel Alsén
Hi, is there a easier way to add zeros to date than the script below? (ie to get 20011005 instead of 2001105). I wrote a long string replace. But it seems kind of unecessary to me. Is it? $date_time_array = getdate (time()); $date = $date_time_array[ "mday"]; $month = $date_time_a

[PHP] Re: Adding zeros to date

2001-10-05 Thread Martin Thoma
Use the date-function. See help for details. -- 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] Adding zeros to date

2001-10-05 Thread Negrea Mihai
if you can't do it with date() use substr("0".$month, -2, 2) On Friday 05 October 2001 09:44, Daniel Alsén wrote: > Hi, > > is there a easier way to add zeros to date than the script below? (ie to > get 20011005 instead of 2001105). I wrote a long string repl

[PHP] Re: Adding zeros to date

2001-10-05 Thread _lallous
D]... > Hi, > > is there a easier way to add zeros to date than the script below? (ie to get > 20011005 instead of 2001105). I wrote a long string replace. But it seems > kind of unecessary to me. Is it? > > > $date_time_array = getdate (time()); > $date = $date_time_arra

Re: [PHP] Adding zeros to date

2001-10-05 Thread Dimitris Kossikidis
> Sent: Friday, October 05, 2001 12:44 PM Subject: [PHP] Adding zeros to date > Hi, > > is there a easier way to add zeros to date than the script below? (ie to get > 20011005 instead of 2001105). I wrote a long string replace. But it seems > kind of unecessary to me. Is it? > >

[PHP] RE: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Jerome Ponsin
Thanks for your response, Yes it is a patch for glibc greater 2.1.3 (for me it's 2.2). The problem doesn't appear with the cgi compilation... Does that mean I can't install php module with Redhat 7.1 for example, or is there something to do ? But I think I heard about people installing oci8+php4

[PHP] read_exif_data crashes when reading image

2001-10-05 Thread Matthias Cramer
Hi When I use the followin code snippet whe webbrowser tells me that the page is empty ... $exif = @ read_exif_data($pictureroot . $PATH_INFO); if ($exif) { while(list($k,$v)=each($exif)) { if ($k != 'Thumbnail' && !ereg('Raw', $k)) { echo "$k: $v\n"; } } } This happens not on

[PHP] Re: [PHP-DEV] Bug #13545: oci8 compile problem

2001-10-05 Thread Markus Fischer
On Fri, Oct 05, 2001 at 01:10:17PM +0200, Jerome Ponsin wrote : > Yes it is a patch for glibc greater 2.1.3 (for me > it's 2.2). > > The problem doesn't appear with the cgi compilation... > Does that mean I can't install php module with Redhat 7.1 > for example, or is there something to do ? No

[PHP] Database editor

2001-10-05 Thread -:-Doigy-:-
Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much like you would in ms excel. I'm thinking I'll do it with forms... Is there a non-commerical solution in existance already? Cheers, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] Database editor

2001-10-05 Thread Girish Nath
Hi Take a look at phpMyAdmin at : http://phpwizard.net/projects/phpMyAdmin/ -- phpMyAdmin is intended to handle the adminstration of MySQL over the web. Currently it can: - create and drop databases - create, copy, drop and alter tables - delete, edit and add fields - execute any SQL-statemen

[PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan
Hi For some reasons I need to execute a Perl-CGI from within PHP. I tried it that way: $command = "C:\\Perl\\bin\\Perl.exe ".$basedir."myperl.pl"; $result = @passthru($command, $status); now my Problem: the perl prints its output immidiatly to the browser and $result is empty after the execution

Re: [PHP] Flexible, "Component-based" and Large Application Systemsin PHP

2001-10-05 Thread Lucas Persona
Tim wrote: > PHP works quite nicely on large, modular projects. :) That sound good ! :) > Where I work we've used an environment that's a synergy of pure HTML > templates + a servlet/bean infrastructure (implemented in PHP though) > with great success. > I have a case-study document that I'm in

RE: [PHP] Database editor

2001-10-05 Thread Taylor, Stewart
http://www.phpwizard.net/projects/phpMyAdmin/ -Stewart -Original Message- From: -:-Doigy-:- [mailto:[EMAIL PROTECTED]] Sent: 05 October 2001 12:34 To: [EMAIL PROTECTED] Subject: [PHP] Database editor Hi Folks, I'm after a quick and easy way to edit tables in a mySQL database, much lik

[PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan Rusterholz
Hi For some reasons I need to execute a Perl-CGI from within PHP. I tried it that way: $command = "C:\\Perl\\bin\\Perl.exe ".$basedir."myperl.pl"; $result = @passthru($command, $status); now my Problem: the perl prints its output immidiatly to the browser and $result is empty after the execution

[PHP] random numbers help

2001-10-05 Thread Nikola Veber
Hi ! I'm having troubles with the random numbers. When I create a number witm mt_rand() I always get the same number on my local server. I need this stuff to ranomly display some text, and I'd like to have another value of the random number each time the page is refreshed. Thanks Nikola --

[PHP] Window open.

2001-10-05 Thread Johan Vikerskog (EMP)
I have yet another PHP question! =) How do i open a window in PHP and how do i insert information in it? I have a tables with a 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 PROT

[PHP] Re: random numbers help

2001-10-05 Thread Henrik Hansen
[EMAIL PROTECTED] (Nikola Veber) wrote: > Hi ! > I'm having troubles with the random numbers. When I create a number witm mt_rand() > I always get the same number on my local server. I need this stuff to ranomly >display > some text, and I'd like to have another value of the random number

Re: [PHP] Window open.

2001-10-05 Thread
From: Johan Vikerskog (EMP) <[EMAIL PROTECTED]> Date: Fri, Oct 05, 2001 at 01:57:13PM +0200 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] Window open. > I have yet another PHP question! =) > > How do i open a window in PHP and how do i insert information in it? > I have a tables with a display

Re: [PHP] Window open.

2001-10-05 Thread Jon Farmer
> I have yet another PHP question! =) > > How do i open a window in PHP and how do i insert information in it? Actually you have a javascript question! check out window.open() in the javascript docs Regards jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763

[PHP] Html email with Flash content embedded

2001-10-05 Thread Dhaval Desai
Hi! I am trying to embed a file into my html email that I want to send my friend on Yahoo. I have uploaded the flash file (.swf) on my server. If I try to embed the file as html and send...as an email...nothin can be seen... Is it because... yahoo filtersI am using Php to send it Thanx

Re: [PHP] cgi bug workaround

2001-10-05 Thread Devon Weller
If you are getting "#!/usr/local/bin/php" output to the screen, then the cgi scripts do no need the line in them to execute properly. Do you have access to the scripts? Try removing this line altogether. What happens? - Devon In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (James Peter Gre

Re: [PHP] Execute Perl CGI within PHP

2001-10-05 Thread Stefan Rusterholz
It seems I didn't read the descrition of 'exec()' good enough when I read it the first time :( Now it works, thank you From: "Krzysztof Kocjan" <[EMAIL PROTECTED]> To: "Stefan Rusterholz" <[EMAIL PROTECTED]> > See exec() and system functions in PHP > > Krzysztof > > Stefan Rusterholz wrote: > > >

[PHP] Re: popup window under php

2001-10-05 Thread Tim Sawyer
Thank you all very much! Tim Sawyer wrote: > I want to open a popup window under php control. So lets say I have an > if statement which if true opens the window. > > if ($something) { >JavaScript:window.open("test.php",blah...); > } > > Guess I'm saying that I want to call a Javascript f

[PHP] Re: Using Array of classes as a class member variable?

2001-10-05 Thread Lenar
Maybe: > First some basic questions: > (1) Can you create an unitialised array ? $an_array = array(); > (2) Can an unitinialised array be a class member variable ? > > My problem is this: > > I have a class called "user" - which represents one row in a mySQL table > (also called user) > class us

[PHP] search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Nicklas Bondesson
all ideas are very welcomed !! /nicke -- 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]

[PHP] Re: Database editor

2001-10-05 Thread Nicklas Bondesson
the one and only mysql admin tool for win32 is mysqlfront. it can be downloaded from: http://www.mysqlfront.de. /nicke "-:-Doigy-:-" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Folks, > > I'm after a quick and easy way to edit tables in a mySQL database

RE: [PHP] Database editor

2001-10-05 Thread Brian Paulson
You might also want to try http://sourceforge.net/projects/phpmyadmin That is where you will find the newest version of the program. Thank You Brian Paulson Sr. Web Developer The Pueblo Chieftain Online [EMAIL PROTECTED] http://www.chieftain.com > -Original Message- > From: Girish Nat

[PHP] ODBC version of PHPMyAdmin?

2001-10-05 Thread Jaxon
Hi, Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I want to use it with more than just MySQL (e.g. Postgres and SQLServer) Cheers, Jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Change linux password using php

2001-10-05 Thread Evan Nemerson
Here's what I got from the mandrake security mailing list so far: This is strange. I was just going to write a mail to this list about this. it seems that /etc/shadow accepts both crypt passwords (the short passwd) and MD5 passwords. (34 characters with $ and slashes does seem to me like md5).

[PHP] multidimensional array from html forms

2001-10-05 Thread Larry Linthicum
Hi I just a PHP "hobbiest" trying to build a points calculating system for another hobby, please bear with me. I need to build a multidimensional array from a html form the array would look like: $needed_data = array ( array (id = $member_id, points = $position ),

[PHP] crypt and decrypt a string

2001-10-05 Thread Joel Ricker
Does anybody have an easy way to crypt and decrypt a string? I see the Mcrypt Encryption module but thats a little more gung-ho than I'm looking for. I'm not trying to encrypt sensitive data rather I'm more trying obfuscate it a variable for a hidden tag. Thought I remember seeing something

[PHP] Symbolic Link - Security Issue?

2001-10-05 Thread Ashwin Kutty
Hi, I have a directory with an index.php script so that the url is something along the lines of http://www.mydomain.com/search/ .. Now following the same logic I wanted to write another script but not bother creating another directory so I wrote my script called test.php and then created a sy

[PHP] mail problem (reading mail from a pop3 server)

2001-10-05 Thread Nikola Veber
Hi ! I would like to add an option for reading e-mail from the pop3 server to my site. Is this possible at all ? Thanks Nikola -- 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 a

[PHP] Re: stupid newbie question

2001-10-05 Thread J Smith
Actually, there is a unix-like fork() function in an extension. exec() will execute another process, but it isn't really a fork(). Look at the pcntl extension and check out pcntl_fork(). I've been working with it for a few days and it works pretty well. It's still marked EXPERIMENTAL, so don

Re: [PHP] ODBC version of PHPMyAdmin?

2001-10-05 Thread Steve Werby
"Jaxon" <[EMAIL PROTECTED]> wrote: > Has anyone seen an ODBC version of PHPMyAdmin, or something similar; I want > to use it with more than just MySQL (e.g. Postgres and SQLServer) Not ODBC, but phpMyAdmin has a PostgreSQL cousin, phpPgAdmin. You used to be able to find it at www.greatbridge.org

RE: [PHP] crypt and decrypt a string

2001-10-05 Thread Nathan
Here are some simple xor encoding functions that I wrote. This will keep the average joe from peaking at your data. function decode($data){ $data = base64_decode($data); /* XOR data */ for($i = 0; $i < strlen($data); $i++){ $data[$i] = ~ $data[$i];

[PHP] running php as owner

2001-10-05 Thread Ray Todd Stevens
I am running php on apacheon linux. Right now my php scripts access the data as the user that is running apache. I would like them to access the data as the user who is the owner of the script. Can this be done? How? Is this a good idea (IE: are there hiden programs to watch out for)

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Andrey Hristov
On Friday 05 October 2001 18:10, you wrote: > Use crypt()/decrypt() couple. > > Andrey Hristov > IcyGEN Corporation > BUILDING SOLUTIONS > http://www.icygen.com > > On Friday 05 October 2001 17:53, you wrote: > > Here are some simple xor encoding functions that I wrote. This will keep > > the aver

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Joel Ricker
From: "Nathan" <[EMAIL PROTECTED]> > Here are some simple xor encoding functions that I wrote. This will keep > the average joe from peaking at your data. Exactly what I was looking for. Thanks Joel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] Re: multidimensional array from html forms

2001-10-05 Thread Larry Linthicum
I know that enclosing form field names in [] makes them available as an array if the form were dynamically built like PERSONS NAME (from database via $member_id ) next PERSONS NAME (from database via $member_id ) next PERSONS NAME (from database via $member_id ) etc etc I "think" I w

[PHP] new to the list

2001-10-05 Thread Mick Fitzpatrick
Hello I've just joined the list and sending this message as a test :-) I'm 'very' new to PHP and therefore here to learn ... I hope that's ok? Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] Upload File Path Problem

2001-10-05 Thread Roger Bryant
All, I am putting together a simple upload program where an HTML form calls a php script passing a file which is then used to upload. I am running this locally currently, prior to rolling out to a test server. My problem is this. The variable $filename I am passing from the form to the php scrip

RE: [PHP] Database editor

2001-10-05 Thread Chris Bailey
Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool someone mentioned is not the one and only Win32 tool for this :) FreeMason will let you edit tables and such. Step up to Mascon to get things like administrative editing. http://www.scibit.com/Products/Software/Utils/M

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Joel Ricker
> On Friday 05 October 2001 18:10, you wrote: > > Use crypt()/decrypt() couple. > > > > Andrey Hristov >From the PHP doumentation on crypt: There is no decrypt function, since crypt() uses a one-way algorithm." so that wouldn't have worked. Joel -- PHP General Mailing List (http://www.

[PHP] Re: printf scientific notation?

2001-10-05 Thread Bill Rausch
Thank Richard. So far, I just punted. My site runs on a dedicated box and doesn't have to service a lot of users so I just wrote a one line C program to print a single value using a specified format (default is %.4e) and use exec() to call it. printe [format] value Here's how I encapsula

Re: [PHP] Upload File Path Problem

2001-10-05 Thread root
$imagefile contains the name of the file in the temp dir. So the name is some mess like phpx . If you want the file you do copy() or something other. After the script is done the file is deleted. I prefer using $HTTP_POST_VARS do var_dump($HTTP_POST_VARS) to see debug info. Andrey Hristov I

[PHP] Paging through MySQL results

2001-10-05 Thread wjt
I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying to find an elegant solution to paging x number of records at a time through a result set returned to a php page from MySQL. Any ideas? TIA, Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] crypt and decrypt a string

2001-10-05 Thread Andrey Hristov
ooops , sorry On Friday 05 October 2001 18:48, you wrote: > > On Friday 05 October 2001 18:10, you wrote: > > > Use crypt()/decrypt() couple. > > > > > > Andrey Hristov > > From the PHP doumentation on crypt: > > There is no decrypt function, since crypt() uses a one-way algorithm." so > that woul

Re: [PHP] Paging through MySQL results

2001-10-05 Thread Andrey Hristov
select * from some_table Limit 10,30; syntaxis limit , Andrey Hristov IcyGEN Corporation Building Solutions On Friday 05 October 2001 18:52, you wrote: > I am a bit new to PHP -- normally use ASP (no booing, please) -- and trying > to find an elegant solution to paging x number of records at a t

[PHP] Re: [PHP-DB] Auto_increment field size (was: Howto make a double LEFT JOIN)

2001-10-05 Thread Andrey Hristov
select first.*,second.*,third.* from first left join second using(for_key_first_second) left join third using(for_key_2_3); On Friday 05 October 2001 18:50, you wrote: > Hello, > > > you can always reset the auto_increment value (I think that is as simlple > > as > > > "set insert_id=1;" but you

[PHP] Re: search result page, need some ideas on how to do [PREV] 1 2 3 4 [NEXT] stuff..

2001-10-05 Thread Chris Lee
there are tutorials posted all over the inet, and all over this news group. take a look around. Ive left out the details and stuck with the basics, modify as needed, you'll need to :) if (!isset($HOW_MANY)) $HOW_MANY = 10; if (!isset($position)) $position = 0; $prev = $position -

Re: [PHP] Paging through MySQL results

2001-10-05 Thread Joel Ricker
- Original Message - From: "Andrey Hristov" <[EMAIL PROTECTED]> > select * from some_table Limit 10,30; Something to point out, in some of the older versions of MySQL, Offset starts counting at 0, while in the newer versions, it starts counting at 1. You'll want to check the documentat

[PHP] next and previous links

2001-10-05 Thread Mick Fitzpatrick
Hello After several days of reading various articles on the web I've 'finally' got a basic database working. The database is for a massive collection of my vinyl records. Therefore I would like to limit the results to about 20 per page and move forward/backward with 'next' and 'previous' links.

Re: [PHP] Paging through MySQL results

2001-10-05 Thread wjt
Question: Does the pagination method using mysql_data_seek method pull in the entire result set, only to be used to display x number of rows? "Joel Ricker" <[EMAIL PROTECTED]> wrote in message 00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms">news:00b501c14db9$84e4a4f0$04a3d6d1@joeltklrijxxms... >

RE: [PHP] new to the list

2001-10-05 Thread Jack Dempsey
Hey Mick, of course its ok...we've all done it that way (cept a few whose names you'll learn soon enough ;-) ) a few suggestions: 1. www.php.net has most everything you could ask for...also, if you have a function you want to learn more about, type it like this: http://www.php.net/function_name (

RE: [PHP] Database editor

2001-10-05 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Also try Mascon and FreeMascon. Note, these run on Win32, so the other tool > someone mentioned is not the one and only Win32 tool for this :) > > FreeMason will let you edit tables and such. Step up to Mascon to get > things like adm

[PHP] Fancy thing.

2001-10-05 Thread Andrey Hristov
After getting the PHP source from the CVS and compiling I tested with phpinfo(). The result was amazing : ===cutted= http://www.php.net/";>PHP Version 4.0.8-dev ===cutted= -- Andrey Hristov IcyGEN Corporation BALANCED SOLUTIONS http://www.icygen.com -- PHP

[PHP] Submitting variables via /'s

2001-10-05 Thread Ashley M. Kirchner
I've seen documentation on this somewhere, but now I can't remember where. I want to move away from file.php?var1=1&var2=2&var3=3 ...and go to file.php/1/2/3 ...and still be able to do what I need to be done (extract the variables and use them as I need them.)

Re: [PHP] Submitting variables via /'s

2001-10-05 Thread Rasmus Lerdorf
Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though since Apache fills that in with the script it executes. Or you could simply look at $PATH_INFO and strip the contents of $PATH_INFO from the end of $PHP_SELF. -Rasmus On Fri, 5 Oct 2001, Ashley M. Kirchner wrote: > >

RE: [PHP] Database editor

2001-10-05 Thread Chris Bailey
As a couple others posted, if you want it to be PHP, then phpMyAdmin, http://sourceforge.net/projects/phpmyadmin. -Original Message- From: MrBaseball34 [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 9:45 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Database editor In article <

Re: [PHP] Submitting variables via /'s

2001-10-05 Thread Ashley M. Kirchner
Rasmus Lerdorf wrote: > Yes, $PHP_SELF would include /1/2/3. $SCRIPT_NAME wouldn't have it though > since Apache fills that in with the script it executes. Or you could > simply look at $PATH_INFO and strip the contents of $PATH_INFO from the > end of $PHP_SELF. Aha! Good. Now, does anyo

RE: [PHP] Database editor

2001-10-05 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > As a couple others posted, if you want it to be PHP, then phpMyAdmin, > http://sourceforge.net/projects/phpmyadmin. > I just found that one...thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

  1   2   >