Re: [PHP] Re: Text editor for Ubuntu with FTP

2010-08-02 Thread Dušan Novaković
True :-) But, in my opinion if you plan to get really serious, then
you should consider using Eclipse or NetBeans :-) There you have
everything you'll ever need (but of course you have to say goodbye to
Designer mode from Dreamweaver :-) )

Dusan

On Sun, Aug 1, 2010 at 6:32 AM, David Robley robl...@aapt.net.au wrote:
 Jordan Jovanov wrote:

 Hello to All,

 I only whant to star discussion for who is the best programm to write
 php and html script. I use dreamweaver, but now I change my OS to ubuntu
 and I want some suggestions for some Text editor for FTP for Ubuntu


 Thanks A lot
 Jordan Jovanov

 Ah, it's the time of year for an editor thread again :-) Have a look at
 http://www.php-editors.com/ or
 http://en.wikipedia.org/wiki/List_of_PHP_editors or even google php
 editor

 As for best that can be very subjective depending on what _you_ want the
 editor to do.


 Cheers
 --
 David Robley

 System going down at 1:45 p.m. for disk crashing.
 Today is Pungenday, the 67th day of Confusion in the YOLD 3176.


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
mob:   + 46 70 044 9432
web:   http://novakovicdusan.com

Please consider the environment before printing this email.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text editor for Ubuntu with FTP

2010-07-31 Thread David Robley
Jordan Jovanov wrote:

 Hello to All,
 
 I only whant to star discussion for who is the best programm to write
 php and html script. I use dreamweaver, but now I change my OS to ubuntu
 and I want some suggestions for some Text editor for FTP for Ubuntu
 
 
 Thanks A lot
 Jordan Jovanov

Ah, it's the time of year for an editor thread again :-) Have a look at
http://www.php-editors.com/ or
http://en.wikipedia.org/wiki/List_of_PHP_editors or even google php
editor

As for best that can be very subjective depending on what _you_ want the
editor to do.


Cheers
-- 
David Robley

System going down at 1:45 p.m. for disk crashing.
Today is Pungenday, the 67th day of Confusion in the YOLD 3176. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text File Busy

2009-10-22 Thread Floyd Resler

It happens on any file I try so there must be something else going on.

Thanks!
Floyd

On Oct 21, 2009, at 4:17 PM, Shawn McKenzie wrote:


Floyd Resler wrote:
For some reason I'm getting a Text file busy error when I try to  
execute

PHP scripts from the command line now.  It used to work, but now it
doesn't.  I do have #!/usr/bin/php at the top of my script.  If I  
feed

the file to php (i.e. /usr/bin/php -f filename.php) it works.  Of
course, I can use this method but I was curious if anyone else has  
had
similar problems and what the solution was.  I'm guessing that  
something

I installed is messing it up.

Thanks!
Floyd



The file is open somewhere most likely.  Try: lsof | grep filename.php

--
Thanks!
-Shawn
http://www.spidean.com




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text File Busy

2009-10-21 Thread Shawn McKenzie
Floyd Resler wrote:
 For some reason I'm getting a Text file busy error when I try to execute
 PHP scripts from the command line now.  It used to work, but now it
 doesn't.  I do have #!/usr/bin/php at the top of my script.  If I feed
 the file to php (i.e. /usr/bin/php -f filename.php) it works.  Of
 course, I can use this method but I was curious if anyone else has had
 similar problems and what the solution was.  I'm guessing that something
 I installed is messing it up.
 
 Thanks!
 Floyd
 

The file is open somewhere most likely.  Try: lsof | grep filename.php

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: text to HTML

2007-08-31 Thread Dan
As I know there's no real WYSIWYG text to html converters.  Plus this 
wouldn't do much more than handling paragraphs and new lines.


If you're looking for a way to write html from a textbox check out 
FCKEditor.


Sorry I couldn't help much.  If you really do have only the limited need of 
paragaphs and newlines then go with Ron's solution, it'll work just fine.


- Dan

Ron Piggott [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]


Is there a PHP command that turns text into HTML?

EXAMPLE:

before

Hi.

How are you doing?

after

Hi.p

How are you doing?p




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: text to HTML

2007-08-31 Thread M. Sokolewicz

Dan wrote:
As I know there's no real WYSIWYG text to html converters.  Plus this 
wouldn't do much more than handling paragraphs and new lines.


If you're looking for a way to write html from a textbox check out 
FCKEditor.


Sorry I couldn't help much.  If you really do have only the limited need 
of paragaphs and newlines then go with Ron's solution, it'll work just 
fine.


- Dan

Ron Piggott [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]


Is there a PHP command that turns text into HTML?

EXAMPLE:

before

Hi.

How are you doing?

after

Hi.p

How are you doing?p




Since using p to insert line-breaks is bad style, use br instead (or 
the br / variant if using XHTML).

You can use php's built-in nl2br() function to do this.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text Editor for Windows?

2007-02-09 Thread Michael Weaver

Hi,

I am a Mac person first and foremost, but the Windows people that I  
know tend to use Homesite:


http://www.adobe.com/products/homesite/

From what I can tell, even though it is bundled with Dreamweaver 8,  
it still looks like it can be purchased and demoed separately.



On Feb 9, 2007, at 1:20 AM, [EMAIL PROTECTED] wrote:
Re: Text Editor for Windows?


Best regards,

Mike Weaver

--
Michael Weaver
Founder/Chief Facilitator
Dynamic Insight
Enhancing Professional Awareness   Communication
Tel: 1.814.574.4871
Email: [EMAIL PROTECTED]

The information in this email and subsequent attachments may contain
confidential information that is intended solely for the attention  
and use of
the named addressee(s). This message or any part thereof must not be  
disclosed,
copied, distributed or retained by any person without authorization  
from the
addressee. If you are not the intended recipient, please contact the  
sender by

reply email and destroy all copies of the original message.





Re: [PHP] Re: Text Editor for Windows?

2007-02-09 Thread David Giragosian

I've been using SciTE for many years now.

http://www.scintilla.org/SciTE.html

It's small and lightweight, has code folding and bracket highlighting and a
lot of other nifty features.

I also have Zend Studio IDE Professional but it is slow and bloated compared
with SciTE.

2 more pennies...

David


Re: [PHP] Re: Text Editor for Windows?

2007-02-09 Thread Sancar Saran
I bet for one more week about this topic ? Any bidders ?

:)

Regards

Sancar

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Text Editor for Windows?

2007-02-09 Thread Jim Lucas

Sancar Saran wrote:

I bet for one more week about this topic ? Any bidders ?

:)

Regards

Sancar


I bet that a week after that, the question will be asked again... :)

--
Enjoy,

Jim Lucas

Different eyes see different things. Different hearts beat on different 
strings. But there are times for you and me when all such things agree.


- Rush

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: text areas and line brakes

2005-06-23 Thread Al

Sunny Boy wrote:
if someone writes something in a text box, how would I convert a line 
break in the text area to echo a br /? I think i'll have to get the \n 
and convert it. can anyone tell me?


Thanks.

sunny



I use a technique similar to Lynch's

$value= preg_replace(/(\r\n|\r|\n)/, \n, $value);//this says make \r\n or 
\r or \n a single \n

$value= preg_replace(/\n\n+/, \n\n, $value);//no more than 2 \n 

This fixes the case when some adds excessive newlines   


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: text with $

2005-05-09 Thread Jason Barnett
Martín Marqués wrote:
I have a text variable that contains $ symbols, that when I pass it out PHP 
thinks that the $ mean that a variable name comes right after.

I tried escaping the $ put with no luck. 

Is there something I can do?
?php
echo '$';
echo \$;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Text from file into database

2004-08-22 Thread Daniel Schierbeck
Phpu wrote:
Hi,
I have a file, test.txt. The containig of this file is:
line 1
line 2
line 3
--
and so on
I want to create a script that will read each line of the file and insert it to 
database.
I am new to php and maybe you could help me
Thanks
I depends on what kind of database you wish to use (you probably have 
MySQL, though PostgreSQL would be preferable). If you have a large 
amount of lines I recommend you use prepared statements. But first of 
all, tell us which database you're going to use.

Cheers,
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] RE: Text message

2004-06-16 Thread Ulrik S. Kofod

Lester Caine sagde:
 R'Twick Niceorgaw wrote:

 Is this some kind of virus? anybody else receiving it?

 I have received 3 mails from this address through the list today all with a .bmp
 attachment

 It has passed clam av + fprot on linux as well as norton on windows but still
 want to double check before opening it.

 - R'twick
 Quoting Hitcho [EMAIL PROTECTED]:

 hitcho has had his email address harvested, and it is now being used to
 propagate virus payloads. He is not the only one, but since he has a
 valid php account it is not being kicked out when posted to the php lists.

 It's payload has probably already been wiped, but in any case, messages
 like this just go straight to trash. We could do with a moderator on
 these lists to clear some of them out :)


Isn't it possible to reject all mails send to the list with attachments all
together, with a bounce message saying something like that mails to the list should
be plain text without attachments ?

It would also be nice to have bounce messages removed; it's annoying to receive X
messages about mail accounts on the list that doesn’t exist anymore.

/usk
ps. don't kill me it's just a suggeation.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: Text message

2004-06-15 Thread Hitcho
attachment: emlnupseiz.bmp-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Text message

2004-06-15 Thread R'twick Niceorgaw
Is this some kind of virus? anybody else receiving it?

I have received 3 mails from this address through the list today all with a .bmp
attachment

It has passed clam av + fprot on linux as well as norton on windows but still
want to double check before opening it.

- R'twick
Quoting Hitcho [EMAIL PROTECTED]:

-- 
This is a signature


This message was sent using IMP, the Internet Messaging Program.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] RE: Text message

2004-06-15 Thread Lester Caine
R'Twick Niceorgaw wrote:
Is this some kind of virus? anybody else receiving it?
I have received 3 mails from this address through the list today all with a .bmp
attachment
It has passed clam av + fprot on linux as well as norton on windows but still
want to double check before opening it.
- R'twick
Quoting Hitcho [EMAIL PROTECTED]:
hitcho has had his email address harvested, and it is now being used to 
propagate virus payloads. He is not the only one, but since he has a 
valid php account it is not being kicked out when posted to the php lists.

It's payload has probably already been wiped, but in any case, messages 
like this just go straight to trash. We could do with a moderator on 
these lists to clear some of them out :)

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: text search in database

2004-06-02 Thread Michael Nolan
Vincent DUPONT wrote:
Hi,
I need to do a text search on some fileds in a database. I would like the users to be able to use some syntax like 'AND' 'OR' 'NOT' parentheses () and quotes to make their search queries more powefull. 

I face 2 problems :
1. parse the query
2. execute the search (create the appropriate SQL query)
Do you known of any existing package that could parse such a syntax and /or generate 
some kind of sql query?
tank you,
vincent
MySQL has a FULLTEXT index type which might provide what you need.  I'm 
also using a program called SWISH-E (http://www.swish-e.org/) to index 
my website but it also allows you to index data from any source by using 
a custom spider.  You could set this to extract data from your database 
in the correct format for indexing.

Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Text Streaming in PHP

2004-06-01 Thread Stephen Lake
Thanks all for the suggestionsI finally got it workingand it works
perfectly in IE too (so far anyway)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text Streaming in PHP

2004-05-31 Thread Manuel Lemos
On 05/31/2004 04:28 PM, Stephen Lake wrote:
I know I asked this before a couple of weeks ago, but I need a good swift
kick in the right direction :D
I need to know how to do a text stream in PHP.
I have tried the following:
while loop with flush and sleep functions
HTTP/1.1 Connection: Stream (seems to work in the above while loop until you
post something then its like it stalls completely)
Are there any other ways?
I was looking at GTChat lastnight and it mentioned about sending a file
line by line to achieve a server push like effectanyone know how to do
this?
Only way I will consider Java is if it will stream a HTML page and someone
can point me in a direction to grab one
Any help in the above questions would be greatly appreciated.
I think you just need to use Keep Alive connections and use PHP flush 
command to stream the text.

You may also want to try this class to create chat channels:
Class: Chat
http://www.phpclasses.org/mydbchat
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Text Box question

2004-04-21 Thread Saulius
put a JS code in yor body tag:

body onLoad=this.document.form_name.textbox_name.focus=true

Brent Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi all
 I have a problem where, when I click on a link and when the page is finish
 loading
 I would like for the cursor to ready in the correct html text box.
 I cant seem to find a solution

 If anyone could help, that would be most appreciated
 Kind Regards
 Brent Clark

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text Box question

2004-04-21 Thread pete M
Brent Clark wrote:
Hi all
I have a problem where, when I click on a link and when the page is finish
loading
I would like for the cursor to ready in the correct html text box.
I cant seem to find a solution
If anyone could help, that would be most appreciated
Kind Regards
Brent Clark


Stick this in the body tag

body onload=document.form1.textboxname.focus();

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Karl Timmermann
Opps, I failed to mention there can be more paragraphs with legit new 
lines, like:

Hello, my name is Karl.
Hello, my name
is Dave.
This is some more example text.
Yes, this is yet some more.



On Feb 27, 2004, at 11:56 PM, Five wrote:

You mean something like this?

$message = ereg_replace( \n,  , $message);

It seems to replace all new line instances with a blank space.



Karl Timmermann [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Does anyone have some PHP code to remove incorrect carriage returns?

Example:

Sentence should be Hi, my name is Karl and I like PHP.
but is: Hi, my name is Karl and I like
PHP.
or
Hi my name is Karl and
I like PHP.
I think I saw some code before that does it, but can't find it 
anywhere.

Thanks!
Karl
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 16:15, Karl Timmermann wrote:
 Opps, I failed to mention there can be more paragraphs with legit new
 lines, like:

 Hello, my name is Karl.
 Hello, my name
 is Dave.
 This is some more example text.

 Yes, this is yet some more.

So what is your criteria for incorrect carriage returns ?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!!
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Karl Timmermann
Like if the sentence is split.

Thanks

On Feb 28, 2004, at 1:34 AM, Jason Wong wrote:

On Saturday 28 February 2004 16:15, Karl Timmermann wrote:
Opps, I failed to mention there can be more paragraphs with legit new
lines, like:
Hello, my name is Karl.
Hello, my name
is Dave.
This is some more example text.
Yes, this is yet some more.
So what is your criteria for incorrect carriage returns ?

--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
The PILLSBURY DOUGHBOY is CRYING for an END to BURT REYNOLDS movies!!
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Text cleaning?

2004-02-28 Thread Jason Wong
On Saturday 28 February 2004 18:49, Karl Timmermann wrote:

Please do not top post.

 Like if the sentence is split.

1) define your idea of a sentence
2) construct a suitable regex for use with preg_replace()

If you don't know how to do (2) then at least do (1) and then someone might be 
able to help you do (2).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I cannot draw a cart, nor eat dried oats; If it be man's work I will do it.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text cleaning?

2004-02-27 Thread Five
You mean something like this?

$message = ereg_replace( \n,  , $message);

It seems to replace all new line instances with a blank space.



Karl Timmermann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Does anyone have some PHP code to remove incorrect carriage returns?

 Example:

 Sentence should be Hi, my name is Karl and I like PHP.
 but is: Hi, my name is Karl and I like
 PHP.

 or
 Hi my name is Karl and
 I like PHP.

 I think I saw some code before that does it, but can't find it anywhere.

 Thanks!
 Karl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text field comparison

2003-12-03 Thread Justin Patrin
Yes, but the user would have to submit the form and you would have to 
re-fill it out for them and give them a message saying that they must be 
equal. You could use the PEAR HTML_Form and Quickform packages for much 
of this.

Jeff wrote:

I have created a few forms using post. There are certain fields that 
must match (i.e. username/password) before submission. Can this be 
accomplished using PHP? If not, an alternative would be nice. Thanks.

Jeff Hunnicutt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: Text file breaking!

2003-06-05 Thread Bobby Patel
try this
$string = ereg_replace ('\r\n|\n|\r', 'br', $string);
OR
$string = nl2br($string);

NOTE: for me the first case will remove the newline, whereas the second will
keep them (It might be becuase of my old php version [4.06]?)


Zavaboy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Ok, I don't get it... I put a string to one line ( $string =
 str_replace(\n, br, $string); ) but when I put it in a text file I
see
 breaks right before br. For example:

 I have a text area and type:
 1
 22
 333

 then, I take that string and replace \n with br.
 $string = str_replace(\n, br, $string);

 then, I put the string in a txt file...
 and here's what I see in the text file:
 1
 br22
 br333

 instead of:
 1br22br333

 How can I make it that way?
 Thanks in advance!

 --

 - Zavaboy
 [EMAIL PROTECTED]
 www.zavaboy.com





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text file breaking!

2003-06-05 Thread zavaboy
Thanks! :)


Bobby Patel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 try this
 $string = ereg_replace ('\r\n|\n|\r', 'br', $string);
 OR
 $string = nl2br($string);

 NOTE: for me the first case will remove the newline, whereas the second
will
 keep them (It might be becuase of my old php version [4.06]?)


 Zavaboy [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Ok, I don't get it... I put a string to one line ( $string =
  str_replace(\n, br, $string); ) but when I put it in a text file I
 see
  breaks right before br. For example:
 
  I have a text area and type:
  1
  22
  333
 
  then, I take that string and replace \n with br.
  $string = str_replace(\n, br, $string);
 
  then, I put the string in a txt file...
  and here's what I see in the text file:
  1
  br22
  br333
 
  instead of:
  1br22br333
 
  How can I make it that way?
  Thanks in advance!
 
  --
 
  - Zavaboy
  [EMAIL PROTECTED]
  www.zavaboy.com
 
 





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Text editors

2003-01-07 Thread Leon Mergen
www.editplus.com


Karl James [EMAIL PROTECTED] wrote in message
007f01c2b633$7b746c50$cc6c2f04@karle8hnwwmn0f">news:007f01c2b633$7b746c50$cc6c2f04@karle8hnwwmn0f...
Hello guys,
Right now im using dreamweaver mx

I was wondering if anyone knew of any good free text editors that has
line counts
And is good for php….

Thanks
karl

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/2002





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread nofa
Have you considered allowing them to submit the actual file? rather than all
the text within. It may not be exactly what you're after, but its one way :]

- Original Message -
 Hi Guys... This is indirectly related to PHP: Does anyone know the max
 amount of text a free-form HTML text field can handle?

 I noticed that for some longer articles we're storing in a content
 management system written with PHP, we were unable to paste the body of
the
 article into the text field because there was too much text. When we pared
 the text down, it was no problem.

 This is bad news for a content management system! We have some longer
 articles, around 8-10 HTML pages, and now I have no idea how we are going
to
 get them into the system using an HTML form. I really don't want to have
to
 do this manually in MySQL. That would make me break down and start
sobbing.

 Has anyone else dealt with this and found a solution?

 Thanks a lot!

 Monty




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread Monty
HI Nofa,

When you say submit the file, do mean as a TXT file via a file upload field?
If so, not sure what to do with the file once it's been uploaded. Do I read
the file using fopen(), then just put this into a var that can be stored in
the DB? Hmmm... sounds like a good solution.

Monty


 From: [EMAIL PROTECTED] (Nofa)
 Reply-To: nofa [EMAIL PROTECTED]
 Newsgroups: php.general
 Date: Sat, 14 Dec 2002 20:00:45 +1300
 To: [EMAIL PROTECTED]
 Subject: Re: Text Fields - How Big Can They Be?
 
 Have you considered allowing them to submit the actual file? rather than all
 the text within. It may not be exactly what you're after, but its one way :]
 
 - Original Message -
 Hi Guys... This is indirectly related to PHP: Does anyone know the max
 amount of text a free-form HTML text field can handle?
 
 I noticed that for some longer articles we're storing in a content
 management system written with PHP, we were unable to paste the body of
 the
 article into the text field because there was too much text. When we pared
 the text down, it was no problem.
 
 This is bad news for a content management system! We have some longer
 articles, around 8-10 HTML pages, and now I have no idea how we are going
 to
 get them into the system using an HTML form. I really don't want to have
 to
 do this manually in MySQL. That would make me break down and start
 sobbing.
 
 Has anyone else dealt with this and found a solution?
 
 Thanks a lot!
 
 Monty
 
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text Fields - How Big Can They Be?

2002-12-13 Thread nofa
Yup, exactly
 HI Nofa,

 When you say submit the file, do mean as a TXT file via a file upload
field?
 If so, not sure what to do with the file once it's been uploaded. Do I
read
 the file using fopen(), then just put this into a var that can be stored
in
 the DB? Hmmm... sounds like a good solution.

 Monty


  From: [EMAIL PROTECTED] (Nofa)
  Reply-To: nofa [EMAIL PROTECTED]
  Newsgroups: php.general
  Date: Sat, 14 Dec 2002 20:00:45 +1300
  To: [EMAIL PROTECTED]
  Subject: Re: Text Fields - How Big Can They Be?
 
  Have you considered allowing them to submit the actual file? rather than
all
  the text within. It may not be exactly what you're after, but its one
way :]
 
  - Original Message -
  Hi Guys... This is indirectly related to PHP: Does anyone know the max
  amount of text a free-form HTML text field can handle?
 
  I noticed that for some longer articles we're storing in a content
  management system written with PHP, we were unable to paste the body of
  the
  article into the text field because there was too much text. When we
pared
  the text down, it was no problem.
 
  This is bad news for a content management system! We have some longer
  articles, around 8-10 HTML pages, and now I have no idea how we are
going
  to
  get them into the system using an HTML form. I really don't want to
have
  to
  do this manually in MySQL. That would make me break down and start
  sobbing.
 
  Has anyone else dealt with this and found a solution?
 
  Thanks a lot!
 
  Monty
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text from web form

2002-09-11 Thread Jome

 Hello PHP Guru's!

 After successfully installing PHP and viewing the phpinfo page, I decided
to
 create a simple web-form. Just a basic Name Message web-form, when the
 form is complete it is emailed to an account. Everything works, except I
 don't see the filled in contents in the email message. I don't see the
what
 the person filled out. But I see Name: ane Message:

 Any ideas?

Could this be an register_globals issue?

Read on
http://www.php.net/manual/en/language.variables.predefined.php#language.vari
ables.superglobals - it may resolve your problem.

  Jome



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: text file

2002-06-05 Thread Philip Hallstrom

Take a look at following functions:

http://www.php.net/manual/en/function.file.php
http://www.php.net/manual/en/function.array-unshift.php

-philip

On Wed, 5 Jun 2002, John Taylor-Johnston wrote:

 I want to open a text file which has 12 lines and
 (1) insert a new line at line[0]
 (2) re-save the text file only with 12 lines (Therefore line[12] gets
 chopped out.

 I had some code to do this with Perl.

   open (NEW, $filepath\\$file);
print NEW $something;
   for ($i = 2; $i  12; $i++)
{
print NEW $lines[$i];
print $lines[$i];
}

 How can I do it now with PHP?
 Open the file (http://www.php.net/manual/en/function.fopen.php)
 Suck a text file into an array. ---??
 Insert at line[0]  ---??
 and rewrite the file.
 (http://www.php.net/manual/en/function.fopen.php)


 John


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text file

2002-05-20 Thread Cleeker

/* Opens the file in the current dir and allows read only parimiters to
it (R) */
$foo = fopen(foo.txt, R);

/* This then sends the contents to the browser for output */
fpassthru($foo);
fclose($foo);

That is REALLY basic if you want some more functions (which your probably
will) for file handling go to http://www.php.net/manual/en/ref.filesystem.php
Hope this helps!

~Cleeker

On Mon, 20 May 2002, Rodrigo wrote:

 Hi guys:

 What I need is a php file that will read a text file and show it on a
 html file.

 And it will also write to a text file, but at the end of the file.

 Thanx, Rodrigo de Oliveira Costa.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text Editor

2002-03-24 Thread Yasuo Ohgaki

Hiroshi Ayukawa wrote:
 Hello,
 
 What text editor do you use to write PHP?
 I use Maruo editor http://www.ac.wakwak.com/~tetsuyat/maruo/ more than 1 
 year.
 Is there any better text editor for PHP?

Emacs is _much_ better than HideMaru.

I use emacs for most text editing. If you need multi byte char
under windows, use Meadow (it's a Emacs(Mule) for Windows, kind of).
I use php-mode/folding-mode for PHP sources.

If you are looking for IDE, ZendStudio is the way to go.

--
Yasuo Ohgaki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Text file busy

2001-12-18 Thread Chris Lee

try php.ca or any of the other mirrors when php.net is down.

I bet you got that file your running open in an editor eh? close the file in
the editor then run the file, no problems.

--

  Chris Lee
  [EMAIL PROTECTED]



Boaz Yahav [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
HI

I'm trying to run a php file in CGI mode and I get : Text file busy
I'm running many other files like that for years and this is the 1st
time I see such a message.

php.net seems to be down for me, any idea?

berber






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Editor with Highlighting

2001-11-01 Thread Anthony

For Windows, hands down Homesite is the best

Td - Sales International Holland B.V. wrote:

 Hey there,
 
 I looked on the site for this but couldn't find anything about it. I'd like a 
 list of your favorite text editors (preferable for Linux/XFree) with 
 highlighting. I'm using beaver now, I tried cooledit but it's not me... too 
 much functions and looks like it came from an old 386 :-). I have kde 2.1.2 
 which has kwrite, but it's kwrite does not yet support PHP, kde 2.2.1 does 
 but i don't wanna download the entire kde package. Besides i think it's still 
 in development I tried in on my laptop at home but it just makes things bold 
 instead of all kinds of different colors. also beaver colors for in plain 
 html and has some problems with correctly indentifying /* */ comments if you 
 use more of em. i'm also interested in windows though and i think more people 
 are interested so maybe somebody of the site might also want to keep track of 
 the list so it can be put online
 
 regards
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Editor with Highlighting

2001-11-01 Thread Jason Wood

Check out UltraEdit for Windows it's great.  Text highlighting for
around 10 programming languages, auto-tabbing for brackets, all kinda
things.  www.ultraedit.com  it's even got built in FTP functions so you can
open a file from a server, and when you save it automatically uploads.
great proggie :)


--
Jason Wood
Chief Technology Officer
Expressive Tek, Inc.
407 Kehrs Mill Road
Ballwin, MO 63011
Phone 636.256.1362
www.expressivetek.com


Td - Sales International Holland B.V. [EMAIL PROTECTED] wrote in message
01110122020108.00569@linux-testbank">news:01110122020108.00569@linux-testbank...
 Hey there,

 I looked on the site for this but couldn't find anything about it. I'd
like a
 list of your favorite text editors (preferable for Linux/XFree) with
 highlighting. I'm using beaver now, I tried cooledit but it's not me...
too
 much functions and looks like it came from an old 386 :-). I have kde
2.1.2
 which has kwrite, but it's kwrite does not yet support PHP, kde 2.2.1 does
 but i don't wanna download the entire kde package. Besides i think it's
still
 in development I tried in on my laptop at home but it just makes things
bold
 instead of all kinds of different colors. also beaver colors for in plain
 html and has some problems with correctly indentifying /* */ comments if
you
 use more of em. i'm also interested in windows though and i think more
people
 are interested so maybe somebody of the site might also want to keep track
of
 the list so it can be put online

 regards



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: text editing (parsing)

2001-09-20 Thread _lallous

you can also use Regular Expressions,

just post the text you want to parse (no matter how complex) and we will see
how we can help you out.

Jonas K [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I need some help with parsing text. very simple. I have a text string like
 News, Bla, Blabla and i want to get the single words out of the string.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: text wrap in table

2001-08-25 Thread Adrian D'Costa

Hi,

I got the answer from one earlier mail.  I used nl2br().  It does just
what I want.

Adrian

On Fri, 24 Aug 2001, Adrian D'Costa wrote:

 Hi,
 
 I am creating a program for a newspaper to publish their article
 online.  There is a form what allows them to cut and past from their
 editors (word, pagemaker, staroffice).  The data is being entered
 correctly.  
 
 The problem is when I try and get the data from the table the whole matter
 scrolls off the screen.  I need it to be formatted as the client cut and
 pastes it (headings, paras, etc).  Below is my table and part of my
 program.
 
 mysql desc newsarticles;
 +--+--+--+-+++
 | Field| Type | Null | Key | Default| Extra  |
 +--+--+--+-+++
 | id   | int(5)   |  | PRI | NULL   | auto_increment |
 | nid  | int(5)   |  | MUL | 0  ||
 | headline | varchar(100) |  | |||
 | article  | mediumtext   |  | |||
 | date | date |  | | -00-00 ||
 | imgpath  | varchar(200) | YES  | | NULL   ||
 +--+--+--+-+++
 
 html
 head
 title? echo $row-headline; ?/title
 /head
 
 body bgcolor=white
 h1 align=center? echo $row-headline; ?/h1
 h3 align=center? echo $row-description; ?/h3
 table width=600 border=1
 tr
 td valign=top width=70%font
 face=Arial size=2 color=bluestrong? echo $sd .-. $sm
 .-. $sy; ?/strongbrpre? echo $row-article; ?/pre/font/td
 td valign=top width=30%img src=? echo
 $row-imgpath; ? ? echo $iwh[3]; ? /td
 /tr
 /table
 /body
 /html
 
 
 I use the pre/pre to display with the line breaks.  If I take of the
 pre it does not wrap but does not give the breaks.  To my thinking maybe
 while entering the data we should give break the lines physically.  This
 is part of my entry form.
 
 tr
 tdfont face=Arial size=2HeadLine/font/td
 tdinput type=text name=headline size=30
 /tr
 
 tr
 tdfont face=Arial size=2Article/font/td
 tdtextarea name=article cols=60 rows=10/textarea/td
 /tr
 
 tr
 tdfont face=Arial size=2Upload Image/font/td
 tdinput type=file name=userfile size=30 wrap=ON/td
 /tr
 tr align=center
 td colspan=2input type=submit value=Submit/td
 /tr
 
 
 How do I get the text not to wrap and to preserve the formatting given by
 the client.
 
 Adrian
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text area ...

2001-08-06 Thread James, Yz

Hi Kok,

use nl2br();

$string = nl2br($string);
echo $string;

See the manual for full details.

James

Coconut Ming [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 hi..
 Did you feel it is strange alignment when you output the same thing
 again in PHP...
  I mean the line break... For example I enter the following text and the
 order of text as below
  I
  AM
  A
 GUY

  so... I store it when I output it again.. It is display as I AM A
 GUY
  the line break or [enter] key just does not detected... Anyone know
 any  solution for this? thanks for helping.

  Sincerely
  Kok Ming




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-31 Thread elias

I don't want to parse XML, nor to install or recompile PHP to support the
DBM,

I just want some class to do the text database manipulation from querying
records, updating and inserting new ones.
like simple SELECT form and UPDATE and INSERT.
but not a complicated SELECT with tons of conditions and joints.

Henrik Hansen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 [EMAIL PROTECTED] (Elias) wrote:

   http://www.php.net/manual/en/ref.dba.php
   wasn't what I really wanted,
  
   Any other ideas to use text databases?
  

 xml, csv files, what do you need excatly and how advanced?

 --
 Henrik Hansen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: Text Database class

2001-07-31 Thread Morten Winkler Jørgensen

Hi Elias

   This might be what you are looking for. Found on

   http://www.hotscripts.com - PHP - Scripts and Programs -
   Database Tools - TextDB (page 8 of 9, entry 76)



Kind regards,
Morten Winkler



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Elias) wrote:

  I have hosting plan that doesn't support MySQL nor any Databases...Just PHP.
  
  I'm wondering if there is any text database class that simulates the MySql
  queries and function calls.
  
  I mean text database, like all the values and data is stored in a raw text
  file.

I dont, but you can get free mysql databases here, freesql.org

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-30 Thread Yasuo Ohgaki
"Elias" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Yes, But I still want to know if any Text Database class exist...

dbm or like? They are file based databases, not a text database though.
http://www.php.net/manual/en/ref.dba.php

--
Yasuo Ohgaki




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP] Re: Text Database class

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Elias) wrote:

  Yes, But I still want to know if any Text Database class exist...
  

dont know, but I know 2 possible ways you can do it,

using dbm files to store it in, http://www.php.net/manual/en/ref.dba.php
using xml files to store it in,
http://www.php.net/manual/en/ref.domxml.php and 
http://www.php.net/manual/en/ref.xml.php

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-30 Thread elias

Thanks guys, I had no idea about this:
http://www.php.net/manual/en/ref.dba.php
I'll take a look to make sure if that's what i really want.

Elias [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have hosting plan that doesn't support MySQL nor any Databases...Just
PHP.

 I'm wondering if there is any text database class that simulates the MySql
 queries and function calls.

 I mean text database, like all the values and data is stored in a raw text
 file.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-30 Thread elias

http://www.php.net/manual/en/ref.dba.php
wasn't what I really wanted,

Any other ideas to use text databases?

Elias [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have hosting plan that doesn't support MySQL nor any Databases...Just
PHP.

 I'm wondering if there is any text database class that simulates the MySql
 queries and function calls.

 I mean text database, like all the values and data is stored in a raw text
 file.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-30 Thread Henrik Hansen

[EMAIL PROTECTED] (Elias) wrote:

  http://www.php.net/manual/en/ref.dba.php
  wasn't what I really wanted,
  
  Any other ideas to use text databases?
  

xml, csv files, what do you need excatly and how advanced?

-- 
Henrik Hansen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text Database class

2001-07-30 Thread elias

thanks for sharing http://www.freesql.org link!

Henrik Hansen [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 [EMAIL PROTECTED] (Elias) wrote:

   Yes, But I still want to know if any Text Database class exist...
  

 dont know, but I know 2 possible ways you can do it,

 using dbm files to store it in, http://www.php.net/manual/en/ref.dba.php
 using xml files to store it in,
 http://www.php.net/manual/en/ref.domxml.php and
http://www.php.net/manual/en/ref.xml.php

 --
 Henrik Hansen



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Text fading with PHP?

2001-03-24 Thread Kristofer Widholm

Here's what you wrote, 01.03.24:

Hi

Is it possible to do text fading with PHP.  For instance, I want to one line
of text fade in, have another line fade in later, and a third line after
that.  Then all three lines will fade out at the same time and start over
with three different lines.  Is this possible with php?

Thanks

Jamie

No, due to some browsers waiting for all a complete document object 
before outputting text. Even with browsers that will parse and 
display a partial feed, you really can't achieve a smooth effect due 
to network latency. The best thing to do is to work with JavaScript 
and CSS. Look into the setTimeout() function in JavaScript and use it 
to step through different color values for your text using CSS.

Or, just use an animated gif.

K
-- 
__

Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn  NY  11211
718.599.4893
__

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]