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
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
$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
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
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]
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?
[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
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
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
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?
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]
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
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);
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
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
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
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
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
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
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
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
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
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"
"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
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,
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
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]
"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
: [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
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
"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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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:
""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
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
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
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
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
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
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:
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,
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() {
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
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
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
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
301 - 360 of 360 matches
Mail list logo