Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-22 Thread Per Jessen
Richard Lynch wrote: > You'll also have a VERY tough time trying to ram EU privacy laws > through a non-EU court, if Dan is not in the EU... Forcing American law on other people of the world has not been a problem for America, why should it be a problem for the EU? :-( > You *know* it's an inter

Re: [PHP] Foreach

2008-01-22 Thread Nathan Nobbe
On Jan 18, 2008 5:24 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > If you are trying to keep the names and orders in "parallel" you need > to do something not unlike: > > while (list($key, $name) = each($names)){ > $order = $orders[$key]; > $query = "update whatever set order = $order where nam

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Robert Cummings
On Wed, 2008-01-23 at 00:40 -0500, Nathan Nobbe wrote: > alright, so you guys have responded and im really appreciative. > you have me thinking now.. > so what are the real issues here? > >1. portability >2. security (obviously) > > im wondering now if crypt() is really even so practical

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Nathan Nobbe
alright, so you guys have responded and im really appreciative. you have me thinking now.. so what are the real issues here? 1. portability 2. security (obviously) im wondering now if crypt() is really even so practical. especially considering the deal where only 2 characters are prepended

Re: [PHP] Tool for programmer team

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 2:40 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: > What is a good tool to coordinate a team of programmers efficiently? that is a big question, primarily because there are many facets of coordination with different tools to help out. obviously version control is one of the f

Re: [PHP] sessions/cookies

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 9:54 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > I realize this link I'm posting is called "auth" > too, but that wasn't my choice. that was kind of funny after your initial criticizm above, but to solars credit, its the auth 'package' so really the name isnt too bad, id say.

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 16:47 -0500, Tom Ray [Lists] wrote: > > > > This is how I setup mysql: > #upgrades: cd mysql > tar -zxf mysql-version-x.tar.gz > cp -R * /usr/local/mysql > cd /usr/local/mysql > chown -R mysql:mysql * > scripts/mysql_install_db --user=mysql > /usr/local/mysql/bin/mysqld_sa

Re: [PHP] sessions/cookies

2008-01-22 Thread Eric Butera
On Jan 22, 2008 9:15 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > I wrote an authentication class in php4. The sessions dont seem to be > working with internet explorer, just with FF. here is the code below, > a cookies notice pops up when you try and login: Hi, I took a quick look at your c

Re: [PHP] PHP SOAP Client formats

2008-01-22 Thread Samisa Abeysinghe
This is a typical .NET vs. PHP interop problem, and happens because the .NET services (or clients) expect the payload to be namespace qualified as you have figured out. I too have looked into this with PHP SOAP extension, and what I gathered is that the WSDL mode implementation needs to pick the

Re: [PHP] mssql and latin characters

2008-01-22 Thread Eric Butera
On Jan 22, 2008 6:00 PM, Leticia Larrosa <[EMAIL PROTECTED]> wrote: > > Thanks a lot Eric, I read those links and are really interesting. > > The solution of the problem was changing the "OEM character conversion" > option of MSSql (see attached image) as Frank answer me in PHP-Windows list. > > Or

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Chris
Richard Lynch wrote: On Tue, January 22, 2008 7:43 pm, Chris wrote: Richard Lynch wrote: On Sat, January 19, 2008 8:24 pm, Eric Butera wrote: I always make sure that I use a site specific salt which is just appended on the user supplied value. I started doing that when I read that people had

[PHP] sessions/cookies

2008-01-22 Thread nihilism machine
I wrote an authentication class in php4. The sessions dont seem to be working with internet explorer, just with FF. here is the code below, a cookies notice pops up when you try and login: mysql_connect('','','') or die('ERROR: Could not connect to database'); mysql_selec

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 7:43 pm, Chris wrote: > Richard Lynch wrote: >> On Sat, January 19, 2008 8:24 pm, Eric Butera wrote: >>> I always make sure that I use a site specific salt which is just >>> appended on the user supplied value. I started doing that when I >>> read >>> that people had cre

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Dotan Cohen
On 23/01/2008, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > On Tue, January 22, 2008 7:01 pm, Dotan Cohen wrote: > > I have a file of my own functions that I include in many places. One > > of them uses mysql_real_escape_string, however, it may be called in a > > context that will or will not con

Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008: php-general@lists.php.net

2008-01-22 Thread Richard Lynch
On Sat, January 19, 2008 12:51 pm, Per Jessen wrote: > David Powers wrote: >> When I subscribed to the PHP general mailing list I did not give >> permission for this. This is an international list, and what you're >> doing breaks EU privacy laws, and possibly those in other countries >> too. > > Hm

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 7:01 pm, Dotan Cohen wrote: > I have a file of my own functions that I include in many places. One > of them uses mysql_real_escape_string, however, it may be called in a > context that will or will not connect to a mysql server, and worse, > may already be connected. So

Re: [PHP] including files outside of document root

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 7:17 pm, Daniel Brown wrote: > On Jan 22, 2008 8:09 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: >> Nothing peeves me more than some badly-conceived web-app with no way >> to move the include files out of the web-tree. > > You may disagree with me on this here, Rich,

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Chris
Richard Lynch wrote: On Sat, January 19, 2008 8:24 pm, Eric Butera wrote: I always make sure that I use a site specific salt which is just appended on the user supplied value. I started doing that when I read that people had created huge databases of hashed values that they can just search on.

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Richard Lynch
On Sat, January 19, 2008 8:24 pm, Eric Butera wrote: > I always make sure that I use a site specific salt which is just > appended on the user supplied value. I started doing that when I read > that people had created huge databases of hashed values that they can > just search on. At least this w

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Richard Lynch
On Sat, January 19, 2008 2:11 pm, Nathan Nobbe wrote: > http://www.php.net/manual/en/function.crypt.php > has a second parameter, $salt, which, if not supplied will be > automatically > generated and presumably become a prefix or suffix of the returned > string. Or, in some algorithms, gets buried

Re: [PHP] Digital Downloads and Scale

2008-01-22 Thread Richard Lynch
On Sun, January 20, 2008 1:57 pm, dg wrote: > I'd appreciate any insights, or source suggestions regarding site > traffic and necessary adjustments. > > For example, I'm using a simple digital download page for an indie > artist. Not a ton of traffic, not a ton of concurrent requests. > > Was thin

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Dotan Cohen
On 23/01/2008, Chris <[EMAIL PROTECTED]> wrote: > Dotan Cohen wrote: > > I have a file of my own functions that I include in many places. One > > of them uses mysql_real_escape_string, however, it may be called in a > > context that will or will not connect to a mysql server, and worse, > > may alr

Re: [PHP] general time question

2008-01-22 Thread Richard Lynch
On Sun, January 20, 2008 5:30 pm, jekillen wrote: > I am developing an application that uses php with Apache. > A user requests a script file from a web site and the server > takes such things as $_SERVER['REMOTE_ADDRESS'] You *DO* understand that large-scale ISP's users will change their IP addre

Re: [PHP] including files outside of document root

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 8:09 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > Nothing peeves me more than some badly-conceived web-app with no way > to move the include files out of the web-tree. You may disagree with me on this here, Rich, but the way I do it is to have a single include_files.php file

Re: [PHP] upload problem

2008-01-22 Thread Chris
nihilism machine wrote: any ideas why this does not work? 1) the field in the form might not be 'upload1'. 2) the file is too big to upload (> max_upload_size) 3) the /tmp folder might not be writable or full 4) the folder you're trying to write into is not writable (or the drive is full) 5)

Re: [PHP] including files outside of document root

2008-01-22 Thread Richard Lynch
On MOST setups, you might have: /yourhomedirectory /httpd_docs_or_something_like_that /index.php /page2.php /includes /globals.inc /connect.inc /sql So, pretty much, you'd do something like: tar -cvf my_site.tar http_docs includes gzip my_site.tar And

Re: [PHP] upload problem

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 8:01 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > any ideas why this does not work? > > > class upload { > > function upload() { > upload::uploader(); > } > > function uploader() { > $FileName = basename($_FILES['upload1']

Re: [PHP] upload problem

2008-01-22 Thread Casey
On Jan 22, 2008, at 5:01 PM, nihilism machine <[EMAIL PROTECTED]> wrote: any ideas why this does not work? class upload { function upload() { upload::uploader(); } function uploader() { $FileName = basename($_FILES['upload1']['name']); if (move_uploaded_file($

Re: [PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Chris
Dotan Cohen wrote: I have a file of my own functions that I include in many places. One of them uses mysql_real_escape_string, however, it may be called in a context that will or will not connect to a mysql server, and worse, may already be connected. So I must avoid connecting. However, when I r

[PHP] upload problem

2008-01-22 Thread nihilism machine
any ideas why this does not work? class upload { function upload() { upload::uploader(); } function uploader() { $FileName = basename($_FILES['upload1']['name']); if (move_uploaded_file($_FILES['upload1']['

[PHP] Using mysql_real_escape_string without connecting to mysql

2008-01-22 Thread Dotan Cohen
I have a file of my own functions that I include in many places. One of them uses mysql_real_escape_string, however, it may be called in a context that will or will not connect to a mysql server, and worse, may already be connected. So I must avoid connecting. However, when I run the script without

Re: [PHP] Debugging classes

2008-01-22 Thread Jochem Maas
Vishal Patel schreef: i dont know why the hell im on it so please whoever did this, i wish they would stop fucking about with my account. please can you unsuscribe me to all such mailing lists as at the moment im recieving about 10 new emails a minute about all this stuff which im sure you can

Re: [PHP] Debugging classes

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 6:15 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > TG schreef: > > I have a semi-good understanding of classes even if I don't totally > 'grok' > > the benefits for the projects I've worked on so far. > > > > One thing that keeps smacking me in the face, though, is reverse > enginee

Re: [PHP] Debugging classes

2008-01-22 Thread Jochem Maas
Vishal Patel schreef: who the fuck are you and why the fuck are you emailing me I'm fucking me actually. and I'm fucking mailing a fucking mailing list which apparently your fucking subscribed to. So now your fucking up to speed. Any other fucking questions? On Jan 22, 2008 11:15 PM, Jochem

Re: [PHP] Debugging classes

2008-01-22 Thread Jochem Maas
TG schreef: I have a semi-good understanding of classes even if I don't totally 'grok' the benefits for the projects I've worked on so far. One thing that keeps smacking me in the face, though, is reverse engineering in order to make proper changes to projects created by others using classes.

RE: [PHP] mssql and latin characters

2008-01-22 Thread Leticia Larrosa
Thanks a lot Eric, I read those links and are really interesting. The solution of the problem was changing the "OEM character conversion" option of MSSql (see attached image) as Frank answer me in PHP-Windows list. Original answer of Frank: -Original Message- From: Frank M. Kromann [mai

Re: [PHP] including files outside of document root

2008-01-22 Thread shiplu
On Jan 22, 2008 4:21 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Jan 22, 2008 3:57 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > Hi everyone, > >Hi, Jason! > > > Been doing some reading on security and have decided that I should be > > storing my include files outside of the document roo

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Tom Ray [Lists]
Robert Cummings wrote: On Tue, 2008-01-22 at 12:42 -0500, Tom Ray [Lists] wrote: Robert Cummings wrote: On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over again.

Re: [PHP] including files outside of document root

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 3:57 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hi everyone, Hi, Jason! > Been doing some reading on security and have decided that I should be > storing my include files outside of the document root... Which I > understand how to do it, but what I'm wondering, is say I writ

Re: [PHP] POST/GET into variables

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 3:59 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Mon, January 21, 2008 10:03 am, Nathan Nobbe wrote: > > On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > >> I don't think making a single generic function to iterate over every > >> value in the GET/POST a

Re: [PHP] POST/GET into variables

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 10:03 am, Nathan Nobbe wrote: > On Jan 21, 2008 10:19 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > >> I don't think making a single generic function to iterate over every >> value in the GET/POST arrays is a very good idea. Each field on a >> form can contain very differen

[PHP] including files outside of document root

2008-01-22 Thread Jason Pruim
Hi everyone, Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering, is say I write the Next Killer App (tm). How would I port that code easily off of my server

Re: [PHP] regex

2008-01-22 Thread Richard Lynch
ANOTHER option would be to query the DB for table names and then its fields. You could then do a dirt-simple str_replace, because you would know exactly what table names to expect. //totally wrong code to give you the idea: $tables = pg_query_something_about_table_names($connection); foreach($tab

Re: [PHP] regex

2008-01-22 Thread Richard Lynch
You'd need to use a "look-ahead" or "look-behind" with PCRE to do this. Search for a thread just last week involving quotes and HTML attributes for an example. PS You could probably get the DB to ignore case in table names and table fields with some kind of "set". You also could probably just re

Re: [PHP] performance/load testing ...

2008-01-22 Thread Richard Lynch
apache benchmark, aka "ab" comes with apache and lets you hit your server as many times as you want. Also see wget and valgrind/callgrind For Windows users, there's something called SuperSmack or some equally silly name... :-) On Mon, January 21, 2008 3:50 am, Jochem Maas wrote: > hi guys, > > I

Re: [PHP] Resetting drop-downlists in input-fields for texts

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 9:31 am, Tor Vidvei wrote: > I'm developing a traning page for basic math. The answers are entered > by > the user in simple text input fields and the same page is returned > (after > having been processed by php) to the user with indications of > correctness > or error on

Re: [PHP] a better way to do a data import?

2008-01-22 Thread Richard Lynch
If you unset/NULL out *every* variable, then you should not run out of RAM... It might be a heck of a lot faster to LOAD DATA INFILE to a temp table, and then use SQL statements to compare the data and update/insert any altered/missing data... I do something similar with about the same number of

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Richard Lynch
REFERER is set or not by the browser choice, and some browsers let you turn it off. It's completely unreliable. Why not just have the download script accept search inputs, and provide two links: Records where name contains 'foo': http://example.com/download.php?name=foo Whole DB: http://example

Re: [PHP] Best Approach

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 5:55 pm, Miguel Guirao wrote: > Is PHP a correct approach to solve this tedious problem?? Can I access > a > servers and get the results of a ls command for instance?? I would use PHP, personally, since I know it best. It might be easiest to install PHP on each box, and h

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 7:23 pm, shiplu wrote: > I configured autofs in my fedora so that when I plug any usb stick in > /dev/sda1 it automatically mounts in /mnt/auto/usb0 > > There is two lines where the problem arise. > > $util->run_command("ls -1 /mnt/auto/usb0 | wc -l");// it shows 13 >

Re: [PHP] building php with DB extension without installing DB locally

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 5:04 am, Jochem Maas wrote: > I want to build php with firebirdDB (ibase) extension (for the > purposes > of this exercise it could just as well be mysql) without installing > firebird > on the local machine (i'm moving the DB to a seperate server) ... > > I can't figure ou

Re: [PHP] form cleaning class

2008-01-22 Thread Richard Lynch
On Mon, January 21, 2008 10:39 pm, nihilism machine wrote: > $UserInput = strip_tags($text, $allowedtags); $text is not defined, so it's blank, so now $UserInput is blank... This also tells me that you aren't using E_ALL for development, which is a BAD IDEA... -- Some people have

Re: [PHP] Debugging classes

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 2:40 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > At least, that would be one of the first features I'd put into an IDE, > if I used OOP in PHP and if I used IDEs in the first place... actually php-eclipse and pdt both have pretty solid oop support for php. and theyre free. the

Re: [PHP] Tool for programmer team

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 1:40 am, Ronald Wiplinger wrote: > What is a good tool to coordinate a team of programmers efficiently? > > To give each one a different part of the project is a start, but it > needs to > get combined at some points to be a working project. > > Not to debug code you have w

Re: [PHP] Debugging classes

2008-01-22 Thread Richard Lynch
On Tue, January 22, 2008 12:06 pm, TG wrote: > One thing that keeps smacking me in the face, though, is reverse > engineering > in order to make proper changes to projects created by others using > classes. OOP requires a great deal more high-level documentation, to tell what classes do what and h

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 12:42 -0500, Tom Ray [Lists] wrote: > Robert Cummings wrote: > > On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: > > > >> Hey- > >> > >> I'm trying to install PHP5 with mysql support and I keep running into > >> the same problem over and over again. I run the co

Re: [PHP] Debugging classes

2008-01-22 Thread Nathan Nobbe
On Jan 22, 2008 1:06 PM, TG <[EMAIL PROTECTED]> wrote: > > I have a semi-good understanding of classes even if I don't totally 'grok' > the benefits for the projects I've worked on so far. > > One thing that keeps smacking me in the face, though, is reverse > engineering > in order to make proper

[PHP] Debugging classes

2008-01-22 Thread TG
I have a semi-good understanding of classes even if I don't totally 'grok' the benefits for the projects I've worked on so far. One thing that keeps smacking me in the face, though, is reverse engineering in order to make proper changes to projects created by others using classes. In particula

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Tom Ray [Lists]
Robert Cummings wrote: On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: Hey- I'm trying to install PHP5 with mysql support and I keep running into the same problem over and over again. I run the configuration with this: --with-mysql=/usr/local/mysql and without fail I get this eve

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 11:21 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > I've found many times, that you can find the "how" by googling for the > right terms... It's the "Why" that you can't learn from code... That's > when you gotta dig into books and ask questions :) Not just that, but also citing

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Jason Pruim
On Jan 22, 2008, at 10:32 AM, Daniel Brown wrote: On Jan 22, 2008 9:03 AM, Eric Butera <[EMAIL PROTECTED]> wrote: That is basically it. You're going to want to learn the why, not just the how though. There is a reason for creating functions and it isn't just code reuse. Think about when

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Shiplu
On Jan 22, 2008 3:26 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-01-22 at 09:20 +0100, Zoltán Németh wrote: > > 2008. 01. 22, kedd keltezéssel 03.15-kor Robert Cummings ezt írta: > > > On Tue, 2008-01-22 at 09:10 +0100, Zoltán Németh wrote: > > > > 2008. 01. 21, hétfő keltezéss

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Daniel Brown
On Jan 22, 2008 9:03 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > That is basically it. You're going to want to learn the why, not just > the how though. There is a reason for creating functions and it isn't > just code reuse. Think about when you want to change your export > script. Say you ne

Re: [PHP] building php with DB extension without installing DB locally

2008-01-22 Thread Thijs Lensselink
Quoting Jochem Maas <[EMAIL PROTECTED]>: [EMAIL PROTECTED] schreef: Quoting Jochem Maas <[EMAIL PROTECTED]>: hi guys, I want to build php with firebirdDB (ibase) extension (for the purposes of this exercise it could just as well be mysql) without installing firebird on the local machine

Re: [PHP] building php with DB extension without installing DB locally

2008-01-22 Thread Jochem Maas
[EMAIL PROTECTED] schreef: Quoting Jochem Maas <[EMAIL PROTECTED]>: hi guys, I want to build php with firebirdDB (ibase) extension (for the purposes of this exercise it could just as well be mysql) without installing firebird on the local machine (i'm moving the DB to a seperate server) ...

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Stut
Jason Pruim wrote: So all I have to do (At least to really simplify what I'm sure they can do) is put the code I want to execute into the function and then just list the variables as arguments? Such as: function dbconnect ($host, $user, $pass, $database) { mysqli_connect($host, $user, $pass, $

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Eric Butera
On Jan 22, 2008 8:44 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Jan 21, 2008, at 4:14 PM, Dave Goodchild wrote: > > > Don't be scared of functions, no magic or mystery there, all you are > > doing > > is putting your code in a function like so: > > > > function add($a, $b) { > > return $a +

Re: [PHP] More frustration with MySQL and PHP

2008-01-22 Thread Jason Pruim
On Jan 21, 2008, at 4:14 PM, Dave Goodchild wrote: Don't be scared of functions, no magic or mystery there, all you are doing is putting your code in a function like so: function add($a, $b) { return $a + $b; } ..for example and calling it like so: $a = 12; $b = 100; $sum = add(12, 13); .

Re: [PHP] form cleaning class

2008-01-22 Thread Eric Butera
On Jan 21, 2008 11:39 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > now my debug shows that with the following code, all of the > $_POST['whatever'] values are blank. > > > class forms { > > var $UserInput; > > // Forms to variables > function forms() { >

RE: [PHP] Best Approach

2008-01-22 Thread Jay Blanchard
[snip] Is PHP a correct approach to solve this tedious problem?? Can I access a servers and get the results of a ls command for instance?? [/snip] You can use some of PHP's functions, such as readdir() (roughly an ls in PHP land http://www.php.net/readdir ). You can also use exec (to execute) and

Re: [PHP] building php with DB extension without installing DB locally

2008-01-22 Thread dev
Quoting Jochem Maas <[EMAIL PROTECTED]>: hi guys, I want to build php with firebirdDB (ibase) extension (for the purposes of this exercise it could just as well be mysql) without installing firebird on the local machine (i'm moving the DB to a seperate server) ... I can't figure out how to do

Re: [PHP] Resetting drop-downlists in input-fields for texts

2008-01-22 Thread Tor Vidvei
On Mon, 21 Jan 2008 17:25:06 +0100, "David Giragosian" <[EMAIL PROTECTED]> wrote: I think this HTML is IE specific, ... Not sure if you can do it on a tag by tag basis or not, nor what versions it might be limited by. David Thanks a lot! This solution works fine in the three browser

[PHP] building php with DB extension without installing DB locally

2008-01-22 Thread Jochem Maas
hi guys, I want to build php with firebirdDB (ibase) extension (for the purposes of this exercise it could just as well be mysql) without installing firebird on the local machine (i'm moving the DB to a seperate server) ... I can't figure out how to do this apart from installing firebird, buildi

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread mike
> On Jan 21, 2008 3:22 AM, nihilism machine <[EMAIL PROTECTED]> wrote: > > I'm trying to create a function that will first take an array of > > $_POSTs and give them key/value pairs like variables. For instance, if > > i had $_POST['whatever'] = "whatever", that would be made into > > $whatever = "

Re: [PHP] $_POST Array and Cleaning

2008-01-22 Thread Manuel Vacelet
On Jan 21, 2008 3:22 AM, nihilism machine <[EMAIL PROTECTED]> wrote: > I'm trying to create a function that will first take an array of > $_POSTs and give them key/value pairs like variables. For instance, if > i had $_POST['whatever'] = "whatever", that would be made into > $whatever = "whatever",

[PHP] Re: Tool for programmer team

2008-01-22 Thread Colin Guthrie
Ronald Wiplinger wrote: > What is a good tool to coordinate a team of programmers efficiently? > > To give each one a different part of the project is a start, but it needs to > get combined at some points to be a working project. > > Not to debug code you have written was a hint, to see actually

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 09:20 +0100, Zoltán Németh wrote: > 2008. 01. 22, kedd keltezéssel 03.15-kor Robert Cummings ezt írta: > > On Tue, 2008-01-22 at 09:10 +0100, Zoltán Németh wrote: > > > 2008. 01. 21, hétfő keltezéssel 20.23-kor shiplu ezt írta: > > > > I configured autofs in my fedora so that

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 09:10 +0100, Zoltán Németh wrote: > 2008. 01. 21, hétfő keltezéssel 20.23-kor shiplu ezt írta: > > I configured autofs in my fedora so that when I plug any usb stick in > > /dev/sda1 it automatically mounts in /mnt/auto/usb0 > > > > There is two lines where the problem arise

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Zoltán Németh
2008. 01. 22, kedd keltezéssel 03.15-kor Robert Cummings ezt írta: > On Tue, 2008-01-22 at 09:10 +0100, Zoltán Németh wrote: > > 2008. 01. 21, hétfő keltezéssel 20.23-kor shiplu ezt írta: > > > I configured autofs in my fedora so that when I plug any usb stick in > > > /dev/sda1 it automatically mo

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Zoltán Németh
2008. 01. 21, hétfő keltezéssel 20.23-kor shiplu ezt írta: > I configured autofs in my fedora so that when I plug any usb stick in > /dev/sda1 it automatically mounts in /mnt/auto/usb0 > > There is two lines where the problem arise. > > $util->run_command("ls -1 /mnt/auto/usb0 | wc -l");// it

Re: [PHP] Tool for programmer team

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 08:52 +0100, Sándor Tamás (HostWare Kft.) wrote: > It depends. If the project built up of slightly different modules, putting > the coders on a big, white table seems to be a good idea. But if the modules > are completely different, you should separate them, so each of them