Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-08 Thread ioan...@btinternet.com
There are essentially 2 ways: 1. All POSTed data is present in the $_POST superglobal array. So you could just loop over that, ignore the fields you already knew were there, and the data remaining is then essentially the data you seek. The keys in the $_POST array are the fieldnames you are

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-06 Thread Maciek Sokolewicz
On 06-06-2012 05:11, Jim Giner wrote: Govindagovinda.webdnat...@gmail.com wrote in message news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com... On 2012-06-05, at 10:54 PM, Devangnp wrote: I know how to pass variable but having difficulties when I use the dynamic form field in HTML that add

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-06 Thread Jim Giner
Maciek Sokolewicz maciek.sokolew...@gmail.com wrote in message news:4fcf23af.7040...@php.net... On 06-06-2012 05:11, Jim Giner wrote: Govindagovinda.webdnat...@gmail.com wrote in message news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com... On 2012-06-05, at 10:54 PM, Devangnp wrote: I

[PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Devang Patel
Hi All, I am a basic user of PHP and I have need of reading the dynamic HTML form field as a variable in PHP so it will be great if someone can share some good link or snip for quick understanding. Thanks, Devang

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Govinda
Hi All, I am a basic user of PHP and I have need of reading the dynamic HTML form field as a variable in PHP so it will be great if someone can share some good link or snip for quick understanding. Thanks, Devang http://lmgtfy.com/?q=how+to+pass+and+receive+a+PHP+variable When just

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Govinda
On 2012-06-05, at 10:54 PM, Devangnp wrote: I know how to pass variable but having difficulties when I use the dynamic form field in HTML that add more boxes as per user require. Hi All, I am a basic user of PHP and I have need of reading the dynamic HTML form field as a variable in

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Jim Giner
Govinda govinda.webdnat...@gmail.com wrote in message news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com... On 2012-06-05, at 10:54 PM, Devangnp wrote: I know how to pass variable but having difficulties when I use the dynamic form field in HTML that add more boxes as per user require.

[PHP] read smb drive

2010-11-05 Thread Steve Staples
Hey guys (and gals) I am writing something that needs to connect to a SMB server... can this be done easliy? I copied a sample code from php.net that used the system() command and mounted the SMB to a /mnt/tmp partion, and technically, it works the problem is, is that mount has to be run as

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples sstap...@mnsi.net wrote: Hey guys (and gals) I am writing something that needs to connect to a SMB server... can this be done easliy? I copied a sample code from php.net that used the system() command and mounted the SMB to a /mnt/tmp partion,

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples sstap...@mnsi.net wrote: Hey guys (and gals) I am writing something that needs to connect to a SMB server... can this be done easliy? I copied a sample code from php.net that used

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples sstap...@mnsi.net wrote: Hey guys (and gals) I am writing something that needs to connect to a SMB server...

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples sstap...@mnsi.net wrote: Hey guys (and gals)

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:43, Richard Quadling rquadl...@gmail.com wrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling rquadl...@gmail.comwrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5,

Re: [PHP] read smb drive

2010-11-05 Thread Alexandr
Nathan Nobbe пишет: On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling rquadl...@gmail.comwrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples sstap...@mnsi.net wrote: On Fri, 2010-11-05 at 10:06 -0600,

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 11:01 AM, Alexandr verbitsky_alexa...@mail.bywrote: Nathan Nobbe пишет: On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 November 2010 16:30, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve

Re: [PHP] read smb drive

2010-11-05 Thread Steve Staples
On Fri, 2010-11-05 at 11:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 11:01 AM, Alexandr verbitsky_alexa...@mail.bywrote: Nathan Nobbe пишет: On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 November 2010 16:30, Nathan Nobbe

Re: [PHP] read smb drive

2010-11-05 Thread Alexander Holodny
Small and maybe useless note about privileges required to exec 'mount' command via php's system(): root is not required if 'user' option exists in /etc/fstab. It is true because mount cmd has always root privileges due to suexec bit and it decides whether calling user is authorized to mount

[PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I do this? --- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [Email]

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Ashley Sheridan
On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I do this? --- Rahul

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Kenneth Sande
Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:56 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:07 AM, Kenneth Sande wrote: Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav,

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Bastien Koert
On Wed, Jan 13, 2010 at 10:50 AM, Rahul S. Johari sleepwal...@rahulsjohari.com wrote: On Jan 13, 2010, at 10:40 AM, Rahul S. Johari wrote: On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Shawn McKenzie
Kenneth Sande wrote: I use the glob function in my little homemade web cam page, which can really swell up in memory when used against a large amount of files (in my case around 30k files). +1 for glob() -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List

Re: [PHP] [php] read/write error

2009-06-12 Thread HELP!
I can not get the stream_get_contents() to work. it's returning empty. If you have a login details ALOGINPASS 1A cant you just fwrite($ft, ALOGINPASS 1A); or do you need to add other things what is the meaning of this string GET / HTTP/1.0\r\nHost: www.example.com\r\nAccept

Re: [PHP] [php] read/write error

2009-06-12 Thread Robin Vickery
Hello Mr HELP! 2009/6/12 HELP! izod...@gmail.com I can not get the stream_get_contents() to work.  it's returning empty. Is that simply because there's nothing to read from the socket? If you have a login details ALOGINPASS 1A cant you just fwrite($ft, ALOGINPASS 1A); or do you need to add

Re: [PHP] [php] read/write error

2009-06-10 Thread Robin Vickery
2009/6/8 HELP! izod...@gmail.com opening of the sorket is ok and writting LOGIN packet to the sorket is also ok but reading the response to know if the login is accepted or rejected is a not OK. Don't use fread() to read from sockets, use stream_get_contents(). Example 3 on the fread()

[PHP] [php] read/write error

2009-06-08 Thread HELP!
opening of the sorket is ok and writting LOGIN packet to the sorket is also ok but reading the response to know if the login is accepted or rejected is a not OK. please help $port =xx; $ip =xx.xx.xxx; $timeout = 30; $start =L; $Login = user ; $Password =pass ; $session = ;

Re: [PHP] read the last line in a file?

2009-05-17 Thread Per Jessen
Tom Worster wrote: 1) the inotify interface will alert you when a file or directory changes. do you mean the pecl inotify extension? Not specifically, but if that's how inotify is available in PHP, then yes. that would eliminate the polling and the associated lag. but the php manual

Re: [PHP] read the last line in a file?

2009-05-17 Thread Michael A. Peters
Tom Worster wrote: do you mean the pecl inotify extension? that would eliminate the polling and the associated lag. but the php manual says it requires linux. Yup - and it's kernel, so I don't think it could easily be ported to OS X. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] read the last line in a file?

2009-05-16 Thread Per Jessen
Tom Worster wrote: imagine writing a script to run as a daemon reading data off the bottom of a log file that gets updated every few minutes and processing each new log line as they arrive. i could exec(tail $logfile, $lines, $status) every now and then. or poll the file mtime and run

Re: [PHP] read the last line in a file?

2009-05-16 Thread Tom Worster
On 5/16/09 3:55 AM, Per Jessen p...@computer.org wrote: Tom Worster wrote: imagine writing a script to run as a daemon reading data off the bottom of a log file that gets updated every few minutes and processing each new log line as they arrive. i could exec(tail $logfile, $lines,

[PHP] read the last line in a file?

2009-05-15 Thread Tom Worster
imagine writing a script to run as a daemon reading data off the bottom of a log file that gets updated every few minutes and processing each new log line as they arrive. i could exec(tail $logfile, $lines, $status) every now and then. or poll the file mtime and run exec(tail $logfile, $lines,

AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Andrei Bintintan
Any other ideas? Von: Bastien Koert [mailto:phps...@gmail.com] Gesendet: 20 March 2009 15:49 An: Andrei Bintintan Cc: php-general@lists.php.net Betreff: Re: [PHP] Read Text Content from PDF file On Fri, Mar 20, 2009 at 10:23 AM, Andrei Bintintan fo...@interpid.eu wrote: Could you

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Michael A. Peters
Andrei Bintintan wrote: Any other ideas? I believe there is a windows binary called pdf2txt.exe out there somewhere. I doubt you will find any solution that does not require installation of a binary on the server, so if you can't install xpdf on the server then you probably will have to

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Michael A. Peters
Andrei Bintintan wrote: Any other ideas? Also - I believe the commercial (full) version of PDFlib can - in fact, I believe you can do it with the pecl-pdflib library if you have the full version of pdflib installed. I seem to remember there work on a clibpdf php wrapper back when php 4

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 3:16 AM, Michael A. Peters mpet...@mac.com wrote: Andrei Bintintan wrote: Any other ideas? Also - I believe the commercial (full) version of PDFlib can - in fact, I believe you can do it with the pecl-pdflib library if you have the full version of pdflib installed.

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Michael A. Peters
haliphax wrote: On Mon, Mar 30, 2009 at 3:16 AM, Michael A. Peters mpet...@mac.com wrote: Andrei Bintintan wrote: Any other ideas? Also - I believe the commercial (full) version of PDFlib can - in fact, I believe you can do it with the pecl-pdflib library if you have the full version of

Re: [PHP] Read Text Content from PDF file

2009-03-20 Thread Bastien Koert
On Fri, Mar 20, 2009 at 9:48 AM, Andrei Bintintan fo...@interpid.eu wrote: Hi to all, I have to read the texts from PDF documents with PHP. A solution would be to use http://www.foolabs.com/xpdf, but it is not installed on the server that I work with and it is not wanted to be installed.

[PHP] Read Text Content from PDF file

2009-03-20 Thread Andrei Bintintan
Hi to all, I have to read the texts from PDF documents with PHP. A solution would be to use http://www.foolabs.com/xpdf, but it is not installed on the server that I work with and it is not wanted to be installed. So I have to look for another solution. Is there a possibility, PHP

AW: [PHP] Read Text Content from PDF file

2009-03-20 Thread Andrei Bintintan
Could you be more precise? I'm looking at that class, but I can't see any function that does that. Andy. Von: Bastien Koert [mailto:phps...@gmail.com] Gesendet: 20 March 2009 14:57 An: Andrei Bintintan Cc: php-general@lists.php.net Betreff: Re: [PHP] Read Text Content from PDF file

Re: [PHP] Read Text Content from PDF file

2009-03-20 Thread Bastien Koert
*Cc:* php-general@lists.php.net *Betreff:* Re: [PHP] Read Text Content from PDF file On Fri, Mar 20, 2009 at 9:48 AM, Andrei Bintintan fo...@interpid.eu wrote: Hi to all, I have to read the texts from PDF documents with PHP. A solution would be to use http://www.foolabs.com/xpdf

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Carlos Medina
Phpster schrieb: On Feb 6, 2009, at 9:12, Jônatas Zechim zechim@gmail.com wrote: Hi there, i want do read a XML like this: Server.php ?php header (content-type: text/xml); echo ?xml version=\1.0\ encoding=\iso-5718\ ? images image ID1/ID albumtestealbum

[PHP] Read a XML (not a file)

2009-02-06 Thread Jônatas Zechim
Hi there, i want do read a XML like this: Server.php ?php header (content-type: text/xml); echo ?xml version=\1.0\ encoding=\iso-5718\ ? images image ID1/ID albumtestealbum path/images/teste.jpg/path /image /images; ? How can do this? zechim -- PHP General Mailing List

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Phpster
On Feb 6, 2009, at 9:12, Jônatas Zechim zechim@gmail.com wrote: Hi there, i want do read a XML like this: Server.php ?php header (content-type: text/xml); echo ?xml version=\1.0\ encoding=\iso-5718\ ? images image ID1/ID albumtestealbum path/images/teste.jpg/path /image /images;

Re: [PHP] Read a XML (not a file)

2009-02-06 Thread Jim Lucas
Jônatas Zechim wrote: Hi there, i want do read a XML like this: Server.php ?php header (content-type: text/xml); echo ?xml version=\1.0\ encoding=\iso-5718\ ? images image ID1/ID albumtestealbum path/images/teste.jpg/path /image /images; ? How can do this? zechim

RES: [PHP] Read a XML (not a file)

2009-02-06 Thread Jônatas Zechim
an array of the XML that server.php had output. Zechim -Mensagem original- De: Jim Lucas [mailto:li...@cmsws.com] Enviada em: sexta-feira, 6 de fevereiro de 2009 14:39 Para: Jônatas Zechim Cc: php-general@lists.php.net Assunto: Re: [PHP] Read a XML (not a file) Jônatas Zechim wrote: Hi

Re: [PHP] Read Form values prior to submit?

2008-12-28 Thread Thiago H. Pojda
On Sun, Dec 28, 2008 at 12:41 PM, Tim Rude tim_r...@yahoo.com wrote: Using PHP, is there a way for me to read the values that a user has entered into the text fields of a FORM prior to the user clicking the submit button? If the user doesnt press the submit button PHP has no idea what's going

Re: [PHP] Read Form values prior to submit?

2008-12-28 Thread tedd
At 9:41 AM -0600 12/28/08, Tim Rude wrote: Using PHP, is there a way for me to read the values that a user has entered into the text fields of a FORM prior to the user clicking the submit button? Essentially what I want to do is make sure the user has filled in all three text fields on my form

Re: [PHP] Read Form values prior to submit?

2008-12-28 Thread Tim Rude
Thanks! I haven't played with javascript but it looks pretty straight-forward. I appreciate the samples. Tim Rude -- tedd tedd.sperl...@gmail.com wrote in message news:p06240817c57d610ba...@[192.168.1.101]... At 9:41 AM -0600 12/28/08, Tim Rude wrote: Using PHP, is there a way for me to read

Re: [PHP] Read/decode barcodes from an image

2008-12-18 Thread Per Jessen
Adam Randall wrote: I'm amazed that this either doesn't exist, or is hard to find. I basically am looking for a way to read in an image into PHP, or shell out to something on the Linux side, and determine, and see if it has a barcode in it or not. If it does, I need to decode the barcode so

Re: [PHP] Read/decode barcodes from an image

2008-12-18 Thread ceo
AIUI: The barcodes are on faxes and whatnot, with no predictable skew, position, nor orientation. You've tried JOCR/GOCR, and they don't do very well. Here are your options: 1) Shell out the money for that PaperPort OMNI or whatever it is commercial OCR product. It *is* better than

RE: [PHP] Read/decode barcodes from an image

2008-12-18 Thread Boyd, Todd M.
-Original Message- From: c...@l-i-e.com [mailto:c...@l-i-e.com] Sent: Thursday, December 18, 2008 10:06 AM To: php-general@lists.php.net Subject: Re: [PHP] Read/decode barcodes from an image The barcodes are on faxes and whatnot, with no predictable skew, position, nor orientation

RE: [PHP] Read/decode barcodes from an image

2008-12-18 Thread ceo
Certainly if the quality of the input can be improved by using some digital transfer that is not a fax, go for it... I assumed the OP already knew that, but perhaps not. The fax is going to cost you a LOT of accuracy, probably too much to make OCR even viable, really, but it depends on

[PHP] Read/decode barcodes from an image

2008-12-17 Thread Adam Randall
I'm amazed that this either doesn't exist, or is hard to find. I basically am looking for a way to read in an image into PHP, or shell out to something on the Linux side, and determine, and see if it has a barcode in it or not. If it does, I need to decode the barcode so that I can identify the

Re: [PHP] Read/decode barcodes from an image

2008-12-17 Thread Robert Cummings
On Wed, 2008-12-17 at 14:56 -0800, Adam Randall wrote: I'm amazed that this either doesn't exist, or is hard to find. I basically am looking for a way to read in an image into PHP, or shell out to something on the Linux side, and determine, and see if it has a barcode in it or not. If it does,

Re: [PHP] Read/decode barcodes from an image

2008-12-17 Thread Adam Randall
Are you referring to a project, class, or just generally curious about what I'm asking? Barcode reader can be many things, including a scanning wand (not applicable to what I am looking for). On Wed, Dec 17, 2008 at 3:47 PM, Robert Cummings rob...@interjinn.com wrote: On Wed, 2008-12-17 at 14:56

[PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Richard Kurth
I am trying to read a bunch of files that are in many directors into one string But it will only read one file. Every file is a number 134328923 but they all start with 13 They are in 22 directors named 0 to 22 How can I make the script look in each directory and read each file into a string

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Micah Gersten
First, which version of PHP? PHP 5 added a lot of features for reading files. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: I am trying to read a bunch of files that are in many directors into one string But it will only read one

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Richard Kurth
Version 5 First, which version of PHP? PHP 5 added a lot of features for reading files. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: I am trying to read a bunch of files that are in many directors into one string But it will

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Micah Gersten
Try this: $rootPath = '/remote'; $string = ''; foreach (0..22 as $dirNum) { $dir = $rootPath/$dirNum; chdir($dir); $files = glob(13*); foreach ($files as $file) { $string .= file_get_contents($file); } } echo $string; Thank you, Micah Gersten onShore Networks

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Richard Kurth
*I get this when I run it Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on line *4 it does not like the *foreach (0..22 as $dirNum) Try this: $rootPath = '/remote'; $string = ''; foreach (0..22 as $dirNum) { $dir = $rootPath/$dirNum; chdir($dir); $files =

Re: [PHP] read a bunch of files that are in many directors into one string

2008-08-07 Thread Micah Gersten
oops. foreach (range(0..22) as $dirNum) :) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: *I get this when I run it Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on line *4 it does not like the *foreach (0..22 as

Re: [PHP] read a bunch of files that are in many directors into one string -- oops again

2008-08-07 Thread Micah Gersten
foreach (range(0,22) as $dirNum) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: *I get this when I run it Parse error*: syntax error, unexpected T_DNUMBER in *remove.php* on line *4 it does not like the *foreach (0..22 as $dirNum)

Re: [PHP] read a bunch of files that are in many directors into one string -- oops again

2008-08-07 Thread Richard Kurth
*Now I get this error Warning*: chdir() [function.chdir]: No error (errno 0) in *C:\web\easycontactpro\removeemail.php* on line *7* Where can I find what errno 0 means it loops through all the directors but does not process any of the files foreach (range(0,22) as $dirNum) Thank you, Micah

Re: [PHP] read a bunch of files that are in many directors into one string -- oops again

2008-08-07 Thread Micah Gersten
Well, make sure $rootPath is correct for your environment. Also, add a slash after the directory name. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: *Now I get this error Warning*: chdir() [function.chdir]: No error (errno 0) in

Re: [PHP] read a bunch of files that are in many directors into one string -- oops again

2008-08-07 Thread Richard Kurth
I had to add the full path and it works just fine. Thanks Well, make sure $rootPath is correct for your environment. Also, add a slash after the directory name. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Richard Kurth wrote: *Now I get this

[PHP] read xml files with namespaces

2008-05-27 Thread Selwyn Polit
I am writing code to read a bunch of xml files which describe pharmaceutical drugs. They have namespace references at the top of each file that look like this: document xmlns:voc=http://www.hl7.org/v3/voc; xmlns=urn:hl7-org:v3 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

[PHP] read email

2007-12-30 Thread Yui Hiroaki
HI! I am trying to access qmail with php. Why! Because I would like to read mail who someone send an email me to qmail. If anyone knows the code, please send me the code. Regards, Yui

Re: [PHP] read email

2007-12-30 Thread Børge Holen
On Sunday 30 December 2007 21:19:16 Yui Hiroaki wrote: HI! I am trying to access qmail with php. Why! Because I would like to read mail who someone send an email me to qmail. If anyone knows the code, please send me the code. NOW that was straight forward I always thought the easiest

Re: [PHP] read email

2007-12-30 Thread Richard Lynch
On Sun, December 30, 2007 2:19 pm, Yui Hiroaki wrote: HI! I am trying to access qmail with php. Why! Because I would like to read mail who someone send an email me to qmail. If anyone knows the code, please send me the code. http://php.net/imap Sample Code:

[PHP] read post data as a buffer

2007-09-25 Thread David Blanco
Hi! I think that is not possible to read post data as a buffer with php like it´s in perl. If this is true, how do you deal with large file uploads to know the status of the operation at any time? Thanks Greetings from Spain -- David Blanco -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] read post data as a buffer

2007-09-25 Thread Jürgen Wind
You may be looking for this : http://martinjansen.com/2007/04/upload-progress/ David Blanco-3 wrote: Hi! I think that is not possible to read post data as a buffer with php like it´s in perl. If this is true, how do you deal with large file uploads to know the status of the operation

RE: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Sanjeev N
] Sent: Wednesday, September 19, 2007 12:41 AM To: Sanjeev N Cc: php-general@lists.php.net Subject: Re: [PHP] read the main domain cookie in sub domain Sanjeev N wrote: Assume, I have www.domain.com http://www.domain.com/ in which I wrote the functionality for user authentication and his profile

RE: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Sanjeev N
website URL http://webhosting.sanchanworld.com - Choose your best web hosting plan -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 12:46 AM To: Sanjeev N Cc: php-general@lists.php.net Subject: Re: [PHP] read the main domain cookie in sub domain

Re: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Stut
: php-general@lists.php.net Subject: Re: [PHP] read the main domain cookie in sub domain Sanjeev N wrote: Assume, I have www.domain.com http://www.domain.com/ in which I wrote the functionality for user authentication and his profile related functionality. Now, when user logs in using http

[PHP] read the main domain cookie in sub domain

2007-09-18 Thread Sanjeev N
Hi, Assume, I have www.domain.com http://www.domain.com/ in which I wrote the functionality for user authentication and his profile related functionality. Now, when user logs in using http://www.domain.com/users/login.php then after his successful login a session as well as a cookie is

Re: [PHP] read the main domain cookie in sub domain

2007-09-18 Thread Stut
Sanjeev N wrote: Assume, I have www.domain.com http://www.domain.com/ in which I wrote the functionality for user authentication and his profile related functionality. Now, when user logs in using http://www.domain.com/users/login.php then after his successful login a session as well as a

[PHP] read only?

2007-08-23 Thread coolcoder
Is there a simple php way to make a webpage read-only, please? www.coderewind.com Best Place to hunt for Code -- View this message in context: http://www.nabble.com/read-only--tf4316703.html#a12291195 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General

RE: [PHP] read only?

2007-08-23 Thread Chris Boget
Is there a simple php way to make a webpage read-only, please? Webpages are already read only. Well, read only in the browser. There is nothing to prevent the user from saving the page and altering to their hearts content. Did you mean to ask if there was a simple way to make a *form* read

Re: [PHP] read only texbox to html with php

2007-03-23 Thread Richard Lynch
The fact that you are using stripslashes tells me that something is very very very wrong somewhere... For output to the textarea, just htmlentities should be sufficient. Emailing HTML enhanced newsletter will reduce the number of people who actually read the dang thing, you know. On Wed, March

[PHP] read only texbox to html with php

2007-03-21 Thread Ross
I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn't work It is inserted into a variable via a form textarea $mail_text. available on the web site a

Re: [PHP] read only texbox to html with php

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta: I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn't work It is inserted into a variable via a form textarea $mail_text.

Re: [PHP] read only texbox to html with php

2007-03-21 Thread Shafiq Rehman
Please elaborate the question -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/21/07, Ross [EMAIL PROTECTED] wrote: I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn't

RE: [PHP] read only texbox to html with php

2007-03-21 Thread Edward Kay
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta: I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn't work It is inserted into a variable via a form textarea $mail_text.

Re: [PHP] read file local not remote

2007-02-26 Thread Joker7
In news: [EMAIL PROTECTED], Martin Zvarík said: Difference: You don't call file as http://www.myweb.com/ but instead you use the path like c:\some.txt or ../some.txt etc. PHP 5 = echo file_get_contents(some.txt); Works a treat Cheers Chris -- Cheap As Chips Broadband

[PHP] read file local not remote

2007-02-25 Thread Joker7
$url =www.mysite.ru/some.txt; $fa = fopen($url,r); /* $fa = fsockopen(http://mysite.ru;, 80, $num_error, $str_error, 30); if(!$fa) { print Weather is not available: $str_error ($num_error)\n; } else { fputs($fa,GET /some.txt HTTP/1.0\n\n); $answer=fgets($fa,128); I use the above code

Re: [PHP] read file local not remote

2007-02-25 Thread Martin Zvarík
Difference: You don't call file as http://www.myweb.com/ but instead you use the path like c:\some.txt or ../some.txt etc. PHP 5 = echo file_get_contents(some.txt); PHP 4 = $fp = fopen(some.txt, r); echo fread($fp, filesize (some.txt)); fclose($fp); Another solution

[PHP] Read file on file system

2007-02-04 Thread Bagus Nugroho
Hi All, If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try file_get_contents, fgetcsv and etc but didn't work. May I'm mis-understanding about using those function. Thanks in advance Regards, bn

Re: [PHP] Read file on file system

2007-02-04 Thread Stut
Bagus Nugroho wrote: If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try file_get_contents, fgetcsv and etc but didn't work. May I'm mis-understanding about using those function. Well, from examining the code you included in your post, and

Re: [PHP] Read file on file system

2007-02-04 Thread Satyam
] To: php-general@lists.php.net Sent: Sunday, February 04, 2007 2:47 PM Subject: [PHP] Read file on file system Hi All, If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try file_get_contents, fgetcsv and etc but didn't work. May I'm mis-understanding

RE: [PHP] Read file on file system

2007-02-04 Thread Bagus Nugroho
Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Sun 04-Feb-2007 21:14 To: Bagus Nugroho Cc: php-general@lists.php.net Subject: Re: [PHP] Read file on file system Bagus Nugroho wrote: If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try

Re: [PHP] Read file on file system

2007-02-04 Thread Stut
Bagus Nugroho wrote: in simple like this $filename = d:\\test.csv; $openfile = fopen($filename,'r'); $readfile = fread($openfile,filesize($filename); echo $readfile or like this . echo file_get_contents($openfile); . echo fgetcsv($openfile); Try this... ?php

Re: [PHP] Read file on file system

2007-02-04 Thread Stut
Stut wrote: $filenane = d:\\test.csv Oops... $filename = d:\\test.csv; -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read file on file system

2007-02-04 Thread Satyam
file_get_contents takes a file name as an argument, not an opened file handle. - Original Message - From: Bagus Nugroho [EMAIL PROTECTED] To: Stut [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, February 04, 2007 3:45 PM Subject: RE: [PHP] Read file on file system

Re: [PHP] Read file on file system

2007-02-04 Thread Richard Lynch
On Sun, February 4, 2007 7:47 am, Bagus Nugroho wrote: If I have file on[windows] c:\test.csv. How I can read the entire contents of this file? I have try file_get_contents, fgetcsv and etc but didn't work. May I'm mis-understanding about using those function. Define didn't work Because all

Re: [PHP] read cwk files

2007-01-04 Thread Richard Lynch
On Wed, January 3, 2007 11:49 pm, John Salib wrote: both google and yahoo resturn no result when searching for cwk2xls http://info.com/convert clarisworks to excel [that's not a kosher URL, but I gave up trying to convince my ex-boss to fix this bug...] turned up MacLinkPlus (Mac) and

[PHP] read cwk files

2007-01-03 Thread John Salib
Hi, I need to read cwk files (mac clarisworks files). so is it possible to do so using php if so how to do that? Thanks. _ Get FREE Web site and company branded e-mail from Microsoft Office Live

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, John Salib [EMAIL PROTECTED] wrote: Hi, I need to read cwk files (mac clarisworks files). so is it possible to do so using php if so how to do that? Sure you can read the files, the question is what is the output you want it in? Once that is answered, is there such a tool i can

  1   2   3   4   >