Re: [PHP] passing array to another php file

2002-04-11 Thread Edward van Bilderbeek - Bean IT

two possibilities: 
- put your array in a form with hidden fields
- use sessions

I would prefer the second option (check manual for sessions)

Greets,

Edward


- Original Message - 
From: "Hirono Tanaka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 10:33 AM
Subject: [PHP] passing array to another php file


> Hi, does anyone know how to pass an array to different php file?
> 
> Let's assume I have an array $array[] in sample1.php.  I want to pass the
> array to a different php files by doing something like:
> 
>   ...
> 
> This didn't work actually.  I can't think of any other wayto do this.
> Please help.  Thanks.
> 
> 
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] formatting a numeric string

2002-04-10 Thread Edward van Bilderbeek - Bean IT

try:
print ereg_replace("^([0-9]{3})([0-9]{3})([0-9]*)$", "(\\1) \\2 - \\3",
$phone_number);


Greets,

Edward


- Original Message -
From: "Erik Price" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 4:13 PM
Subject: [PHP] formatting a numeric string


> I have the following code --
>
> $phone_number = "8005551212";
> $phone_array = explode("", $phone_number);
> $phone_number = sprintf("(%s%s%s) %s%s%s-%s%s%s%s", $phone_array[0],
> $phone_array[1], $phone_array[2], $phone_array[3], $phone_array[4],
> $phone_array[5], $phone_array[6], $phone_array[7], $phone_array[8]);
>
> Is this really the best way to achieve $phone_number = "(800)
> 555-1212" ?  Or am I taking the long way around, and there's a function
> that can do this better?
>
> Thanks,
>
>
> Erik
>
>
>
>
>
> 
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] FTP

2002-04-04 Thread Edward van Bilderbeek - Bean IT

Hi,

I'm creating an FTP script for uploading files... but now, when I pull out
the network plug of the server (so the connection is lost), my program
doesn't stop running... any ideas of how to check if a connection is still
alive?

Edward


// partial code:

for ($i=0; $ihttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Comparrison

2002-03-27 Thread Edward van Bilderbeek - Bean IT

use regular expressions: 

if (ereg("MSIE 5.5", $HTTP_USER_AGENT)) {
}

Greets,

Edward

- Original Message - 
From: "Ron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 27, 2002 1:46 PM
Subject: [PHP] Comparrison


> How would I compare to variables where I would want one variable to equal
> only part or some of the other variable?
> Here is the code
> 
>  if ($HTTP_USER_AGENT !== "%MSIE 5.5%") {
>  print "You must upgrade your browser";
> } else {
>  exit;
> }
> 
> ?>
> 
> Any suggestions
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Formatting input text?

2002-03-16 Thread Edward van Bilderbeek - Bean IT

As Oliver says, it is possible in PHP, but then you have to do it, AFTER the
form is submitted... Just do some regular expressions on your data before
displaying / storing it...

Edward


- Original Message -
From: "Andre Dubuc" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 16, 2002 7:49 PM
Subject: Re: [PHP] Formatting input text?


> Hi Edward,
>
> If I wanted to avoid Javascript, could I still accomplish this in PHP?
>
> Regards, Andre
>
>
> On Saturday 16 March 2002 13:33, you wrote:
> > Just use javascript... (be careful, what works with IE, doesn't
> > automatically work with Netscape)...
> >
> > Greets,
> >
> > Edward
> >
> > - Original Message -
> > From: "Andre Dubuc" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, March 16, 2002 4:44 PM
> > Subject: [PHP] Formatting input text?
> >
> > > I wonder whether this is possible?
> > >
> > > I would like to format a text input so that the first letter of the
input
> >
> > (as
> >
> > > the user is typing it in) would automatically be converted to
Uppercase
> > > (capitals). Furthermore, if it is possible, I would like to pre-format
> > > the date "input type=text" so that only numbers or dashes could be
> > > entered. I really enjoyted this capablity in Paradox PAL language.
> > >
> > > Does anything exist that would allow me to do this in PHP?
> > >
> > > An example:
> > >
> > > Code
> > > Surname
> > > 
> > >
> > > Screen (and into database)
> > > Surname: black   >> would be converted as they type to >> Surname:
Black
> > >
> > > Any suggestions or advice would be greatly appreciated.
> > > Tia,
> > > Andre
> > >
> > >
> > > --
> > > Please pray the Holy Rosary to end the holocaust of abortion.
> > > Remember in your prayers the suffering souls in Purgatory.
> > >
> > > May God bless you abundantly in His love!
> > >
> > > For a free Cenacle Scriptural Rosary Booklet --
> >
> > http://www.webhart.net/csrb/
> >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> Please pray the Holy Rosary to end the holocaust of abortion.
> Remember in your prayers the suffering souls in Purgatory.
>
> May God bless you abundantly in His love!
>
> For a free Cenacle Scriptural Rosary Booklet --
http://www.webhart.net/csrb/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Problem with sessions.

2002-03-16 Thread Edward van Bilderbeek - Bean IT

maybe you better use:

session_unregister("counter");

Greets,
Edward


- Original Message -
From: "Carlos Costa Portela" <[EMAIL PROTECTED]>
To: "php-general mailing list" <[EMAIL PROTECTED]>
Sent: Saturday, March 16, 2002 4:49 PM
Subject: [PHP] Problem with sessions.


> Hello all:
>
> I am playing with sessions and I have a problem with the
> session_destroy() function. If I do a session_register() after calling it,
> the session recover the previous values (values that I supposed forgot by
> the session).
>
> At
> http://casa.ccp.servidores.net/tutorials/php/sessions/sessions.php and
> http://casa.ccp.servidores.net/tutorials/php/sessions/sessions.phps you
> have the web page and the code, respectively.
>
> The problem is that the "counter" variable maintains the value
> even after click "logout".
>
> If you go to the web page, press:
>
> login -> counter=0
> other link -> counter=1
> other link -> counter=2
> other link -> counter=3
> logout
> other link -> counter=4
>
> I suppose that the problem is that I call
> session_register("counter"). How must I solve this problem?
>
> Best regards and thanks in advance,
> Carlos.
>
> [ all about php+web : http://www.improveyourweb.com ]
>
>  ___Carlos Costa
Portela_
> | e-mail:  [EMAIL PROTECTED] | home page:
http://casa.ccp.servidores.net |
> |_Tódalas persoas maiores foron nenos antes, pero poucas se
lembran__|
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Formatting input text?

2002-03-16 Thread Edward van Bilderbeek - Bean IT

Just use javascript... (be careful, what works with IE, doesn't
automatically work with Netscape)...

Greets,

Edward

- Original Message -
From: "Andre Dubuc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 16, 2002 4:44 PM
Subject: [PHP] Formatting input text?


> I wonder whether this is possible?
>
> I would like to format a text input so that the first letter of the input
(as
> the user is typing it in) would automatically be converted to Uppercase
> (capitals). Furthermore, if it is possible, I would like to pre-format the
> date "input type=text" so that only numbers or dashes could be entered. I
> really enjoyted this capablity in Paradox PAL language.
>
> Does anything exist that would allow me to do this in PHP?
>
> An example:
>
> Code
> Surname
> 
>
> Screen (and into database)
> Surname: black   >> would be converted as they type to >> Surname: Black
>
> Any suggestions or advice would be greatly appreciated.
> Tia,
> Andre
>
>
> --
> Please pray the Holy Rosary to end the holocaust of abortion.
> Remember in your prayers the suffering souls in Purgatory.
>
> May God bless you abundantly in His love!
>
> For a free Cenacle Scriptural Rosary Booklet --
http://www.webhart.net/csrb/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] multiple variables

2002-03-15 Thread Edward van Bilderbeek - Bean IT

or use something like this:

$array_values = array(1,2,3,4);
if (in_array(user($arbitraryVariable), $array_values)) {
// do your stuff
}

Greets,

Edward

- Original Message -
From: "Christoph Starkmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:11 PM
Subject: RE: [PHP] multiple variables


> Hi!
>
> > if(user($arbitraryVariable)==(1 or 2 or 3 or 4))
> > What would be the proper syntax for this?
>
> Here:
>
> if((user($arbitraryVariable) >= 1) and ($arbitraryVariable <= 4) and
> ($arbitraryVariable == round($arbitraryVariable)))
>
> In other cases, you'd have to write
>
> if((user($arbitraryVariable)==1) or (user($arbitraryVariable)==2) or
(...))
>
> Cheers,
>
> Kiko
>
> -
> It's not a bug, it's a feature.
> christoph starkmann
> mailto:[EMAIL PROTECTED]
> http://www.fh-augsburg.de/~kiko
> ICQ: 100601600
> -
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT

Jep, that was what I meant... sorry Erik, didn't read your question right...

Edward

- Original Message -
From: "Jan Rademaker" <[EMAIL PROTECTED]>
To: "Erik Price" <[EMAIL PROTECTED]>
Cc: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>; "Phil
Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 11:03 PM
Subject: Re: [PHP] include() question


> On Thu, 14 Mar 2002, Erik Price wrote:
>
> >
> > On Thursday, March 14, 2002, at 04:34  PM, Edward van Bilderbeek - Bean
> > IT wrote:
> >
> > > you can't use a variable as a parameter for the included file...
because
> > > include does nothing else then putting the text of the include file on
> > > the
> > > place of the include statement...
> >
> > Are you sure about this?  I'm almost positive that PHP is flexible about
> > accepting variables or strings as function arguments in most cases.  I
> > just tested it, and it seems to work fine...
> >
> > $includefile = './leftnavigation.inc';
> > include($includefile);
> >
> I think what Edward means is that you can't pass parameters to an included
> file, like include("some.inc?var=value");
> That's true, at least for local
> files. include("http://remotesite/some.php?var=value";) will work, as long
> as remotesite has php installed, of course.
>
> --
> Jan Rademaker <[EMAIL PROTECTED]>
> http://www.ottobak.com
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT

Hmmm, now I'm in doubt... I always had errors using it, so I stopped using
it... I also have problems with variables that have the same name and are in
both the original file and the included file... might it have something to
do with the PHP version you're working on?

Greets,

Edward

- Original Message -
From: "Erik Price" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
Cc: "Phil Schwarzmann" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 10:58 PM
Subject: Re: [PHP] include() question


>
> On Thursday, March 14, 2002, at 04:34  PM, Edward van Bilderbeek - Bean
> IT wrote:
>
> > you can't use a variable as a parameter for the included file... because
> > include does nothing else then putting the text of the include file on
> > the
> > place of the include statement...
>
> Are you sure about this?  I'm almost positive that PHP is flexible about
> accepting variables or strings as function arguments in most cases.  I
> just tested it, and it seems to work fine...
>
> $includefile = './leftnavigation.inc';
> include($includefile);
>
> I posted a question on this list about a month ago, and someone said
> that you can use variables or strings in many cases -- just remember
> that the variable expands to the string BEFORE being processed by the
> function.
>
> Erik
>
>
>
>
> 
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] include() question

2002-03-14 Thread Edward van Bilderbeek - Bean IT

you can't use a variable as a parameter for the included file... because
include does nothing else then putting the text of the include file on the
place of the include statement...

so this should work:

$var = 'bladibla';
include('index.php');


Greets,

Edward


- Original Message -
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 10:20 PM
Subject: [PHP] include() question


> Why doesn't this work...
>
> include("index.php?var='$var');
>
> I want to include a page in my code and send a variable to it but I get
> some funky error.
>
> THANKS!!
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sorting in php

2002-03-14 Thread Edward van Bilderbeek - Bean IT

check the 1001 sort functions in the manual http://www.php.net for
instance...

Edward

- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 1:36 PM
Subject: [PHP] Sorting in php


>
> Hello,
>
>   Can anyone please tell me is there any function in php for sorting in
> which the contents are stored in array
>
>
> -Uma
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] input

2002-03-13 Thread Edward van Bilderbeek - Bean IT

 the single quotes you use for your echo indicate that the variable in your
echoed string won't be parsed double quotes indicate that it will be
parsed...

e.g.

$test = 1

echo '$test'   // prints: $test
echo "$test"  // prints: 1

Greets,

Edward

>
> > hello,
> > Someone was kind enough to give me this code for sending a value
from
> > one page to another, but it doesn't work. I wonder if anyone can see
> > anything wrong:
> >
> >  > echo '
> > 
> > ';
> > ?>
> >
> > I want to pass $inp to another pagee.
> >
> > Thanks In advance
> > John
> >
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] 5 Records per line

2002-03-11 Thread Edward van Bilderbeek - Bean IT

just use something like this in your while-loop:

if ($counter % 5 == 0) {
print "";
}


Greets,

Edward


- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 5:08 PM
Subject: Re: [PHP] 5 Records per line


> On Tuesday 12 March 2002 00:03, Thomas Edison Jr. wrote:
> > Hi,
> >
> > I would like to display 5 records per line on the
> > Results page. Not seperated by a comma, but just
> > seperated by Space. How can i do that?
>
> Pseudo code:
>
>   connect to db
>   make query
>   while results {
>display 5 results separated by a space
>   }
>
>
> If you have some actual code, post it so we can build on it or correct it.
If
> you don't know where to start then at least write some code to connect to
> your db.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
>
> /*
> Twenty years of romance make a woman look like a ruin; but twenty years of
> marriage make her something like a public building.
> -- Oscar Wilde
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re:

2002-03-11 Thread Edward van Bilderbeek - Bean IT

why aren't you posting this on the general PHP list?

you should upload the word doc and then base64encode it into you
mailmessage... there are some mailclasses available on the internet... check
them out...


Edward



- Original Message -
From: "Swati Patil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 11:35 AM


> i m using php4.1.1
> in the mail function, i want to provide the facility to the end user to
> attach his/her  word document.
> how can i do this?
>
> swati.
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Hi problem with selected value!!

2002-03-11 Thread Edward van Bilderbeek - Bean IT

guess that should be:

alert(document.babai.bongu.selectedIndex);

Greets,

Edward

- Original Message -
From: "Balaji Ankem" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 11:23 AM
Subject: [PHP] Hi problem with selected value!!


> Hi friend,
>   could u plz. Tell me how to display the slected option value in alert
> box?
>
> Code I wrote is like this.. But I am getting NULL.. Any help would be
> appreciable..
>
> =
> 
>
>
> 
>
>
> 
>
> function check()
> {
> var a;
> alert(document.babai.bongu.value); // Is it correct??
> return true;
> }
>
> 
>
>
> 
>
>
> 
> 
>
> 
> 11
> 12
> 13
>
> 
> 
> 
> 
> 
> 
>
> Thanks in advance
> Balaji
>
>






> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] using a variable to a function call

2002-03-07 Thread Edward van Bilderbeek - Bean IT

isn't it the easiest way to do something like this:

class test {
function do ($var) {
if ($var=='you') {
$this->you_function();
} else {
$this->me_function();
}
}

function you_function() {
...
}

function me_function() {
...
}
}

$class = new test();

$class->do($var);


Greets,

Edward

- Original Message -
From: "Matt Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 3:25 PM
Subject: [PHP] using a variable to a function call


> Hi all
>
> I get a variable that is set be a select box on a page.
> I want to use this variable to call a function within a class that is
based
> on it's name.
>
> so if $var = "me"
>
> I want to call $class->me_function();
>
> or if
>
> $var = "you"
>
> call
>
> $class->you_function();
>
> How can I use the variable as part of the function name to call.
>
> TIA
>
> matt
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Alphabet

2002-03-07 Thread Edward van Bilderbeek - Bean IT

something like:

for ($i=ord('A'); $i
To: "[General]" <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 11:37 AM
Subject: [PHP] Alphabet


Is there a simple function to generate
the alphabet with php

Thx

Jeroen




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] keeping the dot

2002-03-04 Thread Edward van Bilderbeek - Bean IT



> > Try thinking?
> 
> Don't be a jerk.
> 

Don't be a programmer...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT

i think you don't understand the problem

it's just a textarea, no php has to do with it:



when i try to FILL it with tekst (so, in my browser) it is working for a
certain amount of characters, but above it, the submit button is clickable,
but doesn't take any action...

Edward


- Original Message -
From: "Bas Jobsen" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 4:53 PM
Subject: Re: [PHP] textarea


> 
> echo addslashes($text);
> 
>
> Op woensdag 27 februari 2002 16:38, schreef u:
> > Hi,
> >
> > I've got a strange HTML problem... When I have a textarea, and put a
large
> > text in it, the submit button isn't working if the text is very long,
but
> > it is working till a certain amount of characters (didn't check out
which
> > amount)
> >
> > I can click as many times as i want on the submit button, as long as my
> > text isn't shorter, it won't submit
> >
> > any solutions?
> >
> > Edward
> >
> > PS. I haven't done anything with javascript which might prevent the form
> > from taking action 
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] textarea

2002-02-27 Thread Edward van Bilderbeek - Bean IT

Hi,

I've got a strange HTML problem... When I have a textarea, and put a large
text in it, the submit button isn't working if the text is very long, but it
is working till a certain amount of characters (didn't check out which
amount)

I can click as many times as i want on the submit button, as long as my text
isn't shorter, it won't submit

any solutions?

Edward

PS. I haven't done anything with javascript which might prevent the form
from taking action 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] is_uploaded_file() emulation?

2002-02-27 Thread Edward van Bilderbeek - Bean IT

What about:

ENV["USER"]
or
ENV["USERNAME"]

(see phpinfo())...

Greets,

Edward



- Original Message -
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "Martin Towell" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "Stewart Gateley" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 12:37 AM
Subject: Re: [PHP] is_uploaded_file() emulation?


> Yeah, that's what I looked at before posting - but there's a catch:
> "Returns the user ID of the **current script**, or *FALSE* on error". :-(
>
> Bogdan
>
> Martin Towell wrote:
>
> > try: http://www.php.net/manual/en/function.getmyuid.php
> >
> > -Original Message-
> > From: Bogdan Stancescu [mailto:[EMAIL PROTECTED] ]
> > Sent: Wednesday, February 27, 2002 10:33 AM
> > To: Stewart Gateley
> > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [PHP] is_uploaded_file() emulation?
> >
> >
> > Thank you - but that wasn't the question - as you can see, I started the
> > second paragraph with a reference to that function - my problem is what
> > I compare the result to - i.e. how do I find out *my* UID, not the
> > file's.
> >
> > Mr. Kelly's solution should work, but it's rather absurd (from a PHP
> > point of view) to have to create a file just to find out what my uid
> > is... I'm sure there should be a more reasonable method - but I don't
> > know it. Hoping somebody does... ;-)
> >
> > Thanks!
> >
> > Bogdan
> >
> > Stewart Gateley wrote:
> >
> > >$owner = fileowner ($file);
> > >
> > >returns a string containing the owner or false. see
> > > http://www.php.net/manual/en/ref.filesystem.php
> > >
> > >-- Stewart
> > >
> > >--- Bogdan Stancescu <[EMAIL PROTECTED]> wrote:
> > >
> > >>Hello all!
> > >>
> > >>How do I find out if a file was actually uploaded /without/ using
> > >>is_uploaded_file()?
> > >>
> > >>My first though is that I should use fileowner() on the file and see
> > >>if
> > >>it's the same as the user who runs PHP (Apache) - but how do I find
> > >>that
> > >>out? I don't want to use exec("id -u") either because the syntax may
> > >>be
> > >>different for distinct systems and I'd like to avoid system calls if
> > >>possible.
> > >>
> > >>I'm open to any suggestions to solve the original problem - not
> > >>necessarily using UID's.
> > >>
> > >>Thanks!
> > >>
> > >>Bogdan
> > >>
> > >>
> > >>
> > >>--
> > >>PHP General Mailing List ( http://www.php.net/)
> > >>To unsubscribe, visit: http://www.php.net/unsub.php
> > >>
> > >
> > >
> > >__
> > >Do You Yahoo!?
> > >Yahoo! Greetings - Send FREE e-cards for every occasion!
> > > http://greetings.yahoo.com
> > >
> >
> >
> >
> >
> > --
> > PHP General Mailing List ( http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] array_search

2002-02-26 Thread Edward van Bilderbeek - Bean IT

array_search returns the key-value of the searched value that is found... in
the first case... the returned key is 0 because it's the first
element... however... 0 is also the same as FALSE...

you should use === (three ='s) ... it's used to compare both value and
type... (and 0 is not the same type as FALSE)...

Greets,

Edward


- Original Message -
From: "Roger Keays" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 10:29 AM
Subject: [PHP] array_search


> Hi,
>
> Can anybody explain why the output of this script is
>
> not found
> Found!
>
> Here is the script...
>
> $legalfields = array("reasonForRepair");
> if (array_search("reasonForRepair", $legalfields) == TRUE) {
>  echo "Found!";
> } else {
>  echo "not found";
> }
> $legalfields = array("foo", "reasonForRepair");
> if (array_search("reasonForRepair", $legalfields) ==  TRUE) {
>  echo "Found!";
> } else {
>  echo "not found";
> }
> ?>
>
> Thanks in advance,
>
> Roger
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Convert An Array

2002-02-24 Thread Edward van Bilderbeek - Bean IT

http://www.php.net/manual/en/function.array-count-values.php


- Original Message - 
From: "jtjohnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 24, 2002 10:49 PM
Subject: [PHP] Convert An Array


> http://ccl.flsh.usherb.ca/db/authors_under_study.php
> or
> $names = array ("john", "mary", "bill", "mary", "bill", "mary", "bill",
> "john", "bill", "john");
> 
> 1) How do I count the elements of $names to produce:
> 
> bill   4
> john   3
> mary   3
> 
> 2) How do I store the counted elements into a new array? How do I create
> this:
> 
> $new_array = array ("bill"=>4, "john"=>3, "mary"=>3)
> 
> I'm looking at http://www.php.net/manual/en/function.array.php
> but not sure.
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Newbie on Sessions/Pages Management

2002-02-23 Thread Edward van Bilderbeek - Bean IT

every script you use the variable should contain a "session_start()"
statement...

- Original Message -
From: "Michael Kimsal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 23, 2002 5:26 PM
Subject: [PHP] Re: Newbie on Sessions/Pages Management


> Alexander P. Javier wrote:
> > I'm very new to PHP, as a matter of fact, I never had any experience
anything about web-enabled applications development. I've been more into
local Visual Basic and MS SQL Serve devt.  If there's any kind soul out
there, please HLP
> >
> > The question is: why do the values of my session variables disappear
when i traverse through different php scripts? duhh  =(
> >
>
>
> Do you have cookies enabled?  By default the session variables rely on
> PHP sending a session cookie.  If your browser doesn't accept them,
> you'll end up with 'new' sessions on every page.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Click "class"

2002-02-22 Thread Edward van Bilderbeek - Bean IT

to me it just seems that that site is using a frameset... and changing one
frame, doesn't change the body of the parentframe... and that frame is being
just for the URL shown.

The class='click' thing is just used for layout purpose... check out CSS
(Cascading Style Sheets) for more information on that...

Edward


- Original Message -
From: "Dani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 23, 2002 2:25 AM
Subject: [PHP] Click "class"


> Hi!
>
> I have just visited a webiste and I have notice that user can't really
> see the .php extension at the end of the URL address. And when I look at
> the link address it's got 'class="click"' .
>
> Could someone help me to understand this please?
>
> http://www.website_name.com";>
>  align="center">
>
> any explaination is grately appriciated.
>
> regards,
> Dani
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: NULL value for variable

2002-02-21 Thread Edward van Bilderbeek - Bean IT

why can't i see anywhere in this code what value:
$row["PicNum"];

contains?

try:


instead of:
" >

if, it's working then, then your error is there...

Greets,

Edward


- Original Message -
From: "Narvaez, Teresa" <[EMAIL PROTECTED]>
To: "'Lars Torben Wilson'" <[EMAIL PROTECTED]>; "Andrey Hristov"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 11:04 PM
Subject: RE: [PHP] Re: NULL value for variable


> Hello, Thanks for your replies.  I still cannot access the variable fileId
> :-(.  I would appreatiate any more comments.  Thanks in advance -Teresa
>
> Warning: Undefined index: fileId in
> /home/narvaez/public_html/ddownloadfile.php on line 6
> Warning: Undefined variable: fileId in
> /home/narvaez/public_html/ddownloadfile.php on line 7
> Warning: Undefined variable: fileId in
> /home/narvaez/public_html/ddownloadfile.php on line 8
> Invalid PictureNumber specified: ()
>
> one.php
> 
>
>
>
>" >
>  Download Now
>   
>   
>   
>
> downloadfile.php
> 
>print_r ($_REQUEST['fileId']);
>if ( ! is_numeric($fileId) )
>   die ("Invalid PictureNumber specified: ($fileId)");
>?>
>
>
> > -Original Message-
> > From: Lars Torben Wilson [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, February 21, 2002 1:52 PM
> > To: Andrey Hristov
> > Cc: Narvaez, Teresa; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Re: NULL value for variable
> >
> > On Thu, 2002-02-21 at 08:16, Andrey Hristov wrote:
> > > It seems that you use global where it is not needed- outside of any
> > function
> > > First error because error_reporting is not set to 0 in php.ini so
> > error_reporting valus includes E_WARNING.
> > > if you set error_reporting=0 in php.ini or error_reporting(0); in the
> > script you will not receive the first warning but probably
> > > lose the second which is useful.
> > >
> > > Best regards,
> > > Andrey Hristov
> >
> > Turning error_reporting() off while developing is probably one of the
> > easiest ways to make your life suck--but to each his own. :) In this
> > case, it's probably pointing right to the problem.
> >
> > What do you get from using 'print_r($_REQUEST)'? You should be able
> > to access $_REQUEST['fileId'];
> >
> >
> > Torben
> >
> > > - Original Message -
> > > From: "Narvaez, Teresa" <[EMAIL PROTECTED]>
> > > To: "'Sanduhr'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
> > > Sent: Thursday, February 21, 2002 6:05 PM
> > > Subject: RE: [PHP] Re: NULL value for variable
> > >
> > >
> > > > I comment it out but I got this error:
> > > >
> > > > Warning: Undefined variable: fileId in
> > > > /home/narvaez/public_html/ddownloadfile.php on line 22
> > > > Could not get file list: You have an error in your SQL syntax near
''
> > at
> > > > line 1
> > > >
> > > > Thanks for any help!.
> > > >
> > > > -Original Message-
> > > > From: Sanduhr [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, February 20, 2002 6:58 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] Re: NULL value for variable
> > > >
> > > >
> > > > that "global $fileId;" shouldn't be there in  downloadfile.php
> > > > "Teresa Narvaez" <[EMAIL PROTECTED]> schreef in bericht
> > > >
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > : Hello,
> > > > : I am runnig php 4.1.1.  In the configuration, register_globals is
> > > > : ON.
> > > > : I have two programs and I want to pass the value from fileId from
> > one.php
> > > > to
> > > > : downloadfile.php.  However, in downloadfile.php $fileId is NULL.
> > What am
> > > > I
> > > > : missing?  Thanks, -Teresa
> > > > :
> > > > :
> > > > : one.php
> > > > :   
> > > > :   
> > > > :   
> > > > :> ?>" >
> > > > :  Download Now
> > > > :   
> > > > :   
> > > > :   
> > > > :
> > > > : downloadfile.php
> > > > :> > > :   global $fileId;
> > > > :
> > > > :   if ( ! is_numeric($fileId) )
> > > > :   die ("Invalid PictureNumber specified: ($fileId)");
> > > > :
> > > > :   ?>
> > > > :
> > > > :
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > --
> >  Torben Wilson <[EMAIL PROTECTED]>
> >  http://www.thebuttlesschaps.com
> >  http://www.hybrid17.com
> >  http://www.inflatableeye.com
> >  +1.604.709.0506
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: NULL value for variable

2002-02-21 Thread Edward van Bilderbeek - Bean IT

if you move your mouse over the "Download Now" section... what is the
statusbar displaying??

Edward

- Original Message -
From: "Narvaez, Teresa" <[EMAIL PROTECTED]>
To: "'Sanduhr'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 5:05 PM
Subject: RE: [PHP] Re: NULL value for variable


> I comment it out but I got this error:
>
> Warning: Undefined variable: fileId in
> /home/narvaez/public_html/ddownloadfile.php on line 22
> Could not get file list: You have an error in your SQL syntax near '' at
> line 1
>
> Thanks for any help!.
>
> -Original Message-
> From: Sanduhr [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 6:58 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: NULL value for variable
>
>
> that "global $fileId;" shouldn't be there in  downloadfile.php
> "Teresa Narvaez" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> : Hello,
> : I am runnig php 4.1.1.  In the configuration, register_globals is
> : ON.
> : I have two programs and I want to pass the value from fileId from
one.php
> to
> : downloadfile.php.  However, in downloadfile.php $fileId is NULL.  What
am
> I
> : missing?  Thanks, -Teresa
> :
> :
> : one.php
> :   
> :   
> :   
> :   " >
> :  Download Now
> :   
> :   
> :   
> :
> : downloadfile.php
> ::   global $fileId;
> :
> :   if ( ! is_numeric($fileId) )
> :   die ("Invalid PictureNumber specified: ($fileId)");
> :
> :   ?>
> :
> :
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Date calculations

2002-02-21 Thread Edward van Bilderbeek - Bean IT



Greets,
Edward


- Original Message -
From: "Sven Jacobs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 4:56 PM
Subject: [PHP] Date calculations


> Hey
>
> I need to calculate the amount of days between 2 point
> point 1 is now the second point is in the past
> the format I have is in 2002-02-25 10:02:23 ( that is the format i have in
> my db )
> now if I have today 2002-02-25 10:02:04 and the other day is 2002-02-24
> 09:02:04
> That means that the delta in days is 1 day ( the hours do not mather )
>
> Somebody an idea ?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] regular expressions

2002-02-21 Thread Edward van Bilderbeek - Bean IT

first of all:
why do you use:
[0-9][0-9]*...
you better use: [0-9]+ then
same goes for \w
and I guess you don't need the ('s and )'s either...

Edward

- Original Message -
From: "German Castro Donoso" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 5:26 PM
Subject: [PHP] regular expressions


> I have a problem with ereg function.
> In php 4.0.5 i use this
> if ( ereg("([0-9][0-9]*)\|(\w\w*)",$opcion, $registros) ) {
> ...
> }
> and no problem. But, in php 4.1.1 don't work. I think that may be the
escape
> of | character.
>
> Note: I'm looking for a | in the string. Then i need escape the |
>
>   Any idea for fix it?
>
>
>
> Thanks
> German Castro
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Tricky variable question! Impossible??

2002-02-16 Thread Edward van Bilderbeek - Bean IT

Well, as long as you use double quotes: " the variables will be parsed
inside you statement... single quotes however mean the exact string...

example:
$icon = "1.jpg";
$str = "this is the image $icon";
$str2 = 'this is the image $icon';

print $str; // returns: "this is the image 1.jpg"
print $str2; // returns: "this is the image $icon"


Greets,

Edward

- Original Message -
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 16, 2002 6:03 PM
Subject: [PHP] Tricky variable question! Impossible??


> Hi guys,
>
> I am not sure if this is possible. Not on my knowledge, but maybe someone
is
> smarter than I am :-)
>
> I want to pass an icon to a function. Therefore I am putting all the html
> into a var called icon.
> Inside this html their is another variable with an array which value is
set
> inside the function.
>
> How can I pass this html thing and ensure that the variable is gonna be
set?
> Take a look at the code underneath.
> Like that it is just printing out $picture_id[$i]
>
>   $icon_1 = "onclick=\"return confirm('Are you sure you want to delete picture
no:
> $picture_id[$i]');\">
>alt=\"delete\">
>  ";
>
> Can anybody help on this?
>
> Thanx for any help
>
> Cheers Andy
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] printing files

2002-02-13 Thread Edward van Bilderbeek - Bean IT

just put the lines in an array, each array element contains a line... and
then just print the specified array elements...

Edward

- Original Message -
From: "John Gurley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 12:55 PM
Subject: [PHP] printing files


> Just a quick question,
> is there a way to echo in your php code lines of a file that you specify.
> i.e. you want to output lines 1,4,7 of a certain text file
> Thanks
> John
>
>
>
> _
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] possible bug in date() function

2002-02-10 Thread Edward van Bilderbeek - Bean IT

it was last week though...

guesss you mean 29th?

Edward

"LaserJetter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Using the code below:
>
> $buffer['Last_access'] = 1013336429;
> $date = date("H:i D, nS M Y",$buffer['Last_access']);
> print $date;
>
> prints "10:20 Sun, 2th Feb 2002"
> I didnt know there was a 2th of February!!
>
> Is this a bug and do I get a prize for finding it?  ;o)
>
> LJ
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Age

2002-02-09 Thread Edward van Bilderbeek - Bean IT

don't know if there is some "date_diff" -like function, but you can do it
this way:

$now = getdate();
$nw_year = $now["year"];
$nw_month = $now["mon"];
$nw_day = $now["mday"];

$chk_date = "09/02/1977";
list ($chk_day, $chk_month, $chk_year) = explode("/", $chk_date);

print $nw_year;
$age = $nw_year - $chk_year;
if ($nw_month<$chk_month) $age--;
if ($nw_month==$chk_month && $nw_day<$chkday) $age--;

print "age: ".$age;



assuming that the date : "dd/mm/"

greets,

edward


- Original Message -
From: "André Felix Miertschink" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 09, 2002 8:08 PM
Subject: [PHP] Age


> Could anybody find out the simplest method of calculating the age?
> The date of birth is in the format string ('01/01/1977').
>
> André
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] One more quickie

2002-02-09 Thread Edward van Bilderbeek - Bean IT

or:

SELECT LEFT(date, 7) as YearAndMonth FROM table;

Edward


- Original Message - 
From: "val petruchek" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Saturday, February 09, 2002 2:28 PM
Subject: Re: [PHP] One more quickie


> > Don?t really want to bother you with these quickies - but:
> >
> > If i have a result from mysql that is a date (2002-02-09) - how do i
> change
> > that into a variable with only the first 7 characters (2002-02)?
> >
> 
> SELECT year(data), month (data) from table;
> 
> Valentin Petruchek (aki Zliy Pes)
> *** Cut the beginning ***
> http://zliypes.com.ua
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Syntax ???

2002-02-08 Thread Edward van Bilderbeek - Bean IT

just quote the 'y' in your query:

$ynumber = mysql_query("SELECT COUNT(*) As Cnt FROM responses WHERE
response='y'");

Edward

- Original Message -
From: "Ron Clark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 7:38 PM
Subject: [PHP] Syntax ???


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hello all again,
>
>   Here is my line in my script:
> $ynumber = mysql_query("SELECT COUNT(*) FROM responses WHERE
> response=y");
>
> But it returns a blank or empty. How do I convert this MySQL command
> to PHP?
> mysql> SELECT COUNT(*) FROM responses WHERE response="y";
>
> In other words, how do I specify the "y" at the end without messing
> up PHP?
>
> Thanks,
> RC
>
> -BEGIN PGP SIGNATURE-
> Version: PGP 7.1
>
> iQA/AwUBPGQbIESpEYIqgLQzEQJr4wCeNiIhqHZYloLJWsvNr2ODustuPU0AoPw6
> ROvim3yCO9Z9GlyReg6pyMa9
> =D1uC
> -END PGP SIGNATURE-
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT

after some puzzling I came to this:

$str = "One as a start. This is or was a test for short words, although an,
should be deleted to.";

$str = preg_replace(array("/\b[A-Za-z']{1,3}\b/",
"/[ ]{1}([ ]{1}|[,]{1}|[.]{1}|[:]{1})/"), array("", "\\1"), $str);

print $str;




which means:
first: replace all 1,2 or 3 character occurrences by nothing after that,
replace all spaces that are followed by one comma, or one period, or one :
by that comma, period or :

hope this is what you wanted?

Edward


- Original Message -
From: "Bas Jobsen" <[EMAIL PROTECTED]>
To: "Michael Kimsal" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 1:10 AM
Subject: Re: [PHP] Regex function needed


> Op donderdag 07 februari 2002 23:58, schreef Michael Kimsal:
> > Looking for a regex (preg or ereg) to remove
> > all 1, 2 and 3 character words.
>
>  $string="over deze regex loop ik nu al de hele dag en een uur te piekeren.
't
> wil niet! of wel! l'a.";
> $string=" ".$string;
> while (preg_match("/\W\w{1,3}\W/i",$string))
> $string = preg_replace("/\W\w{1,3}\W/i", " ", $string);
> $string=substr($string,1);
> echo $string;
> ?>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT

this might even work beter, to take comma's and periods etecetera into
account to:

$str = "This is or was a test for short words, although an, should be
deleted to.";

while (ereg(" [a-z]{1,3} ", $str)) {
 $str = eregi_replace(" [a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}|[:]{1})", "\\1",
$str);
}


or even this for comma's etcetera before the words:

$str = "This is or was a test for short words, although an, should be
deleted to.";

while (ereg(" [a-z]{1,3} ", $str)) {
 $str =
eregi_replace("([ ]{1}|[,]{1}|[.]{1}|[:]{1})[a-z']{1,3}([ ]{1}|[,]{1}|[.]{1}
|[:]{1})", "\\2", $str);
}



Greets,

Edward


print $str;
- Original Message -
From: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Michael Kimsal" <[EMAIL PROTECTED]>
Sent: Friday, February 08, 2002 12:33 AM
Subject: Re: [PHP] Regex function needed


> I don't know if this is the best way but:
>
> $str = "This is or was a test for short words";
>
> while (ereg(" [a-z]{1,3} ", $str)) {
>  $str = eregi_replace(" [a-z]{1,3} ", " ", $str);
> }
> print $str;
>
>
> this replaces all occurences of a space followed by 1,2 or 3 alphabetic
> characters followed by a space... the reason why it's performed in a while
> loop is because of two or more short words following each other and thus
> sharing a space...
>
>
> Greets,
>
> Edward
>
>
>
> - Original Message -
> From: "Michael Kimsal" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 07, 2002 11:58 PM
> Subject: [PHP] Regex function needed
>
>
> > Looking for a regex (preg or ereg) to remove
> > all 1, 2 and 3 character words.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Regex function needed

2002-02-07 Thread Edward van Bilderbeek - Bean IT

I don't know if this is the best way but:

$str = "This is or was a test for short words";

while (ereg(" [a-z]{1,3} ", $str)) {
 $str = eregi_replace(" [a-z]{1,3} ", " ", $str);
}
print $str;


this replaces all occurences of a space followed by 1,2 or 3 alphabetic
characters followed by a space... the reason why it's performed in a while
loop is because of two or more short words following each other and thus
sharing a space...


Greets,

Edward



- Original Message -
From: "Michael Kimsal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 11:58 PM
Subject: [PHP] Regex function needed


> Looking for a regex (preg or ereg) to remove
> all 1, 2 and 3 character words.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Edward van Bilderbeek - Bean IT

$array_foo = explode(",", $foo);

for ($i=0; $i
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 06, 2002 1:54 PM
Subject: [PHP] Create Mysql Records From a Comma separated Values String


>
> Hi to everyone
>
> i have the following problem
>
> i have a string  $foo which contains (n variable) comma separated values
> (example  "1,17,23,45")
> and i want to insert these values in a mysql table . The destination field
> is int type and i need to insert  one record per value
>
> Do you know which php function(s) should i use in order to (loop -extract
> the values from string) and  do that ??
>
> Thanks in advance for your help
>
> regars
>
> simos
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Change of Language

2002-02-05 Thread Edward van Bilderbeek - Bean IT

check out: setlocale()

Greets,

Edward

- Original Message -
From: "Nicolas Llamosas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 4:13 PM
Subject: [PHP] Change of Language


> How can in change the language in my site? (spanish)
> for example using the function date. (LANG?)
>
> Thanks
> Nicolás Llamosas
>
>
> _
> MSN Photos es la manera más sencilla de compartir, editar e imprimir sus
> fotos favoritas. http://photos.latam.msn.com/Support/WorldWide.aspx
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Tricky array question

2002-02-05 Thread Edward van Bilderbeek - Bean IT

try using something like this:

$varname = $categories[0];

echo ${$varname}[0];



Greets,

Edward



"Andy" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...

> Hi there,

>

> I have a tricky array question.

>

> My app is passing via post a array variable called glacier. Now I am

> checking for the content

> of this array. Because there are more of those arrays, I am getting all
the

> names out of a db.

>

> How is it possible to get the value and keep the name of the array
dynamic?

>

> e.g:

> Array name passed by post is: $glacier //

> contains e.g. $glacier[0] = testname

> Array with category names coming out of db is: $category // contains e.g.

> $category[0] = glacier

>

> echo $categories[0]; // returns glacier

> echo $glacier[0]; // returns testname

>

> I tryed $categories[0][0] but it returns only the first letter of glacier

> (g)

>

> Any ideas??

>

> Thanx, Andy

>

>

>

>

> --

> PHP General Mailing List (http://www.php.net/)

> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] uksort wisdom

2002-02-04 Thread Edward van Bilderbeek - Bean IT

shouldn't it be:
uksort($array_array,"cmp");

Greets,

Edward


- Original Message -
From: "Sondra Russell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 05, 2002 5:52 AM
Subject: [PHP] uksort wisdom


> Hi Guys!
>
> I'm looking to get a *deeper understanding* of uksort.  My quandry:
>
> $array[listing1][name] = "listing 1";
> $array[listing1][premiere] = "";
> $array[listing2][name] = "listing 2";
> $array[listing2][premiere] = "";
> $array[listing3][name] = "listing 3";
> $array[listing3][premiere] = "yes";
>
> I'd like the result to come out as:
> $array[listing3] //(this is the one with the premiere set to "yes")
> $array[listing1] // (no premiere, but in order)
> $array[listing2] // (again, no premiere, but again in order)
>
> So far, I've got:
>
> function cmp= ($a,$b) {
> global $array;
> if ($array [$a][premiere] == "yes") {
> return -1;
> } else {
> return ($a < $b) ? -1 : 1;
> }
> }
>
> uksort($array_array,cmp);
>
> But that ends up, strangely with:
> $array[listing3]
> $array[listing2]
> $array[listing1]
>
>
> Any wisdom?  Just would like a better idea of the inner workings of
uksort.
>
> Best,
> Sondra
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] date problems

2002-02-04 Thread Edward van Bilderbeek - Bean IT

i think it is the strtotime() function that gives the trouble... why don't
you try mktime() ?



> sounds like it might have something to do with leap year.
>
> Jim Lucas
> - Original Message -
> From: "toni baker" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 04, 2002 12:03 PM
> Subject: [PHP] date problems
>
>
> > $date1 = "12/12/2001";
> > $date1 = date("D M j Y", strtotime($date1));
> > print $date1."";
> >
> > When I execute the code above I get the following
> > output:
> >
> > Tue Dec 11 2001 instead Wed Dec !2 2001
> >
> > Why does this happen and how can I get the Dec 12
> > output?  Thanks
> >
> >
> >
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Great stuff seeking new owners in Yahoo! Auctions!
> > http://auctions.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Adding 6 digits to a str?

2002-02-02 Thread Edward van Bilderbeek - Bean IT

like this:

$digit = 122;
 $digits = sprintf ("%08d", $digit);
 print $digits;

Greets,

Edward


- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Andy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 6:41 PM
Subject: Re: [PHP] Adding 6 digits to a str?


> Why is it that you want to represent an int with leading 0's?  Is it just
> to print it out that way?  If that is the case, then you can use the
printf
> function for formatted printing.
>
>
> Jeff
>
> At 10:53 AM 2/2/2002 +0100, Andy wrote:
> >Hi guys,
> >
> >I am trying to force a int to be 8 digits. If it is only 3 dig filling
the
> >first ones with 0.
> >
> >Anyhow I tryed it with type casting, but it does not matter what I try, I
> >always get an addition.
> >
> >E.g:
> >   $member_id is: 136
> >should be: 0136
> >
> >Here is the code, which is still returning 136:
> >
> >for($i=0;$i >$length = strlen($member_id[$i]);
> >
> > settype ($member_id[$i], "string");
> > $zero = '0';
> > settype ($zero, "string");
> >
> > $member_id[$i] = $zero + $member_id[$i];
> > echo $member_id[$i];
> >}
> >
> >Does anybody know how to solve this thing??
> >
> >Thanx Andy
>
>
>
> --
> 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 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] Re: Email Attachment

2002-02-01 Thread Edward van Bilderbeek - Bean IT

what also is a great help, is sending yourself an email with an attachment,
en check the sourcecode of your mail... (in outlook that is: properties,
details, message source)... one tip: don't forget the empty lines between
the sections...

Greets,

Edward


- Original Message -
From: "Mike Eheler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 10:01 PM
Subject: [PHP] Re: Email Attachment


> That's because it's not a specific feature of mail sending/php's mail
> features.
>
> Instead you should look around for code examples that achieve this, as
> it is no small task, and will require that you learn a good deal about
> MIME and how files are "attached" to emails.. a good place to start
> would be http://phpclasses.upperdesign.com/
>
> Mike Eheler
> SearchBC.com Technical Support
>
> Mauricio Sthandier wrote:
> > Hello, I'm new in php development... I was wondering how can I attach a
Word
> > (.doc) Document in an email sent with the mail() function (if I can do
it
> > just with it).
> >
> > I know it has to see with the additional headers of the email, but I
would
> > be grateful If anyone could tell where can i go to for this specific
> > information.
> >
> > I couldn't find it in PHP manual (.pdf version).
> >
> > Thanxs !
> >
> >
> >
> >
>
>
> --
> Animals can be driven crazy by putting too many in too small a pen.
> Homo sapiens is the only animal that voluntarily does this to himself.
> -- Lazarus Long
>
> -BEGIN PGP PUBLIC KEY BLOCK-
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> mQGiBDxa9oIRBACuGtJ4G2Clyv695SU3Mw88UG4EO5BoAUrvWaa7263EW6DWpHaB
> FxJutSyohKbHwlhpVBo8shQ3mD0WP8lhxZuetPs/KmWDu1Vqln+41MxCX5Pm3INt
> 64UxM2T/YPIOhjwGNlEtu2mcQGwkNCKzihc2m0yzXvBOeqQXrZXdz93BQwCgrYS8
> rO+mXPjoe1QQ5UWHSjye07ED/j7VJSnqNeUuv3ZCJ+DII3n9IhSPrykRkBN4PejD
> RT8PDhbqqHb69U/+KVNSw3u7yLqD+6T/deR147G8cJ8/AIckGfgB+SaNXAJ1dDK0
> 2QH/wQiQp+9qlqJJAgfb2TrdK041z0m9qv5s0EpDEsTxoxLbBWLSE0w1xqrFYUHd
> abQPA/9kJgA3yts6M+shtRQSg7QGvChuT5IerDHBZ+TkHnXbpZ5qTW/WBFZMn3oE
> pqVtwmArndQYwwgu09j48EXDqnNCRoUwaEg458mi0F3cAqL34l0Hi8OYDkV53+UL
> anUaTHFJCSAmfenCyeM+jsNNyq4JU5cAu1B26IetTRgZTNMlsbQjTWlrZSBFaGVs
> ZXIgPG1pa2VAaWRlYXJlc291cmNlLmNvbT6IVwQTEQIAFwUCPFr2ggULBwoDBAMV
> AwIDFgIBAheAAAoJEKrKiKGSvUb6Sb4AoJR3wyrB/cFRdRixW0pekAOUthxvAJ4k
> A1OrTC+CmUqjP4frbdGQ3IreIbkBDQQ8WvaJEAQA7Qtz4irfoq4etWr6uMX1WsTS
> G6TK6EL+A1UCOZchK9Hs/cbdKLzP0kr4Ic7NjP2oF925qCi90g/nuKU5rp/Qv9ns
> GPaRiczyNRgt3DTK+vqe0zBvgH6JnL4KC1aKdGUESQaJGvsvrHC9oXyjfzQHZRzL
> 7nM5N7kMjW3oFVxvvwsAAwYD/in3u7k3QQijKGTv3hSuTFy94PqLVTaFPR6wPRvj
> 2Fkp9siVzg6Jxt2eEpxOK/gEBNe5C5JB1vemMoOesoRg2UGaa/k4t7o+RYop2VKo
> wsiCUQ8y/115WZ+4l1vrG0PstfQD3lFUoM6ThGThEZ/k8Hu/dIJE8noZdpAHwCer
> X5T9iEYEGBECAAYFAjxa9okACgkQqsqIoZK9RvpR8ACdE6TAt/xh5WnuF6nqcCJy
> GmgiO74An27yM1es2sp4uLheLGBpCCcF1fM2
> =F/K7
> -END PGP PUBLIC KEY BLOCK-
>
>
> --
> 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 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] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT

Wow, thanks a lot...

although it should be \\0 here...

didn't see anything in the manual about the \\ maybe gotta look for it again
:-)

Thanks,

Edward

- Original Message -
From: "Richard Crawford" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 11:20 PM
Subject: Re: [PHP] ereg et all - new question..


> Seems like that makes it a LOT easier.
>
> Use eregi_relace() instead of ereg_replace().  eregi allows for
> case-insensitivity.
>
> Try
>
> eregi_replace("this","\\1",$str);
>
> That should do it, though I haven't tried it myself.
>
>
> On Thu, 2002-01-31 at 14:14, Edward van Bilderbeek - Bean IT wrote:
> > Maybe I better ask my question different...
> >
> > what i want to do is, to highlight certain text in a string...
> >
> > for example: "This equals this equals tHis..." has to become:
> > "This equals this equals tHis"... so dispite the
case,
> > the 's should be put around it...
> >
> > does that make it easier? not for me :-)
> >
> > Greets,
> >
> > Edward
> >
> >
> > - Original Message -
> > From: "Jeff Sheltren" <[EMAIL PROTECTED]>
> > To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, January 31, 2002 11:06 PM
> > Subject: Re: [PHP] ereg et all
> >
> >
> > > Ahhh, ok makes more sense now.  Although, I don't think that there is
an
> > > "easy" way to do what you are asking.  I think that in order to
accomplish
> > > that, you will have to specify all possible cases of a string, and
have a
> > > ereg_replace() statement for each of them.
> > >
> > > Jeff
> > >
> > > At 11:01 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote:
> > > >Oh, that was a typo... sorry...
> > > >
> > > >it should be:
> > > >
> > > >"This equals this equals tHis" -> "That equals that equals tHat"
> > > >
> > > >Edward
> > > >
> > > >- Original Message -
> > > >From: "Jeff Sheltren" <[EMAIL PROTECTED]>
> > > >To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
> > > ><[EMAIL PROTECTED]>
> > > >Sent: Thursday, January 31, 2002 10:56 PM
> > > >Subject: Re: [PHP] ereg et all
> > > >
> > > >
> > > > > I'm not sure why you wanted the last word "tHis" to be changed to
> > "That"
> > > > > (with a capital)... can you explain further?
> > > > >
> > > > > Jeff
> > >
> > >
> >
> >
> >
> > --
> > 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 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] ereg et all - new question..

2002-01-31 Thread Edward van Bilderbeek - Bean IT

Maybe I better ask my question different...

what i want to do is, to highlight certain text in a string...

for example: "This equals this equals tHis..." has to become:
"This equals this equals tHis"... so dispite the case,
the 's should be put around it...

does that make it easier? not for me :-)

Greets,

Edward


- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 11:06 PM
Subject: Re: [PHP] ereg et all


> Ahhh, ok makes more sense now.  Although, I don't think that there is an
> "easy" way to do what you are asking.  I think that in order to accomplish
> that, you will have to specify all possible cases of a string, and have a
> ereg_replace() statement for each of them.
>
> Jeff
>
> At 11:01 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote:
> >Oh, that was a typo... sorry...
> >
> >it should be:
> >
> >"This equals this equals tHis" -> "That equals that equals tHat"
> >
> >Edward
> >
> >- Original Message -
> >From: "Jeff Sheltren" <[EMAIL PROTECTED]>
> >To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
> ><[EMAIL PROTECTED]>
> >Sent: Thursday, January 31, 2002 10:56 PM
> >Subject: Re: [PHP] ereg et all
> >
> >
> > > I'm not sure why you wanted the last word "tHis" to be changed to
"That"
> > > (with a capital)... can you explain further?
> > >
> > > Jeff
>
>



-- 
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] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT

hmm, that's not what i wanted to hear :-)))

e.g. try doing that for the word: transparancy looots of different
possibilities then...

Edward

- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 11:06 PM
Subject: Re: [PHP] ereg et all


> Ahhh, ok makes more sense now.  Although, I don't think that there is an
> "easy" way to do what you are asking.  I think that in order to accomplish
> that, you will have to specify all possible cases of a string, and have a
> ereg_replace() statement for each of them.
>
> Jeff
>
> At 11:01 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote:
> >Oh, that was a typo... sorry...
> >
> >it should be:
> >
> >"This equals this equals tHis" -> "That equals that equals tHat"
> >
> >Edward
> >
> >- Original Message -
> >From: "Jeff Sheltren" <[EMAIL PROTECTED]>
> >To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
> ><[EMAIL PROTECTED]>
> >Sent: Thursday, January 31, 2002 10:56 PM
> >Subject: Re: [PHP] ereg et all
> >
> >
> > > I'm not sure why you wanted the last word "tHis" to be changed to
"That"
> > > (with a capital)... can you explain further?
> > >
> > > Jeff
>
>



-- 
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] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT

Oh, that was a typo... sorry...

it should be:

"This equals this equals tHis" -> "That equals that equals tHat"

Edward

- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 10:56 PM
Subject: Re: [PHP] ereg et all


> I'm not sure why you wanted the last word "tHis" to be changed to "That"
> (with a capital)... can you explain further?
>
> Jeff
>
> At 10:52 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote:
> >that is not what I meant... I want the cases to remain...
> >
> >- Original Message -
> >From: "Rick Emery" <[EMAIL PROTECTED]>
> >To: "'Edward van Bilderbeek - Bean IT'" <[EMAIL PROTECTED]>;
> ><[EMAIL PROTECTED]>
> >Sent: Thursday, January 31, 2002 10:47 PM
> >Subject: RE: [PHP] ereg et all
> >
> >
> > > try:  eregi_replace("this","that","This equals this equals tHis");
> > >
> > >
> > > -Original Message-
> > > From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, January 31, 2002 3:40 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] ereg et all
> > >
> > >
> > > hi,
> > >
> > > is there a simple way to replace an occurence of a string, into
another,
> > > maintaing capital positions...
> > >
> > > Like:
> > > $str = "This equals this equals tHis";
> > >
> > > and I wanna replace all occurences of "this" in "that", that the
result
> >will
> > > be:
> > >
> > > $str = "That equals that equals That";
> > >
> > > Edward
> > >
> > >
>
>
>
> --
> 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 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] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT

that is not what I meant... I want the cases to remain...

- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'Edward van Bilderbeek - Bean IT'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 10:47 PM
Subject: RE: [PHP] ereg et all


> try:  eregi_replace("this","that","This equals this equals tHis");
>
>
> -Original Message-
> From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 3:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] ereg et all
>
>
> hi,
>
> is there a simple way to replace an occurence of a string, into another,
> maintaing capital positions...
>
> Like:
> $str = "This equals this equals tHis";
>
> and I wanna replace all occurences of "this" in "that", that the result
will
> be:
>
> $str = "That equals that equals That";
>
> Edward
>
>
>
> --
> 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 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 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] ereg et all

2002-01-31 Thread Edward van Bilderbeek - Bean IT

hi,

is there a simple way to replace an occurence of a string, into another,
maintaing capital positions...

Like:
$str = "This equals this equals tHis";

and I wanna replace all occurences of "this" in "that", that the result will
be:

$str = "That equals that equals That";

Edward



-- 
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] Tables Loading Slow

2002-01-30 Thread Edward van Bilderbeek - Bean IT

Maybe this is a solution for you:

instead of:


1data 1
2data 2
3data 3
4data 4


you can do this:


1data 1


2data 2


3data 3


4data 4


If you can't beat them, join them!

Greets,

Edward




"Adam Leckron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> from the PHP manual
> [flush()]
> ...Even the browser may buffer its input before displaying it. Netscape,
for
> example, buffers text until it receives an end-of-line or the beginning of
a
> tag, and it won't render tables until the  tag of the outermost
> table is seen...
>
> even if you're flushing the buffer after rows are processed, you probably
> wont get any increase in load time because of this rendering issue... it's
> just a drawback of using tables in html, regardless of how they are
> generated...
>
> --
> Adam Leckron [[ [EMAIL PROTECTED] ]]
>
>
> "Tony Bibbs" <[EMAIL PROTECTED]> wrote in message
> 1012401977.6913.10.camel@tbibbs">news:1012401977.6913.10.camel@tbibbs...
> > Check the PHP manual on flush()
> >
> > --Tony
> >
> > On Wed, 2002-01-30 at 08:38, Bryan Gintz wrote:
> > > Hi.
> > > I have a large database query that returns anywhere from 10-30ish
> > > records.  The problem comes from loading them in tables.  With IE5 and
> > > Netscape 5 on windows, the results do not display until the last
> > >  tag is written.  Does anyone have any ideas on how to show
the
> > > results as the come from the query?
> > >
> > > Thanks.
> > >
> > >
> > > --
> > > 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]
> > --
> > Tony Bibbs | Life is a moderately good play
> > [EMAIL PROTECTED] | with a bad 3rd act.
> > 515.554.8046   |
> >
>
>
>
> --
> 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 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] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT

huh?

well, use md5()...

if you want a password that can be decrypted too, I'm afraid you have to
write you're own encryption / decryption algoritm... maybe you can use
base64encode() (don't know for sure)... but in both cases, if someone
guesses your used encoding algoritm, you have a problem...

Edward


"Jose" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...

> Then how can I encrypt the password?

>

>

>

> --

> 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 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] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Edward van Bilderbeek - Bean IT

The whole idea of MD5 is to generate a unique code from your string. It's
practical impossible to generate an identical string that creates the same
unique code. So youcan be sure that someone that creates the same code also
created the same text... e.g. a password...

it's impossible to reverse the procedure, else it wouldn't be safe...

Greets,

Edward



"Jose" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...

>

> I'm making a proyect in php, and I have some doubts about the md5.

> I encript a password with it, but I don't know how to decrypt it again.

>

> Thanks.

>

>

> --
--

> --

> Jose Fco. ( [EMAIL PROTECTED] ).

> OLINET, S.L. Teléfono: 952207135 - Fax: 952207600

> Avda. Juan Sebastián Elcano, 39-41. 29017 Málaga.

> --
--

> --

>

>

>

>

> --

> 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 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] A real simple question...

2002-01-30 Thread Edward van Bilderbeek - Bean IT

and if you want to write it to a file directly then do something like:

exec('ftpusers > filename.txt');

Greets,

Edward


> Take a look at
>
> exec()
> passthru()
> system()
>
> Keep in mind that the webserver usally runs as User nobody or an
equivilant
> of that. So this user should have rights to run the program.
>
> Kind Regards,
> Jerry Verhoef
>
> > -Original Message-
> > From: Liam MacKenzie [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 10:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] A real simple question...
> >
> >
> > Hey everyone,
> >
> > Got a question...
> >
> > How to I run a program and print it's output into a document?
> > For instance, I have a program called "ftpusers" and when run
> > from a shell like this:
> > /usr/local/misc/ftpusers
> > It will display a plain text list of people connected to my server.
> >
> > How do I get PHP to call that program and print it's output
> > into a webpage?
> >
> >
> > Thanks for your help!
> >
> >
> > Liam
> >
>
>
> The information contained in this email is confidential and
> may be legally privileged. It is intended solely for the
> addressee. Access to this email by anyone else is
> unauthorized. If you are not the intended recipient, any
> form of disclosure, production, distribution or any action
> taken or refrained from in reliance on it, is prohibited and
> may be unlawful. Please notify the sender immediately.
>
> The content of the email is not legally binding unless
> confirmed by letter bearing two authorized signatures.
>
> --
> 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 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] Attachments with mail() function

2002-01-30 Thread Edward van Bilderbeek - Bean IT

I recommend sending yourself a mail with an attachment and check the
sourcecode of the received mail... together with base64encode() you should
be able to do the job...

Edward

- Original Message -
From: "Rafael Perazzo B Mota" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 3:11 AM
Subject: [PHP] Attachments with mail() function


> How can I send a simple file as attachment using the mail function ?
> Can anyone give me a simple example  ?
>
> Thanks
>
> Rafael Perazzo
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> 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 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 create_function slow?

2002-01-29 Thread Edward van Bilderbeek - Bean IT

including a file is nothing more then placing the text of the include file
at the place you called "include()" so I think there's no reason why it
should be quicker or slower...

Edward



Hi, is create function slow? Or has it a very significant slowdown compared
to an include?

i might want to create functions on the fly if it isn't tooo slow..

warm regards,
Emile Bosch



--
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 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] HTML lists & PHP

2002-01-28 Thread Edward van Bilderbeek - Bean IT

maybe you can try something like this... 

$r1 = "game1"
$r2 = "game16";

  echo "";
  echo "$teams[$r1]";
  echo "$teams[$r2]";
  echo "";

Greets,
Edward



> I keep getting parse error with this code:
> ($teams[] is a big array that I got by using mysql_fetch_array)
>  
>  
>$r = "game";
>echo "";
>echo "$teams[$r.'1']";
>echo "$teams[$r.'16']";
>echo "";
>  
> Im trying to make a dropdown list.
>  
> Here is the error message:
> Parse error: parse error, expecting `']'' in
> /home/filanya/www/madness/bracket.php on line 65
> 
> (line 65 is the third line down)
>  
> THANKS
> 



-- 
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] Sending Form Arrays

2002-01-28 Thread Edward van Bilderbeek - Bean IT

try something like this:

 check 1
 check 2
 check 3
 check 4
 check 5

that should do it...

Edward

- Original Message -
From: "Scott Saraniero" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 3:17 PM
Subject: [PHP] Sending Form Arrays


> Hi,
>
> I have a form that has a section with multiple checkboxes. I would like to
> be able to send the checked boxes out as an array, and be able to retrieve
> the array in the next page (that the form variables go to.) I cannot find
> specific info on this anywhere. Can someone please point me in the right
> direction?
>
> Thanks,
> Scott
>
>
> --
> 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 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] Mpeg

2002-01-28 Thread Edward van Bilderbeek - Bean IT

Hi,

I've asked this question before, but no answer... so here it is again:

does anyone now how I can get the dimensions (width, height) of an mpeg
file? maybe via a unix command... (because in the PHP manual, I can't find
anything about it, and I'm not that much of a unix-guru...)...

thanks,

Edward



-- 
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] Back button to Query Pages

2002-01-28 Thread Edward van Bilderbeek - Bean IT

the moment I hit the send button I realised it myself too :-)

but this is a pretty good alternative...

Edward

- Original Message -
From: "Nick Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 10:15 AM
Subject: Re: [PHP] Back button to Query Pages


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then Edward van Bilderbeek - Bean IT blurted
> > Hi,
> >
> > a possible solution is also to provide the backbutton href with the
original
> > variable values...
>
> I'm pretty sure he means the /browser/ back button though.
> - --
>
> Nick Wilson
>
> Tel: +45 3325 0688
> Fax: +45 3325 0677
> Web: www.explodingnet.com
>
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8VRamHpvrrTa6L5oRAs5EAJ4kJyVPGdcvNmPkTEgCJkIUJZ20PwCgi4K0
> XJCudv0n1sFrJBrH37W5mVg=
> =ntoU
> -END PGP SIGNATURE-
>
> --
> 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 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] Back button to Query Pages

2002-01-28 Thread Edward van Bilderbeek - Bean IT

Hi,

a possible solution is also to provide the backbutton href with the original
variable values...

print "back\n";

Greets,

Edward

- Original Message -
From: "Nick Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 9:57 AM
Subject: Re: [PHP] Back button to Query Pages


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
> * and then phantom blurted
> > Page 1 is a list of people's names (queried by State).
> >
> > Page 2 is each person's profile.
> >
> > When I hit the back button on Page 2 it tells me it has to requery the
> > List on Page 1 (apparently not stored in the client's browser cache).
> > Is there anyway to make it use the cached copy instead of requeurying
> > the database?  I know using Active Server Pages you could do this.
>
> Tough one.
> This will need some experimentation as I'm just speculating a theory
> Set a session var on page 1 *after* a successfull query.
> At the beginning of page 1 test to see if the var is set,
> If so just print the peoples names as if the query were run, if not
> run the query.
>
> I have no idea if that will help but I hope it provides a little
> inspiration anyhow :-)
> - --
>
> Nick Wilson
>
> Tel: +45 3325 0688
> Fax: +45 3325 0677
> Web: www.explodingnet.com
>
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8VRJ2HpvrrTa6L5oRAkWYAJ45ckNJHxjlvz5i/pMKVSkXjwgItgCfbLZA
> fXxmthm2VEP5nqjv1Zj+j0Y=
> =R2HK
> -END PGP SIGNATURE-
>
> --
> 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 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] a quick question..

2002-01-27 Thread Edward van Bilderbeek - Bean IT

Or, if you've already set your massive list of variables...:

$varname = "nr".rand(0, $n);
print ${$varname};

- Original Message -
From: "Miles Thompson" <[EMAIL PROTECTED]>
To: "Tauntz" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, January 27, 2002 8:15 PM
Subject: Re: [PHP] a quick question..


> Try this:
>
> Store variables in an array, say $msg_array. (For those of Hungarian
preference, $arrMessages.)
> $index = rand (0, $n)
> echo $msg_array[ $index ]
>
> Now this will require a bit of messing about, seeding the randomizer,
etc., but you get the idea.
>
> Miles Thompson
>
>
> On Sunday 27 January 2002 03:00 pm, Tauntz wrote:
> > If I have n variables:
> > $nr1 = "some text";
> > $nr2 = "some other text"
> > $nr3
> > 
> > and I want to print the text "randomly" (like if I enter the page.. it
> > displays $nr1... next time it displays $nr 5.. etc) how can I achieve it
?
> >
> > [EMAIL PROTECTED]
>
> --
> 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 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] php: mpeg / avi / mov

2002-01-25 Thread Edward van Bilderbeek - Bean IT

Hi,

I want to know the dimensions (width, height) of an mpeg / avi / mov file...
does anyone know how I can arrange that with PHP or possibly via a UNIX
command string?

Greets,

Edward




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