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 look

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

2012-06-06 Thread Jim Giner
"Maciek Sokolewicz" wrote in message news:4fcf23af.7040...@php.net... > On 06-06-2012 05:11, Jim Giner wrote: >> "Govinda" 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 d

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: "Govinda" 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 req

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

2012-06-05 Thread Jim Giner
"Govinda" 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. > >>> Hi All, >>> >>> I am

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

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

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 somethi

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 wrote: > > > Nathan Nobbe пишет: > > > > On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling >> >wrote: > >> > >> > >> > >>> On 5 November 2010 16:30, Nathan Nobbe wrote: > >>> > >>> > On Fri,

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 11:01 AM, Alexandr wrote: > Nathan Nobbe пишет: > > On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling > >wrote: >> >> >> >>> On 5 November 2010 16:30, Nathan Nobbe wrote: >>> >>> On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples >>> wrote: >>> >>> On Fri,

Re: [PHP] read smb drive

2010-11-05 Thread Alexandr
Nathan Nobbe пишет: On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling wrote: On 5 November 2010 16:30, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: On Fri, Nov 5, 2010 at 9:48

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 10:43 AM, Richard Quadling wrote: > On 5 November 2010 16:30, Nathan Nobbe wrote: > > On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples > wrote: > > > >> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: > >> > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples > wrote: > >>

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:43, Richard Quadling wrote: > On 5 November 2010 16:30, Nathan Nobbe wrote: >> On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: >> >>> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: >>> > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: >>> > >>> > > Hey g

Re: [PHP] read smb drive

2010-11-05 Thread Richard Quadling
On 5 November 2010 16:30, Nathan Nobbe wrote: > On Fri, Nov 5, 2010 at 10:18 AM, Steve Staples wrote: > >> On Fri, 2010-11-05 at 10:06 -0600, Nathan Nobbe wrote: >> > On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples wrote: >> > >> > > Hey guys (and gals) >> > > >> > > I am writing something that ne

Re: [PHP] read smb drive

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

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 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 sy

Re: [PHP] read smb drive

2010-11-05 Thread Nathan Nobbe
On Fri, Nov 5, 2010 at 9:48 AM, Steve Staples 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, and technic

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 (http://www.

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 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 rea

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

2010-01-13 Thread Rahul S. Johari
Thanks All (Especially Warren); Final Code: function dirList ($directory) { $results = array(); $handler = opendir($directory); while ($file = readdir($handler)) { if ($file != '.' && $file != '..') $results[] = $file; } closedir($handler); return $results; }

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

2010-01-13 Thread Rahul S. Johari
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 read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg:

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

2010-01-13 Thread Rahul S. Johari
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 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 t

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, 3.tx

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 t

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 do

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? > > --- >

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 unsub

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 > ma

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

2009-05-16 Thread Tom Worster
On 5/16/09 3:55 AM, "Per Jessen" 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, $status)

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 r

Re: [PHP] Read Text Content from PDF file

2009-03-20 Thread Bastien Koert
; *An:* Andrei Bintintan > *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 > wrote: > > Hi to all, > > > > I have to read the texts from PDF documents with

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 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. So I hav

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 > > header ("content-type: text/xml"); > > echo " > 1 >teste >/images/teste.jpg > > "; > ?> > > How can do this? > > zechim > > test.php mind you that the header() call within the include is

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 wrote: Hi there, i want do read a XML like this: Server.php 1 teste /images/teste.jpg "; ?> How can do this? zechim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-02-06 Thread Phpster
On Feb 6, 2009, at 9:12, Jônatas Zechim wrote: Hi there, i want do read a XML like this: Server.php 1 teste /images/teste.jpg "; ?> How can do this? zechim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Remove the php

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" 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 the values that a

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 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 befor

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 wrote: > Using PHP, is there a way for me to read the values that a user has > entered into the text fields of a prior to the user clicking the > submit button? If the user doesnt press the submit button PHP has no idea what's going on there. That's cl

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 the

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

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 JOC

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 s

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 wrote: > On Wed, 2008-12-17 at 14:56 -0800, Adam Randall

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 do

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 error

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
*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 Gers

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

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

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 = glob("1

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 Networ

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 onl

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 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: http://l-i-e.com/ima

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 eas

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 operat

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
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 related functionality. Now, when user logs in

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

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

2007-09-18 Thread Stut
Sanjeev N wrote: Assume, I have 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 coo

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 o

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

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

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 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 Bro

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

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" Becau

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]>; Sent: Sunday, February 04, 2007 3:45 PM Subject: RE: [PHP] Read file on f

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 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... ...and not

RE: [PHP] Read file on file system

2007-02-04 Thread Bagus Nugroho
bn -Original 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

Re: [PHP] Read file on file system

2007-02-04 Thread Satyam
Have you doubled the backslash to escape it? Or put it in between single quotes? Either: "c:\\test.csv" or 'c:\test.csv' or even 'c:/test.csv' Otherwise, a \t in between double quotes will be interpreted as a tab Satyam - Original Message - From: "Bagus Nugroho" <[EMAIL PROTECTED]

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 readin

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 Conversio

Re: [PHP] read cwk files

2007-01-03 Thread Richard Lynch
On Wed, January 3, 2007 2:18 am, John Salib wrote: > I need to read cwk files (mac clarisworks files). so is it possible to > do so > using php if so how to do that? Google for "cwk2xls" and see if you can convert Clarisworks to MS Excel, which *has* to be a very common need. You can then use the

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, Curt Zirzow <[EMAIL PROTECTED]> wrote: On 1/3/07, John Salib <[EMAIL PROTECTED]> wrote: > > well I mean I want to fetch the data from it. I need to get the data in > plain text format. formating is not important. > > I found a script to do that for xls files but didn't find one for cwk

Re: [PHP] read cwk files

2007-01-03 Thread Curt Zirzow
On 1/3/07, John Salib <[EMAIL PROTECTED]> wrote: well I mean I want to fetch the data from it. I need to get the data in plain text format. formating is not important. I found a script to do that for xls files but didn't find one for cwk files. This might be hard to find, do you have the abil

Re: [PHP] read cwk files

2007-01-03 Thread John Salib
[EMAIL PROTECTED]> CC: php-general@lists.php.net Subject: Re: [PHP] read cwk files Date: Wed, 3 Jan 2007 00:58:47 -0800 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? S

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 u

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Frank Arensmeier
There are search engins written in PHP available already. E.g. PHPdig. http://www.phpdig.net/ PHPdig for example is able to index PDF and doc files (I think - see the docs). Maybe it would also be a good idea to have a look at the source code. /frank /frank 10 nov 2006 kl. 14.50 skrev Tho

Re: [PHP] Read Through PHP Files

2006-11-10 Thread Thomas Munz
You cannnot just open those files. That things that you see are not 'rubish' or whatever. Those files are in a binary format. You need to understand the .doc format and the .pdf format. You can get this infromation by using google and search for 'Binary word format' and so on. Then you have to

Re: [PHP] read directory and paginate

2005-08-26 Thread Ryan A
Thanks mate, will check them out Cheers, Ryan On 8/26/2005 6:45:34 PM, Philip Hallstrom ([EMAIL PROTECTED]) wrote: > > A little while back there was a post where someone needed to read all > files > > (images/thumbs) from a gallery > > and paginate them automatically, I cannot find the thread i

Re: [PHP] read directory and paginate

2005-08-26 Thread Philip Hallstrom
A little while back there was a post where someone needed to read all files (images/thumbs) from a gallery and paginate them automatically, I cannot find the thread in the archive but if anybody can point me to the thread or knows how the poster solved his problemplease reply as i need someth

RE: [PHP] read from comport: windows vs. linux

2005-04-07 Thread Kim Madsen
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 6:18 AM > > [EMAIL PROTECTED] dev]# ls -al ttyS* > > crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 This is not an acceptable solution anyway, the permissions are changed on a rebo

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Richard Lynch
On Tue, April 5, 2005 11:41 pm, Kim Madsen said: > >> -Original Message- >> From: Jay Blanchard [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, April 05, 2005 3:42 PM > > >> > having apache be the groupowner doesn´t change anything > >> You may also need to change the user/owner, depending on w

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 16:18, Kim Madsen wrote: > > Are you running SELinux? > > Jeps, that?s installed, but I have no clue, what that is and do. The > server with the problem runs Feodora 3, I?m running RH9 on my own > servers. Check the archives, there have been a lot of people having proble

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
> -Original Message- > From: Burhan Khalid [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 10:43 AM > Are you running mod_security? Nops: [EMAIL PROTECTED] ~]# httpd -l Compiled in modules: core.c prefork.c http_core.c And SELinux is now disabled, still no change...

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Burhan Khalid
Kim Madsen wrote: -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 9:36 AM Well if "other" has "rw" then it doesn't really matter who owns the file. My point exactly! What does the php error log say? Samething as on the site: "Apr 6 10:16

RE: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Kim Madsen
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 06, 2005 9:36 AM > Well if "other" has "rw" then it doesn't really matter who owns the file. My point exactly! > What does the php error log say? Samething as on the site: "Apr 6 10:16:12 lage

Re: [PHP] read from comport: windows vs. linux

2005-04-06 Thread Jason Wong
On Wednesday 06 April 2005 14:41, Kim Madsen wrote: > User and group is apache. It made _no_ difference at all, I´m still > getting permission denied, when calling fopen :-/ > > [EMAIL PROTECTED] dev]# ls -al ttyS* > crw-rw-rw- 1 apache apache 4, 64 Apr 5 16:01 ttyS0 Well if "other" has "rw" th

RE: [PHP] read from comport: windows vs. linux

2005-04-05 Thread Kim Madsen
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 3:42 PM > > having apache be the groupowner doesn´t change anything > You may also need to change the user/owner, depending on what Apache is > running as. User and group is apache. It

RE: [PHP] read from comport: windows vs. linux

2005-04-05 Thread Jay Blanchard
[snip] I´ve got a problem porting from windows to Linux, when I wanna read and write to the serial port. This works like a charm in windows: if (!$fp = fopen("COM1", 'w+b')) { echo "\nError! Could not open COMport - Got a terminal open?\n"; exit; } The program continues, but breaks in li

Re: [PHP] Read From COM1 port

2005-03-03 Thread Richard Lynch
Kim Madsen wrote: > I'm having trouble reading from COM1, writing works like a charm but I'd > like to be able to read the output from a switch or a router in order to > determine that the command was successful and the configuration actually > went fine :-) > > doing: > > $fp = fopen("COM1", "rwb"

RE: [PHP] read file from specific line

2005-01-27 Thread Jay Blanchard
[snip] Is there any way reading a file from a specific line? (textfile) [/snip] Yes. Loop through a count until you reach the line you want, then read while(!feof($myFile)){ if("lineNumberIWant" >= $i){ read line $i++; } else {

Re: [PHP] Read PDF files with Php

2004-11-28 Thread Marek Kilimajer
Burhan Khalid wrote: Jacob Friis wrote: Do I need PDFlib in order to read PDF files? Is there another way? http://www.fpdf.org http://www.fuckinggoogleit.com :) Please be nice and learn to read ;) OP asked how to *READ* pdf files. AFAIK there is no way with php. pdf2html may be of some help thoug

Re: [PHP] Read PDF files with Php

2004-11-28 Thread Burhan Khalid
Jacob Friis wrote: Do I need PDFlib in order to read PDF files? Is there another way? http://www.fpdf.org http://www.fuckinggoogleit.com :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read PDF files with Php

2004-11-26 Thread Brad Ciszewski
PROTECTED]> Sent: Friday, November 26, 2004 9:58 AM Subject: Re: [PHP] Read PDF files with Php > >> Do I need PDFlib in order to read PDF files? > >> Is there another way? > > There is a nifty tutorial on this subject over at zends.com > > Can I read PDF files

Re: [PHP] Read PDF files with Php

2004-11-26 Thread Jacob Friis
Do I need PDFlib in order to read PDF files? Is there another way? > There is a nifty tutorial on this subject over at zends.com Can I read PDF files with that? Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read PDF files with Php

2004-11-25 Thread Christopher Way
There is a nifty tutorial on this subject over at zends.com .. Here is a link to it http://www.zend.com/zend/tut/tutorial-PDFgen1.php -Christopher Way - Original Message - From: "Jacob Friis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 25, 2004 12:20 PM Subject:

Re: [PHP] read aspx files

2004-10-08 Thread M Saleh EG
Do u mean using .aspx as ur file extensions? and then setup Apache to read them as php file? If that's the case then ur talking about types and extension handlers. Try or research about: Add Type in apache docs. and handlers. On Fri, 08 Oct 2004 11:23:02 -0700, Robby Russell <[EMAIL PROTECTED]>

  1   2   3   >