Re: [PHP] phpscriptor.com

2009-07-13 Thread Reese
Paul M Foster wrote: On Sat, Jul 11, 2009 at 08:14:35AM -0700, PHPScriptor wrote: Ok this may look like spam but what the hell... I'm the owner of phpscriptor.com, I had bigg plans with this domainname but... well yes, no time. So I'm selling it. I don't want to make profit out of it. So for,

[PHP] php.ini and cli

2009-07-13 Thread Ashley Sheridan
Hi All, Just a quick question. When I make changes in the php.ini, to take effect, I need to restart the Apache (or other web server) service. What happens with PHP CLI? Is the php.ini parsed each time the script is called, or is there something specific which needs resetting? The machine that

Re: [PHP] php.ini and cli

2009-07-13 Thread Eddie Drapkin
On Mon, Jul 13, 2009 at 4:48 AM, Ashley Sheridan wrote: > Hi All, > > Just a quick question. When I make changes in the php.ini, to take effect, I > need to restart the Apache (or other web server) service. What happens with > PHP CLI? Is the php.ini parsed each time the script is called, or is the

Re: [PHP] php.ini and cli

2009-07-13 Thread Stuart
2009/7/13 Ashley Sheridan : > Just a quick question. When I make changes in the php.ini, to take effect, I > need to restart the Apache (or other web server) service. What happens with > PHP CLI? Is the php.ini parsed each time the script is called, or is there > something specific which needs rese

Re: [PHP] When did you start here? Was - RFC/Survey for Our Newer Folks

2009-07-13 Thread David Robley
Ashley Sheridan wrote: > On Sunday 12 July 2009 15:54:27 Daniel Brown wrote: >> On Sun, Jul 12, 2009 at 09:45, Ashley Sheridan > wrote: >> > Yeah, I'll put it down to old age and not my reading laziness! >> >> You're just lucky Tedd got to you first, Ash. I was going to >> fairy-slap you for

Re: [PHP] php.ini and cli

2009-07-13 Thread Ashley Sheridan
On Monday 13 July 2009 10:07:24 Stuart wrote: > 2009/7/13 Ashley Sheridan : > > Just a quick question. When I make changes in the php.ini, to take > > effect, I need to restart the Apache (or other web server) service. What > > happens with PHP CLI? Is the php.ini parsed each time the script is > >

[PHP] Doubts concerning a general Insert method

2009-07-13 Thread MEM
Hello, I'm trying to understand a general CRUD class that I've seen here: http://www.phpro.org/classes/PDO-CRUD.html I'm learning PHP and I have some doubts on this method to generally insert data into DB. The class name is crud and here is the method: public function dbInsert($table, $values) {

Re: [PHP] Doubts concerning a general Insert method

2009-07-13 Thread Stuart
2009/7/13 MEM : > Hello, I'm trying to understand a general CRUD class that I've seen here: > http://www.phpro.org/classes/PDO-CRUD.html > > I'm learning PHP and I have some doubts on this method to generally insert > data into DB. The class name is crud and here is the method: > > public function

Re: [PHP] MySql Injection advice

2009-07-13 Thread Haig Dedeyan
On July 12, 2009 03:34:49 pm Haig Dedeyan wrote: > On Sat, 11 Jul 2009 21:26:36 -0400, Haig Dedeyan wrote: > >> On Sun, Jul 12, 2009 at 4:09 AM, Haig Dedeyan wrote: > >>> mysql_query("INSERT INTO phonedir > >>> (fname, lname) VALUES('$new_fname','$new_lname')") > >>> or die(mysql_error()); > > >

Re: [PHP] MySql Injection advice

2009-07-13 Thread Haig Dedeyan
On July 12, 2009 08:52:56 am Haig Dedeyan wrote: > At 6:39 PM -0400 7/11/09, Haig Dedeyan wrote: > > [1] > > >mysql_query("INSERT INTO phonedir > >(fname, lname) VALUES('$new_fname','$new_lname')") > >or die(mysql_error()); > > > >or > > [2] > > >mysql_query("INSERT INTO phonedir > >(fname, lname)

Re: [PHP] MySql Injection advice

2009-07-13 Thread tedd
At 8:50 PM +0530 7/12/09, Zareef Ahmed wrote: On Sun, Jul 12, 2009 at 8:42 PM, tedd <tedd.sperl...@gmail.com> wrote: As with all communication, it's better to be clear than obtuse. Agree, but I believe "obtuse" word meaning is contextual and depends :) The wo

RE: [PHP] Establishing PHP Session From a Different Host

2009-07-13 Thread Bob McConnell
From: Daniel Kolbo > Daniel Brown wrote: >> On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: >>> Hello, >>> >>> How does one continue a php session on a different domain (domain B) >>> than the domain (domain A) that started the session? >> >> Simple answer: you don't. >> > > Thanks for th

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-13 Thread Ashley Sheridan
On Monday 13 July 2009 14:15:18 Bob McConnell wrote: > From: Daniel Kolbo > > > Daniel Brown wrote: > >> On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: > >>> Hello, > >>> > >>> How does one continue a php session on a different domain (domain B) > >>> than the domain (domain A) that started the

Re: [PHP] MySql Injection advice

2009-07-13 Thread tedd
At 3:53 PM -0400 7/12/09, Paul M Foster wrote: On Sun, Jul 12, 2009 at 09:07:45AM -0400, tedd wrote: As for prepared statements, I'm no authority on them, but from what I've read they are not going to be something I'll be practicing anytime soon. Aside from Stuart's comments about slown

Re: [PHP] MySql Injection advice

2009-07-13 Thread Ashley Sheridan
On Monday 13 July 2009 14:31:09 tedd wrote: > At 3:53 PM -0400 7/12/09, Paul M Foster wrote: > >On Sun, Jul 12, 2009 at 09:07:45AM -0400, tedd wrote: > > > > > > > >> As for prepared statements, I'm no authority on them, but from what > >> I've read they are not going to be something I'll be prac

Re: [PHP] PHP/mysql equivalent of PEAR's tableInfo()??

2009-07-13 Thread Govinda
I have this code: $db_billing=mysqli_connect(localhost,metheuser,mypass,billing); if (mysqli_connect_error()) { die("Can't connect: " . mysqli_connect_error()); } mysqli //$dbname = 'billing'; $sql = "SHOW TABLES"; $result = mysql_query($sql); // line 53

Re: [PHP] Establishing PHP Session From a Different Host

2009-07-13 Thread Andrew Ballard
On Mon, Jul 13, 2009 at 9:15 AM, Bob McConnell wrote: > From: Daniel Kolbo >> Daniel Brown wrote: >>> On Sun, Jul 12, 2009 at 12:37, Daniel Kolbo wrote: Hello, How does one continue a php session on a different domain (domain B) than the domain (domain A) that started the sessio

RE: [PHP] Doubts concerning a general Insert method

2009-07-13 Thread MEM
> $values[0] will give you the first element of $values, namely > array('animal_name'=>'bruce', 'animal_type'=>'dingo'). > > array_keys will return an array containing the keys from the > passed array, so in this case you'll get array('animal_name', > 'animal_type'). > So... since $value

Re: [PHP] Doubts concerning a general Insert method

2009-07-13 Thread Stuart
2009/7/13 MEM : > >>     $values[0] will give you the first element of $values, namely >> array('animal_name'=>'bruce', 'animal_type'=>'dingo'). >> >>     array_keys will return an array containing the keys from the >> passed array, so in this case you'll get array('animal_name', >> 'animal_type').

Re: [PHP] Re: RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-13 Thread pan
Per Jessen wrote: > pan wrote: > >> Urgh ! What do I tell them? > > How about what you started with here: > > "The information and support of php on windows is not as good." > Overcoming resistance to open source software that runs on windows is easy. Overcoming the belief that "it's a windows worl

Re: [PHP] RFC/Survey for Our Newer Folks (Including Lurkers)

2009-07-13 Thread Martin Scotta
That's exactly how I "inlist" here. I usually follow threads and even sometime reply I've here about 90 days (I suppose) The list is really interesting, but I was expecting more "ninja" threads. I know this list is wide open to anyone, ninja or newby, but I was expecting more. Anyway I'm really

RE: [PHP] Doubts concerning a general Insert method

2009-07-13 Thread MEM
Nice. :-) Thanks a lot Stuart for your time and explanations. Now that I have understand, I will try to move on, and understand how can we introduce bindParams on it: For a recall, here is the original class: > public function dbInsert($table, $values) { > >$this->conn(); > >$fi

RE: [PHP] open source event calendar

2009-07-13 Thread Joey
Hello, I am looking to create a web event calendar for a company, I believe google is more indidual calendar based, right? I have also seen the others recommended here, but looking for something a little cleaner, any suggestions? Thanks! From: kranthi [mailto:kranthi...@gmail.com

RE: [PHP] PHP not running properly

2009-07-13 Thread Togrul Mamedbekov
We are running, Windows Server 2003. 1. Changed that 2. Togrul Mamedbekov Marketing & Publishing Assistant (Tel: +1-(713)-292-1945 / Fax: +1-(713)-292-1946 http://www.iadc.org _ From: Zareef Ahmed [mailto:zareef.ah...@gmail.com] Sent: Friday, July 10, 2009

Re: [PHP] PHP not running properly

2009-07-13 Thread Jonathan Tapicer
2. Try On Mon, Jul 13, 2009 at 3:47 PM, Togrul Mamedbekov wrote: > We are running, Windows Server 2003. > > 1. Changed that > 2. > > Togrul Mamedbekov > Marketing & Publishing Assistant > (Tel: +1-(713)-292-1945 / Fax: +1-(713)-292-1946 > http://www.iadc.org > > >  _ >

Re: [PHP] PHP not running properly

2009-07-13 Thread Ashley Sheridan
On Mon, 2009-07-13 at 15:50 -0300, Jonathan Tapicer wrote: > 2. Try > > On Mon, Jul 13, 2009 at 3:47 PM, Togrul > Mamedbekov wrote: > > We are running, Windows Server 2003. > > > > 1. Changed that > > 2. > > > > Togrul Mamedbekov > > Marketing & Publishing Assistant > > (Tel: +1-(713)-292-1945 /

RE: [PHP] PHP not running properly

2009-07-13 Thread Togrul Mamedbekov
Working now :) Thanks! Togrul Mamedbekov Marketing & Publishing Assistant (Tel: +1-(713)-292-1945 / Fax: +1-(713)-292-1946 http://www.iadc.org -Original Message- From: Jonathan Tapicer [mailto:tapi...@gmail.com] Sent: Monday, July 13, 2009 13:51 To: Togrul Mamedbekov Cc: Zareef Ahmed;

Re: [PHP] MySql Injection advice

2009-07-13 Thread Haig Dedeyan
On July 13, 2009 09:48:54 am Haig Dedeyan wrote: > On Monday 13 July 2009 14:31:09 tedd wrote: > > At 3:53 PM -0400 7/12/09, Paul M Foster wrote: > > >On Sun, Jul 12, 2009 at 09:07:45AM -0400, tedd wrote: > > > > > > > > > > > >> As for prepared statements, I'm no authority on them, but from what

Re: [PHP] MySql Injection advice

2009-07-13 Thread Bastien Koert
On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyan wrote: > On July 13, 2009 09:48:54 am Haig Dedeyan wrote: >> On Monday 13 July 2009 14:31:09 tedd wrote: >> > At 3:53 PM -0400 7/12/09, Paul M Foster wrote: >> > >On Sun, Jul 12, 2009 at 09:07:45AM -0400, tedd wrote: >> > > >> > > >> > > >> > >>  As for

Re: [PHP] MySql Injection advice

2009-07-13 Thread Ashley Sheridan
On Mon, 2009-07-13 at 16:30 -0400, Bastien Koert wrote: > On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyan wrote: > > On July 13, 2009 09:48:54 am Haig Dedeyan wrote: > >> On Monday 13 July 2009 14:31:09 tedd wrote: > >> > At 3:53 PM -0400 7/12/09, Paul M Foster wrote: > >> > >On Sun, Jul 12, 2009 at

Re: [PHP] MySql Injection advice

2009-07-13 Thread Bastien Koert
On Mon, Jul 13, 2009 at 5:52 PM, Ashley Sheridan wrote: > On Mon, 2009-07-13 at 16:30 -0400, Bastien Koert wrote: >> On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyan wrote: >> > On July 13, 2009 09:48:54 am Haig Dedeyan wrote: >> >> On Monday 13 July 2009 14:31:09 tedd wrote: >> >> > At 3:53 PM -0400

Re: [PHP] MySql Injection advice

2009-07-13 Thread Michael A. Peters
tedd wrote: At 3:53 PM -0400 7/12/09, Paul M Foster wrote: On Sun, Jul 12, 2009 at 09:07:45AM -0400, tedd wrote: As for prepared statements, I'm no authority on them, but from what I've read they are not going to be something I'll be practicing anytime soon. Aside from Stuart's comment

[PHP] mod primary key field - newbie question

2009-07-13 Thread c...@hosting4days.com
newbie question ... I have a MySQL table where I want to update (renumber) the primary numeric key field. - I successfully turned field off as a primary key index and UN auto incremented it - then created new sequential numbers for it - then turned back on primary key index and re added auto

Re: [PHP] mod primary key field - newbie question

2009-07-13 Thread Floyd Resler
Sounds like you want to set the auto increment. To do that, use this query: alter table `table_name` auto_increment 1; That will reset it to one. Although I've never tried it, I assume you can give it another value. Take care, Floyd On Jul 13, 2009, at 5:35 PM, c...@hosting4days.com wrot

[PHP] FW: accidentally chown -R mysql /var/lib, so wrote a script to "fix" them

2009-07-13 Thread Daevid Vincent
Figured I'd throw this into the intertubes so it's archived and maybe useful for someone else, since I couldn't find a script that did this already... -Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: Monday, July 13, 2009 4:06 PM To: 'sv...@lists.svlug.org' Subjec

Re: [PHP] mod primary key field - newbie question

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 17:35, c...@hosting4days.com wrote: > newbie question ... I have a MySQL table where I want to update (renumber) > the primary numeric key field. The response you received from Floyd was accurate, but next time, please keep these kinds of questions on the appropriate li

[PHP] How to create Data Auto-Filters using PEAR Spreadsheet Writer ?

2009-07-13 Thread Ali, Saqib
Hello All, Is there a way to create Data Auto-Filters using PEAR's Spreadsheet Writer? Thanks saqib http://www.capital-punishment.us -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Launch Windows Program from PHP

2009-07-13 Thread Matt Neimeyer
I'm probably just not Googling right... Short version: How can I launch a program for the current user sitting in front of a windows web server? Longer version: I've written a PHP app to migrate data from the FoxPro version of our product to the upcoming MySQL version. I have a self contained setu

RE: [PHP] mod primary key field - newbie question

2009-07-13 Thread Marc Christopher Hall
; Cool @ hosting4days . com > [db-lists 09] > > > "alter table `table_name` auto_increment 1;" Correct you can give it any value you wish it to start FROM. ie if you pass 51 as the value then the next will be Auto increment value will be 52 ______ Information from ESET Smart Security,

Re: [PHP] MySql Injection advice

2009-07-13 Thread Andrew Ballard
On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyan wrote: > for the phone #'s, I'm using int as the data type & storing each part of the > phone # in its own cell, > > When it gets displayed, I add a dash in between each part of the phone #'s > (country code-area code-1st set of digits-last set of digit

Re: [PHP] MySql Injection advice

2009-07-13 Thread Eddie Drapkin
Things I have used prepared statements for: 1. SELECT 2. UPDATE 3. INSERT 4. DELETE 5. Stored procedures Things I am aware of that prepared statements are not capable of doing: What have you read that prepared statements can't do? I've not heard of anything, nor have I encountered anything, myse

[PHP] MySQL Queries in PHP

2009-07-13 Thread Tom Chubb
Hi List, Just wanted to pick your brains please? I'm trying to standardise on the way I query databases and move away from the Dreamweaver built-in functions (which I know you all hate!) ;) I've been on this list for about 5 years now and I don't think I've ever heard anyone mention the Pear packag

Re: [PHP] MySQL Queries in PHP

2009-07-13 Thread Eddie Drapkin
On Tue, Jul 14, 2009 at 2:29 AM, Tom Chubb wrote: > Hi List, > Just wanted to pick your brains please? > I'm trying to standardise on the way I query databases and move away from > the Dreamweaver built-in functions (which I know you all hate!) ;) > I've been on this list for about 5 years now and

Re: [PHP] MySql Injection advice

2009-07-13 Thread Ashley Sheridan
On Tue, 2009-07-14 at 01:52 -0400, Andrew Ballard wrote: > On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyan wrote: > > for the phone #'s, I'm using int as the data type & storing each part of the > > phone # in its own cell, > > > > When it gets displayed, I add a dash in between each part of the phon