Re: [PHP] Javascript question

2001-10-29 Thread Christian Cresante

   hello.  javascript has a toLowerCase() method. 
just call this method using onsubmit.

--- Rosen <[EMAIL PROTECTED]> wrote:
> Hi,
> This is not a PHP question, but can someone help me
> how to convert in lowercase the text into "INPUT"
> statment online ?
> (i.e. when the user press a key , the script
> automaticly to convert char in
> lowercase )
> 
> Thanks,
> Rosen
> 
> 
> 
> -- 
> 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 Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.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]




RE: [PHP] Javascript question

2001-10-29 Thread Fatih Ustundag



-Original Message-
From: Rosen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 9:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Javascript question


Hi,
This is not a PHP question, but can someone help me
how to convert in lowercase the text into "INPUT" statment online ?
(i.e. when the user press a key , the script automaticly to convert char in
lowercase )

Thanks,
Rosen



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

2001-10-29 Thread Rosen

Hi,
This is not a PHP question, but can someone help me
how to convert in lowercase the text into "INPUT" statment online ?
(i.e. when the user press a key , the script automaticly to convert char in
lowercase )

Thanks,
Rosen



-- 
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] Trouble with php generated images

2001-10-29 Thread speedboy

> The text printed on this image looks sloppy and grainy. (This image is being
> generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8)  

It looks fine on GD 2.0.1 using arial.ttf. Maybe you could try another
font?

> My question is this, is there a
> way to generate a quality image or improve the quality of this image, or am
> I stuck? As a side note, images that don't contain text seem to generate
> very cleanly. Would it be possible to make the background transparent, like
> a transparent gif?

As I said above, it could be your font it looks nice for me with arial.
Not sure about a transparent image, I think you would have to use png
though because jpeg doesn't allow a transparent background.


-- 
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] Trouble with php generated images

2001-10-29 Thread costa

The text printed on this image looks sloppy and grainy. (This image is being
generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8)  I remember
seeing something about adjusting the quality of the image, but I can't find
it now, and even if I did, I don't know how much help it would be, because I
also recall seeing that it defaulted to 100. My question is this, is there a
way to generate a quality image or improve the quality of this image, or am
I stuck? As a side note, images that don't contain text seem to generate
very cleanly. Would it be possible to make the background transparent, like
a transparent gif?

-C





-- 
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] lesson in NOT how to run your php website ...

2001-10-29 Thread Lucas Chan

Heh.

While all us Aussies are wasting time with off topic rants.  The sys admin
at my last job tried to tell me that the web site I was developing was
making port 80 connections to random IP numbers at very short intervals.

Duh.  Didn't take long to figure out that he'd left port 80 open on the
firewall and that our servers were hit with code red.

Plus.  ASP isn't that sophisticated.  =)

(Don't worry, I have a real job now.)

Regards,

[ lucas ]



"Joseph Blythe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sorry if this a little of topic but this sort of reminds me what happend
to
> me on Monday:
>
> I arrived at work in a really good mood (for a Monday) to find everyone
> screaming at each other, then at me :) what was being said is that the new
> webserver I have been configuring with the latest versions of Apache,
mySQL
> and PHP had been serverley hacked and it was all my fault (as usual), I
> thought this was rather strange as there really arn't any holes that would
> allow a root exploit (as far as I know) in the software which I had
> installed. After further investigation it seems that our IT manager who
did
> the Linux install had not latched down the FTP tight enough and some guy
> from France (Yes we are on to you :)) got in and started to extract all
his
> little hacking toys, one of which was a network sniffer which revealed all
> of my passwords as I continued to configure the server. After much pain
> stakingly changing all of our passwords everything seems to be ok now.
>
> Just thought it was kind of funny that they blammed the web developer
first
> as I am the one who uses all the weird arsed software :)
>
>
> Regards,
>
>
> Joseph
>
> -Original Message-
> From: brendan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 30 October 2001 2:40 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] lesson in NOT how to run your php website ...
>
>
> I teach law at a university  .. I also run the website here ...  php
> with a mysql backend ...
>
>
> - I have been designing a client side administration tool which allows
> you to setup both the html input form to request from a database and
> format the way the results look and are returned ... so that academics
> can setup and run their own databases ...
>
> - of course during setup and debugging I ran from the /temp directory of
> the website (we dont have a test machine)
>
> - after debugging was over i forgot about the extra copy of this script
> in the /temp directory and forgot to delete it ..(there was no security
> on the script)
>
> - what i also forgot was that in my last lecture series I had left the
> presentation files for the students in the .. you guessed it ... /temp
> directory  ..
>
> - the students .. being students didnt actually look at the lecture
> notes very much, and i had deleted them ..
>
> - however its exam time  ... and all of them in a flurry logged on to
> the site ('/temp') ... but instead of finding the lecture series they
> find this strange control panel with lots of weird buttons...
> - web user + strange buttons on page => bugger ...
>
> so about two weeks ago the site started to go haywire ... links stopped
> working .. databases started screwing up ..
>
> - i had entirely forgot about the contents of the /temp directory ..
> - i was going INSANE trying to continually fix the site ..
> - i thought we were being hacked and ran a constant netstat, logged all
> visitor activity and made two separate complaints about what seems now
> were innocent web users ...
> - i didnt sleep
> - my girlfriend nearly dumped me ..
> - i was sure there was a conspiracy at hand ..
>
> - I only stumbled on the /temp directory when i began rebuilding a new
> site to replace what I had now decided was a comprimised code base ... I
> started in the /temp directory of course ;)
>
>
> - I am sure there is a lesson here somewhere .. I think it is probably
> more valuable just to laugh at ..
>
> ps thanks for all the help on the last run of stupidity I had (re
> !#@$!#$ regular expressions posts here)
>
> happy programming!
>
>
> --
> 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] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard

On Tue, 30 Oct 2001 15:53, brendan wrote:
> hans up who else is procrastinating?
> ;)

My productivity was suckin' pretty badly before all this started anyway.

-- 
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] Re: [PHP-DB] PHP Getting Variables from String

2001-10-29 Thread brendan

Use the eval function

$string="word1 word2 word3 word4);

$string_array=explode(" ",$string);

for ($x=0;$x>$string="These are some words"
>>
>>I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some
>>
> 
> $search_entities = explode(" ", $string);
> 
> if (count($search_entities) > 0) {
>   $criteria = "";
>   for ($i = 0; $i < count($search_entities); $i++) {
>   if ($i == (count($search_entities) - 1)) {
>   $criteria .= "name = '$search_entities[$i]'";
>   } else {
>   $criteria .= " name = '$search_entities[$i]' OR ";
>   }
>   }
> }
> $query = "select name from countries where $criteria";
> 
> I don't like this though, anyone have a better solution?
> 
> 


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread brendan

hans up who else is procrastinating?
;)


Martin Towell wrote:

> ARGH!! You, you, missed!! :/
> 
> 
> -Original Message-
> From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 3:53 PM
> To: Martin Towell; [EMAIL PROTECTED]
> Subject: Re: [PHP] @#$@# Reg Expressions
> 
> 
> On Tue, 30 Oct 2001 15:49, Martin Towell wrote:
> 
>>Here - I'm from NSW, Oz !!! can't make it any harder for you :)
>>
>>
> 
> And how are things in York St.?
> 
> 


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Martin Towell

ARGH!! You, you, missed!! :/


-Original Message-
From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 3:53 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions


On Tue, 30 Oct 2001 15:49, Martin Towell wrote:
> Here - I'm from NSW, Oz !!! can't make it any harder for you :)
>

And how are things in York St.?

-- 
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] anyone know any good jokes about queenslanders?

2001-10-29 Thread Brad Hubbard

On Tue, 30 Oct 2001 15:41, brendan wrote:
> c2470.rochd1.qld.optusnet.com.au (aka speedboy)
>
> so far i have found..
>
> Did you know there really is an Australian beer (brewed in Queensland)
> called , pronounced "Four-X"? Rumour has it the name is because
> Queenslanders can't spell "beer."

Should have realised when I noticed he was an hour behind everybody else on 
the east coast (probably afraid of fading the curtains).

Anyone who lives in that sort of climate deserves to get heckled.

Brad

-- 
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] Re: [PHP-DB] PHP Getting Variables from String

2001-10-29 Thread speedboy

> $string="These are some words"
> 
> I want it to turn into $var1=These, $var2=are, $var3=some, $var4=some

$search_entities = explode(" ", $string);

if (count($search_entities) > 0) {
$criteria = "";
for ($i = 0; $i < count($search_entities); $i++) {
if ($i == (count($search_entities) - 1)) {
$criteria .= "name = '$search_entities[$i]'";
} else {
$criteria .= " name = '$search_entities[$i]' OR ";
}
}
}
$query = "select name from countries where $criteria";

I don't like this though, anyone have a better solution?


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread David Robley

On Tue, 30 Oct 2001 14:51, Martin Towell wrote:
> Off track - seems like the only ppl awake now are ozzies :)
> would I be right?
>
> -Original Message-
> From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] @#$@# Reg Expressions
>
> On Tue, 30 Oct 2001 14:47, brendan wrote:
> > mate you rock..
>
> You can tell he's an Australian (on ya mate :-)

Stone the bloody crows, cobber, listen to the [nationality] trying ter 
talk Strine!

As a soon-to-be Kiwi resident, I have to say that I think most of the 
Aotearoans should be awake at this time of day - albeit possibly on their 
way home from work :-0

Cue sheep joke.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I know it all. I just can't remember it all at once.

-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard

On Tue, 30 Oct 2001 15:49, Martin Towell wrote:
> Here - I'm from NSW, Oz !!! can't make it any harder for you :)
>

And how are things in York St.?

-- 
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] lesson in NOT how to run your php website ...

2001-10-29 Thread Joseph Blythe

Sorry if this a little of topic but this sort of reminds me what happend to
me on Monday:

I arrived at work in a really good mood (for a Monday) to find everyone
screaming at each other, then at me :) what was being said is that the new
webserver I have been configuring with the latest versions of Apache, mySQL
and PHP had been serverley hacked and it was all my fault (as usual), I
thought this was rather strange as there really arn't any holes that would
allow a root exploit (as far as I know) in the software which I had
installed. After further investigation it seems that our IT manager who did
the Linux install had not latched down the FTP tight enough and some guy
from France (Yes we are on to you :)) got in and started to extract all his
little hacking toys, one of which was a network sniffer which revealed all
of my passwords as I continued to configure the server. After much pain
stakingly changing all of our passwords everything seems to be ok now.

Just thought it was kind of funny that they blammed the web developer first
as I am the one who uses all the weird arsed software :)


Regards,


Joseph

-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 30 October 2001 2:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] lesson in NOT how to run your php website ...


I teach law at a university  .. I also run the website here ...  php
with a mysql backend ...


- I have been designing a client side administration tool which allows
you to setup both the html input form to request from a database and
format the way the results look and are returned ... so that academics
can setup and run their own databases ...

- of course during setup and debugging I ran from the /temp directory of
the website (we dont have a test machine)

- after debugging was over i forgot about the extra copy of this script
in the /temp directory and forgot to delete it ..(there was no security
on the script)

- what i also forgot was that in my last lecture series I had left the
presentation files for the students in the .. you guessed it ... /temp
directory  ..

- the students .. being students didnt actually look at the lecture
notes very much, and i had deleted them ..

- however its exam time  ... and all of them in a flurry logged on to
the site ('/temp') ... but instead of finding the lecture series they
find this strange control panel with lots of weird buttons...
- web user + strange buttons on page => bugger ...

so about two weeks ago the site started to go haywire ... links stopped
working .. databases started screwing up ..

- i had entirely forgot about the contents of the /temp directory ..
- i was going INSANE trying to continually fix the site ..
- i thought we were being hacked and ran a constant netstat, logged all
visitor activity and made two separate complaints about what seems now
were innocent web users ...
- i didnt sleep
- my girlfriend nearly dumped me ..
- i was sure there was a conspiracy at hand ..

- I only stumbled on the /temp directory when i began rebuilding a new
site to replace what I had now decided was a comprimised code base ... I
started in the /temp directory of course ;)


- I am sure there is a lesson here somewhere .. I think it is probably
more valuable just to laugh at ..

ps thanks for all the help on the last run of stupidity I had (re
!#@$!#$ regular expressions posts here)

happy programming!


--
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] anyone know any good jokes about queenslanders?

2001-10-29 Thread brendan

c2470.rochd1.qld.optusnet.com.au (aka speedboy)

so far i have found..

Did you know there really is an Australian beer (brewed in Queensland) 
called , pronounced "Four-X"? Rumour has it the name is because 
Queenslanders can't spell "beer."

- one nation.


Brad Hubbard wrote:

> On Tue, 30 Oct 2001 15:27, brendan wrote:
> 
>>Your too late for that ..
>>recipie boy  (aka speedboy) already had a go at us southerners
>>I reckon you noreasterners are for it next ..
>>Im working on finding out where he's from so we can make fun of his state
>>.. Im working hard..
>>ill find out..
>>then the jokes'll be flying..
>>;)
>>
> 
> I see what you mean... he's not making it easy for you.
> 
> 
> $ whos nomicrosoft.org
>   [whois.geektools.com]
> Query: nomicrosoft.org
> Registry:  whois.opensrs.net
> Results:
> Registrant:
>  No Organisation
>  No Address
>  No City, No State No Zip
>  DE
> 
>  Domain Name: NOMICROSOFT.ORG
>  
>  Sponsoring Reseller; for Technical Support
>  with respect to this domain contact:
> easyDNS Technologies Inc., [EMAIL PROTECTED]
> +1.416.535.8672
> http://www.easydns.com
> 
>  Administrative Contact:
> Karotte, Rutsche  [EMAIL PROTECTED]
> No Address
> No City, No State No Zip
> DE
> 0080 1100333
> 
>  Technical Contact:
> Karotte, Rutsche  [EMAIL PROTECTED]
> No Address
>   No City, No State No Zip
> DE
> 0080 1100333
>  
>  Billing Contact:
> Karotte, Rutsche  [EMAIL PROTECTED]
> No Address
> No City, No State No Zip
> DE
> 0080 1100333
>  
>  
>  Record last updated on 24-Oct-2001.
>  Record expires on 21-Oct-2002.
>  Record Created on 21-Oct-1999.
>  
>  Domain servers in listed order:
> NS1.EASYDNS.COM   216.220.40.243
> NS2.EASYDNS.COM   216.220.40.244
> REMOTE1.EASYDNS.COM   64.39.29.212
> REMOTE2.EASYDNS.COM   212.100.224.80
>  
> 


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Martin Towell

Here - I'm from NSW, Oz !!! can't make it any harder for you :)

-Original Message-
From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 3:42 PM
To: brendan; [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions


On Tue, 30 Oct 2001 15:27, brendan wrote:
> Your too late for that ..
> recipie boy  (aka speedboy) already had a go at us southerners
> I reckon you noreasterners are for it next ..
> Im working on finding out where he's from so we can make fun of his state
> .. Im working hard..
> ill find out..
> then the jokes'll be flying..
> ;)

I see what you mean... he's not making it easy for you.


$ whos nomicrosoft.org

  [whois.geektools.com]
Query: nomicrosoft.org
Registry:  whois.opensrs.net
Results:
Registrant:
 No Organisation
 No Address
 No City, No State No Zip
 DE

 Domain Name: NOMICROSOFT.ORG
 
 Sponsoring Reseller; for Technical Support
 with respect to this domain contact:
easyDNS Technologies Inc., [EMAIL PROTECTED]
+1.416.535.8672
http://www.easydns.com

 Administrative Contact:
Karotte, Rutsche  [EMAIL PROTECTED]
No Address
No City, No State No Zip
DE
0080 1100333

 Technical Contact:
Karotte, Rutsche  [EMAIL PROTECTED]
No Address

  No City, No State No Zip

DE
0080 1100333
 
 Billing Contact:
Karotte, Rutsche  [EMAIL PROTECTED]
No Address
No City, No State No Zip
DE
0080 1100333
 
 
 Record last updated on 24-Oct-2001.
 Record expires on 21-Oct-2002.
 Record Created on 21-Oct-1999.
 
 Domain servers in listed order:
NS1.EASYDNS.COM   216.220.40.243
NS2.EASYDNS.COM   216.220.40.244
REMOTE1.EASYDNS.COM   64.39.29.212
REMOTE2.EASYDNS.COM   212.100.224.80
 

-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard

On Tue, 30 Oct 2001 15:27, brendan wrote:
> Your too late for that ..
> recipie boy  (aka speedboy) already had a go at us southerners
> I reckon you noreasterners are for it next ..
> Im working on finding out where he's from so we can make fun of his state
> .. Im working hard..
> ill find out..
> then the jokes'll be flying..
> ;)

I see what you mean... he's not making it easy for you.


$ whos nomicrosoft.org
  [whois.geektools.com]
Query: nomicrosoft.org
Registry:  whois.opensrs.net
Results:
Registrant:
 No Organisation
 No Address
 No City, No State No Zip
 DE

 Domain Name: NOMICROSOFT.ORG
 
 Sponsoring Reseller; for Technical Support
 with respect to this domain contact:
easyDNS Technologies Inc., [EMAIL PROTECTED]
+1.416.535.8672
http://www.easydns.com

 Administrative Contact:
Karotte, Rutsche  [EMAIL PROTECTED]
No Address
No City, No State No Zip
DE
0080 1100333

 Technical Contact:
Karotte, Rutsche  [EMAIL PROTECTED]
No Address
  No City, No State No Zip
DE
0080 1100333
 
 Billing Contact:
Karotte, Rutsche  [EMAIL PROTECTED]
No Address
No City, No State No Zip
DE
0080 1100333
 
 
 Record last updated on 24-Oct-2001.
 Record expires on 21-Oct-2002.
 Record Created on 21-Oct-1999.
 
 Domain servers in listed order:
NS1.EASYDNS.COM   216.220.40.243
NS2.EASYDNS.COM   216.220.40.244
REMOTE1.EASYDNS.COM   64.39.29.212
REMOTE2.EASYDNS.COM   212.100.224.80
 

-- 
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] @#$@# Reg Expressions

2001-10-29 Thread brendan

Your too late for that ..
recipie boy  (aka speedboy) already had a go at us southerners
I reckon you noreasterners are for it next ..
Im working on finding out where he's from so we can make fun of his state ..
Im working hard..
ill find out..
then the jokes'll be flying..
;)

Brad Hubbard wrote:

> On Tue, 30 Oct 2001 15:14, brendan wrote:
> 
>>or really bloody narky afgani's
>>
>>Martin Towell wrote:
>>
>>>Off track - seems like the only ppl awake now are ozzies :)
>>>would I be right?
>>>
> 
> No jokes about Tamanians or New South Welshmen though alright?
> 


-- 
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] lesson in NOT how to run your php website ...

2001-10-29 Thread Lucas Chan

> Thankfully Tasmania is not considered part of Australia. :)

Hahaha.  Nice one.  =)

Regards,

[ lucas ]



-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard

On Tue, 30 Oct 2001 15:14, brendan wrote:
> or really bloody narky afgani's
>
> Martin Towell wrote:
> > Off track - seems like the only ppl awake now are ozzies :)
> > would I be right?

No jokes about Tamanians or New South Welshmen though alright?

-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Brian White

I am upright and sitting at my desk, but I think
"awake" is far too generous a description


At 15:21 30/10/2001 +1100, Martin Towell wrote:
>Off track - seems like the only ppl awake now are ozzies :)
>would I be right?
>
>-Original Message-
>From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, October 30, 2001 3:11 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] @#$@# Reg Expressions
>
>
>On Tue, 30 Oct 2001 14:47, brendan wrote:
> > mate you rock..
>
>You can tell he's an Australian (on ya mate :-)
>
>--
>Brad Hubbard
>Congo Systems
>1/286 Bolton Street, Eltham
>Victoria, Australia, 3095.
>Email: [EMAIL PROTECTED]
>Ph: +61-3-94391200
>Fax: +61-3-94391255
>Mob: +61-419107559
>
>--
>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]

-
Brian White
Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy
Phone: +612-93197901
Web:   http://www.steptwo.com.au/
Email: [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] @#$@# Reg Expressions

2001-10-29 Thread Jack Dempsey

or the east coast.only 11:35 here in dc

-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 11:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions


or really bloody narky afgani's

Martin Towell wrote:

> Off track - seems like the only ppl awake now are ozzies :)
> would I be right?
> 
> -Original Message-
> From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] @#$@# Reg Expressions
> 
> 
> On Tue, 30 Oct 2001 14:47, brendan wrote:
> 
>>mate you rock..
>>
> 
> You can tell he's an Australian (on ya mate :-)
> 
> 


-- 
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] lesson in NOT how to run your php website ...

2001-10-29 Thread speedboy

> I teach law at a university  .. I also run the website here ...

Thankfully Tasmania is not considered part of Australia. :)

*troll bait away*


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread brendan

or really bloody narky afgani's

Martin Towell wrote:

> Off track - seems like the only ppl awake now are ozzies :)
> would I be right?
> 
> -Original Message-
> From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] @#$@# Reg Expressions
> 
> 
> On Tue, 30 Oct 2001 14:47, brendan wrote:
> 
>>mate you rock..
>>
> 
> You can tell he's an Australian (on ya mate :-)
> 
> 


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Martin Towell

Off track - seems like the only ppl awake now are ozzies :)
would I be right?

-Original Message-
From: Brad Hubbard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] @#$@# Reg Expressions


On Tue, 30 Oct 2001 14:47, brendan wrote:
> mate you rock..

You can tell he's an Australian (on ya mate :-)

-- 
Brad Hubbard
Congo Systems
1/286 Bolton Street, Eltham
Victoria, Australia, 3095.
Email: [EMAIL PROTECTED]
Ph: +61-3-94391200
Fax: +61-3-94391255
Mob: +61-419107559

-- 
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] lesson in NOT how to run your php website ...

2001-10-29 Thread brendan

I teach law at a university  .. I also run the website here ...  php 
with a mysql backend ...


- I have been designing a client side administration tool which allows 
you to setup both the html input form to request from a database and 
format the way the results look and are returned ... so that academics 
can setup and run their own databases ...

- of course during setup and debugging I ran from the /temp directory of 
the website (we dont have a test machine)

- after debugging was over i forgot about the extra copy of this script 
in the /temp directory and forgot to delete it ..(there was no security 
on the script)

- what i also forgot was that in my last lecture series I had left the 
presentation files for the students in the .. you guessed it ... /temp 
directory  ..

- the students .. being students didnt actually look at the lecture 
notes very much, and i had deleted them ..

- however its exam time  ... and all of them in a flurry logged on to 
the site ('/temp') ... but instead of finding the lecture series they 
find this strange control panel with lots of weird buttons...
- web user + strange buttons on page => bugger ...

so about two weeks ago the site started to go haywire ... links stopped 
working .. databases started screwing up ..

- i had entirely forgot about the contents of the /temp directory ..
- i was going INSANE trying to continually fix the site ..
- i thought we were being hacked and ran a constant netstat, logged all 
visitor activity and made two separate complaints about what seems now 
were innocent web users ...
- i didnt sleep
- my girlfriend nearly dumped me ..
- i was sure there was a conspiracy at hand ..

- I only stumbled on the /temp directory when i began rebuilding a new 
site to replace what I had now decided was a comprimised code base ... I 
started in the /temp directory of course ;)


- I am sure there is a lesson here somewhere .. I think it is probably 
more valuable just to laugh at ..

ps thanks for all the help on the last run of stupidity I had (re 
!#@$!#$ regular expressions posts here)

happy programming!


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Brad Hubbard

On Tue, 30 Oct 2001 14:47, brendan wrote:
> mate you rock..

You can tell he's an Australian (on ya mate :-)

-- 
Brad Hubbard
Congo Systems
1/286 Bolton Street, Eltham
Victoria, Australia, 3095.
Email: [EMAIL PROTECTED]
Ph: +61-3-94391200
Fax: +61-3-94391255
Mob: +61-419107559

-- 
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] @#$@# Reg Expressions

2001-10-29 Thread brendan

mate you rock..


Martin Towell wrote:

> try this - 
> 
> $the_array = spliti(" $the_array = preg_grep("", $the_array);
> foreach($the_array as $k)
>   echo ereg_replace(".*", "", $k)."\n";
> 
> 
> -Original Message-
> From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 2:30 PM
> To: brendan; [EMAIL PROTECTED]
> Subject: RE: [PHP] @#$@# Reg Expressions
> 
> 
> brendan, please clarify: you're "trying to strip out all links in the page
> that is between
> the "
> 
> you're trying to strip out all links and return them?
> if so, split won't work.it splits on whatever the pattern is.
> if you're trying to get all the links, you could do [this doesn't get  name which is what you want i think]
> 
> preg_match_all("|()|",$html,$matches);
> 
> look at the preg_match_all page at php.net for info on how to use it
> 
> 
> ITE($url);
> 
> $the_array=spliti("", $html,-1); //spliti to avoid any case
> sensitivity.
> foreach($the_array AS $k) echo $k."";
> 
> I had given preg_split a go but just got flummoxed with the need to
> slash everything ..
> 
> 
> Martin .. I'd tried that .. but i get an array count of 0 from
> $the_array ..(from $the_array=split("]*)", $html,-1);
> 
> 
> 
> echo count($the_array);
> 
> Jack Dempsey wrote:
> 
> 
>>ok, are you trying to get the links returned or just split on them? i
>>
> missed
> 
>>your original post.
>>watch your caps as well...
>>
>>i'd use preg_split also
>>
>>jack
>>
>>-Original Message-
>>From: brendan [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, October 29, 2001 9:59 PM
>>To: [EMAIL PROTECTED]
>>Subject: [PHP] @#$@# Reg Expressions
>>
>>
>>thanks but it didnt work either ..  ;)
>>
>>Matt Friedman wrote:
>>
>>
>>
>>>Try putting a "?" after your quantifier for "non-greedy" matching.
>>>
>>>Something like: $the_array=split("", $html,-1);
>>>
>>>Matt.
>>>
>>>
>>>
>>>- Original Message -
>>>From: "brendan" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Monday, October 29, 2001 7:55 PM
>>>Subject: [PHP] @#$@# Reg Expressions
>>>
>>>
>>>
>>>
>>>
love em.. right now I hate em..

can someone inform me why the below doesnt work?
it is intended to strip out all the links in a page and return an array
.. insanity is just starting to set in..

cheers

$html =GETSITE($url);
// and put in a new line break behind every anchor tag
$the_array=spliti("", $html,-1);
echo $the_array ;
foreach($the_array AS $k) echo $k."";
}


--
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 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] @#$@# Reg Expressions

2001-10-29 Thread Martin Towell

try this - 

$the_array = spliti("", $the_array);
foreach($the_array as $k)
  echo ereg_replace(".*", "", $k)."\n";


-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 2:30 PM
To: brendan; [EMAIL PROTECTED]
Subject: RE: [PHP] @#$@# Reg Expressions


brendan, please clarify: you're "trying to strip out all links in the page
that is between
the "

you're trying to strip out all links and return them?
if so, split won't work.it splits on whatever the pattern is.
if you're trying to get all the links, you could do [this doesn't get )|",$html,$matches);

look at the preg_match_all page at php.net for info on how to use it


ITE($url);

$the_array=spliti("", $html,-1); //spliti to avoid any case
sensitivity.
foreach($the_array AS $k) echo $k."";

I had given preg_split a go but just got flummoxed with the need to
slash everything ..


Martin .. I'd tried that .. but i get an array count of 0 from
$the_array ..(from $the_array=split("]*)", $html,-1);



echo count($the_array);

Jack Dempsey wrote:

> ok, are you trying to get the links returned or just split on them? i
missed
> your original post.
> watch your caps as well...
>
> i'd use preg_split also
>
> jack
>
> -Original Message-
> From: brendan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 9:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] @#$@# Reg Expressions
>
>
> thanks but it didnt work either ..  ;)
>
> Matt Friedman wrote:
>
>
>>Try putting a "?" after your quantifier for "non-greedy" matching.
>>
>>Something like: $the_array=split("", $html,-1);
>>
>>Matt.
>>
>>
>>
>>- Original Message -
>>From: "brendan" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Monday, October 29, 2001 7:55 PM
>>Subject: [PHP] @#$@# Reg Expressions
>>
>>
>>
>>
>>>love em.. right now I hate em..
>>>
>>>can someone inform me why the below doesnt work?
>>>it is intended to strip out all the links in a page and return an array
>>>.. insanity is just starting to set in..
>>>
>>>cheers
>>>
>>>$html =GETSITE($url);
>>>// and put in a new line break behind every anchor tag
>>>$the_array=spliti("", $html,-1);
>>>echo $the_array ;
>>>foreach($the_array AS $k) echo $k."";
>>>}
>>>
>>>
>>>--
>>>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 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] virtual

2001-10-29 Thread Gary

What would cause a fatal error using virtual(/cgi-bin/folder/program.pl); ?

TIA
Gary


-- 
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] @#$@# Reg Expressions

2001-10-29 Thread Jack Dempsey

brendan, please clarify: you're "trying to strip out all links in the page
that is between
the "

you're trying to strip out all links and return them?
if so, split won't work.it splits on whatever the pattern is.
if you're trying to get all the links, you could do [this doesn't get )|",$html,$matches);

look at the preg_match_all page at php.net for info on how to use it


ITE($url);

$the_array=spliti("", $html,-1); //spliti to avoid any case
sensitivity.
foreach($the_array AS $k) echo $k."";

I had given preg_split a go but just got flummoxed with the need to
slash everything ..


Martin .. I'd tried that .. but i get an array count of 0 from
$the_array ..(from $the_array=split("]*)", $html,-1);



echo count($the_array);

Jack Dempsey wrote:

> ok, are you trying to get the links returned or just split on them? i
missed
> your original post.
> watch your caps as well...
>
> i'd use preg_split also
>
> jack
>
> -Original Message-
> From: brendan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 9:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] @#$@# Reg Expressions
>
>
> thanks but it didnt work either ..  ;)
>
> Matt Friedman wrote:
>
>
>>Try putting a "?" after your quantifier for "non-greedy" matching.
>>
>>Something like: $the_array=split("", $html,-1);
>>
>>Matt.
>>
>>
>>
>>- Original Message -
>>From: "brendan" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Monday, October 29, 2001 7:55 PM
>>Subject: [PHP] @#$@# Reg Expressions
>>
>>
>>
>>
>>>love em.. right now I hate em..
>>>
>>>can someone inform me why the below doesnt work?
>>>it is intended to strip out all the links in a page and return an array
>>>.. insanity is just starting to set in..
>>>
>>>cheers
>>>
>>>$html =GETSITE($url);
>>>// and put in a new line break behind every anchor tag
>>>$the_array=spliti("", $html,-1);
>>>echo $the_array ;
>>>foreach($the_array AS $k) echo $k."";
>>>}
>>>
>>>
>>>--
>>>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 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] @#$@# Reg Expressions

2001-10-29 Thread brendan

martin, jack ..
cheers for the replies

Jack.. I am trying to strip out all links in the page that is between 
the 
I was using
$html =GETSITE($url);

$the_array=spliti("", $html,-1); //spliti to avoid any case 
sensitivity.
foreach($the_array AS $k) echo $k."";

I had given preg_split a go but just got flummoxed with the need to 
slash everything ..


Martin .. I'd tried that .. but i get an array count of 0 from 
$the_array ..(from $the_array=split("]*)", $html,-1);



echo count($the_array);

Jack Dempsey wrote:

> ok, are you trying to get the links returned or just split on them? i missed
> your original post.
> watch your caps as well...
> 
> i'd use preg_split also
> 
> jack
> 
> -Original Message-
> From: brendan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 9:59 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] @#$@# Reg Expressions
> 
> 
> thanks but it didnt work either ..  ;)
> 
> Matt Friedman wrote:
> 
> 
>>Try putting a "?" after your quantifier for "non-greedy" matching.
>>
>>Something like: $the_array=split("", $html,-1);
>>
>>Matt.
>>
>>
>>
>>- Original Message -
>>From: "brendan" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Monday, October 29, 2001 7:55 PM
>>Subject: [PHP] @#$@# Reg Expressions
>>
>>
>>
>>
>>>love em.. right now I hate em..
>>>
>>>can someone inform me why the below doesnt work?
>>>it is intended to strip out all the links in a page and return an array
>>>.. insanity is just starting to set in..
>>>
>>>cheers
>>>
>>>$html =GETSITE($url);
>>>// and put in a new line break behind every anchor tag
>>>$the_array=spliti("", $html,-1);
>>>echo $the_array ;
>>>foreach($the_array AS $k) echo $k."";
>>>}
>>>
>>>
>>>--
>>>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]




RE: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Jack Dempsey

ok, are you trying to get the links returned or just split on them? i missed
your original post.
watch your caps as well...

i'd use preg_split also

jack

-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 9:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] @#$@# Reg Expressions


thanks but it didnt work either ..  ;)

Matt Friedman wrote:

> Try putting a "?" after your quantifier for "non-greedy" matching.
>
> Something like: $the_array=split("", $html,-1);
>
> Matt.
>
>
>
> - Original Message -
> From: "brendan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 29, 2001 7:55 PM
> Subject: [PHP] @#$@# Reg Expressions
>
>
>
>>love em.. right now I hate em..
>>
>>can someone inform me why the below doesnt work?
>>it is intended to strip out all the links in a page and return an array
>>.. insanity is just starting to set in..
>>
>>cheers
>>
>>$html =GETSITE($url);
>>// and put in a new line break behind every anchor tag
>>$the_array=spliti("", $html,-1);
>>echo $the_array ;
>>foreach($the_array AS $k) echo $k."";
>>}
>>
>>
>>--
>>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]




RE: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Martin Towell

what something like: $the_array=split("]*)", $html,-1);  ??
so, everything that's not a ">"

-Original Message-
From: brendan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] @#$@# Reg Expressions


thanks but it didnt work either ..  ;)

Matt Friedman wrote:

> Try putting a "?" after your quantifier for "non-greedy" matching.
> 
> Something like: $the_array=split("", $html,-1);
> 
> Matt.
> 
> 
> 
> - Original Message - 
> From: "brendan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 29, 2001 7:55 PM
> Subject: [PHP] @#$@# Reg Expressions
> 
> 
> 
>>love em.. right now I hate em..
>>
>>can someone inform me why the below doesnt work?
>>it is intended to strip out all the links in a page and return an array
>>.. insanity is just starting to set in..
>>
>>cheers
>>
>>$html =GETSITE($url);
>>// and put in a new line break behind every anchor tag
>>$the_array=spliti("", $html,-1);
>>echo $the_array ;
>>foreach($the_array AS $k) echo $k."";
>>}
>>
>>
>>-- 
>>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] @#$@# Reg Expressions

2001-10-29 Thread brendan

thanks but it didnt work either ..  ;)

Matt Friedman wrote:

> Try putting a "?" after your quantifier for "non-greedy" matching.
> 
> Something like: $the_array=split("", $html,-1);
> 
> Matt.
> 
> 
> 
> - Original Message - 
> From: "brendan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 29, 2001 7:55 PM
> Subject: [PHP] @#$@# Reg Expressions
> 
> 
> 
>>love em.. right now I hate em..
>>
>>can someone inform me why the below doesnt work?
>>it is intended to strip out all the links in a page and return an array
>>.. insanity is just starting to set in..
>>
>>cheers
>>
>>$html =GETSITE($url);
>>// and put in a new line break behind every anchor tag
>>$the_array=spliti("", $html,-1);
>>echo $the_array ;
>>foreach($the_array AS $k) echo $k."";
>>}
>>
>>
>>-- 
>>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] @#$@# Reg Expressions

2001-10-29 Thread Matt Friedman


Try putting a "?" after your quantifier for "non-greedy" matching.

Something like: $the_array=split("", $html,-1);

Matt.



- Original Message - 
From: "brendan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 7:55 PM
Subject: [PHP] @#$@# Reg Expressions


> love em.. right now I hate em..
> 
> can someone inform me why the below doesnt work?
> it is intended to strip out all the links in a page and return an array
> .. insanity is just starting to set in..
> 
> cheers
> 
> $html =GETSITE($url);
> // and put in a new line break behind every anchor tag
> $the_array=spliti("", $html,-1);
> echo $the_array ;
> foreach($the_array AS $k) echo $k."";
> }
> 
> 
> -- 
> 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] Trailing "/" and Apache

2001-10-29 Thread Ryan Christensen

That's likely not the problem.. More the fact that if you don't have the
"ServerName" directive set to match the ip address you're accessing it
with in this case.. (unless you have DNS pointing a domain to it that's
configured as a vhost).

So, try adding the line:

ServerName 209.204.111.121

To your Apache config.. And watch the pages fly :)

-Ryan

> -Original Message-
> From: Miles Thompson [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, October 29, 2001 5:44 PM
> To: Todd Cary; [EMAIL PROTECTED]
> Subject: Re: [PHP] Trailing "/" and Apache
> 
> 
> Todd,
> 
> What is the DirectoryIndex set to in httpd.conf? Normally 
> it's something like
> DirectoryIndex index.html, index.php   (or whatever file you 
> want served as 
> the home page)
> 
> Miles
> 
> At 04:55 PM 10/29/01 -0800, Todd Cary wrote:
> >With Linux and Apache, if I use the IP of 
> http://209.204.111.121/mydir, 
> >the index.html file is not 
> accessed.  However, 
> >http://209.204.111.121/mydir/ does access it.  This problem does not 
> >exist with IIS, so I am curious if there is some parameter 
> in Apache I 
> >can change.
> >
> >Thank you...
> >
> >Todd
> >
> >--
> >Todd Cary
> >Ariste Software
> >[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] @#$@# Reg Expressions

2001-10-29 Thread brendan

love em.. right now I hate em..

can someone inform me why the below doesnt work?
it is intended to strip out all the links in a page and return an array
.. insanity is just starting to set in..

cheers

$html =GETSITE($url);
// and put in a new line break behind every anchor tag
$the_array=spliti("", $html,-1);
echo $the_array ;
foreach($the_array AS $k) echo $k."";
}


-- 
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] Trailing "/" and Apache

2001-10-29 Thread Miles Thompson

Todd,

What is the DirectoryIndex set to in httpd.conf? Normally it's something like
DirectoryIndex index.html, index.php   (or whatever file you want served as 
the home page)

Miles

At 04:55 PM 10/29/01 -0800, Todd Cary wrote:
>With Linux and Apache, if I use the IP of http://209.204.111.121/mydir,
>the index.html file is not accessed.  However,
>http://209.204.111.121/mydir/ does access it.  This problem does not
>exist with IIS, so I am curious if there is some parameter in Apache I
>can change.
>
>Thank you...
>
>Todd
>
>--
>Todd Cary
>Ariste Software
>[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] RE: PHP object communication

2001-10-29 Thread ad

Sorry, it was Tim that suggested that what I required wasn't really OO. My
apologies Tim, and thanks for your emails.

adam



Adam Beecher - CEO & Core Geek - ieWebs™

e  ...  [EMAIL PROTECTED]
w  ...  http://www.iewebs.com
m  ...  Box 81, Eglinton St, Cork, Ireland



> -Original Message-
> From: Tim Ward [mailto:[EMAIL PROTECTED]]
> Sent: 25 October 2001 12.04
> To: [EMAIL PROTECTED]; Tim Ward; [EMAIL PROTECTED]
> Subject: RE: PHP object communication
>
>
> see below for comments
>
>   Tim Ward
>   Senior Systems Engineer
>
> Please refer to the following disclaimer in respect of this message:
> http://www.stivesdirect.com/e-mail-disclaimer.html
>
>
> > -Original Message-
> > From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:   Thursday, October 25, 2001 11:56 AM
> > To: Tim Ward; [EMAIL PROTECTED]
> > Subject:RE: PHP object communication
> >
> > Hi Tim,
> >
> > > If you want access to error functions within the db class it
> must either
> > > extend the error class or have an error object within it. Either ...
> > >
> > I'll go for the latter, because extends isn't appropriate in this case:
>   [Tim Ward]  I think I would use the second option in your case as
> well, but always consider inheritance, it's beter where it is appropriate
>
> > > Class DB
> > > { var $error;
> > > ...
> > >   function DB() // constructor
> > >   {   ...
> > >   $this->error = new Error();
> > >   }
> > > ...
> > > }
> > >
> > > Class Core
> > > { var $db;
> > >   var error;
> > >
> > >   function Core() // constructor
> > >   {   ...
> > >   $this->db = new DB();
> > >   $this->error = new Error();
> > >   ...
> > >   }
> > > }
> > >   at the end of the day, both these are ways of getting around the
> > > lack of multiple inheritance
> > >
> >
> > In this case, don't I have a completely different error object in
> > $Core->db?
> [Tim Ward]  Yes, which is exactly what you want.
>
> the classes DB and Core both need to handle their own errors.
> What you don't
> want to do is handle errors in DB within an instance of Core. That would
> mean DB cannot cannot function except as part of Core. Remember  .. there
> are 2 O's in OOP, the second one is important. Each class should be
> complete. if you try to get DB to use error functions defined (or
> inherited
> by) in Core you are effectively trying to get a parent to inherit from a
> child.
> >
> > adam
>


-- 
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] \n's

2001-10-29 Thread speedboy

> quick problem... I don't seem to be able to strip \n's out of a string
> of text:

str_replace("\n", "", $line);



-- 
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] \n's

2001-10-29 Thread David Robley

On Tue, 30 Oct 2001 12:00, Justin French wrote:
> Hi all,
>
> quick problem... I don't seem to be able to strip \n's out of a string
> of text:
>
> i'm using:
>
>  eregi_replace("\n", "", $foo);
> ?>
>
> I've also tried:
> eregi_replace("\\n", "", $foo); and
> eregi_replace("\r", "", $foo); with no luck.
>
> Am I missing something when using ereg on special characters?
>
>
> Justin French

What about

$newfoo = eregi_replace("\n", "", $foo);

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Do radioactive cats have 18 half-lives?

-- 
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] switch-statement overrides use of global arrays?

2001-10-29 Thread Imar de Vries

Christian Reiniger wrote:

> So you want to share the array across *requests*
> That doesn't have *anything* to do with "global".
>
> Have a look at how HTTP works - each request is an isolated execution of
> a PHP script. it doesn't have any idea of what other pages the user
> already looked at. To archieve your stuff you need session management
> (phpbuilder.com has a nice tutorial on this)

Indeed, this is something I only came to know yesterday when Henrik replied
with an answer along the same line: every new instance of the script is
isolated from earlier instances, and therefore does not recognize the array.
I was confused though, because I thought it could be done as I succesfully
transferred other variables. Turned out all those variables were transported
inside a FORM, which does get recognized across multiple instances of the
script.

I'll have a look at documents on session management, thanks for the advice!
--
Imar de Vries - [EMAIL PROTECTED] - ICQ 6972439



-- 
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] \n's

2001-10-29 Thread Justin French

Hi all,

quick problem... I don't seem to be able to strip \n's out of a string
of text:

i'm using:



I've also tried:
eregi_replace("\\n", "", $foo); and
eregi_replace("\r", "", $foo); with no luck.

Am I missing something when using ereg on special characters?


Justin French

-- 
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] Trailing "/" and Apache

2001-10-29 Thread Todd Cary

With Linux and Apache, if I use the IP of http://209.204.111.121/mydir,
the index.html file is not accessed.  However,
http://209.204.111.121/mydir/ does access it.  This problem does not
exist with IIS, so I am curious if there is some parameter in Apache I
can change.

Thank you...

Todd

--
Todd Cary
Ariste Software
[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] Retrieving text file

2001-10-29 Thread Michael Benbow


Hi All,

I am completely new to all this, so please bare with me.  I have
permission to use another person's text file which resides on his
server.  Currently I manually download the file, process it in Excel,
then upload it into my MySQL database.  I want to try to automate this
process, and the first step I see if getting the file from his server
onto mine for processing.  I will be using a cron job for this.

This is what I currently have, but I get errors...

$WebFile="http://www.somesite.com/somefile.txt";;
$LocalFile="/path/to/somefile.txt";

$handle = fopen ($WebFile, "r");
$outhandle=fopen ($LocalFile,"w");
while (!feof($handle)) {
$buffer=fread($handle,4096);
fputs($outhandle,$buffer);
}
fclose($handle);
fclose($outhandle);

When I try running this I get error after error:

Warning: fopen("http://www.somesite.com/somefile.txt","r";) - No error in
trial.php on line 5

Warning: Supplied argument is not a valid File-Handle resource in
trial.php on line 7

Warning: Supplied argument is not a valid File-Handle resource in
trial.php on line 8

The last two lines repeat themselves until the script times out.

Help!  I am desperate!!  The file definently exists but I am stuck.

Thank you,
Michael.


-- 
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] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread Brian Clark

Hi Edward,

@ 4:25:53 PM on 10/29/2001, Edward Quick wrote:

> Absolutely nothing.

Don't take this as my assuming you're incompetent. It's just that we
need more information about your system in order to help you.

You wrote:

> I have just installed Apache 1.3.22 but when I load php4.0.6 it
> won't run

Define "load php4.0.6" exactly. Did you build PHP as a DSO
(--with-apxs) or did you build it into httpd (--with-apache)? Did you
install from an RPM?

Assuming Apache is installed in one of the usual places, and assuming
you're on a Unix or Linux system..

What happens when you run:

$ `which apachectl` configtest

Does it say "Syntax OK"?

What do you get when you run:

$ updatedb

followed by:

$ locate libphp4 | grep so

If nothing there, do you see "mod_php4.c" when you run this:

$ `which httpd` -l | grep php

Find your apache error_log, do this:

$ tail -f /path/to/apache/error_log

Then in another shell start apache:

$ `which apachectl` start

Does the "tail" window say anything at _all_?

We need more information..

--
 -Brian Clark | PGP is spoken here: 0xE4D0C7C8
  Please, DO NOT carbon copy me on list replies.


-- 
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] User Authentication against remote authentication server [ LDAP ]

2001-10-29 Thread Johnson, Kirk

Thanks for the link, Kurt. Can you also point to any authentication code
examples, or further discussion? The user comments in the manual suggest
there are at least a couple ways to code stuff, ldap_compare vs ldap_bind.
Any additional help appreciated.

TIA

Kirk

> -Original Message-
> From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 3:58 PM
> To: PHP General List
> Subject: Re: [PHP] User Authentication against remote authentication
> server [ LDAP ]
> 
> 
> > However, if the authentication server is not the web 
> server, instead,
> > it is a remote independent server. How can we manage the user
> > authentications at the web server side?
> 
> Use LDAP.  
> 
> http://www.php.net/manual/en/ref.ldap.php

-- 
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] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread Fotwun

uhhh... the php psychic says she needs your birthdate and name first. =P

but really, give some useful info. what OS? how is PHP compiled... are you
using the CGI style standalone, or is it compiled into Apache, or is it a
apache module? Whats the error it gives you on the console when trying to
run it. Whats the error produced in the apache log? etc...


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] apache1.3.22 won't start with php4.0.6
>
>
> Hi,
>
> Does anyone know how to get round this problem? I have just
> installed Apache 1.3.22 but when I load php4.0.6 it won't run.
>
> Please email me at [EMAIL PROTECTED]
>
> Thanks,
>
> Ed.
>
> --
> 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] Function not found

2001-10-29 Thread David Robley

On Mon, 29 Oct 2001 21:19, De Necker Henri wrote:
> Where can i find the code for the "array_search()" function in php4.I
> do have php4 but the function isnt found.The "in_array()" function is
> found.

According to the docs, that wasn't introduced unntil 4.05, so if you have 
an earlier version you need to upgrade to get the function.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   Swap read error. You lose your mind.

-- 
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] Fatcow and MySQL-Front

2001-10-29 Thread René Fournier

Hi All,

Little problem:  I want to transfer my MySQL database--a collection of 10 or
so tables, with data--to my Fatcow account.  They provide some lame MySQL
tools, but nothing to faciliate moving an existing database, full of data,
to their server.  I tried using MySQL-Front to connect to their server, but
it was rejected for some reason (their tech support acknowledged that
MySQL-Front doesn't work with Fatcow (?)).  Can anyone recommend a way for
me to get my database and data onto Fatcow?  I have asked their Tech
Support, but they weren't very supportive...

Much appreciated.

...Rene


-- 
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] User Authentication against remote authentication server

2001-10-29 Thread Kurt Lieber

> However, if the authentication server is not the web server, instead,
> it is a remote independent server. How can we manage the user
> authentications at the web server side?

Use LDAP.  

http://www.php.net/manual/en/ref.ldap.php

-- 
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] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread Michael A. Peters

On Mon, 29 Oct 2001 17:28:39 + (GMT)
[EMAIL PROTECTED] wrote:

> Hi,
> 
> Does anyone know how to get round this problem? I have just installed Apache 1.3.22 
>but when I load php4.0.6 it won't run. 

The error you are receiving when you try to start apache would be of assistance.

> 
> Please email me at [EMAIL PROTECTED]
> 
> Thanks,
> 
> Ed.
> 
> -- 
> 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]
> 


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-
Michael A. Peters
http://24.5.29.77:10080/

-- 
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] User Authentication against remote authentication server

2001-10-29 Thread Frewuill Rodriguez

may be you can write a  script (perl/php/*) which try to check/log/whatever
on the remote user sending a login/password, so if it returns ok yo can use
it to deny/allow the access to your local webserver.. it's like a kind of
authentication proxy



- Original Message -
From: "Zhu George-CZZ010" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 4:39 PM
Subject: [PHP] User Authentication against remote authentication server


>
>sorry, this might be a little bit off the topic, but I really hope you
could help anwering this question.
>
>It's pretty clear how to use web server to authenticate the
users/groups, for example, if we are using Apache, the userID and password
will be stored in the browser's cache, and be sent  to the web server to do
the authentiation whenenver a page is requested.
>
>However, if the authentication server is not the web server, instead,
it is a remote independent server. How can we manage the user
authentications at the web server side?
>
>Thank you very much in advance!
>
> --
> 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] PHP and Wget

2001-10-29 Thread Mark

On Mon, 29 Oct 2001 23:15:38 +0100, fragman_dk wrote:
>Do enybody no how to use wget on at website as a downloadmanager so
>i just
>can enter the url at wget on my linux server download it for me
?
>
>
>


--
Mark, [EMAIL PROTECTED] on 10/29/2001



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

2001-10-29 Thread Nikola Karović

Hi,
i have two tables "uniqueid" and "table2". In table2 are names that can be
the same. How can i make output on my web page that would count number of
same names by one name in url like index.php?id=name1 to produce eg number
3.

-
volim popit, volim zagalamit


-- 
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 and Wget

2001-10-29 Thread fragman_dk

Do enybody no how to use wget on at website as a downloadmanager so i just
can enter the url at wget on my linux server download it for me ?



-- 
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] separating lines in a text area field

2001-10-29 Thread Nikola Karoviæ

Maybe you could try to put "Content-Type: text/plain;" without quotes into
your message header.


- Original Message -
From: Don <[EMAIL PROTECTED]>
To: php list <[EMAIL PROTECTED]>
Sent: 29. listopad 2001 22:16
Subject: [PHP] separating lines in a text area field


Hi,

I've look at the PHP Faq, poked around the www.php.net site and searched the
mailing list archive but could not come up with an answer.  However, I'm
sure this question has been asked before on more than one occasion.

I have a form that calls a PHP function which sends the contents off as an
e-mail.  Within the form, I have a text area field.  My e-mail looks like:

field1 = value1
field2 = value2
etc...

For the text area field, it does NOT wrap the lines but puts everything on
one line.  Is there a PHP routine that can split the lines in a textarea
object?  Does this depend on whether the machine is Windows or UNIX?  If so,
is there a system independent routine?

Thanks,
Don



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

2001-10-29 Thread p.whiter

Hi

For an excellent perl solution try mojo mail at:

http://mojo.skazat.com/

This has all you want and more, and it is open source...

FYI I use this and currently have approx 1300 subscribers, this has not let
me down yet.

Regards
Paul

- Original Message -
From: "Nikola Karović" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 4:34 PM
Subject: [PHP] Mailing list


: Hi,
: Im looking for some mailing list script that would have option to send
mails
: in batch mode, to prevent server overloading and to sent all mails in
: personal mode, not to send them in bcc, or anything.
: I have looked allready on hotscripts.com ang phpresourceindex etc, but all
: e-mails with that options aren't free.
:
: 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]
:


-- 
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] spaces vs   in form fields

2001-10-29 Thread Richard S. Crawford

The problem is that you have special characters that are interfering with 
the output.  I had exactly the same problem a few weeks ago.

Try this:

$fixedOutputValue = htmlspecialchars($outputValue);
print ("");

This is how I solved it.

Note that putting htmlspecialchars($outputValue) in the value attribute 
will give you undesirable results.

At 01:32 PM 10/29/2001, Greg wrote:
>However, when I display the value in an input text box on a form, only
>"John" appears. The odd thing is that when I view source, the full name
>appears in the HTML; it just doesn't render that way in IE/Opera.


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
"It is only with the heart that we see rightly; what is essential is 
invisible to the eye."  --Antoine de Saint Exupéry

"Push the button, Max!"


--
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] curl and HTTPS

2001-10-29 Thread Gerard Onorato

Hello all,

Okay I have figured out that I will not be able to use fsockopen with https
to submit a form. Now I am on to using CURL with openssl. Does anyone know
of a sample of how to do this? I have seen mentions of it being done but can
not find any examples.

Thanks in advance.

Gerard


-- 
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] spaces vs   in form fields

2001-10-29 Thread Greg

I have a function which takes an integer (the id field for a record) and
returns the corresponding full name of the person whose id matches the
integer.

The function constructs the full name by querying a table for the row which
matches the id and then concatenating firstname, middlename, and lastname
with a " " (space) between each. The name value is called $name.

Once $name is gotten, it may appear under 2 conditions: as an uneditable
displayed value, or as an editable value appearing on a form in an input
text box. Whenever I simply display the value, it appears correctly, e.g.,
"John Paul Smith".

However, when I display the value in an input text box on a form, only
"John" appears. The odd thing is that when I view source, the full name
appears in the HTML; it just doesn't render that way in IE/Opera.

If I concatenate   instead of " ", the full name appears correctly in
the form field. That's fine but I have an inverse function which takes the
full name and returns the id. This inverse function works when I use " " to
concatenate names but it doesn't work when I use  !

Ugh! What's up with that?

Please REMOVE -NOSPAM from my email address when replying to me. 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] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread Edward Quick

Absolutely nothing.


- Original Message - 
From: "Mark Roedel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 7:15 PM
Subject: RE: [PHP] apache1.3.22 won't start with php4.0.6


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, October 29, 2001 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] apache1.3.22 won't start with php4.0.6
> 
> 
> Does anyone know how to get round this problem? I have just 
> installed Apache 1.3.22 but when I load php4.0.6 it won't run. 

Does it give you any messages when it fails to run?  Put anything useful
in your Apache error logs?


---
Mark Roedel |  "Blessed is he who has learned to laugh
Systems Programmer  |   at himself, for he shall never cease
LeTourneau University   |   to be entertained."
Longview, Texas, USA|   -- John Powell


-- 
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] Architecture : Handling timezones in a web application

2001-10-29 Thread Erik H. Mathy

> we have developed an application that in use at institutions
> throughout the U.S and hosted centrally,

Sweet!

> and we need to figure out how to handle timezone
> issues for time related data in the database. how have others handled the
> issue ?
> our thought is to associate a timezone with the institution and store all
> times in the DB as UTC. conversions from UTC to local time would
> happen only as data is displayed in the browser.

That'll work.

> any thoughts ?

What you've thought of is fine. Or you can do a small clientside Javascript
function that's put into your pages via an include();.

- Erik

P.S. That's if you like or use Javascript. Many folks here and in other
places don't like Javascript for anything except for pretty image
switches...hey, whatever floats your boat!! :)


-- 
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] separating lines in a text area field

2001-10-29 Thread Don

Hi,

I've look at the PHP Faq, poked around the www.php.net site and searched the mailing 
list archive but could not come up with an answer.  However, I'm sure this question 
has been asked before on more than one occasion.

I have a form that calls a PHP function which sends the contents off as an e-mail.  
Within the form, I have a text area field.  My e-mail looks like:

field1 = value1
field2 = value2
etc...

For the text area field, it does NOT wrap the lines but puts everything on one line.  
Is there a PHP routine that can split the lines in a textarea object?  Does this 
depend on whether the machine is Windows or UNIX?  If so, is there a system 
independent routine?

Thanks,
Don



[PHP] Architecture : Handling timezones in a web application

2001-10-29 Thread l0t3k

we have developed an application that in use at institutions throughout the
U.S and hosted centrally, and we need to figure out how to handle timezone
issues for time related data in the database. how have others handled the
issue ?
our thought is to associate a timezone with the institution and store all
times in the DB as UTC. conversions from UTC to local time would happen only
as data is displayed in the browser.

any thoughts ?



-- 
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] Re: fopen for ftp transfers

2001-10-29 Thread CC Zona

In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Scott) wrote:

> I am attempting to transfer files from one server to another via ftp.  I 
> am wondering if this is the best method to transfer files within PHP or
> should I seek other methods.  Here is the way I am doing it now:
> 
> $sendfile =
> fopen("ftp:user:[EMAIL PROTECTED]/testfile", "w");



-- 
CC

-- 
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] Problem with very big array !

2001-10-29 Thread Matthew Loff



What prevents you from doing this iteratively, (not loading all 150,000
rows into memory, but processing each row sequentially)?


-Original Message-
From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 29, 2001 11:44 AM
To: Php General MailingList
Subject: [PHP] Problem with very big array !


Hi guys,

I have an sql query returning a result of nearly 150 000 rows. I use the
PEAR DB::getAll method to retrieve this result as an array which is very
big
indeed (about 300Mb). I can't use the MySQL LIMIT statement because I
need
to do sorting stuff on the result array.
My concern is that even after processing the last line of the script,
the
process continue running for about 20~30 minutes (I am watching running
processes using the unix command 'top'). For information, querying the
database, sorting the array and displaying results with a pager system
only
takes 3 minutes.

I have made a short example that reproduces the problem. If you could
test
it (IT WILL USE ABOUT 120Mb OF RAM) and tell me if you've got the same
problem it would be nice. You need to create a test database with the
following table :

CREATE TABLE test (
  id mediumint(20) NOT NULL,
  text varchar(255) NOT NULL default '',
  PRIMARY KEY  (id)
)

Then populate it with 150 000 rows using the populate.php script.
Finally, execute the query.php script and use top to see if the process
stops running quickly. For me it takes a lot of time to end (more than
20
minutes).
If you empty the database table, remove one character from the string in
the
insertInto function and populate it again, it should work correctly.

Thanks for any answer !!

PS : I am using PHP 4.06, MySQL 3.23.41 and Apache on a bi-processor
linux
box with 1Gb RAM.


//--
// populate.php
//--
query("INSERT INTO test VALUES('$cpt', 'This is the
very
big test n° $cpt. With more text. This time it will take more memory,
and
more time to execute. This is very strange. I do not understand why
???')");
  }
}


$db = DB::connect("mysql://user:password@localhost/test");
$time_start = getmicrotime();

insertInto($db);

$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Execution time : $time seconds";
?>
//-
//End of populate.php
//-



//-
//query.php
//-
getAll("SELECT * from test");

$time_end = getmicrotime();
$time = $time_end - $time_start;
echo "Execution time : $time seconds";
?>
//--
//End of query.php
//--


-- 
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] User Authentication against remote authentication server

2001-10-29 Thread Zhu George-CZZ010


   sorry, this might be a little bit off the topic, but I really hope you could help 
anwering this question.

   It's pretty clear how to use web server to authenticate the users/groups, for 
example, if we are using Apache, the userID and password will be stored in the 
browser's cache, and be sent  to the web server to do the authentiation whenenver a 
page is requested.

   However, if the authentication server is not the web server, instead, it is a 
remote independent server. How can we manage the user authentications at the web 
server side?

   Thank you very much in advance!

-- 
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] parsing XML turorials, suggestions

2001-10-29 Thread Christian Reiniger

On Monday 29 October 2001 16:25, bill wrote:
> Need to get started parsing XML documents.  I've developed a program to
> write them XML a database, but now I need to read them to obtain, for
> example, the (cdata) value of  which is nested inside ,
> etc.
>
> What's the best place to start?  Does DOMXML have a future?

Sure. But it's a bit overkill if you just want to read XML (sequentially).
http://php.net/manual/en/ref.xml.html

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.

- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and having the login info at
home) was actually from him.

--
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] Speeding up program

2001-10-29 Thread Emile Bosch

wrote some code..

";
 return 4;
}


echo "DOING THE FIRST TEST";
for ($i = 0; $i < test('first'); $i++) {
 //doStuff
};
echo "";
echo "DOING THE SECOND EMILE COMPACT BLAH TEST";
for ($i = 0; $i < ($num?$num:($num = test('second')));  $i++) {
 //doStuff
};

//for ($i = 0; $i < ($num?$num:($num = mysql_num_rows($Results))); $i++) {

//};
?>

tralalal good luck


"David Robley" <[EMAIL PROTECTED]> schreef in bericht
01091910452903.15278@www">news:01091910452903.15278@www...
> On Tue, 18 Sep 2001 20:56, Niklas Lampén wrote:
> > How big difference does it make in speed in these:
> >
> >  > for ($i = 0; $i < mysql_num_rows($Results); $i++) {
> > blah
> > };
> > ?>
> >
> > or
> >
> >  > $n = mysql_num_rows($Results);
> > for ($i = 0; $i < $n; $i++) {
> > blah
> > };
> > ?>
> >
> > So actually I'm asking how much more/less it takes time to do the
> > comparing against mysql_num_rows() insted of comparing against a
> > variable.
> >
> >
> > Niklas
>
> Will deppend on the environment in which you are running it. to test it
> on your environment, try running each say ten thousand times in a loop,
> and use a timer like microtime to check how long it takes.\
>
> Then you can let us all know the answer.
>
> --
> David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
> CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA
>
>Why can't we just spell it orderves?



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

2001-10-29 Thread Nikola Karović

no, not like majordomo, like octeth mailing list manager
http://www.octeth.com/, only some thats free


- Original Message -
From: Frewuill Rodriguez <[EMAIL PROTECTED]>
To: Nikola Karović <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: 29. listopad 2001 21:21
Subject: Re: [PHP] Mailing list


> you mean like majordomo? it's not php but perl
>
> www.majordomo.com
>
> - Original Message -
> From: "Nikola Karović" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 29, 2001 12:34 PM
> Subject: [PHP] Mailing list
>
>
> > Hi,
> > Im looking for some mailing list script that would have option to send
> mails
> > in batch mode, to prevent server overloading and to sent all mails in
> > personal mode, not to send them in bcc, or anything.
> > I have looked allready on hotscripts.com ang phpresourceindex etc, but
all
> > e-mails with that options aren't free.
> >
> > 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]
>
>
> --
> 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] Mailing list

2001-10-29 Thread Frewuill Rodriguez

you mean like majordomo? it's not php but perl

www.majordomo.com

- Original Message -
From: "Nikola Karović" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 12:34 PM
Subject: [PHP] Mailing list


> Hi,
> Im looking for some mailing list script that would have option to send
mails
> in batch mode, to prevent server overloading and to sent all mails in
> personal mode, not to send them in bcc, or anything.
> I have looked allready on hotscripts.com ang phpresourceindex etc, but all
> e-mails with that options aren't free.
>
> 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]


-- 
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] switch-statement overrides use of global arrays?

2001-10-29 Thread Christian Reiniger

On Sunday 28 October 2001 22:17, Imar de Vries wrote:
> Hi all,
>
> a very frustrating problem. For some reason I am not able to pass on an
> array between two functions, although I declare it global in both of
> them. I suspect my use of a switch statement to control the flow of the

[...]

> switch ($action) {
>  default:
>  main();
>  break;
>  case "test_one":
>  test_one();
>  break;
> }

[...]

>  print (" enctype=\"multipart/form-data\">");
>  ?>
>  
>  
>  
>   }


So you want to share the array across *requests*
That doesn't have *anything* to do with "global".

Have a look at how HTTP works - each request is an isolated execution of 
a PHP script. it doesn't have any idea of what other pages the user 
already looked at. To archieve your stuff you need session management 
(phpbuilder.com has a nice tutorial on this)

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.

- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and having the login info at
home) was actually from him.

--
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] HELP: Syntax Needed

2001-10-29 Thread Christian Reiniger

On Sunday 28 October 2001 20:53, jtjohnston wrote:
> Jokes aside, I still don't get it.

*g*

> This works:
> mysql_pconnect($host,"AccountName","beep");

> Why doesn;'t this?
>
>  $myconnection = mysql_pconnect($host,$MyTable,$MyPassword);

Compare what arguments you pass. Especially the second one. In the first 
example you supply your account name. That's fine. mysql_pconnect expects 
it in that place.
The second time you use the table name instead of the acctname, so it 
tries to log in with username $MyTable, passwd $MyPassword

And unless you have a very weird setup this will always fail :)

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.

- /. posting discussing the likelihood that an AC post that claimed to be
posted by John Carmack during his honeymoon (and having the login info at
home) was actually from him.

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

2001-10-29 Thread James Webb

I'm trying to find a way to make streaming context for an internet game web site, like 
continual updates from the game and game info for players, I was looking around but 
can't find a function to help me, if you can point me in the right direction please 
drop me a line

- James



Re: [PHP] Using php to verify fields in form...

2001-10-29 Thread Henrik Hudson

Assuming you know what your field names are, they get passed in to the PHP 
script as variables.

Using regular expressions you can check your variables for values you 
want/don't want. If they aren't what you want print an error message and tell 
the user to go back or something similar.

It's the same process as doing it with Javascript, except its after the user 
hits submit.

Henrik

On Monday 29 October 2001 11:44, Jason wrote:

>  I am new to php and I have been using a book to learn a bit about it and
>  well I could not find a chapter on how to use php to verify a form is
> filled out properly, for instance I have a form with 3 fields... name,
> email and words. once the user clicks the submit button i want it to verify
> those 3 fields before running the php script to pass the info to a
> database. I have used java-script for this function in the past but would
> like to use php. Anyone know how i can accomplish this? Thanks in advance,
> Jason

-- 

Henrik Hudson
[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 to pass true/false or "no argument"

2001-10-29 Thread Henrik Hudson

If $xxx isn't defined at all, its default is NULL, so your if statement 
should work as is. If $xxx is not defined, then you should get thrown down to 
the else. There is a difference between false and NULL.

On Monday 29 October 2001 10:50, John A. Grant wrote:
>  I've written several functions with optional "string" parameters.
>  They work fine. But I've never written one that accepts an optional
>  "bool" parameter and I'm now confused.
>
>  I would like to have this:
>  somefunction("hello");
>  somefunction("hello",false);
>  somefunction("hello",true);
>
>  function somefunction($text,$xxx="")
>  {
>  if($xxx){
>  $xxx parameter was passed as true or false
>  }else{
>  $xxx parameter was not passed
>  }
>  }
>
>  Which is correct for the default initialization of $xxx:
>  $xxx=false;
>  $xxx=null;
>  $xxx="";
>
>  How do I distinguish between false and "$xxx parameter not
>  passed"? Do I use isset()? Do I use ===?
>
>  Thanks.

-- 

Henrik Hudson
[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] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread Mark Roedel

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, October 29, 2001 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] apache1.3.22 won't start with php4.0.6
> 
> 
> Does anyone know how to get round this problem? I have just 
> installed Apache 1.3.22 but when I load php4.0.6 it won't run. 

Does it give you any messages when it fails to run?  Put anything useful
in your Apache error logs?


---
Mark Roedel |  "Blessed is he who has learned to laugh
Systems Programmer  |   at himself, for he shall never cease
LeTourneau University   |   to be entertained."
Longview, Texas, USA|   -- John Powell 

--
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] Session handling with cookies??

2001-10-29 Thread Olexandr Vynnychenko

Hello Andy,

Monday, October 29, 2001, 3:39:51 PM, you wrote:

A> So... does anybody know how...

A> 1) I get the system to delete the cookie as soon as I leave the site, or
A> close it

Use logout with setcookie("name", 0, ...)

A> 2) How to work on the same time.

Pass information about date/time via GET or better POST variable(s).



-- 
Best regards,
 Olexandrmailto:[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] downloading images

2001-10-29 Thread Richard S. Crawford

With some of the newer broswers, you may be able to re-define the 
functionality of the context menu via JavaScript.  Visit 
http://www.dynamicdrive.com; I think that there are some examples there, 
and you might be able to redirect the "save image as..." functionality 
there (I wouldn't count on it, though).

Another option might be to zip up the larger image as a zip file and create 
a link to that zip file through the thumbnail image.  That way, when the 
user clicks on the thumbnail, they are prompted with a "save as..." 
dialogue box and they can then save the document on their own 
computer.  They still have to unzip it though.

Other than that, I think you're out of luck.  The problem is that saving an 
image onto a computer is a client-side function, which you can have no 
control over with server-side programs such as PHP or Perl.  If you can 
come up with a way for a web page to mess around with the source code of 
Netscape or IE, then you might be able to do things like control the "save 
image as..." functionality, or disable the back button, but that seems 
pretty unlikely to me.


At 10:47 AM 10/29/2001, you wrote:
>Hey,
>I'd like users to be able to download images from on
>my site.  The images are pretty big, so i've made
>thumbnails for each.  I can display each thumbnail,
>but how can i get it so that once the user clicks on
>the thumbnail, they get to download the whole image.
>I'd like it to work without having the user to right
>click and choose 'save image as'.
>Any ideas?!
>Thanks,
>Heidi


Sliante,
Richard S. Crawford

http://www.mossroot.com
mailto:[EMAIL PROTECTED]
AIM: Buffalo2K   ICQ: 11646404  Y!: rscrawford
"It is only with the heart that we see rightly; what is essential is 
invisible to the eye."  --Antoine de Saint Exupéry

"Push the button, Max!"


--
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] Re: Using php to verify fields in form...

2001-10-29 Thread Mike Frazer

I believe he was asking how to actually verify them, but I could be wrong...

There are two ways to do it that are quick and painless.  One involves
matching with a regular expression (and since my regular expression
knowledge is no longer up to snuff I won't even attempt to explain it in
depth).  The other is with the String functions.  There are about 900 ways
to do it with string functions.  Here is a for-instance:

To verify that there is a @ in an email address:

$test = strpos($email, "@");// Test >= 0 if true, FALSE if false


You can also tokenize the string using the strtok() function and then
compare both the user ID and the domain/host information to your desired
conditions.

All in all. the best way is with a regular expression.  However, you'll need
to get help from someone else on that as I've forgotten most of the stuff
about regex's.  Spent too much time progrmaming other things :)

Mike Frazer



"Richard Hollis" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> form passes to your php file
>
> your php file checks the variables with the same name of that of the form
> fields.
>
> you can then test htey have all been set accordingly
>
> e.g.
>
> $FieldName etc.
>
>
> "Jason" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am new to php and I have been using a book to learn a bit about it and
> > well I could not find a chapter on how to use php to verify a form is
> filled
> > out properly, for instance I have a form with 3 fields... name, email
and
> > words. once the user clicks the submit button i want it to verify those
3
> > fields before running the php script to pass the info to a database. I
> have
> > used java-script for this function in the past but would like to use
php.
> > Anyone know how i can accomplish this? Thanks in advance, Jason
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Using php to verify fields in form...

2001-10-29 Thread Richard Hollis

form passes to your php file

your php file checks the variables with the same name of that of the form
fields.

you can then test htey have all been set accordingly

e.g.

$FieldName etc.


"Jason" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am new to php and I have been using a book to learn a bit about it and
> well I could not find a chapter on how to use php to verify a form is
filled
> out properly, for instance I have a form with 3 fields... name, email and
> words. once the user clicks the submit button i want it to verify those 3
> fields before running the php script to pass the info to a database. I
have
> used java-script for this function in the past but would like to use php.
> Anyone know how i can accomplish this? Thanks in advance, Jason
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: session start error

2001-10-29 Thread Richard Hollis

try:

session_register("tb");

$tb = new tabela("tb_area_interesse", "Área de Interesse");

then after using sesion_start() in the next script $tb should contain your
object.

Richard

"Cdré «góvîj érg" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I use php 4.0.6 and I would like to do the following :
>
> teste_classe1.php
>  require ("classes.inc");
> session_start();
> echo("");
> echo("");
> session_register($tb);
> $tb = new tabela("tb_area_interesse", "Área de Interesse");
> ?>
>
> teste_classe2
> 
> 
>
>
> teste_classe2.php
>
>  require ("classes.inc");
> session_start();
> echo("");
> echo("");
> $result = $tb->qual_tabela();
> echo $result;
> session_unregister($tb);
> session_destroy();
> ?>
> 
> 
>
>
> When I load teste_classe1.php, its ok, but when I click on teste_classe2
link I
> receive :
>
> Fatal error: Call to a member function on a non-object
> in /home/httpd/html/curriculum/adm/teste_classe2.php on line 6
>
>
> any ideas ???
>
> Obrigado,
> André Castanheira
> Carioca Engenharia S.A.
> +55 21 3891-2200 r; 2325



-- 
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] Re: how to pass true/false or "no argument"

2001-10-29 Thread Richard Hollis

yeah, but i wanted to know the answer... so it wasn't a total waste of time
:)

"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "John A. Grant" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> [...]
> > How do I distinguish between false and "$xxx parameter not
> > passed"? Do I use isset()? Do I use ===?
>
> Well, I guess I should have done some homework first. This
> code seems to work fine:
>



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

2001-10-29 Thread Nikola Karović

Hi,
Im looking for some mailing list script that would have option to send mails
in batch mode, to prevent server overloading and to sent all mails in
personal mode, not to send them in bcc, or anything.
I have looked allready on hotscripts.com ang phpresourceindex etc, but all
e-mails with that options aren't free.

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

2001-10-29 Thread Zeev Suraski

My opinion differs from Rasmus in this case - I think that most of the 
points he makes in his study are quite accurate and well analyzed.  Be sure 
to keep current when the next release of PHP comes out - it's going to 
provide infrastructure to handle some of the more dangerous issues that 
Shaun pointed out.

Zeev

At 08:49 26/10/2001, Joseph Blythe wrote:
>ok thanks, think I fall in that category too, but doing my best to change it
>:)
>
>-Original Message-
>From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
>Sent: Friday, 26 October 2001 4:05 PM
>To: Joseph Blythe
>Cc: [EMAIL PROTECTED]
>Subject: Re: [PHP] security
>
>
>Has been around for quite a while and pretty much all the points are
>address right in the PHP documentation at http://php.net/security which is
>a much more informed source to study.  The guy who wrote that scarlet
>report only had a very thin grasp of the concepts.
>
>-Rasmus
>
>On Fri, 26 Oct 2001, Joseph Blythe wrote:
>
> > just stummbled across this great study by Shaun Clowes on php security,
>this
> > is just the kind of information I have been looking for, thought others
> > could also benefit from it.
> >
> > http://www.securereality.com.au/studyinscarlet.txt
> >
> > found during google search: PHP Security
> >
> > cheers,
> >
> > joseph
> >
> >
> >
>
>
>--
>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] Re: how to pass true/false or "no argument"

2001-10-29 Thread John A. Grant

"John A. Grant" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
[...]
> How do I distinguish between false and "$xxx parameter not
> passed"? Do I use isset()? Do I use ===?

Well, I guess I should have done some homework first. This
code seems to work fine:

function somefunction($text,$xxx=null)
{
if(isset($xxx)){
echo $xxx ? "true" : "false";
}else{
echo "null";
}
echo "\n";
}

somefunction("hello");
somefunction("hello",true);
somefunction("hello",false);


It prints:
null
true
false

which is what I want.

--
John A. Grant  * I speak only for myself *  (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here




-- 
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] fopen for ftp transfers

2001-10-29 Thread Frewuill Rodriguez

what about using ftp functions from PHP?

http://www.php.net/manual/en/ref.ftp.php


- Original Message - 
From: "Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 29, 2001 10:58 AM
Subject: [PHP] fopen for ftp transfers


> Hi-
> 
> I am attempting to transfer files from one server to another via ftp.  I 
> am wondering if this is the best method to transfer files within PHP or
> should I seek other methods.  Here is the way I am doing it now:
> 
> $sendfile =
> fopen("ftp:user:[EMAIL PROTECTED]/testfile", "w");
> 
> 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]


-- 
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] session start error

2001-10-29 Thread André Castanheira

Hi, 
I use php 4.0.6 and I would like to do the following : 

teste_classe1.php 
"); 
echo(""); 
session_register($tb); 
$tb = new tabela("tb_area_interesse", "Área de Interesse"); 
?> 

teste_classe2 
 
 


teste_classe2.php 

"); 
echo(""); 
$result = $tb->qual_tabela(); 
echo $result; 
session_unregister($tb); 
session_destroy(); 
?> 
 
 


When I load teste_classe1.php, its ok, but when I click on teste_classe2 link I 
receive : 

Fatal error: Call to a member function on a non-object 
in /home/httpd/html/curriculum/adm/teste_classe2.php on line 6 


any ideas ???

Obrigado,
André Castanheira
Carioca Engenharia S.A.
+55 21 3891-2200 r; 2325

-- 
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] Re: "Database tags" ala Lasso

2001-10-29 Thread l0t3k

> For the futurists around here: Is there any chance that php will
> include "database tags" ala Lasso?

highly unlikely, but you can achieve similar ends with one of the template
engines for PHP. with a little work, you should be able to accomplish the
same ends. check out Smarty (dont remeber the URL - check Hotscripts.com)
and see what you come up with.

Sverre Johan Tøvik <[EMAIL PROTECTED]> wrote in message
news:a05101004b8031706353a@[193.215.214.144]...
> Hi,
>
For those who don't know what I
> mean, here's an axample (not quite correct Lasso code, but it should
> get the point across):
>
> [db select="somedb"]
> [db query="sql"]
>
> 
>
> [record]
> 
>   I speak for myself only! 
> "to be yourself, in a world that tries, night and day, to make you just
> like everybody else - is to fight the greatest battle there ever is to
> fight, and never stop fighting" -- e.e. cummings



-- 
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] apache1.3.22 won't start with php4.0.6

2001-10-29 Thread edward . quick

Hi,

Does anyone know how to get round this problem? I have just installed Apache 1.3.22 
but when I load php4.0.6 it won't run. 

Please email me at [EMAIL PROTECTED]

Thanks,

Ed.

-- 
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] Using php to verify fields in form...

2001-10-29 Thread Jason

I am new to php and I have been using a book to learn a bit about it and
well I could not find a chapter on how to use php to verify a form is filled
out properly, for instance I have a form with 3 fields... name, email and
words. once the user clicks the submit button i want it to verify those 3
fields before running the php script to pass the info to a database. I have
used java-script for this function in the past but would like to use php.
Anyone know how i can accomplish this? Thanks in advance, Jason



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Absolute #$#$ silliness

2001-10-29 Thread Mike Frazer

Exactly.  Java borrows from C/C++ a great deal, and they tend to look
similar overall, but they are totally different languages.

PHP and Perl are much easier to learn if you already knew the other one
fairly well, but the differences are vast.  After learning at least the
basics of seven languages, I'm ready to suggest we make one universal one :)

Mike Frazer



"Cc Zona" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> In article <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED] (Jtjohnston) wrote:
>
> > > RTM :
> > >
> > > "Variable names follow the same rules as other labels in PHP. A valid
> > > variable name starts with a letter or underscore, followed by any
number of
> > > letters, numbers, or underscores."
> >
> > So $_1a is legal?! Confusing given $_ in Perl.
>
>  PHP isn't Perl, Perl isn't PHP.  Approaching one language with the
> expectation that it will follow the conventions of another will only give
> you a headache.
>
> --
> CC



-- 
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] Re: PHP changing my JavaScript??

2001-10-29 Thread Moloko

sounds like that's the problem - I am using session_start() as well so will
give your idea a try!

many thanks

Moloko

"_lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> it happened to me when i enter the page for the very first time and I use
> session_start()



-- 
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] Problem appending data in a file with fopen("ftp://...","a")

2001-10-29 Thread Dave Létourneau

I got the same error message when i opened it with "w"...  A append
operation opens the file in r/w?  I'm not sure...  I though it needed a "+"
: a+, w+...  anyway, I think I'm gonna use a database (mysql) and it will be
easy to to what I need but this problem is very strange.

Thanks!

> Aha -- I understand.  I also didn't see the first time that you're using
FTP.
>  You can't fopen() a file for read/write through FTP.  You can do one, or
the
> other, but not both.
>
> http://www.php.net/manual/en/function.fopen.php



-- 
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] how to pass true/false or "no argument"

2001-10-29 Thread John A. Grant

I've written several functions with optional "string" parameters.
They work fine. But I've never written one that accepts an optional
"bool" parameter and I'm now confused.

I would like to have this:
somefunction("hello");
somefunction("hello",false);
somefunction("hello",true);

function somefunction($text,$xxx="")
{
if($xxx){
$xxx parameter was passed as true or false
}else{
$xxx parameter was not passed
}
}

Which is correct for the default initialization of $xxx:
$xxx=false;
$xxx=null;
$xxx="";

How do I distinguish between false and "$xxx parameter not
passed"? Do I use isset()? Do I use ===?

Thanks.

--
John A. Grant  * I speak only for myself *  (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here




-- 
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] is there a way of using fnctl locks from php?

2001-10-29 Thread Richard Hollis

flock does not work because works differently.

is there a way to access fnctl locking directly from php?





-- 
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] Re: Excel to MySQL

2001-10-29 Thread Mike Frazer

Dump the Excel DB to a text file and use the string parsing functions.
Working with two large databases will suck up most of your system resources;
working with a large text file one line at a time and one database one
record of a time may be a little slower but it is going to be a million
times easier on your system.

Mike Frazer



"Daniel Harik" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello guys
>
> Thank You very much for your previous replies, could u help me with 1
> more thing?
>
> You see i have huge(for me) 100 000 record access table, i wanted to
> convert it to mysql, i thought of making php convertor that uses odbc
> and mysql, but maybe there is faster way?
>
> And other thought was also read in RAW format excel file with perl,
> and take advantage of DBI?
>
> Anyways how would u do it?
>
> Thank You very much
>



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




  1   2   >