php-general Digest 13 Jul 2009 14:04:09 -0000 Issue 6227

2009-07-13 Thread php-general-digest-help
php-general Digest 13 Jul 2009 14:04:09 - Issue 6227 Topics (messages 295303 through 295323): Re: I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc 295303 by: Paul M Foster Re: phpscriptor.com 295304 by: Paul M Foster 295307 by:

php-general Digest 14 Jul 2009 02:53:03 -0000 Issue 6228

2009-07-13 Thread php-general-digest-help
php-general Digest 14 Jul 2009 02:53:03 - Issue 6228 Topics (messages 295324 through 295343): Re: Doubts concerning a general Insert method 295324 by: MEM 295325 by: Stuart 295328 by: MEM Re: RFC/Survey for Our Newer Folks (Including Lurkers) 295326 by: pan

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 Sheridana...@ashleysheridan.co.uk 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

Re: [PHP] php.ini and cli

2009-07-13 Thread Stuart
2009/7/13 Ashley Sheridan a...@ashleysheridan.co.uk: 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

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 Sheridana...@ashleysheridan.co.uk 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

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 a...@ashleysheridan.co.uk: 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

[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 tal...@gmail.com: 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

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 hdede...@videotron.ca 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 mailto:tedd.sperl...@gmail.comtedd.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 word

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 Kolbokolb0...@umn.edu 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 the

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 Kolbokolb0...@umn.edu 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: snip 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

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: snip 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

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 McConnellr...@cbord.com wrote: From: Daniel Kolbo Daniel Brown wrote: On Sun, Jul 12, 2009 at 12:37, Daniel Kolbokolb0...@umn.edu wrote: Hello, How does one continue a php session on a different domain (domain B) than the domain (domain A) that started

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 is an

Re: [PHP] Doubts concerning a general Insert method

2009-07-13 Thread Stuart
2009/7/13 MEM tal...@gmail.com:     $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',

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 world is more

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();

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

RE: [PHP] PHP not running properly

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

Re: [PHP] PHP not running properly

2009-07-13 Thread Jonathan Tapicer
2. Try ?php phpinfo(); ? On Mon, Jul 13, 2009 at 3:47 PM, Togrul Mamedbekovtogrul.mamedbe...@iadc.org wrote: We are running, Windows Server 2003. 1. Changed that 2. ?phpinfo();? Togrul Mamedbekov Marketing Publishing Assistant (Tel: +1-(713)-292-1945 / Fax: +1-(713)-292-1946

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 ?php phpinfo(); ? On Mon, Jul 13, 2009 at 3:47 PM, Togrul Mamedbekovtogrul.mamedbe...@iadc.org wrote: We are running, Windows Server 2003. 1. Changed that 2. ?phpinfo();? Togrul Mamedbekov Marketing Publishing

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: snip As for prepared statements, I'm no authority on them, but from what I've read

Re: [PHP] MySql Injection advice

2009-07-13 Thread Bastien Koert
On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyanhdede...@videotron.ca 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: snip  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 Dedeyanhdede...@videotron.ca 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,

Re: [PHP] MySql Injection advice

2009-07-13 Thread Bastien Koert
On Mon, Jul 13, 2009 at 5:52 PM, Ashley Sheridana...@ashleysheridan.co.uk wrote: On Mon, 2009-07-13 at 16:30 -0400, Bastien Koert wrote: On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyanhdede...@videotron.ca wrote: On July 13, 2009 09:48:54 am Haig Dedeyan wrote: On Monday 13 July 2009 14:31:09

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: snip 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

[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

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

[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'

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

2009-07-13 Thread Daniel Brown
On Mon, Jul 13, 2009 at 17:35, c...@hosting4days.comc...@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

[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

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

2009-07-13 Thread Marc Christopher Hall
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, version of virus signature database 4240 (20090713) __ The message was checked by ESET Smart Security. http

Re: [PHP] MySql Injection advice

2009-07-13 Thread Andrew Ballard
On Mon, Jul 13, 2009 at 4:18 PM, Haig Dedeyanhdede...@videotron.ca 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