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

[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] 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] 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 Wi

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 on

[PHP] easy one

2001-05-15 Thread Romulo Roberto Pereira
Hello! How do I check if a session exist before I call session_start()? TIA, 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 list administrators, e-mail: [EMAIL PROTECTED]

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

[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, ca

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

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

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

[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
Frame: 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

RE: [PHP] Dynamic built web pages administration

2001-04-17 Thread Romulo Roberto Pereira
a applets, etc, that you don't want 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. "&

RE: [PHP] baffled :<:

2001-04-16 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:

RE: [PHP] baffled :<:

2001-04-16 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-16 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 :<:<

[PHP] Dynamic built web pages administration

2001-04-16 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 ar

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

[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] For

[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] 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] 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 m

Re: [PHP] quick PHP question on unset()

2001-01-22 Thread Romulo Roberto Pereira
try $var1 = NULL I think that will work Rom - Original Message - From: indrek siitan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 4:33 PM Subject: [PHP] quick PHP question on unset() Hi, i've got a $var1 that's referencing to a $var2 ($var1=&$var2;) ..

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] XML Processing Instruction ( was "

2001-01-21 Thread Romulo Roberto Pereira
I forgot to mention that if is PHP the parser (since you are creating PHP scripts in a server that use PHP as CGI or as a module) this could not be treated by the parser? I mean, the common XML tag is To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 5:03 PM Subject: [PH

Re: [PHP] XML Processing Instruction ( was "

2001-01-21 Thread Romulo Roberto Pereira
If I am not mistaken XML tags needs to be identifed. So ... Maybe we could vote the use or not of this feature? Rom - Original Message - From: Brian White <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 5:03 PM Subject: [PHP] XML Processing

Re: [PHP] GetImageSize problem

2001-01-21 Thread Romulo Roberto Pereira
endif chk for valid file types # got the pic dimensions, close the file fclose ($fd); return array( $width,$height,$type ); } else return array( '','','' ); }; file://endif valid file pointer chk }; // end function ?> Rom - Original

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: loading images between servers http://Domain/ImagesDir/I

Re: [PHP] get last directory of a full path? (parent directory)

2001-01-20 Thread Romulo Roberto Pereira
Hello! > whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ? > dirname will cut off hello.php but i want to cut dir1 and dir2 as well I believe that this will do the job

Re: [PHP] What's wrong with this link?

2001-01-20 Thread Romulo Roberto Pereira
the slashes ate no the correct escape slashes... the correct would be: print "\">Click Here"; - Original Message - From: Mike Yuen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 1:25 PM Subject: [PHP] What's wrong with this link? I realize my slashes ar

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? "; echo $string.""; for($i=0;$i<$num;$i++) { $string = eregi_replace("{$bannedwords[$i]}","[censored]",$string); } */ echo $string.""; // take out the damn ; . : chars on the end of th

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

2001-01-20 Thread Romulo Roberto Pereira
There you go: WHERE ; // execute query $query_result = mysql_query ($query,$dbconnection) or die ("Couldn't execute query in Database."); // fetching values with while while ($row = mysql_fetch_array ($query_result)) { $VAR1= $row["COLUMN1"]; $VAR2 = $row["COLUMN2"]; } ec

[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] date problem: some months have 5 weeks... how I discoverwhich ones?

2001-01-18 Thread Romulo Roberto Pereira
stion! Rom - Original Message - From: jeremy brand <[EMAIL PROTECTED]> To: Romulo Roberto Pereira <[EMAIL PROTECTED]> Cc: php-general <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 7:14 PM Subject: Re: [PHP] date problem: some months have 5 weeks... how I discoverw

[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] 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.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18

[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:: ... I would lke to remember which ones the user clicked on... Thank you! Rom

[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 ""; Rom

[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 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 ones t

Re: [PHP] Ethics question...

2001-01-17 Thread Romulo Roberto Pereira
Copyright? This do not exist!!! See the case of NAPSTER... This drive me nuts! Rom - Original Message - From: Egan <[EMAIL PROTECTED]> To: Les Neste <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 2:38 AM Subject: Re: [PHP] Ethics question... On Thu, 18 Jan

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 s

[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 thank you, Rom

Re: [PHP] Sub Newbie Question On Error Message - Corrected...

2001-01-17 Thread Romulo Roberto Pereira
I think that the file is always there...It would not be easier to save the current message in a text file and compare it with the new one that fopen is bringing?? Rom - Original Message - From: Toby Butzon <[EMAIL PROTECTED]> To: Dave Stewart <[EMAIL PROTECTED]>; PHP (General) <[EMAIL PRO

Re: [PHP] Sub Newbie Question On Error Message

2001-01-17 Thread Romulo Roberto Pereira
I think that the file is always there...It would not be easy to sabe the current message in a text file and compare it with the new one that fopen is bringing?? Rom - Original Message - From: Toby Butzon <[EMAIL PROTECTED]> To: Dave Stewart <[EMAIL PROTECTED]>; PHP (General) <[EMAIL PROTE

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: )",$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] 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

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

[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

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