[PHP] FORM problem

2001-01-10 Thread Romulo Roberto Pereira
Hello! I am having a problem when people copy and paste text inside a TEXTAREA in a form that contains double quotes ' " ' . The first file is a simple form. The second one is a php script that treats the data from the user and stores in a MySQL table. Onyone has any ideas? I need to use jav

[PHP] Freaking difficul thing to do (at least for me)

2001-01-14 Thread Romulo Roberto Pereira
Hey Folks! I have the following situation: I store in a MySQL table part of the HTML code that is used to mount dinamically the pages of a web site. The file looks something like this: Before I enter any data in the database I put HTML comments like this: before and after any text that appea

[PHP] Ooops - I forgot the question... Freaking difficul thing to do (at least for me)

2001-01-14 Thread Romulo Roberto Pereira
Hey Folks! I have the following situation: I store in a MySQL table part of the HTML code that is used to mount dinamically the pages of a web site. The file looks something like this: Before I enter any data in the database I put HTML comments like this: before and after any text that appea

[PHP] transforming an HTML Comment in a HTML TAG

2001-01-14 Thread Romulo Roberto Pereira
Hey Folks! I am bringing from the database HTML source like this: We are committed to our employee’s well being and professional development I would like to make this: We are committed to our employee’s well being and professional development   So, before the end HTML comment I would

Re: [PHP] transforming an HTML Comment in a HTML TAG

2001-01-14 Thread Romulo Roberto Pereira
This is a nice idea but would not be more efficient if I substitute the entire block like this: this is what I have in the database: ANY TEXT this is what I want: ANY TEXT  what youl be a REGEX to substitute that block for this one above? Thank you, Rom > Then, you get your complete text

Re: [PHP] transforming an HTML Comment in a HTML TAG

2001-01-14 Thread Romulo Roberto Pereira
> Either way, it should be easy enough to change that code I gave you > to do that? I know what you mean, but I have more than 200 rows already with these surrounding my texts and to modify manually would take ours... I didn't think in that before... How would be a REGEX to recognize the tag a

[PHP] REGEX

2001-01-14 Thread Romulo Roberto Pereira
Hey people! What is wrong with this code? $buffer = split("([0-9] -->)",$pagedata); $x = count ($buffer); echo $x; for ($i=0;$i<$x;$i++) { ereg("([0-9] -->)", $buffer[$i], $text); ereg_replace (" -->","", $text[1]); echo $text[1]; } Since $pagedata has 8 appearences of the REGEX I a

Re: [PHP] I once saw a site where php codes, algorithms specially, where posted.

2001-01-14 Thread Romulo Roberto Pereira
I think that is what you are looking for... http://px.sklar.com/ anyway in php.net they have a bunch of them in the links section. Have fun! Rom - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 15, 2001 1:23 AM Subject: [PHP] I once saw a sit

[PHP] How do I do to update part of a string?

2001-01-15 Thread Romulo Roberto Pereira
I have a big string. How can I do to find some text inside and modify that text? I was thinking about ereg_replace(). But it is capable to handle big chuncks of text? If yes, it will notbe too heavy for theserver? Any other ideas? Thank you, Rom -- PHP General Mailing List (http://www.php.net

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Romulo Roberto Pereira
Another good way to do that is to load the file in the database. The cities are a constant, and you can have them loaded in the database by a script that check if they exist, if not create a new row with the new city; if exist you update the data only... Because if each time that a user goes to a

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Romulo Roberto Pereira
you could use nl2br command on the string that holds the data... check this for further info... http://www.php.net/nl2br Have fun, Rom - Original Message - From: david klein <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 11:12 AM Subject: [PHP] How to handl

Re: [PHP] Netscape's back button not working like Explorer's...Why?

2001-01-16 Thread Romulo Roberto Pereira
in the buttom href put this: javascript:history.go(-1) works great to me... on click doesn't work very well o netscape in this cases... I expect that thisis what you want! Rom - Original Message - From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> To: Todd H MacPherson <[EMAIL PROTECTED]>

Re: [PHP] regexps

2001-01-16 Thread Romulo Roberto Pereira
Why don't you do a function with an ereg inside? I don't think that exist a command like that... Rom - Original Message - From: Elliot L. Tobin <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 11:59 AM Subject: [PHP] regexps Is there a way to call one regexp

Re: [PHP] RE: if php is so great, why is it so hard to make it work?

2001-01-16 Thread Romulo Roberto Pereira
I just posted this in php-win - this script installs everything automatically... My guess is that Mr.Mortemarquete is doing something wrong, because he has IIS AND APACHE in the same server... I found this link and think that is useful: http://www.firepages.com.au/phpdev.htm Have fun, Rom -

Re: [PHP] Netscape rand() not random

2001-01-17 Thread Romulo Roberto Pereira
you need to seed the rand with srand() before the rand() command... cheers, Rom - Original Message - From: Joel Dossey <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 1:39 PM Subject: [PHP] Netscape rand() not random Hello, I have been toying with php for

Re: [PHP]

2001-01-17 Thread Romulo Roberto Pereira
I didn't know that - very intersting! thank you Egon, this reaaly helps... Rom - Original Message - From: Egon Schmid (@work) <[EMAIL PROTECTED]> To: Karl J. Stubsjoen <[EMAIL PROTECTED]> Cc: PHP Mailing List <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 1:51 PM Subject: Re: [

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
I think that these are your answer: Memory use explanation in MYSQL DB: http://www.mysql.com/doc/m/y/myisamchk_memory.html Memory used by MYSQL DB: http://www.mysql.com/doc/M/e/Memory_use.html MYSQL DB Status: http://www.mysql.com/doc/S/H/SHOW_STATUS.html Problems with HARD DISKS and MYSQL DB:

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
amount of disk space usage on my server and I need to determine how much space they are using in the database. Any ideas on how to do this in PHP??? Please email me directly with a response. Thank you ----- Original Message ----- From: Romulo Roberto Pereira <[EMAIL PROTECTED]

Re: [PHP] Homepage

2001-01-17 Thread Romulo Roberto Pereira
what you can do also is using a HTTP header to redirect the user automatically to the index.php: the head of index.html could look like this: Untitled Document By this way you don;t need to change anything on apache... Rom - Original Message - From: S Bey <[EMAIL PROTECTED]> To: <

Re: [PHP] Hyperlink?

2001-01-17 Thread Romulo Roberto Pereira
do this INSIDE the head tags: this create the famous effect of when you mouse over appears the underline you can also set colors by: color: #XX, like the following: - SSL (PAGE 2 SERVER 2) SERVER 1: Apache and PHP SERVER 2: Novell with Netscape PAGE 1: PHP script page PAGE 2: PHP script page Wi

[PHP] I need an authentication method that is good... any Ideas? - please help

2001-03-22 Thread Romulo Roberto Pereira
Hello! I am constructing an intranet site. The site is all secure, I mean, all the pages are under a directory that needs a password to get in. These are facts: A) The user information is on a LDAP; B) The user should entry the pair login/password only once; C) Any access to the site without log

[PHP] submiting the contents of an IFRAME

2001-06-21 Thread Romulo Roberto Pereira
Hello! Anyone had tried to submit the contents (I mean the source code) of an IFRAME, so it can be available for PHP? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

[PHP] passing values to a javascript variable

2001-06-21 Thread Romulo Roberto Pereira
Hello! The following give me: unterminated string constant (this is a javascript error) when I execute the following: while ($row = mysql_fetch_array ($data_query_action)) { $data_data = $row["data_data"]; } echo "\n var ndata=\"".addslashes($data_data)."\";\nPutCode (ndata);

[PHP] parse error in PHP Manual in php web site...

2001-06-29 Thread Romulo Roberto Pereira
Parse error: parse error in /local/Web/sites/phpweb/include/shared-manual.inc on line 265 Fatal error: Call to undefined function: sendmanualheaders() in /local/Web/sites/phpweb/manual/en/getting-started.php on line 3 HELPPP!! :) Rom -- PHP General Mailing List (http://www.php.net/) T

[PHP] doing a search for domains

2001-07-05 Thread Romulo Roberto Pereira
Hello, I am curious about creating a script that would bring me results of a search organized not by the actual name of the domain but the lenght of each part of a domain. This is an example: Domains that finish in .com/.net/.org with the lenght of one character: a.com a.net a.org b.com b.net