[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

[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/)

[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

[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 script language=\javascript\\n var

[PHP] authenticating in other web server

2001-05-17 Thread Romulo Roberto Pereira
Hello! I am in an server with Apache and PHP. I want PHP to authenticate in other server (Novell with Netscape). Like this: SSL (PAGE 1 SERVER 1) 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

RE: [PHP] Multi Dimensional Arrays?

2001-05-15 Thread Romulo Roberto Pereira
Anyone knows how to determine how many levels has an array? TIA Rom -Original Message- From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 10:30 AM To: Brandon Orther; PHP User Group Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Multi Dimensional Arrays? You are

[PHP] problems creating a good auth/session control in my scripts

2001-05-08 Thread Romulo Roberto Pereira
Hello, I create an auth system using NDS as a LDAP server. Works fine. The problem is with the session handling (from my part probabilly)... I am using the PHP session functions. Again, works fine. register the sessions, the variables. But I am beeing unable to destroy the session. To destroy

[PHP] Wrapping text to store in the database

2001-05-08 Thread Romulo Roberto Pereira
Hello! If a user drop a text like this in a textarea: --- the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections,

[PHP] quick question: frames OT

2001-05-08 Thread Romulo Roberto Pereira
Hello! Just a quick ot question: From a php script I open a frameset this divides the browser window in two rows. How do I do to get rid of the frameset without closing the window? TIA Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] including html pages inside an interface

2001-04-24 Thread Romulo Roberto Pereira
Hello! This is the scenario: (a) I have an interface that will be the main interface with the user (b) I have a mail server (Mirapoint) that has a web interface (c) The web interface for the Mirapoint server is inside frames This is the problem: (a) let's say that I log in as a user from

[PHP] including html pages inside an interface

2001-04-24 Thread Romulo Roberto Pereira
Hello! This is the scenario: (a) I have an interface that will be the main interface with the user (b) I have a mail server (Mirapoint) that has a web interface (c) The web interface for the Mirapoint server is inside frames This is the problem: (a) let's say that I log in as a user from

[PHP] Help Needed in a short project with LDAP(NDS), Mirapoint and PHP as the main application server - OT (sorry)

2001-04-20 Thread Romulo Roberto Pereira
: Explanation of the project: 3 days - april, 25th to april, 27th) Development: 2 weeks (april,28th to may, 13th) Payment: Depends on developer experience. Per project type of payment (not per hour). Project Leader: Romulo Roberto Pereira Senior Internet Specialist Phone: 305.444.7433 E-mail

[PHP] Dynamic built web pages administration

2001-04-17 Thread Romulo Roberto Pereira
Hello, I was wondering if anybody have developed something related to dynamic web pages building and administration. I need to store the content of the site in the database and later as the user navigate, mount the content using templates. This part is easy, since PHP is very powerfull in this

RE: [PHP] baffled ::

2001-04-17 Thread Romulo Roberto Pereira
Even better, $id[] = $myrow["id"]; then count them: for ($i=0;$i count($id);$i++) { .. } Rom -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:00 AM To: Mark Maggelet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] baffled ::

RE: [PHP] baffled ::

2001-04-17 Thread Romulo Roberto Pereira
even better: use foreach! $id = $myrow["id"]; .. foreach ($id as $loop) { .. } -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:00 AM To: Mark Maggelet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] baffled :: This loop will

RE: [PHP] baffled ::

2001-04-17 Thread Romulo Roberto Pereira
I made a mistake: $id = $myrow["id"]; should read: $id[] = $myrow["id"]; -Original Message- From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:04 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] baffled :: even better: use foreac

RE: [PHP] Dynamic built web pages administration

2001-04-17 Thread Romulo Roberto Pereira
users writing to the page. But for administration used by only trusted people, it's actually pretty simple to put together. For use by people who aren't trusted... -- Plutarck Should be working on something... ..but forgot what it was. ""Romulo Roberto Pereira"" [EMAI

[PHP] ZOPE PHP

2001-04-16 Thread Romulo Roberto Pereira
Hello! Any comments in PHP for Zope? I don't know much thought... Some people told me that Zope is good a while ago... And I saw that know they have a PHP layer... How good is this? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] ooops PHP for Zope

2001-04-16 Thread Romulo Roberto Pereira
ooops - sorry about the other e-mail... I am sleeping here... heheheeh Hello! Any comments in PHP for Zope? I don't know much though... Some people told me that Zope is good a while ago... And I saw that now they have a PHP layer... How good is zope? Thank you, Rom -- PHP General Mailing

[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

Re: [PHP] $HTTP_SERVER_VARS has only 1 value

2001-01-22 Thread Romulo Roberto Pereira
He is on windows 98... - Original Message - From: Rasmus Lerdorf [EMAIL PROTECTED] To: Todd Cary [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 1:42 PM Subject: Re: [PHP] $HTTP_SERVER_VARS has only 1 value Are you running PHP as a CGI? On Mon, 22 Jan 2001,

Re: [PHP] MSSQL field type money bring a string not a number back

2001-01-22 Thread Romulo Roberto Pereira
I am sorry about this - I figured out already - was nothing to do with the convertion... Rom - Original Message - From: Romulo Roberto Pereira [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Monday, January 22, 2001 5:15 PM Subject: [PHP] MSSQL field type money bring a string

[PHP] MSSQL field type money bring a string not a number back

2001-01-22 Thread Romulo Roberto Pereira
Hey! After bringing and fetching the results, the data from a money field is treated like strings. There is a function or a command to make it treat the variables as numbers? Because I want to sum them. Thank you, Rom

Re: [PHP] GetImageSize problem

2001-01-21 Thread Romulo Roberto Pereira
Hello! First - some ISP block you from get files from their server by a httpd request (that is what php does... I think!). To be sure if this is set or not, in the other ISP (not the one that the images are) write a simple html like this: htmlheadtitleloading images between

Re: [PHP] GetImageSize problem

2001-01-21 Thread Romulo Roberto Pereira
$buffer += $skiplen+1024; }; $imgPos += $skiplen; break; }; file://endif check marker type }; file://endif loop through JPG chunks }; file://endif chk for valid file types # got the pic dimensions, close the

[PHP] getting from PHP the vars that are in the memory during the execution of the script...

2001-01-20 Thread Romulo Roberto Pereira
Hey! Is it possible to get the names of the variables allocated in the memory? thank you, Rom

Re: [PHP] Pre-loading HTML form w/ mySQL data

2001-01-20 Thread Romulo Roberto Pereira
There you go: ?php // DB connection $dbconnection = mysql_connect ("IP ADDRESS OR HOST+DOMAIN NAME","USERNAME - DEFULT is root","") or die ("Couldn't connect to Database."); // Select DB $database = mysql_select_db ("NAME OF THE DATABASE", $dbconnection) or die ("Couldn't select Database.");

Re: [PHP] Help w/ regular expressions for banned words

2001-01-20 Thread Romulo Roberto Pereira
try this; I am working on the last word... ereg replace is not finding the REGEX "\.$" - anyone has a clue? ? $bannedwords = array ("dadada", "dedede", "dididi"); $string = "Dadada in this world dadaDA is not permitedadada because this very deDede peoplededede that appears in our DIDIDi world

[PHP] quick question on the passed variables between scripts

2001-01-18 Thread Romulo Roberto Pereira
Hello! I have one script that has a bunch of checkboxes in a form, all them with different names. As you know the form only submit the ones that are checked. I would like to know witch ones the user checked (they will come in the path as variables I suppose) because I need to make a sum of the

[PHP] isset inside echo?

2001-01-18 Thread Romulo Roberto Pereira
it is possible to use isset inside a echo? like this: $checked = "CHECKED"; $nothing = ""; echo "input type=checkbox name=cb[0] value=$value[0] ".isset(cb[0])?$checked:$nothing.""; Rom

[PHP] srtoring user selection on the database...

2001-01-18 Thread Romulo Roberto Pereira
hello! I have a form and in this form I have 48 checkboxes. is there a way that my program could remember which ones were selected? looks like this:: form input type=checkbox name=cb[0] value=1 input type=checkbox name=cb[1] value=1 input type=checkbox name=cb[2] value=1 input type=checkbox

Re: [PHP] srtoring user selection on the database...

2001-01-18 Thread Romulo Roberto Pereira
- - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdow

[PHP] date problem: some months have 5 weeks... how I discover which ones?

2001-01-18 Thread Romulo Roberto Pereira
Hey! A little bit of definition: - a week start on sunday and ends on saturday; - a year has 365/7 ~= 52 weeks; How do I discover what months have 5 weeks and what have 4? 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 a

Re: [PHP] ? PHP vs. ?

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: [PHP]

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

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
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] To: [ rswfire ] [EMAIL PROTECTED]; [EMAIL

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: html head titleUntitled Document/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" meta http-equiv="refresh"

[PHP] fast question about session_start

2001-01-17 Thread Romulo Roberto Pereira
Hello! Two scripts: first.php and second.php I am a little bit confused... since I session_start() in first.php, I will need to session_start() in second.php also? first.php ? session_start(); session_register ("data01"); header("Location: second.php") ? thank you, Rom

Re: [PHP] fast question about session_start

2001-01-17 Thread Romulo Roberto Pereira
just discover - session by cookie sucks using db session handling it is better! Rom - Original Message - From: Romulo Roberto Pereira [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Thursday, January 18, 2001 1:39 AM Subject: [PHP] fast question about session_start Hello

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 handle

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 on

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

[PHP] Addendum to the question: as a cgi version...

2001-01-16 Thread Romulo Roberto Pereira
Hey! adding to the question above: as a cgi version what are the authentications methods available?

[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

[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: ? ... Database stuff ... include header.inc; PRINT THE CONTENT OF THE QUERY IN THE DATABASE (that is

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: !-- TEXT --ANY TEXT!-- TEXT -- this is what I want: !-- TEXT --ANY TEXTnbsp;a href="edittext.php?pageid=X"img src="images/edit_buttom.gif"/a!-- TEXT -- what

[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 am

[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