Re: [PHP] Import symbol table into function' scope.

2011-06-15 Thread David Harkness
2011/6/15 Дмитрий Степанов > So I wonder if there is any way to import scope (symbol table) into the > method DBReader::readSomething()? > Since you're using call_user_func_array() to call your internal methods already (just to expose protected methods publicly?), you could add $DB as a paramete

[PHP] Import symbol table into function' scope.

2011-06-15 Thread Дмитрий Степанов
Hello, everybody. Consider the following code: class DB { public function query( $sql) { // ... some "magic" of DB querying } } class DBReader { public $DB;// instance of DB public function __call( $methodName, $args) { return call_user_func_array( array( $this, $methodName), $args); } protected

Re: [PHP] Import files from directory

2009-01-06 Thread clive
Merlin Morgenstern wrote: Has anybody an idea on how to do this? Thank you for any hint. I searched for this in google "linux watch for new files" and found this: http://www.linux.com/feature/150200 Clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] Import files from directory

2009-01-05 Thread Daevid Vincent
On Tue, 2009-01-06 at 01:01 +0100, Merlin Morgenstern wrote: > Hi everybody, > > I am running a real estate portal and would like to allow users to > upload their listing from their existing software. They do this with a > XML file which they will upload on a ftp server that places this xml >

[PHP] Import files from directory

2009-01-05 Thread Merlin Morgenstern
Hi everybody, I am running a real estate portal and would like to allow users to upload their listing from their existing software. They do this with a XML file which they will upload on a ftp server that places this xml file into a seperate directory on the file system. My basic idea was to

RE: [PHP] import XLS sheet into DB

2008-08-16 Thread Simcha
ues(".$row.")"); } ?> -Original Message- From: Jason Pruim [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 12:29 PM To: Alain R. Cc: php-general@lists.php.net Subject: Re: [PHP] import XLS sheet into DB On Aug 15, 2008, at 4:29 AM, Alain R. wrote: >

RE: [PHP] import XLS sheet into DB

2008-08-15 Thread Boyd, Todd M.
> -Original Message- > From: Alain R. [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 3:30 AM > To: php-general@lists.php.net > Subject: [PHP] import XLS sheet into DB > > Hi, > > I would like to import content of an XLS sheet into a PostgreSQL DB &

Re: [PHP] import XLS sheet into DB

2008-08-15 Thread Jason Pruim
On Aug 15, 2008, at 4:29 AM, Alain R. wrote: Hi, I would like to import content of an XLS sheet into a PostgreSQL DB (table). How can i do that ? thanks a lot, A. Alain, I haven't done it with PostgreSQL... But assuming it's not far from MySQL just save the excel file as a csv, or a

Re: [PHP] import XLS sheet into DB

2008-08-15 Thread Mario Guenterberg
On Fri, Aug 15, 2008 at 10:29:40AM +0200, Alain R. wrote: > Hi, > > I would like to import content of an XLS sheet into a PostgreSQL DB (table). > > How can i do that ? Your question is not php related ;-) Maybe, export the sheet as comma separated csv file and import it to postgresql. Happy cod

[PHP] import XLS sheet into DB

2008-08-15 Thread Alain R.
Hi, I would like to import content of an XLS sheet into a PostgreSQL DB (table). How can i do that ? thanks a lot, A. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Import contacts from GMX and Web.de with PHP

2007-11-27 Thread Merlin Morgenstern
Hi there, I would to provide the users of an internet community I am running the oportunity to import their adress books. As this seems to be a more complex script and others might have done it before, I am searching for a script that does that. I already found one that can do this for hotmai

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Richard Lynch
On Fri, August 10, 2007 8:04 am, Alain Roger wrote: > So now i know how to import the content of the CSV file to database, > however, before to import to database i do a simple test. > in fact, i display in my browser all content of my CSV file. > > unfortunately, not all characters are displayed c

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Zoltán Németh
2007. 08. 10, péntek keltezéssel 15.04-kor Alain Roger ezt írta: > Hi, > > So now i know how to import the content of the CSV file to database, > however, before to import to database i do a simple test. > in fact, i display in my browser all content of my CSV file. > > unfortunately, not all cha

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Alain Roger
i change the UTF-8 by windows-1250 and it works well. But what will happen if after i use UTF-8 in the rest of this PHP page ? everytime some characters will not be correctly displayed... moreover my database is in UTF-8. So i must expect some issue during copy data from CSv to database, no ?

Re: [PHP] Import XLS file with UTF-8

2007-08-10 Thread Stut
Alain Roger wrote: Hi, So now i know how to import the content of the CSV file to database, however, before to import to database i do a simple test. in fact, i display in my browser all content of my CSV file. unfortunately, not all characters are displayed correctly. in PHP page include but

[PHP] Import XLS file with UTF-8

2007-08-10 Thread Alain Roger
Hi, So now i know how to import the content of the CSV file to database, however, before to import to database i do a simple test. in fact, i display in my browser all content of my CSV file. unfortunately, not all characters are displayed correctly. in PHP page include but it does not help to d

Re: [PHP] import Excel file into PostgreSQL

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 12:37 am, Alain Roger wrote: > I would like to know the best and fastest way how to import some > colums > contents from Excel file to PostgreSQL database. > how can i do that ? > > I mean some columns of Excel should be imported into a particular > table and > some others in

Re: [PHP] import Excel file into PostgreSQL

2007-08-06 Thread Chris
Alain Roger wrote: HI, I would like to know the best and fastest way how to import some colums contents from Excel file to PostgreSQL database. how can i do that ? I mean some columns of Excel should be imported into a particular table and some others into another table. If it's a proper exce

[PHP] import Excel file into PostgreSQL

2007-08-06 Thread Alain Roger
HI, I would like to know the best and fastest way how to import some colums contents from Excel file to PostgreSQL database. how can i do that ? I mean some columns of Excel should be imported into a particular table and some others into another table. thanks for any suggestion. -- Alain -

Re: [PHP] import spreadsheet

2007-07-30 Thread Angelo Zanetti
Richard Lynch wrote: On Fri, July 27, 2007 4:01 am, Angelo Zanetti wrote: Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table t

Re: [PHP] import spreadsheet

2007-07-27 Thread Richard Lynch
On Fri, July 27, 2007 4:01 am, Angelo Zanetti wrote: > Does anyone have any resources or links as to how to import a > spreadsheet but it might have different number of columns and many > sheets (those tab things at the bottom). > > What I thought of doing was creating a table that has 10 fields an

RE: [PHP] import spreadsheet

2007-07-27 Thread Jay Blanchard
[snip] Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imported only has 4 fields

Re: [PHP] import spreadsheet

2007-07-27 Thread Chad Robinson
Angelo Zanetti wrote: Hi guys Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imp

[PHP] import spreadsheet

2007-07-27 Thread Angelo Zanetti
Hi guys Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imported only has 4 f

Re: [PHP] import dbf files

2007-05-12 Thread Richard Lynch
On Fri, May 11, 2007 8:23 am, Bosky, Dave wrote: > My goal is to be able to import dbf files into MySQL on a nightly > basis. > > Can I enable dbase support by uncomment the dbase extension entry in > the > php.ini file or is there more to it? On Windows, assuming you have the dbase DLL matching y

Re: [PHP] import dbf files

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 09:23 -0400, Bosky, Dave wrote: > My goal is to be able to import dbf files into MySQL on a nightly basis. > > Can I enable dbase support by uncomment the dbase extension entry in the > php.ini file or is there more to it? Check the output generated by the phpinfo() functio

[PHP] import dbf files

2007-05-11 Thread Bosky, Dave
My goal is to be able to import dbf files into MySQL on a nightly basis. Can I enable dbase support by uncomment the dbase extension entry in the php.ini file or is there more to it? Are there any working examples available that read and import dbf files? Thanks, Dave **

[PHP] Import data from textfile

2004-01-06 Thread Pushpinder Singh
Hello All, I am trying to import data into MySQL DB using a CSV file (using phpMyAdmin as the DB Admin tool). I keep getting the following error. SQL-query : LOAD DATA LOCAL INFILE '/tmp/phpYRmG0A' INTO TABLE `contacts` FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'( `company` , `firs

RE: [PHP] @import

2003-06-28 Thread Brian V Bonini
eif K-Brooks > Cc: PHP Lists > Subject: Re: [PHP] @import > > > On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > > Brian V Bonini wrote: > > > > >Can anyone make this work with Mozilla? > > > > > > > > >@import url("site.css

RE: [PHP] @import

2003-06-27 Thread electroteque
why php ? why not just use a .css file like everyone else ? -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED] Sent: Saturday, June 28, 2003 11:02 AM To: Leif K-Brooks Cc: PHP Lists Subject: Re: [PHP] @import On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > Bria

Re: [PHP] @import

2003-06-27 Thread Brian V Bonini
On Fri, 2003-06-27 at 21:02, Brian V Bonini wrote: > On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > > Brian V Bonini wrote: > > > > >Can anyone make this work with Mozilla? > > > > > > > > >@import url("site.css.php"); > > > > > > > > >No matter what I try , header("Content-type: text/css") >

Re: [PHP] @import

2003-06-27 Thread Brian V Bonini
On Fri, 2003-06-27 at 20:21, Leif K-Brooks wrote: > Brian V Bonini wrote: > > >Can anyone make this work with Mozilla? > > > > > >@import url("site.css.php"); > > > > > >No matter what I try , header("Content-type: text/css") > >or ini_set to will not output anything other then text/html > > > > >

Re: [PHP] @import

2003-06-27 Thread Leif K-Brooks
Brian V Bonini wrote: Can anyone make this work with Mozilla? @import url("site.css.php"); No matter what I try , header("Content-type: text/css") or ini_set to will not output anything other then text/html This has nothing to do with PHP. -- The above message is encrypted with double rot13

[PHP] @import

2003-06-27 Thread Brian V Bonini
Can anyone make this work with Mozilla? @import url("site.css.php"); No matter what I try , header("Content-type: text/css") or ini_set to will not output anything other then text/html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Import & Stamp PDF's

2002-09-20 Thread Miles Thompson
Each evening I distribute a newsletter to approx 500 subscribers, and I want to stamp each copy I send with the name, email address and subscriber number of the recipient. I've not done any programmatic PDF manipulation, but could this be done using PDFlib? I receive the newsletter as a PDF fro

Re: [PHP] Import/Export with MS outlook/Outllok Express

2002-05-13 Thread Rasmus Lerdorf
php.net/fgetcsv On 10 May 2002, Amit Singh wrote: > Hi Folks, > Can anybody help me getting a piece of code for processing a > file(csv format) having MS Outlook/Outlook Express addresses. > I want to read the file line by line taking care of possible > multiline entries in any field of the rec

Re: [PHP] Import/Export with MS outlook/Outllok Express

2002-05-13 Thread 1LT John W. Holmes
The manual is your friend...go ahead...give it a try... http://www.php.net/manual/en/function.fgetcsv.php - Original Message - From: "Amit Singh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 10, 2002 6:04 AM Subject: [PHP] Import/Export with MS o

[PHP] Import/Export with MS outlook/Outllok Express

2002-05-13 Thread Amit Singh
Hi Folks, Can anybody help me getting a piece of code for processing a file(csv format) having MS Outlook/Outlook Express addresses. I want to read the file line by line taking care of possible multiline entries in any field of the record. Please help. Regds, Amit ___