[PHP] Imprimir cierta cantidad de caracteres

2007-02-03 Thread Anuack Luna
Hola foreros. Tengo esta duda Realice un juego de registro Lo mande a imprimir El texto es grande. Me preguntaba que código coloco con el fin que me muestre hasta cierta cantidad de caracteres y cuando le de clic me muestre el resto? EJEMPLO: http://anuack.com/macromedia/ampliar_info.htm He uti

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Paul Novitski
On Feb 3, 2007, at 10:04 PM, Paul Novitski wrote: By the way, if every cell in every row is class "tabletext" why have a class at all? You could simply apply the desired styles to the td element. At 2/3/2007 10:05 PM, Albert Padley wrote: As far as the CSS on the , other cells in the table

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Albert Padley
On Feb 3, 2007, at 10:04 PM, Paul Novitski wrote: On Feb 3, 2007, at 9:09 PM, Albert Padley wrote: I have an echo statement that I use in conjunction with a MySQL query. echo "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field'] . "\n\"tabletext\">" . $row['division'] . "\n"; T

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Paul Novitski
On Feb 3, 2007, at 9:09 PM, Albert Padley wrote: I have an echo statement that I use in conjunction with a MySQL query. echo "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field'] . "\n\"tabletext\">" . $row['division'] . "\n"; This works perfectly fine. However, I will be using the

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Albert Padley
On Feb 3, 2007, at 9:09 PM, Christopher Weldon wrote: On Feb 3, 2007, at 9:09 PM, Albert Padley wrote: It's late and I've been at this a long time today so I throw myself on the mercy of the list. I have an echo statement that I use in conjunction with a MySQL query. echo "\n" . $row[

Re: [PHP] Stuffing code into variable

2007-02-03 Thread Christopher Weldon
On Feb 3, 2007, at 9:09 PM, Albert Padley wrote: It's late and I've been at this a long time today so I throw myself on the mercy of the list. I have an echo statement that I use in conjunction with a MySQL query. echo "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field'] . "\n\"ta

[PHP] Re: Matching numbers 1-100

2007-02-03 Thread bit-bucket
On Sat, 3 Feb 2007 12:58:19 -0500, tedd wrote: > At 5:09 PM + 2/3/07, Wikus Moller wrote: >>Hi. >> >>I want to know if anyone can help me with my code which matches a >>number to a range e.g. 1-15 and echoes an image if the number is in >>the range. >> >>The code would use the if statement and

[PHP] Stuffing code into variable

2007-02-03 Thread Albert Padley
It's late and I've been at this a long time today so I throw myself on the mercy of the list. I have an echo statement that I use in conjunction with a MySQL query. echo "\n" . $row['time'] . "\nclass=\"tabletext\">" . $row['field'] . "\n\">" . $row['division'] . "\n"; This works perfectly f

Re: [PHP] Billing client for studying documentation

2007-02-03 Thread Christopher Weldon
On Feb 3, 2007, at 8:09 PM, Mike Mannakee wrote: I have a php project I have been working on for several months. The client's requirements have expanded to include interfacing to an online service using xml, which I was familiar with but have never worked with prior to this project. I hav

[PHP] Billing client for studying documentation

2007-02-03 Thread Mike Mannakee
I have a php project I have been working on for several months. The client's requirements have expanded to include interfacing to an online service using xml, which I was familiar with but have never worked with prior to this project. I have spent a good number of hours reading up on xml, and

Re: [PHP] include file identifier

2007-02-03 Thread Robert Cummings
On Sun, 2007-02-04 at 03:27 +0200, Eli wrote: > Robert Cummings wrote: > > Looking at the code above... it would seem you want: > > > > include_once() > It's not the idea.. > > I'm not trying to make that code work, I want to know which exact > include (of the same file) does what.. > > Say

Re: [PHP] include file identifier

2007-02-03 Thread Larry Garfield
On Saturday 03 February 2007 7:27 pm, Eli wrote: > Robert Cummings wrote: > > Looking at the code above... it would seem you want: > > > > include_once() > > It's not the idea.. > > I'm not trying to make that code work, I want to know which exact > include (of the same file) does what.. Huh?

Re: [PHP] include file identifier

2007-02-03 Thread Eli
Robert Cummings wrote: Looking at the code above... it would seem you want: include_once() It's not the idea.. I'm not trying to make that code work, I want to know which exact include (of the same file) does what.. Say you got a loop of self-include: e.g: === a.php In "(id=X)!".. wha

Re: [PHP] include file identifier

2007-02-03 Thread Robert Cummings
On Sun, 2007-02-04 at 03:05 +0200, Eli wrote: > Hello, > > Does any included file in PHP have a unique identifier? (like a stack of > includes identifier). > > If the files names are different, then __FILE__ can be used as an > identifier. But if a file was included by itself, then __FILE__ is

[PHP] include file identifier

2007-02-03 Thread Eli
Hello, Does any included file in PHP have a unique identifier? (like a stack of includes identifier). If the files names are different, then __FILE__ can be used as an identifier. But if a file was included by itself, then __FILE__ is the same, tho there are 2 different includes of the same

Re: [PHP] Who uses PHP

2007-02-03 Thread Christopher Weldon
Well, if you do not know the answer to my particular question, I'm curious how might you respond to someone who says: PHP has to many security issues and should not be used with a user authentication system. We should use XXX. I think security mainly depends on the programmer and no

RE: [PHP] Graphs

2007-02-03 Thread Peter Lauri
Gnuplot can do it for you as well... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 02, 2007 12:56 PM To

Re: [PHP] Pop up window in PHP code

2007-02-03 Thread Myron Turner
Chris Carter wrote: I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of "" '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo " $shopname $category $su

Re: [PHP] Pop up window in PHP code

2007-02-03 Thread wwww
Sorry, if already posted, just did not get any confirmation, wanted to make sure the e-mail has been sent. Try this: function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } click here"; ?> Ed

Re: [PHP] Pop up window in PHP code

2007-02-03 Thread wwww
Try this: function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } click here"; ?> Ed > I am trying to open a Java script pop up widow from within the php code. Not > able to get it done, the

Re: [PHP] Pop up window in PHP code

2007-02-03 Thread Paul Novitski
At 2/3/2007 12:44 PM, Chris Carter wrote: I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of "" '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo " $sh

[PHP] Pop up window in PHP code

2007-02-03 Thread Chris Carter
I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of "" '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo " $shopname $category $subcategory $level j

Re: [PHP] Regex Mixtake

2007-02-03 Thread Robert Cummings
On Sat, 2007-02-03 at 13:58 -0500, Manolet Gmail wrote: > 2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>: > > You have to use preg_match_all() > > > > if (preg_match_all("!\"(.+)\"!sU", $var, $match)) > > > > > > oh wow! works very well... but... i take 2 days reading about ereg ='( > there is

Re: [PHP] Regex Mixtake

2007-02-03 Thread Steffen Ebermann
Side note: $exp = explode('"', $var); foreach ($exp as $key => $val) if ($key%2!=0) $arr[] = $val; var_dump($arr); works without regular expressions. -- Steffen On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote: > Hi, i have a problem using regex, i want to get all the text b

Re: [PHP] Regex Mixtake

2007-02-03 Thread Manolet Gmail
well thanks you too much, i will learn the preg sintax. 2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>: I don't know, but http://php.net/manual/en/function.ereg.php says "Note: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg

Re: [PHP] Regex Mixtake

2007-02-03 Thread Steffen Ebermann
I don't know, but http://php.net/manual/en/function.ereg.php says "Note: preg_match(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg()." On Sat, Feb 03, 2007 at 01:58:50PM -0500, Manolet Gmail wrote: > anyway, PCRE is better that ereg?

Re: [PHP] Regex Mixtake

2007-02-03 Thread Manolet Gmail
2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>: You have to use preg_match_all() if (preg_match_all("!\"(.+)\"!sU", $var, $match)) oh wow! works very well... but... i take 2 days reading about ereg ='( there is no way to do this using ereg an not preg (PCRE)... anyway, PCRE is better that

Re: [PHP] Regex Mixtake

2007-02-03 Thread Steffen Ebermann
You have to use preg_match_all() if (preg_match_all("!\"(.+)\"!sU", $var, $match)) On Sat, Feb 03, 2007 at 12:36:59PM -0500, Manolet Gmail wrote: > Hi, i have a problem using regex, i want to get all the text between " " > > so i try this... > > $subject = 'menu "Archer?",-,"Chief?",L_Menu2,

Re: [PHP] Help with matching numbers 0-100

2007-02-03 Thread Myron Turner
Chilling Lounge Admin wrote: Hi. I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code would be something like if(preg_matc

[PHP] Regex Mixtake

2007-02-03 Thread Manolet Gmail
Hi, i have a problem using regex, i want to get all the text between " " so i try this... $subject = 'menu "Archer?",-,"Chief?",L_Menu2,"Big Mouth?",L_Menu3;'; if (ereg('"([^"]*)"', $subject, $regs)) { print_r($regs); } but just return me: Array ( [0] => "Archer?" [1] => Archer?

Re: [PHP] Matching numbers 1-100

2007-02-03 Thread tedd
At 5:09 PM + 2/3/07, Wikus Moller wrote: Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-1

[PHP] Matching numbers 1-100

2007-02-03 Thread Wikus Moller
Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-10 and if it does it echoes a certain image. A

[PHP] Matching numbers 1-100

2007-02-03 Thread Wikus Moller
Hi. I want to know if anyone can help me with my code which matches a number to a range e.g. 1-15 and echoes an image if the number is in the range. The code would use the if statement and check if a variable for example 5 matches the range like 4-10 and if it does it echoes a certain image. A

[PHP] Re: Help with matching numbers 0-100

2007-02-03 Thread frank
better make a switch statement: with case such as switch($x): case ($x >= 16 && $x <= 30): break; case set* ""Chilling Lounge Admin"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi. > > I need help with matching a variable. The variable would be e.g. 0-15 > , 16

Re: [PHP] is there socket.so file?

2007-02-03 Thread chetan rane
HI Yeni I had similar problems i recommmend using the following fsockopen() instead open_socket() it wprks fine on both On 2/3/7, Yeni Setiawan <[EMAIL PROTECTED]> wrote: Hi there, I'm currently writing an IRC bot using php (CLI) and get a little problem. For windows version, I need to ena

[PHP] Help with matching numbers 0-100

2007-02-03 Thread Chilling Lounge Admin
Hi. I need help with matching a variable. The variable would be e.g. 0-15 , 16-30 etc. and when the variable is equal to a certain range, it would echo an image. Does anyone know what function I should use? preg_match? The code would be something like if(preg_match("[16-30]",$variable)) { echo

Re: [PHP] Executing scripts from a table

2007-02-03 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Feb 3, 2007, at 9:32 AM, Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: I'm not putting any core code into tables, just code which generates page content. The access rights to that page content, as well as security code and application objects are not there. That code is off of

[PHP] is there socket.so file?

2007-02-03 Thread Yeni Setiawan
Hi there, I'm currently writing an IRC bot using php (CLI) and get a little problem. For windows version, I need to enable socket extension (socket.dll) and my bot will be able to connect to an IRC server. But in linux version, it's unable to connect. So I wonder if there's a " socket.so" or som

Re: [PHP] Executing scripts from a table

2007-02-03 Thread Ken Kixmoeller -- reply to [EMAIL PROTECTED]
On Feb 2, 2007, at 6:59 PM, Richard Lynch wrote: Putting PHP source into MySQL is the WRONG way to go for security and efficiency... Thank you, Richard -- I appreciate your advice. Here is a qualifier: I'm not putting any core code into tables, just code which generates page content. The a

[PHP] Jabber conection manager

2007-02-03 Thread chetan rane
HI all i want to develop a Jabber connection manage its role will be 1. accept HTTp request from the Client 2. establish connection with a jabber server using TCp 3. and later start the instant mechanism between them has any one worked on this please let me know how to do it -- Have A plesant

Re: [PHP] Reading from the htpasswd file

2007-02-03 Thread Ryan A
Hey! (Forgive me for top posting but in this case I think it makes more sense) Thanks for the tips, you've given me some excellent starting points so will start experimenting from there and come back when I start running into problems (which I am sure I will as I still dont know RegEx so preg_*