Hi,
Is there a possibility to search arrays in PHP? For example I'd like to find
out the index-number of
$countries["singapore"];
but only if that country exists in the array.
TIA,
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
hehe, oops! :) thanks by the way,it worked! :))
--
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]
is there also a way to search for, let's say '*china*' because in my array
it would say "Republic of China" and when searching for "china" I get no
result from the array...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Yes, but you've got to trick your HTTP-software into believing that a .html
(or .htm respecitvely) is actually a PHP file. I can't quite remember the
tag to do so, but you should find it at www.apache.org somewhere. It's
called file mapping.
--
PHP General Mailing List (http://www.php.net/)
T
Hi Richard,
Thanks a lot for your prompt reply!! I get a parse-error, however, on line
77 (marked below):
function search_the_array($array) {
global $search_tmp;
$result = array_search($search_tmp, $array, TRUE);
reset($array);
Line77:while (!($resu
my guess would be Parent Working Directory, but i'm not sure...
--
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]
Hi,
function search_the_array($array) {
global $search_tmp;
$result = array_search($search_tmp, $array, TRUE);
reset($array);
while (!($result === FALSE) && (list($k, $v) = each($array)))
{
// Or maybe you wanted ereg($searc
Hi Hugh,
> First, array_search returns an array of keys where the values are
> exact matches... while you want to match a substring (I think);
Yes, but exact matches are better :))
> Then, it searches through the array again using regular expressions,
> and each time it finds something, it over-
Hi,
You can create a .bat file which says the commands you want to run and then
schedule the .bat...
HTH,
Raphael
--
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
Hi,
I have written a "Permission Converter" which converts unix permissions (the
ones we know from CHMOD) into a "-" delimited string of numbers. I also made
it that it supports one more level (unix only has 3 different types of
permissions, (r,w,x) while mine can handle a fourth one. Since I'm j
What does the ending "0700" mean in this line? (please don't refer me to the
manual, I read through it...) are these the user-permissions as you specify
them in chmod?
mkdir ("/path/to/my/dir", 0700);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
thanks dave!
--
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]
Hi,
I have a dynamic multiple select where data is added to using the JavaScript
found here:
http://javascript.internet.com/forms/menu-swapper.html
I have a question: How do I read all the values into an array or something
else? My select has the NAME "read".
TIA,
Raphael
--
PHP General M
Hi Richard,
The system is not for any boxes use - it's for the user-access system I'm
developing for my companie's Website. I copied the system they use at unix a
little. We have READ and WRITE permissions and 4 different user-categories.
1,2,4,8 - the reason I'm splitting this up is actually qui
convert both to a timestamp... check
http://www.php.net/manual/en/function.mktime.php for more info
--
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
it should be inside C:\PHP\extensions
if the file is not in there, then you should download the package again.
also remember to specify the extension in your php.ini!!
cheers
raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
http://php.resourceindex.com/Complete_Scripts/Access_Counters/
--
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]
> 127.0.0.1
> 127.0.0.10
> 127.0.0.100
> 127.0.0.101
> 127.0.0.102
well, this looks pretty sorted to me :) you wanted them sorted by numeric
value, right??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
"Lang Sharpe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can't be done AFAIK. Because your webserver never receives the information
> when the page is reloaded, you can't send it back to him when he reloads.
only partly correct. it can't be done using PHP
> $number = MYSQL_NUM_ROWS($result);
$number = MYSQL_NUMROWS($result);
--
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]
Hi Chris,
FYI:
"Chris Fry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Should be ORDER BY ID, DESC
actually it shouldn't be this way, since DESC is an option of the ORDER BY
command meaning DESC...
ORDER BY [column] [ASC | DESC] (ASC is default)
so the o
hehe, I just figured that you can use both... with and without the '_'.
sorry for messing this up. the one with the "_" is actually featured in the
documentation, while my code keeps getting shorter over time because of
lazyness :)
"Raphael Pirker" <[EMAIL PR
better late than never :)
--
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]
> Do you know What's a logo worth: PRICELESS.
so how come you're putting a price on it then?
> Do you have a logo ?
you bet
> Do you have what it takes to design one ? To do it in Flash ?
yup
> Do you heve what it takes to put it on your website ? on your stationery &
Business card ? On litera
You can see hosts offer the package for around $10/month, so if it's inside
a package they shouldn't charge more than US$2-US$4/month. If it's an extra
feature, however, they may well charge around $5/month for the add-on and
possibly also a setup fee, because it's not in their actual product list
www.communitech.net
--
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]
adding an "@" sign in front of the mysql functions ($db =
@mysql_connect(...)) will switch the function "silent", meaning PHP won't
display any error messages if the function fails. did you try that?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
I've developed an intranet running on win2k adv server/IIS and it sets lots
of cookies... it hasn't crashed until now. But then again, microsoft's
"random crash" feature which they implement into all of their programs might
have just gotten hold of you ;)
--
PHP General Mailing List (http://ww
Hi,
i just moved my PHP project from my local PC to the online webserver and I
will need to do a few adjustments to the server. since the server is used by
all the employees in the company, there is no chance I can reboot it without
prior notice... my question: is there any way I can refresh the
if there were, webmasters could take control over your printer using their
website. what a horrible thought! you can start a "request for print"
however, simply by adding :
this will open a print window...
Hope that helps,
Raphael
--
PHP General Mailing Li
Hi Guys,
Is there any way I can create a zip file from files? (filenames and their
paths will be specified in an array) Any help would be very much
appreciated!
TIA,
Raphael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
this link refers to a function READING zip files, not actually creating
one...
--
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]
32 matches
Mail list logo