Re: [PHP] Getting any possible value inside an array

2001-07-07 Thread mike cullerton
i think this should work $color_list = array(); // not sure if you need this foreach ($myarray as $color) { if (!in_array($color,$color_list)) $color_list[] = $color; } http://php.net/in_array on 7/7/01 11:51 PM, Aaron Bennett at [EMAIL PROTECTED] wrote: Hi everyone... Does someone

RE: [PHP] Getting any possible value inside an array

2001-07-07 Thread Aaron Bennett
Perfect! I actually was making up the 'colors' analogy, but i've adapted it to what i need! -- Aaron -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 07, 2001 11:05 PM To: Aaron Bennett; [EMAIL PROTECTED] Subject: Re: [PHP] Getting any possible

Re: [PHP] Getting any possible value inside an array

2001-07-07 Thread Mark Charette
$newarray=array_flip($myarray) $newarray will have unique key values made up of the second element of $myarray. Mark C. - Original Message - From: Aaron Bennett [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 08, 2001 12:51 AM Subject: [PHP] Getting any possible value inside

RE: [PHP] Is it possible to have the parameters fo a function be exited HTML?

2001-06-23 Thread Jason Lustig
rant Its probably just as fast for you to test it out using what you have written here as it is for someone to give you the answer. /rant Well, that thought occurred to me just after I sent the email... but there's nothing you can do after hitting the send button, can you? --Jason -- PHP

[PHP] Is it possible to have the parameters fo a function be exited HTML?

2001-06-22 Thread Jason Lustig
HTML. Is it possible? --Jason -- 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] Is it possible to have the parameters fo a function be exited HTML?

2001-06-22 Thread Phillip Bow
t output the following HTML? snip TABLE TR TD A HREF=HTTP://WWW.PHP.NET;PHP.NET/A /TD /TR /TABLE /snip I know it's not a very useful use of strtoupper()... :) But I am curious about whether it is possible to have the parameters to a function in exited HTML. Is it possible?

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Yasuo Ohgaki
[Cross post to php-lang] Regular expression functions can do the job and already have reply. Answer for the original question: How to access string by character. I'm not sure if accessing string as array is going to be depreciated or not. (Or is it already depreciated???) But you could do $str

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread CC Zona
In article 9bjcj6$dg6$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Yasuo Ohgaki") wrote: I'm not sure if accessing string as array is going to be depreciated or not. (Or is it already depreciated???) I made a note of this a while ago when it came up on the list, because initially it sounded to me

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Sean Coyle
m -Original Message- From: Sean Coyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Is it possible to parse a variable by character? Hey there guys, This may seem like a dumb question, but I have to ask it anyway

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Sean Coyle
Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Sean Coyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Is it possible to parse a variable by character?

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Wico de Leeuw
ncerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Sean Coyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Christian Reiniger
On Wednesday 18 April 2001 07:22, you wrote: Hey there guys, This may seem like a dumb question, but I have to ask it anyway. I have a form in one of my php based scripts that allows for file uploads. I recently noticed a potential issue if people upload files containing anything else

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Christian Reiniger
On Wednesday 18 April 2001 12:00, you wrote: Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on line 91 Here are lines surrounding 91: 89- strtolower($f_loc_name); 90- $f_loc_new = ""; 91- $f_loc_new = ereg_replace("[^[_a-z0-9-\.]]", "", $f_loc_name);

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Sean Coyle
Christian, Thanks for pointing that out! Everything works excellently now! Now, all I have to do, is run another ereg_replace() to look for any duplicate full stops '.' and replace them with one, but I don't think that one will be to hard. For those of you interested, this is what the

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Yasuo Ohgaki
I got reply from core developer implementing new syntax. The implementation of syntax $var{index} is not finished yet. So PHP programmers are NOT supposed to use it yet. If you are curious, take a look at php-lang list archive. Again $var{index} is NOT supposed to used. (yet) -- Yasuo Ohgaki

[PHP] Is it possible to parse a variable by character?

2001-04-17 Thread Sean Coyle
Hey there guys, This may seem like a dumb question, but I have to ask it anyway. I have a form in one of my php based scripts that allows for file uploads. I recently noticed a potential issue if people upload files containing anything else but the standard characters

RE: [PHP] Is it possible to parse a variable by character?

2001-04-17 Thread Maxim Maletsky
PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Sean Coyle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Is it possible to parse a variable by character? Hey there guys, This may seem like a dum

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread elias
Hmm, I believe if were he host there is no PHP support, you can't work it out. unless: http://www.zend.com/zend/products.php#encoder use the encoder, then try to run throught the Zend Optimizer... ""Marian Vasile"" [EMAIL PROTECTED] wrote in message 9a1cr4$5fr$[EMAIL

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Marian Vasile
They have PHP support but I don't think they will want to install any other software... There is no other solution... ? There is no other free encoder on the market ? "Marian Vasile" [EMAIL PROTECTED] wrote in message 9a1cr4$5fr$[EMAIL PROTECTED]">news:9a1cr4$5fr$[EMAIL PROTECTED]... I need a

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
as a follow up: there was an e-mail recently from someone discussing this topic...i believe he wanted to write his own compiler/encoder for php...anyone heard anything about this? i agree about the price...i can't spend that much money for a piece of software; yet, i don't want to distribute

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Marian Vasile
I heard about something called php-gtk... Is that a php compiler ? Also I heard that is free because is open source project... Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... as a follow up: there was an e-mail recently from someone discussing this

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
no...gtk=gimp tool kit...(think graphics =P) http://gtk.php-coder.net/ check out that page...Joe Stump threw it together nicely; it has tons of useful info and links if you're so inclined, but no, nothing to do with compiling php... -jack Marian Vasile wrote: I heard about something called

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Marian Vasile
I can't believe that no one thought on something to compile all those scripts out there... I really can't give a solution based on plain text scripts and in this way php can't be for any use really... Anyone have Zend Encoder Unlimited ? Is there any buyer for this Encoder ? "Marian Vasile"

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Remco B. Brink
"Marian Vasile" [EMAIL PROTECTED] writes: I heard about something called php-gtk... Is that a php compiler ? From the Freshmeat project page: PHP-GTK is a PHP extension that implements language bindings for GTK+. It provides an object-oriented interface to GTK+ classes and functions and

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
ok, what exactly do you mean by "php can't be for any use really" better watch that kind of comment on this list ;-) can you not give a solution that's in plain text files because you're worried about people looking at the code, or something like running time, etc... if it's a code issue,

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread rui
i found a way, it's not the best secure thing, and best code obfuscator at all, but it will keep mosta part of the curious nose out of your code, use APC cache, it creates cache files encoded you can then use the encoded files, but you as always need to use they're static object loaded to read

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Marian Vasile
Search what ? I need to know if there is any way to encode the code... that's it... otherwise you have to agree with me that PHP can't be used for comercial solutions. (probably just when it's total trust between partners which is not a very common thing) Right ? Jack Dempsey [EMAIL PROTECTED]

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Remco B. Brink
"Marian Vasile" [EMAIL PROTECTED] writes: I can't believe that no one thought on something to compile all those scripts out there... I really can't give a solution based on plain text scripts and in this way php can't be for any use really... Maybe I am totally missing something here, but

RE: [PHP] Compile .php file is possible ?

2001-03-30 Thread Dominick Vansevenant
: [EMAIL PROTECTED] Subject: Re: [PHP] Compile .php file is possible ? "Marian Vasile" [EMAIL PROTECTED] writes: I can't believe that no one thought on something to compile all those scripts out there... I really can't give a solution based on plain text scripts and in this way

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
yes there is. the encoder. that's it. and no, i don't have to agree with you, there are plenty of people on this list alone who have used php for "commercial" applications...and if you're doing something that big and commercial the you should be able to pay the $2400 for the encoder... -jack

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Remco B. Brink
"Marian Vasile" [EMAIL PROTECTED] writes: Search what ? I need to know if there is any way to encode the code... that's it... Run it on a webserver, don't give out access to the code. If you don't want people to see your code, then don't give it away. Start programming in C++ or build Apache

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Marian Vasile
I've seen many people talking about Zend compiler... Where is that Zend compiler ? "Marian Vasile" [EMAIL PROTECTED] wrote in message 9a1cr4$5fr$[EMAIL PROTECTED]">news:9a1cr4$5fr$[EMAIL PROTECTED]... I need a method to compile my php files to give them to a customer. The main problem is that

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Pavel Kalian
Zend Compiler got renamed to Zend Encoder. Pavel - Original Message - From: "Marian Vasile" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 30, 2001 11:19 AM Subject: Re: [PHP] Compile .php file is possible ? I've seen many people talking about Zend compiler

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Marian Vasile
For all who asked why I need this kind of protection: I have a client who wants an web site with registration and everything included, poll, message board, forum etc. The registration system I builded myself. Now the client want's a preview, but he want this preview on his server. The entire

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Jack Dempsey
enter into a legal contract. if he breaks it, sue him. marian, i do understand your issues. I have the same type of problem (or soon will), but until a free encoder is released, we have to make do with what we can...and why does it have to be on his server?if you feel that the person would try

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Christian Reiniger
On Friday 30 March 2001 11:10, you wrote: Search what ? I need to know if there is any way to encode the code... that's it... otherwise you have to agree with me that PHP can't be used for comercial solutions. I do use it for commercial solutions. No problem. And I consider it part of my

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Christian Reiniger
On Friday 30 March 2001 11:24, you wrote: Now the client want's a preview, but he want this preview on his server. The entire solution costs 450 dollars. This price probably is too lower for some of you but I dont' live in US, I live in Romania. (PS: That's why Jack, I can't afford to buy

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Christian Reiniger
On Friday 30 March 2001 10:42, you wrote: can't spend that much money for a piece of software; yet, i don't want to distribute source that could be copied and distributed (well, sometimes that's good ;-), but not if this is a system i've been contracted to design ) Little question: If you've

Re: [PHP] Compile .php file is possible ?

2001-03-30 Thread Yasuo Ohgaki
I found interesting link http://www.deskcode.com/phpcompiler/ PHPCompiler v0.0.2 Beta PHPCompiler is an Overlay Manager i.e. A program that converts your PHP Scripts to Windows EXEcutable files that can be ran on any windows platform which has the necessary runtime DLL's. PHPCompiler works on

[PHP] Compile .php file is possible ?

2001-03-29 Thread Marian Vasile
I need a method to compile my php files to give them to a customer. The main problem is that this customer have an account on a shared hosting service and (I think) he can't install a compiler or something new on that server. Is it possible to encrypt my files ? Plz HELP ASAP Yours, Marian

[PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Michael Champagne
Is there a way to have an ordinary href link call some javascript and say "are you sure blah blah blah?" and then once you hit Ok it calls the same php file which then does all the database stuff? I know I can do this just by creating another PHP file and having the link call that, but it seems

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: Is there a way to have an ordinary href link call some javascript and say "are you sure blah blah blah?" and then once you hit Ok it calls the same php file which then does all the database

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Michael Champagne
But then how would you process it in the same file? If I'm calling it from myfile and my link is to myfile then how does it know that it's already been clicked? Thanks, Mike On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: Is there a

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 15:50:44 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: But then how would you process it in the same file? If I'm calling it from myfile and my link is to myfile then how does it know that it's already been clicked? well you can make the url be:

Re: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Reuben D Budiardja
At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: I have a huge database-driven list of clients with a checkbox next to each one. When I check one of these clients, I'm wanting one of those small javascript boxes to pop up and display the contacts for this client (another database lookup) and

RE: [PHP] Is this possible? PHP + Javascript

2001-03-26 Thread Joe Sheble \(Wizaerd\)
General Mailing List Subject: Re: [PHP] Is this possible? PHP + Javascript At 05:11 PM 3/26/01 -0600, Michael Champagne wrote: I have a huge database-driven list of clients with a checkbox next to each one. When I check one of these clients, I'm wanting one of those small javascript boxes

[PHP] Is it possible?

2001-03-26 Thread Deependra B. Tandukar
Greetings ! Is it possible to extract the field values in MySQL by PHP into the web browser so that it looks like files in Windows Explorer? Looking forward to hearing from you. Warm Regards, Deependra B. Tandukar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Is it possible?

2001-03-26 Thread Luke Welling
""Deependra B. Tandukar"" wrote: Is it possible to extract the field values in MySQL by PHP into the web browser so that it looks like files in Windows Explorer? That depends a little on what you mean. Making it _look_ like Windows Explorer should be easy. You can create HTML tables to mimic

Re: [PHP] Is it possible?

2001-03-26 Thread Deependra B. Tandukar
Thanks! I just need to browse the fields from the table, that's it. Some ideas please. Warm Regards, Deependra B. Tandukar - Original Message - From: "Luke Welling" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 11:03 AM Subject: Re: [PHP] Is i

Re: [PHP] Is it possible?

2001-03-26 Thread Philip Olson
Message - From: "Luke Welling" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 27, 2001 11:03 AM Subject: Re: [PHP] Is it possible? ""Deependra B. Tandukar"" wrote: Is it possible to extract the field values in MySQL by PHP into the web

[PHP] Is it possible to get call stack information?

2001-03-05 Thread Neil Kimber
Is there anyway within PHP to get a complete dump of the call-stack? I can't use the Zend debugger for technical reasons (awaiting bug fix before it will work in our environment). I'd love to have a call that would return an array of call stack info. to the current line. Thanks, Neil

Re: [PHP] Is it possible to use CyberCash w/o MCK?

2001-02-20 Thread jason cox
Ben, In order to use the Cybercash functions in php, you must have php installed with cybercash support. You can't compile php with cybercash support without the MCK. If your provider won't do it, you could always compile a PHP cgi binary with the cybercash extensions(or find a different

[PHP] Is it possible to use CyberCash w/o MCK?

2001-02-19 Thread Ben Schumacher
Hello- Does anybody have any example code for using CyberCash w/o the Merchant Connection Kit? I'm trying to setup secure credit card transactions on my site using CyberCash, but my provider doesn't have won't install the MCK (no PHP support for it either). I haven't tried installing the

Re: [PHP] Is it possible to send a html page via mail()???

2001-02-18 Thread Ifrim Sorin
Hi, Try this : ? $qry=getenv("QUERY_STRING"); $sirarg=explode("",$qry); $url_adr=$sirarg[0]; $mail_adress=$sirarg[1]; $fcontents = join ('', file ($url_adr)); $posta=mail($mail_adress ,"Requested URL: ".$url_adr, $fcontents ,"From: [EMAIL PROTECTED]\n"."MIME-Version:

[PHP] Is it possible to send a html page via mail()???

2001-02-17 Thread David Tandberg-Johansen
Hello ! I wonder if there are any class or script out there that you can give an url or file as an variable and then it sends this as html-mail to a given emailadress. david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re[2]: [PHP] is it possible to communicate javascript and php?

2001-01-23 Thread Dustin Butler
I've used the iframe tag in Internet Exploder to talk to the server via javascript. It may be possible using a regular frame also. Here's the low down on how I did it. 1.) Some onclick, onchange ... action calls a javascript function that looks like this function getData() {

Re: [PHP] is it possible to communicate javascript and php?

2001-01-20 Thread Alex Black
2001 09:01:33 -0800 Subject: [PHP] is it possible to communicate javascript and php? I would like to know if it possible to pass in any way some values from javascript functions to php variables ? Any FAQ? Thanks -- Evelio Martnez Testanet. Dept. desarrollo software. Av. Reino de

Re: [PHP] is it possible to communicate javascript and php?

2001-01-20 Thread Markus Fischer
On Sat, Jan 20, 2001 at 05:20:53PM -0800, Alex Black wrote : no without submitting information to the server with get or post. for example, if a bit of javascript you have comes up with some value, the only way you can get it to the server is to put it in a get and send the user to that

[PHP] is it possible to communicate javascript and php?

2001-01-19 Thread Evelio Martinez
I would like to know if it possible to pass in any way some values from javascript functions to php variables ? Any FAQ? Thanks -- Evelio Martnez Testanet. Dept. desarrollo software. Av. Reino de Valencia, 15 - 5 46005 Valencia (Spain) Tel: +34 96 395 90 00 Fax: +34 96 316 23 19

Re: [PHP] is it possible to communicate javascript and php?

2001-01-19 Thread Richard Lynch
I would like to know if it possible to pass in any way some values from javascript functions to php variables ? Yes, but... You can have JavaScript call another URL using something like: document.location = 'http://yoursite.com/whatever.php?foo=' . $foo; But keep this in mind: PHP lives on

<    1   2   3   4