[PHP] $i++, incrementing by 10's

2004-09-17 Thread Louie Miranda
is it possible to increment by 10's? or 20's?

i have this piece of code, but it selects from 1 to 1000 and counts by 1's.
for($i = 1; $i = 1000; $i++)

-- 
Louie Miranda
http://www.axishift.com

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



Re: [PHP] $i++, incrementing by 10's

2004-09-17 Thread Andrew Kreps
On Fri, 17 Sep 2004 14:07:08 +0800, Louie Miranda [EMAIL PROTECTED] wrote:
 is it possible to increment by 10's? or 20's?
 
 i have this piece of code, but it selects from 1 to 1000 and counts by 1's.
 for($i = 1; $i = 1000; $i++)
 

Yep, just change that last part from $i++ to $i += 10, or 20, or
whatever you wish.

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



[PHP] detect a file if it exist and display an image

2004-09-17 Thread Louie Miranda
im not sure if i coded one of my application wrong, i am displaying an
image by displaying the itemcode and just adding a .jpg extension at
the end.

like this..

$itemCode = $row['itemCode'];
..
img src=/images/$itemCode.jpg

i assumed before that i can show it all, but i found out that i cannot.

my problem now is the $itemCode is on a database and the image
filename is on  directory.
Will it be possible to detect a image file it exist or not?

-- 
Louie Miranda
http://www.axishift.com

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



[PHP] Re: detect a file if it exist and display an image

2004-09-17 Thread Louie Miranda
this might work.

?php
$filename = '/path/to/foo.txt';

if (file_exists($filename)) {
echo The file $filename exists;
} else {
echo The file $filename does not exist;
}
? 


On Fri, 17 Sep 2004 15:04:44 +0800, Louie Miranda [EMAIL PROTECTED] wrote:
 im not sure if i coded one of my application wrong, i am displaying an
 image by displaying the itemcode and just adding a .jpg extension at
 the end.
 
 like this..
 
 $itemCode = $row['itemCode'];
 ..
 img src=/images/$itemCode.jpg
 
 i assumed before that i can show it all, but i found out that i cannot.
 
 my problem now is the $itemCode is on a database and the image
 filename is on  directory.
 Will it be possible to detect a image file it exist or not?
 
 --
 Louie Miranda
 http://www.axishift.com
 



-- 
Louie Miranda
http://www.axishift.com

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



Re: [PHP] Secret Codes in Spam and PHP

2004-09-17 Thread Fernando Gutierrez
i'm mail admin and works with spam filters  I tell you some tricks
to fix your problem:

1- If you email is HTML based, it should be correct.
2- If you put a unsuscribe code with the email address of the
recipient the spam filter score high your email.
3- If you send a mail header X-Mailer: PHP some filters score high


This are only a little tricks , for testing you should install a test
spam filter , for example bogofilter, spamassassin ,or DSPAM. For
example i have spamassassin configured to tell me what rules score my
messages.

P.D: Sorry for my bad english


On Thu, 16 Sep 2004 15:14:14 -0500, Kristopher Spencer-Yates
[EMAIL PROTECTED] wrote:
 As many of you may have noticed, A friend and I have noticed the odd
 text at the bottom of spam.  My friend once stated What if this is some
 secret code.. they send it to everyone to hide that it is code.. but the
 person it is intended for knows how to decipher?   Hmm.. interesting.
 So that got me to coding.. I havent had much time to tinker but I do
 have some Fred Wrixon books.. anyway overall just getting started on
 this off-time project.  If this strange text at bottom of spam is indeed
 some ciphertext, they are probably using some old cipher methods.  This
 thought is based simply on comparing known cipher appearance to that of
 the text in spam and often seeing some similarities.
 
 I was wondering if anyone else has wondered the same thing about the
 wierd text at the bottom of a lot of the spam, and if anyone has ever
 used PHP to create any cipher tools in an attempt to crack the following:
 
 Columnar Transposition ciphers
 Word transposition ciphers
 Franklin-Dumas cipher
 
 My first round is creating a script that goes through and takes various
 combinations (1st letter of each word, 3rd letter of every 3rd word,
 etc., etc., etc.,)  I guess this is considered letter transposition
 ciphering.  I have some vague ideas to incorporate dictionary database..
 so if my script attempts to decrypt a peice of text with method 402
 and the result contains actual words from a dictionary, it will flag it
 or save it to a seperate database.. something along those lines.
 
 This is just for fun... no one is sponsoring/financing anything here..
 just wondering if anyone is interested in sharing ideas and/or code,
 philosophy, etc.  Of course, this could be done in any language, or even
 on paper... I can burn a ream of notebook paper fast doing double
 columnar by hand but my interest is using PHP specifically.   I figure,
 even if my friend is just crazy and no one is sending secret messages
 inside spam, it is at least going to be fun, rewarding in knowledge and
 the sharing of information and ideas.  And if we do crack something,
 maybe Fred Wrixon can mention PHP in his next book.  :)
 
 Kris
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 



-- 
-- Fernando Gutierrez Perez --
gmeileando un poco :)

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



Re: [PHP] detect a file if it exist and display an image

2004-09-17 Thread John Holmes
From: Louie Miranda [EMAIL PROTECTED]
im not sure if i coded one of my application wrong, i am displaying an
image by displaying the itemcode and just adding a .jpg extension at
the end.
like this..
$itemCode = $row['itemCode'];
..
img src=/images/$itemCode.jpg
i assumed before that i can show it all, but i found out that i cannot.
my problem now is the $itemCode is on a database and the image
filename is on  directory.
Will it be possible to detect a image file it exist or not?
I'm not really following what you're asking for...
If you're asking if you can just detect if an image file exists...
if(file_exists(images/{$itemCode}.jpg))
{ echo img src=\images/{$itemCode}.jpg\; }
else
{ echo No image; }
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Novice PHP Variable/Link Question

2004-09-17 Thread Gryffyn, Trevor
Alternately, you can do it the lazy way like me:

a href=?=$url??=$url?/a

? Echo $url; ?

Is the same as...

?=$url?


I also think that's a little easier to read.  But that's my preference
in style.

-TG

 -Original Message-
 From: Greg Donald [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 16, 2004 6:02 PM
 To: revDAVE
 Cc: PHP
 Subject: Re: [PHP] Novice PHP Variable/Link Question
 
 
 On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE 
 [EMAIL PROTECTED] wrote:
  How can I use a PHP variable as the destination for a link?
  
  ? $mylink = 'thispage.htm'
  
  a href=thispage.htmgo here/a
  
  With var...? How do I write this?
  
  a href=??? $mylink ???go here/a
 
 
 a href=?php echo $url;??php echo $url;?/a
 
 
 -- 
 Greg Donald
 http://gdconsultants.com/
 http://destiney.com/
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



RE: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Gryffyn, Trevor
 On 09/16/2004 09:01 PM, Rubem Pechansky wrote:
  I have designed and successfully prototyped a native Windows binding
  for PHP. This binding is very lightweight and it is already 
 capable of
  doing dialogs, controls, and a lot more with a few dozen lines of
  code. PHP can thus be used as a tool for quick development of native
  Windows applications.
  
  I have just released this project to the public as Open Source at
  http://winbinder.sourceforge.net/. Although it is still a work in
  progress, you can take a look at the source code, download a working
  demo and play with it a little bit.
  
  Your ideas, comments, criticisms and suggestions are very welcome.



This looks EXCELLENT!   I just got around to downloading PHP-GTK and was
kind of put off by it's clunky interface.  Reminded me of old-school
xwindows stuff or something.  Not a very fluid or functional feel.  And
I started wondering if anyone had done a more Windows-like GUI (or a
direct interface to the Windows window system) for PHP.

I look forward to the development of this product.  Definitely submit it
to PECL!

Thanks Rubem!

-TG

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



Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Octavian Rasnita
I haven't downloaded it yet because I have seen that I need PHP 4 and that
it won't work with PHP 5, but I will install PHP4 just for testing it.
I am glad that it uses Win32 native classes because those classes are
accessible for the most screen readers used by the blind, so the interfaces
will be accessible for the blind also.

GTK for PHP, like the TK package for perl don't create accessible interfaces
but perl can use the Win32:: libraries or the XW:: and it is great that now
we can create programs with Windows GUI's also, using PHP.

Teddy

- Original Message - 
From: Gryffyn, Trevor [EMAIL PROTECTED]
To: Rubem Pechansky [EMAIL PROTECTED]
Cc: PHP List [EMAIL PROTECTED]
Sent: Friday, September 17, 2004 5:08 PM
Subject: RE: [PHP] Re: A native Windows binding for PHP - released


 On 09/16/2004 09:01 PM, Rubem Pechansky wrote:
  I have designed and successfully prototyped a native Windows binding
  for PHP. This binding is very lightweight and it is already
 capable of
  doing dialogs, controls, and a lot more with a few dozen lines of
  code. PHP can thus be used as a tool for quick development of native
  Windows applications.
 
  I have just released this project to the public as Open Source at
  http://winbinder.sourceforge.net/. Although it is still a work in
  progress, you can take a look at the source code, download a working
  demo and play with it a little bit.
 
  Your ideas, comments, criticisms and suggestions are very welcome.

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



Re: [PHP] Host for Mod PHP5

2004-09-17 Thread Burhan Khalid
[EMAIL PROTECTED] wrote:
I know this is going to be tough but I need a hosting company that supports
PHP5, has unlimited disk space and a good amount of bandwidth with a
decently fast connection for a decent price. I realize that this might be
rare, but is anyone offering such a package like this anywhere? My client
doesn't want a dedicated server because it costs too much for him at the
moment. He wants to build a music website where people can download free
music from. The music is recorded by him and he has artists that are eager
to get their music out there into the public. Any suggestions on a temporary
shared hosting company for him? Any help would be appreciated.
1. There is no such thing as unlimited disk space. When have you heard 
of an unlimited disk?

2. Decently fast connection -- this could be my home DSL at 512/512
Get more realistic expectations, then hop on over to 
http://www.webhostingtalk.com

full_disclosure
I'm a Community Guide at webhostingtalk, but I have no other interests
in the board
/full_disclosure
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Host for Mod PHP5

2004-09-17 Thread Gryffyn, Trevor
I use DixieSys.com.  They seem to have fairly reasonable rates and good
speed.  They have a very personable support staff that you can reach via
their IRC server, ICQ or through conventional email, trouble tickets,
etc.  They'd big and well equipped but still have a down home manner
that I really enjoy.

They don't run PHP5 yet, but I posted a suggestion to set it up side by
side with PHP4 for people who want to use one or the other.

Disk space and bandwidth are cheap and you can add services a la carte
depending on your needs.

When asking for unlimited disk space and lots of bandwidth, you might be
over-estimating your needs.

You might also find a good balance in hosting a PHP-enabled website with
less space/bandwidth and going with a file hosting service for the
actual songs that are planned on being posted.  Some places specialize
in file serving and not actual web hosting, per se.

I have seen some free hosting services that claim unlimited space and
such, but you get what you pay for.

-TG

 -Original Message-
 From: Burhan Khalid [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 17, 2004 10:40 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP] Host for Mod PHP5
 
 
 [EMAIL PROTECTED] wrote:
 
  I know this is going to be tough but I need a hosting 
 company that supports
  PHP5, has unlimited disk space and a good amount of bandwidth with a
  decently fast connection for a decent price. I realize that 
 this might be
  rare, but is anyone offering such a package like this 
 anywhere? My client
  doesn't want a dedicated server because it costs too much 
 for him at the
  moment. He wants to build a music website where people can 
 download free
  music from. The music is recorded by him and he has artists 
 that are eager
  to get their music out there into the public. Any 
 suggestions on a temporary
  shared hosting company for him? Any help would be appreciated.
 
 1. There is no such thing as unlimited disk space. When have 
 you heard 
 of an unlimited disk?
 
 2. Decently fast connection -- this could be my home DSL at 512/512
 
 Get more realistic expectations, then hop on over to 
 http://www.webhostingtalk.com
 
 full_disclosure
 I'm a Community Guide at webhostingtalk, but I have no other interests
 in the board
 /full_disclosure
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 The firewall is relevant depending on your circumstances. In any case it 
 would
 take you all of one minute to disable your firewall to test out this wild
 far out suggestion. At the most you would have lost one minute but you 
 would
 have either:

 - gained the satisfaction of saying I told you the firewall was 
 irrelevant,
 now go away and stop wasting my time with your ridiculous suggestions

 or

 - you would have found the cause of your problem

It definitely takes more than a minute. It takes nearly a minute just to 
logoff one user and I often have another user, the Administrator account, 
also logged in. If the Administrator account is not lgged in already, then I 
must log in to it to shutdown ZoneAlarm. Then the system must shutdown and 
restart. While that is happening, I must unplug the cable modem to ensure I 
get nothing from/to the outside, but that can be done in parrallel with 
system shutdown. However I must stay at the system while this is happening; 
I prefer to unplug the cable after the system disconnects from the modem. 
Then I must log in to at least one account and start a few things, such as 
Apache. Relatively speaking, Apache starts immediatley, so it is not very 
relevant, but it does take time for my system to start. Then after the test 
I must restart ZoneAlarm, restart the system and be sure to plug the modem 
back in while the system starts. The whole operation is likely to take 
nearly a half hour at least.

 Contrast that with the number of posts you have made denying that the 
 firewall
 could be a problem, and stating adamantly that you will not do 
 such-and-such
 a thing because it is 'not supposed' to happen like that.

The problem is all the people that persist in saying the same thing. I am 
smart enough to think of the things being suggested. It is the type of thing 
that is very easy to suggest. I get frustrated by people suggesting things 
just because they are easy to suggest. Therefore when people make a 
suggestion that is more likely to be relevant it is difficult for me to 
determine which ones are worthwhile. And again, I am able to think of things 
such as eliminating the firewall as a possibility. It is okay for people to 
suggest that, but unless they can show me something that clearly says it is 
relevant, then they won't accomplish anything by insisting.

One problem is that I get answers that are not accurate, so it is difficult 
to know which ones are accurate.

The most important thing is that unless people give me a clear explanation 
of what they are saying, it is useless to insist. I don't mind a suggestion 
as much as it is the insisting that causes problems. Therefore from my point 
of view, it is the insistance by others that keep the discussion going (in 
useless directions).

There is one person in particular that tries too hard to help and then when 
I politely say I am getting too much help I get criticized. That is not a 
productive attitude.

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



[PHP] Highest Key in an Array

2004-09-17 Thread Daniel Schierbeck
I've been looking at php.net, but i couldn't find what i'm searching for.
I have a numeric array, and i'd like to get the highest key. E.g.
$arr = array(3 = foo, 7 = bar, 43 = foobar);
What i want is a function that, in this case, returns 43.
Daniel Schierbeck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Marek Kilimajer
Gryffyn, Trevor wrote:
On 09/16/2004 09:01 PM, Rubem Pechansky wrote:
I have designed and successfully prototyped a native Windows binding
for PHP. This binding is very lightweight and it is already 
capable of
doing dialogs, controls, and a lot more with a few dozen lines of
code. PHP can thus be used as a tool for quick development of native
Windows applications.
I have just released this project to the public as Open Source at
http://winbinder.sourceforge.net/. Although it is still a work in
progress, you can take a look at the source code, download a working
demo and play with it a little bit.
Your ideas, comments, criticisms and suggestions are very welcome.


This looks EXCELLENT!   I just got around to downloading PHP-GTK and was
kind of put off by it's clunky interface.
http://themes.freshmeat.net/browse/923/
particularly http://themes.freshmeat.net/projects/1in1-xp-gtk/ as you 
like windows so much

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


Re: [PHP] Highest Key in an Array

2004-09-17 Thread Martin Holm
Daniel Schierbeck wrote:
I've been looking at php.net, but i couldn't find what i'm searching for.
I have a numeric array, and i'd like to get the highest key. E.g.
$arr = array(3 = foo, 7 = bar, 43 = foobar);
What i want is a function that, in this case, returns 43.
Daniel Schierbeck
$arr = array(3 = foo, 7 = bar, 43 = foobar);
krsort($arr);
$highestkey = key($arr);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Highest Key in an Array

2004-09-17 Thread John Nichel
Daniel Schierbeck wrote:
I've been looking at php.net, but i couldn't find what i'm searching for.
I have a numeric array, and i'd like to get the highest key. E.g.
$arr = array(3 = foo, 7 = bar, 43 = foobar);
What i want is a function that, in this case, returns 43.
Daniel Schierbeck
Sort the array, then use end().
http://us4.php.net/array
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Instal or config this package UnxUtils.zip under windows

2004-09-17 Thread Andre
Hello 

Anyone knows how to install or config this package UnxUtils.zip under
windows.

Get common GNU utilities to native Win32 here:
http://unxutils.sourceforge.net/UnxUtils.zip

You need TAR and GZIP executable to compress in tar.gz format with Windows
Systems.

I need some help please



Re: [PHP] Highest Key in an Array

2004-09-17 Thread John Nichel
Martin Holm wrote:
Daniel Schierbeck wrote:
I've been looking at php.net, but i couldn't find what i'm searching for.
I have a numeric array, and i'd like to get the highest key. E.g.
$arr = array(3 = foo, 7 = bar, 43 = foobar);
What i want is a function that, in this case, returns 43.
Daniel Schierbeck
$arr = array(3 = foo, 7 = bar, 43 = foobar);
krsort($arr);
$highestkey = key($arr);
Oops, he wanted the key.  Martin's right.  My suggestion would have 
given you the value, not the key.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Markus Mayer [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 It is our experience at my employer that the firewall in XP-SP2, as well 
 as
 other firewalls that are available, are very relevant.

Thank you. I have not seen anything that states that explicitly. I doubt 
that SP2 makes a difference; the main reason I mentioned it is just to be 
thorough. I am nearly certain that the XP firewall, including the XP-SP2 
version, is turned off.

 We also have not seen any documentation about problems with such things
 after installing SP2, but we have problems.  Things that worked before 
 don't
 work any more, especially client side things.  Our three small Windoze
 servers have given our Windoze administrator more than enough work 
 recently.

Supposedly there is something that is about 30 pages that lists hundreds of 
incompatibility problems. Therefore it is likely that most of the don't 
work any more problems are identified by Microsoft.

 flame blocked by firewall.

Then ignore it. Just calling it a flame is likely to add fuel. I prefer to 
limit the discussion to facts, which is not happening in this discussion. 
The word flame is usually an unnecessary emotional expression

 SP2 is so new that its effects are still being evaluated by a lot of 
 people.
 At the moment, I think the best place to get information about its effects 
 is
 forums like this one.  Formal documentation will be updated in time as 
 more
 experience is gained.  The info I got from our Windows admin is that with
 SP2, the MS SQL server on one machine was apparenty unaffected, but the 
 MySQL
 on another was.  Dropping the MS Firewall in SP2 allowed connections 
 again.

 Client side, SP2 has caused nothing but problems for us to the point where 
 we
 as administrators are now saying to our users it was working before you
 installed SP2, and after you installed SP2 it stopped working, so it's 
 your
 problem.  IE is especially problematic, and when someone calls up and 
 says
 they have a problem with IE and have installed SP2, our response is that 
 we
 no longer support IE and tell the users to install Mozilla, and if they 
 still
 have problems when they try Mozilla, they can call us back.  We haven't 
 heard
 from any of them again, and our help desk girls have always been able to
 quickly sort out the problems users have when they first try Mozilla.

Again, I doubt that SP2 is actually relevant, especially if I am correct 
that I am not using the firewall. If I am correct that it is not relevant, 
then dwelling on it is the type of thing causes confuson about what is 
usefull

I am not aware of any problem caused by SP2 except that it makes a little 
more work for me due to it's increased security and ti complains about a few 
things that I see no reason for it to complain about. I hope that if it is 
causing a problem I will be able to determine that but so far I have no 
reason to believe SP2 is relevant here.

 I looked back in this thread and saw that you used Zone Alarm as a 
 firewall.
 You need to allow MySQL connections to localhost, and that regardless of
 which firewall you use.  If you filter such connections out, PHP scripts 
 will
 not be able to connect to your MySQL server.  This is because PHP makes a 
 TCP
 connection to the MySQL server, also when it is running on the same 
 machine
 as you PHP/Apache (at least this is my understanding).  You can of course
 continue refuse all external (that is not from localhost) connections to
 whatever service is running on your machine.  I think something to this
 effect has already been said in this thread, but at the moment I don't 
 want
 to search for the post.

Again, it is okay to say this once but it is not useful to keep insisting. I 
am smart enough to be aware of the possibility and if and when other 
possibilities have been exahausted I would have tried the possibility of 
disabling the firewall or whatever. Insisting upon it from others is not 
productive; it is more likley to polarize me in the opposite direction and 
get us to where we are now. It is the emotional commentary that is most 
unproductive. I try to explain (unemotionally and in a reasonable manner) 
that I don't need the additional assertion that I must try something and the 
response to that becomes emotional.

 While the flame war in this thread has been amusing to read, it's 
 amusement
 value for me has more or less run out.  My impression is that you still 
 don't
 have the thing working, and the only solution left is to configure your
 firewall to allow connections to your MySQL server from localhost.  If you
 would do this, and it works, please post to the list to reflect this.  My
 experience as an administrator tells me with a 99% certainty that this is
 your problem.

Again, it is unproductive to repeat the same thing over and over. When 
someone repeats it, I have a tendency to respond to that. We have now gotten 
to the point where the discussion is unproductive. It 

RE: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Gryffyn, Trevor
Thanks!  The themes for GTK are definitely worth noting.

The problem for me is that that seems to accommodate the look, but
what about the feel of the interface.  It still looks like the
functionality and general feel isn't going to be what I'm looking for.

A true native Windows API is really what I want, and it looks like
WinBinder will provide that.


I'm not trying to belittle the efforts of the GTK guys.  It still seems
to be the de facto standard in GUI interfacing for many scripting
langauges and has tons of support and good stuff for it.

I just want something a little different.

-TG


 -Original Message-
 From: Marek Kilimajer [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 17, 2004 11:10 AM
 To: Gryffyn, Trevor
 Cc: PHP List
 Subject: Re: [PHP] Re: A native Windows binding for PHP - released
 
 
 Gryffyn, Trevor wrote:
 On 09/16/2004 09:01 PM, Rubem Pechansky wrote:
 
 I have designed and successfully prototyped a native 
 Windows binding
 for PHP. This binding is very lightweight and it is already 
 
 capable of
 
 doing dialogs, controls, and a lot more with a few dozen lines of
 code. PHP can thus be used as a tool for quick development 
 of native
 Windows applications.
 
 I have just released this project to the public as Open Source at
 http://winbinder.sourceforge.net/. Although it is still a work in
 progress, you can take a look at the source code, download 
 a working
 demo and play with it a little bit.
 
 Your ideas, comments, criticisms and suggestions are very welcome.
  
  
  
  
  This looks EXCELLENT!   I just got around to downloading 
 PHP-GTK and was
  kind of put off by it's clunky interface.
 
http://themes.freshmeat.net/browse/923/

particularly http://themes.freshmeat.net/projects/1in1-xp-gtk/ as you 
like windows so much

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
It is innacuracies such as this that make it difficult for me to pursue the 
useful suggestions.


Chris Dowell [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 All this is irrelevant; while you're still trying to use MySQL 5 with 
 mysql_connect() instead of mysqli_connect(), it WILL NEVER WORK

 Sort that out first before you start worrying about firewalls - you can't 
 test the firewall if you can't ever have a successful test case.

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



RE: [PHP] Highest Key in an Array

2004-09-17 Thread Gryffyn, Trevor
Or...

$highestkey = max(array_keys($arr));

 -Original Message-
 From: Martin Holm [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 17, 2004 11:11 AM
 To: Daniel Schierbeck
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Highest Key in an Array
 
 
 Daniel Schierbeck wrote:
 
  I've been looking at php.net, but i couldn't find what i'm 
 searching for.
 
  I have a numeric array, and i'd like to get the highest key. E.g.
 
  $arr = array(3 = foo, 7 = bar, 43 = foobar);
 
  What i want is a function that, in this case, returns 43.
 
 
  Daniel Schierbeck
 
 $arr = array(3 = foo, 7 = bar, 43 = foobar);
 
 krsort($arr);
 
 $highestkey = key($arr);
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 IIRC the OP did have a successful test case when connecting from the mysql
 client.


Yes, I did get it to work.


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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
John Nichel [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 The MySQL functions work fine in php5.  It just doesn't support all the 
 features available in MySQL = 4.1.0.  Unlike php4, support for MySQL 
 isn't bundled in php5, but when enabled, it works.


Thank you. I will try to remember that everything you say is very likely to 
be useful and accurate.

As far as I can remember, all that I had to do to enable the mysql extension 
is to uncomment the line for the extension in php.ini and add php to my 
path. However I had problem initially and it was caused by the (Windows) 
registry entry that also specifies the path (to php.ini?), so for new 
installations that registry entry might be important too.

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 IIRC the OP did have a successful test case when connecting from the mysql
 client.

For whomever is interested, see my mess(ages) in the php internals.

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



Re: [PHP] Highest Key in an Array

2004-09-17 Thread Daniel Schierbeck
Trevor Gryffyn wrote:
Or...
$highestkey = max(array_keys($arr));

-Original Message-
From: Martin Holm [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 17, 2004 11:11 AM
To: Daniel Schierbeck
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Highest Key in an Array

Daniel Schierbeck wrote:

I've been looking at php.net, but i couldn't find what i'm 
searching for.
I have a numeric array, and i'd like to get the highest key. E.g.
   $arr = array(3 = foo, 7 = bar, 43 = foobar);
What i want is a function that, in this case, returns 43.
Daniel Schierbeck
$arr = array(3 = foo, 7 = bar, 43 = foobar);
krsort($arr);
$highestkey = key($arr);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Damn you're fast!
Thanks guys, it's all yubbely-dubbely now!
Daniel Schierbeck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Instal or config this package UnxUtils.zip under windows

2004-09-17 Thread raditha dissanayake
Andre wrote:
Hello 

Anyone knows how to install or config this package UnxUtils.zip under
windows.
 

someone in the microsoft support mailing list might know.
--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 RTFM.

 mysql:
  This MySQL extension doesn't support full functionality of MySQL
  versions greater than 4.1.0. For that, use MySQLi.

 mysqli:
  The mysqli extension is designed to work with the version 4.1.3 or
  above of MySQL.

What the manual says (as quoted) is either not relevant or is not clear.

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



Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]

 I'm not familiar with MySQL under Windows, but I believe that there are
 different installers available from various sources. So saying Typical
 installation option doesn't really mean much.

There is only one Windows installer available rom the MySQL web site and it 
has an option that explicitly says Typical. Therefore in this context 
Typical is extremely specific and relevant.

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



Re: [PHP] Highest Key in an Array

2004-09-17 Thread Daniel Schierbeck
I'm using it for the Wiki (thanks for that as well guys):
http://aoide.1go.dk/lab/compare.php5
Source: http://aoide.1go.dk/lab/compare.source.php5
(it's just a test)
Daniel Schierbeck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread John Holmes
Sam Hobbs [EMAIL PROTECTED] wrote in message
One problem is that I get answers that are not accurate, so it is
difficult to know which ones are accurate.
You are correct about that. Personally, I not satisfied with the level of
support I get from the people paid to monitor this list and help me out 
when
I have a problem, either. Just imagine if the people on this list were
volunteers and just trying to help... good god, that'd be horrible,
wouldn't it?

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


Re: [PHP] Secret Codes in Spam and PHP

2004-09-17 Thread Matthew Sims
 On Thu, 2004-09-16 at 18:33, Matthew Sims wrote:
 I'm immune from assassins.

 Gunslingers, hatchet men and thugs, on the other hand, still present a
 problem.

 When I first read this I read thongs instead of thugs. It still made
 sense though :)

 Cheers,
 Rob.

I don't think I'll ever be immune to thongs.

-- 
--Matthew Sims
--http://killermookie.org

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



Re: [PHP] Instal or config this package UnxUtils.zip under windows

2004-09-17 Thread John Nichel
raditha dissanayake wrote:
someone in the microsoft support mailing list might know.
 ^
Now there's an oxymoron. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: checking multiple URL parameters

2004-09-17 Thread Christian David
Dustin Krysak wrote:

 now what I need to do is modify the code so that the script checks 2
 URL parameters, and has 2 variables defined (from the URL parameter)...
 
 So I need to also check if $_REQUEST['year'] is set as well as the
 original (both need to be set to get the first HTML content) AND I also
 need to set the variable of $year = ($_REQUEST['year']
?php
if (isset($_REQUEST['mov'])  isset($_REQUEST['year'])) {
$movie = $_REQUEST['mov'];
$year =  $_REQUEST['year'];
?
HTMLCONTENT
?php
}
else{
?
OTHERHTMLCONTENT
?php
}
?

Christian

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
The last paragraph refers to me :) and im quite proud of it now, ive
printed some of your emails out, and i keep them around, they really do
make me smile, not becuase im so much an a$$hole, but becuase, youve
already said, that altering your firewall allowed you to connect. 
Which not so coincidently, i suggested in the beginning.  You call it a
guess, an uneducated blunder maybe,  whatever helps you sleep at night

PS.. takes you half hour to drop your firewall.. sheesh,.. and for note,
and honestly, for your benefit, SP2 _will_ enable a _new_ firewall on
your computer, unless youve configured otherwise, there is a new
security center that will complain if your firewall is not enabled,
have you seen this complaint?

J


Sam Hobbs [EMAIL PROTECTED] wrote: 
 
 Jason Wong [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 
  The firewall is relevant depending on your circumstances. In any case it 
  would
  take you all of one minute to disable your firewall to test out this wild
  far out suggestion. At the most you would have lost one minute but you 
  would
  have either:
 
  - gained the satisfaction of saying I told you the firewall was 
  irrelevant,
  now go away and stop wasting my time with your ridiculous suggestions
 
  or
 
  - you would have found the cause of your problem
 
 It definitely takes more than a minute. It takes nearly a minute just to 
 logoff one user and I often have another user, the Administrator account, 
 also logged in. If the Administrator account is not lgged in already, then I 
 must log in to it to shutdown ZoneAlarm. Then the system must shutdown and 
 restart. While that is happening, I must unplug the cable modem to ensure I 
 get nothing from/to the outside, but that can be done in parrallel with 
 system shutdown. However I must stay at the system while this is happening; 
 I prefer to unplug the cable after the system disconnects from the modem. 
 Then I must log in to at least one account and start a few things, such as 
 Apache. Relatively speaking, Apache starts immediatley, so it is not very 
 relevant, but it does take time for my system to start. Then after the test 
 I must restart ZoneAlarm, restart the system and be sure to plug the modem 
 back in while the system starts. The whole operation is likely to take 
 nearly a half hour at least.
 
  Contrast that with the number of posts you have made denying that the 
  firewall
  could be a problem, and stating adamantly that you will not do 
  such-and-such
  a thing because it is 'not supposed' to happen like that.
 
 The problem is all the people that persist in saying the same thing. I am 
 smart enough to think of the things being suggested. It is the type of thing 
 that is very easy to suggest. I get frustrated by people suggesting things 
 just because they are easy to suggest. Therefore when people make a 
 suggestion that is more likely to be relevant it is difficult for me to 
 determine which ones are worthwhile. And again, I am able to think of things 
 such as eliminating the firewall as a possibility. It is okay for people to 
 suggest that, but unless they can show me something that clearly says it is 
 relevant, then they won't accomplish anything by insisting.
 
 One problem is that I get answers that are not accurate, so it is difficult 
 to know which ones are accurate.
 
 The most important thing is that unless people give me a clear explanation 
 of what they are saying, it is useless to insist. I don't mind a suggestion 
 as much as it is the insisting that causes problems. Therefore from my point 
 of view, it is the insistance by others that keep the discussion going (in 
 useless directions).
 
 There is one person in particular that tries too hard to help and then when 
 I politely say I am getting too much help I get criticized. That is not a 
 productive attitude.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Yes yes, your always relevent, we are not... funny that you have the
problem and we do not though. 

Jason

Sam Hobbs [EMAIL PROTECTED] wrote: 
 
 Jason Wong [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 
  I'm not familiar with MySQL under Windows, but I believe that there are
  different installers available from various sources. So saying Typical
  installation option doesn't really mean much.
 
 There is only one Windows installer available rom the MySQL web site and it 
 has an option that explicitly says Typical. Therefore in this context 
 Typical is extremely specific and relevant.
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Cheers on that, this thread has become amusement, that is payment enough

Jason


John Holmes [EMAIL PROTECTED] wrote: 
 
 Sam Hobbs [EMAIL PROTECTED] wrote in message
  One problem is that I get answers that are not accurate, so it is
  difficult to know which ones are accurate.
 
  You are correct about that. Personally, I not satisfied with the level of
  support I get from the people paid to monitor this list and help me out 
 when
  I have a problem, either. Just imagine if the people on this list were
  volunteers and just trying to help... good god, that'd be horrible,
  wouldn't it?
 
  ---John Holmes...
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
John Holmes wrote:
Sam Hobbs [EMAIL PROTECTED] wrote in message
One problem is that I get answers that are not accurate, so it is
difficult to know which ones are accurate.

You are correct about that. Personally, I not satisfied with the level of
support I get from the people paid to monitor this list and help me out 
when
I have a problem, either. Just imagine if the people on this list were
volunteers and just trying to help... good god, that'd be horrible,
wouldn't it?

---John Holmes...
Damn, it's going to be hard to tell the John's apart on this list 
soon.  ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread raditha dissanayake
John Holmes wrote:
Sam Hobbs [EMAIL PROTECTED] wrote in message
One problem is that I get answers that are not accurate, so it is
difficult to know which ones are accurate.

You are correct about that. Personally, I not satisfied with the level of
support I get from the people paid to monitor this list and help me 
out when
I have a problem, either. Just imagine if the people on this list were
volunteers and just trying to help... good god, that'd be horrible,
wouldn't it?
John I think you should be fired. By skimming a few posts I have 
gathered that sam knows a lot more than you or the other john or chris 
(or the other chris) or curt et al.  My appologies to the people I 
haven't mentioned by name but you will be getting your letters of 
termination shortly.

---John Holmes...

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Steve Brown
snip lots of garbage

OK, I'm going to jump in and try and take a stab at this.  

Sam, if you wouldn't mind answering a question: are you still unable
to connect to your mysql server?

I'll also add that your understanding of firwalls is lacking. 
Regardless of where your server is (local or remote), there is still a
client-server relationship happening.  If you are trying to connect to
localhost/127.0.0.1 (use the latter as previously recommended), your
system is acting as the server.  ANY consumer firewall (free or
otherwise) is going to block incoming packets not related to an
already established connection, regardless of where they originate.

Lots of consumer firewalls are going filter traffic on localhost
because lots of vicious spyware out there are starting to install
daemons on systems then rewiriting the HOSTS files to pull ads from
the localhost rather then hitting the marketers servers.  If you don't
believe me, google for spyware HOSTS file.  To assume that your
firewall (ZoneAlarm, XP, or otherwise) is not in play here is false.

At this point, you need to disable the firewall completely (just for
testing) and/or find a way to open the MySQL port (port 3306) on
localhost to incoming traffic in your firewall.  I know that you don't
think this is the problem, but the only way you are going to know is
if you try.

I'm sorry that you feel its a time-consuming process.  I'm sorry that
you are confused about the involvement of the firewall.  I'm sorry
that you feel you know better than everyone on this list.  Just try
this and prove us wrong.

Steve

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
 Markus Mayer [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

 It is our experience at my employer that the firewall in XP-SP2, as well
 as
 other firewalls that are available, are very relevant.

 Thank you. I have not seen anything that states that explicitly. I doubt
 that SP2 makes a difference; the main reason I mentioned it is just to be
 thorough. I am nearly certain that the XP firewall, including the XP-SP2
 version, is turned off.

You should check as XP SP2 firewall is turned on by default.

http://support.microsoft.com/default.aspx?kbid=842242

A lot of programs are affected by this...possibly MySQL, too?

Anyways, I'm telling my friends and family to steer clear of SP2 upgrade
till the dust settles and the kinks are worked out.

-- 
--Matthew Sims
--http://killermookie.org

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



[PHP] confused about magic quotes

2004-09-17 Thread Christopher-Robin
Hi!

I got a problem:
The server im running my scripts on has magic_quotes_gpc=ON. I know, that
i just have to stripslashes() the GPC data. But what if
magic_quotes_sybase is also set ON? The doc says, that in this case only
' is replaced by '', and nothing happens to , \ and NUL, because
magic_quotes_sybase overwrites magic_quotes_gpc behavior. Unfortunately,
the doc says nothing about the case magic_quotes_gpc=OFF PLUS
magic_quotes_sybase=ON. Does in this case nothing happen to GPC data, as
magic_quotes_gpc is set OFF? Or does it result in the same ' to ''
replacement, as magic_quotes_sybase is set ON? What's sybase, anyway?

I was about to implement a function as follows:

function stripslashes_mq_gpc($txt){
  if(get_magic_quotes_gpc()==1){
if(get_ini(magic_quotes_sybase)==1){
  $txt=preg_replace(/('')/musi,',$txt);
// rather use str_replace() ??
}else{
  $txt=stripslashes($txt);
}
  }
  return $txt;
}


The same is to be done for magic_quotes_runtime, but there's nothing
written about the interaction of magic_quotes_runtime and
magic_quotes_sybase. So, could anyone help me, please?

Thanks,
Kai aka Christopher-Robin

PS: Apologies for my bad english.

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



Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Im not a john, but to add to confusion we could all sign with 'J'

Jason

John Nichel [EMAIL PROTECTED] wrote: 
 
 John Holmes wrote:
  Sam Hobbs [EMAIL PROTECTED] wrote in message
  
  One problem is that I get answers that are not accurate, so it is
  difficult to know which ones are accurate.
  
  
  You are correct about that. Personally, I not satisfied with the level of
  support I get from the people paid to monitor this list and help me out 
  when
  I have a problem, either. Just imagine if the people on this list were
  volunteers and just trying to help... good god, that'd be horrible,
  wouldn't it?
  
  ---John Holmes...
  
 
 Damn, it's going to be hard to tell the John's apart on this list 
 soon.  ;)
 
 -- 
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims
 John Holmes wrote:

 Sam Hobbs [EMAIL PROTECTED] wrote in message

 One problem is that I get answers that are not accurate, so it is
 difficult to know which ones are accurate.


 You are correct about that. Personally, I not satisfied with the level of

 support I get from the people paid to monitor this list and help me
 out when
 I have a problem, either. Just imagine if the people on this list were
 volunteers and just trying to help... good god, that'd be horrible,
 wouldn't it?

 John I think you should be fired. By skimming a few posts I have
 gathered that sam knows a lot more than you or the other john or chris
 (or the other chris) or curt et al.  My appologies to the people I
 haven't mentioned by name but you will be getting your letters of
 termination shortly.


 ---John Holmes...



 --
 Raditha Dissanayake.

I still haven't received my (small) paycheck for last week.

-- 
--Matthew Sims
--http://killermookie.org

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



[PHP] Server upload test

2004-09-17 Thread Richard Whitney
Anyone interested in seeing how fast your server can serve up a 6.5MB file?

Run this:

?
$start = time();
echo $start;
echo 'brbr';
$i = 1;
while($i  101){
echo $i.' ';
$i++;
}
$end = time();
$total = $end - $start;
echo 'brbr';
echo $total;
?

Just a little fun!

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



[PHP] Re: Server upload test

2004-09-17 Thread Richard Whitney
On Fri, 17 Sep 2004 10:17:41 -0700, Richard Whitney [EMAIL PROTECTED] wrote:
 Anyone interested in seeing how fast your server can serve up a 6.5MB file?
 
 Run this:
 
 ?
 $start = time();
 echo $start;
 echo 'brbr';
 $i = 1;
 while($i  101){
 echo $i.' ';
 $i++;
 }
 $end = time();
 $total = $end - $start;
 echo 'brbr';
 echo $total;
 ?
 
 Just a little fun!

It might be good to see results from different hosts if you care to share.

Richard

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



RE: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread Jay Blanchard
[snip]
Im not a john, but to add to confusion we could all sign with 'J'
[/snip]

I'm down with that

Jay

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



[PHP] A native Windows binding for PHP - released

2004-09-17 Thread Rubem Pechansky
Hi all,

I have designed and successfully prototyped a native Windows binding
for PHP. This binding is very lightweight and it is already capable of
doing dialogs, controls, and a lot more with a few dozen lines of
code. PHP can thus be used as a tool for quick development of native
Windows applications.

I have just released this project to the public as Open Source at
http://winbinder.sourceforge.net/. Although it is still a work in
progress, you can take a look at the source code, download a working
demo and play with it a little bit.

Your ideas, comments, criticisms and suggestions are very welcome.

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
Steve Brown wrote:
snip lots of garbage
OK, I'm going to jump in and try and take a stab at this.  

Sam, if you wouldn't mind answering a question: are you still unable
to connect to your mysql server?
I'll also add that your understanding of firwalls is lacking. 
Regardless of where your server is (local or remote), there is still a
client-server relationship happening.  If you are trying to connect to
localhost/127.0.0.1 (use the latter as previously recommended), your
system is acting as the server.  ANY consumer firewall (free or
otherwise) is going to block incoming packets not related to an
already established connection, regardless of where they originate.

Lots of consumer firewalls are going filter traffic on localhost
because lots of vicious spyware out there are starting to install
daemons on systems then rewiriting the HOSTS files to pull ads from
the localhost rather then hitting the marketers servers.  If you don't
believe me, google for spyware HOSTS file.  To assume that your
firewall (ZoneAlarm, XP, or otherwise) is not in play here is false.
snip
This is why I originally said that the firewall shouldn't 
matter...coming from the *nix world, it doesn't.  Even if I close off 
port 3306 with iptables/ipchains, it's still going to allow local 
connections, since the request is coming from, and going too localhost. 
 I guess with Windows, you need to close internal and external 
connections to be save. ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Fw: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
Jay Blanchard wrote:
[snip]
Im not a john, but to add to confusion we could all sign with 'J'
[/snip]
I'm down with that
Jay

Don't you worry, YOU'RE already on 'THE LIST'. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] RE: **[SPAM]** [PHP] Server upload test

2004-09-17 Thread Jay Blanchard
[snip]
Anyone interested in seeing how fast your server can serve up a 6.5MB
file?

Run this:

?
$start = time();
echo $start;
echo 'brbr';
$i = 1;
while($i  101){
echo $i.' ';
$i++;
}
$end = time();
$total = $end - $start;
echo 'brbr';
echo $total;
?

Just a little fun!
[/snip]

How/where/why does this relate to a 6.5MB file?

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



Re: [PHP] Server upload test

2004-09-17 Thread John Holmes
From: Richard Whitney [EMAIL PROTECTED]
Anyone interested in seeing how fast your server can serve up a 6.5MB 
file?

Run this:
?
$start = time();
echo $start;
echo 'brbr';
$i = 1;
while($i  101){
echo $i.' ';
$i++;
}
$end = time();
$total = $end - $start;
echo 'brbr';
echo $total;
?
Just a little fun!
You forgot the set_time_limit(0) line at the beginning... :)
---John Holmes... 

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


Re: [PHP] Instal or config this package UnxUtils.zip under windows

2004-09-17 Thread Mark
--- Andre  [EMAIL PROTECTED] wrote:

 Hello 
 
 Anyone knows how to install or config this package UnxUtils.zip
 under
 windows.
 
 Get common GNU utilities to native Win32 here:
 http://unxutils.sourceforge.net/UnxUtils.zip
 
 You need TAR and GZIP executable to compress in tar.gz format with
 Windows
 Systems.
 
 I need some help please
 
 

All you need to do is unzip the file and put the exe files in your
system path. you can do this by either moving the files, or putting
the directory unzip directory\usr\local\wbin in your path
statement.

But what has this got to do with PHP?


=
Mark Weinstock
[EMAIL PROTECTED]
***
You can't demand something as a right unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



[PHP] Microsoft Support - RE: [PHP] Instal or config this package UnxUtils.zip under windows

2004-09-17 Thread Gryffyn, Trevor
First let me say that I'm a Microsoft product fan.  Yeah, I do like their products.  I 
like many *nix products and Mac products as well.  Basically I'll use whatever's in 
front of me, but I prefer Microsoft products in a lot of cases, with all of it's flaws 
and whatnot. (as an avid Firefox user, PHP developer and user of many non-Microsoft 
products as well)

With all that said.. I have to relay a joke I heard once (commence groaning):


A helicopter was flying around above Seattle yesterday when an electrical malfunction 
disabled all of the aircraft's electronic navigation and communications equipment. The 
pilot was now unable to determine the helicopter's position and course to steer to the 
airport. 

He saw a tall building, flew toward it, circled, drew a handwritten sign, and held it 
against the helicopter's window. The pilot's sign said WHERE AM I? in large letters. 
People in the tall building quickly responded to the aircraft, by drawing a large sign 
and holding it up in the building window. Their sign said YOU ARE IN A HELICOPTER. 

The pilot smiled, waved, looked at his map, determined the course to steer to the 
Seattle airport, and landed safely. After they were on the ground, the co-pilot asked 
the pilot how that sign helped determine their position. 

The pilot responded, I knew that had to be the MICROSOFT building in Redmond, because 
they gave me a technically correct, but completely useless answer. 

(copied without explicit permission from 
http://www.literatepackrat.com/Sections/Gags/Airport.html to save me some typing, much 
apologies)

Had to share. :)

-TG


 -Original Message-
 From: John Nichel [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 17, 2004 12:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Instal or config this package UnxUtils.zip 
 under windows
 
 
 raditha dissanayake wrote:
  someone in the microsoft support mailing list might know.
   ^
 
 Now there's an oxymoron. ;)
 
 -- 
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]

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



Re: [PHP] RE: **[SPAM]** [PHP] Server upload test

2004-09-17 Thread John Nichel
Jay Blanchard wrote:
[snip]
Anyone interested in seeing how fast your server can serve up a 6.5MB
file?
Run this:
?
$start = time();
echo $start;
echo 'brbr';
$i = 1;
while($i  101){
echo $i.' ';
$i++;
}
$end = time();
$total = $end - $start;
echo 'brbr';
echo $total;
?
Just a little fun!
[/snip]
How/where/why does this relate to a 6.5MB file?
I'm guesing that the output of the script equates to 6.5mb.  But I'm not 
going to take the time to do the math. ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Novice PHP Variable/Link Question

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 21:49, Gryffyn, Trevor wrote:
 Alternately, you can do it the lazy way like me:

 a href=?=$url??=$url?/a

 ? Echo $url; ?

 Is the same as...

 ?=$url?


 I also think that's a little easier to read.  But that's my preference
 in style.

The use of this syntax is governed by the setting of 'short_open_tag' in 
php.ini and hence is not portable.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Have you noticed that all you need to grow healthy, vigorous grass is a
crack in your sidewalk?
*/

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



RE: [PHP] RE: **[SPAM]** [PHP] Server upload test

2004-09-17 Thread Jay Blanchard
[snip]
 How/where/why does this relate to a 6.5MB file?
 

I'm guesing that the output of the script equates to 6.5mb.  But I'm not

going to take the time to do the math. ;)
[/snip]

Output? What output? You mean if I saved the final product? I am having
a blonde day I tell ya'

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



Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 23:36, Sam Hobbs wrote:
 Jason Wong [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

 There is only one Windows installer available rom the MySQL web site and it
 has an option that explicitly says Typical. Therefore in this context
 Typical is extremely specific and relevant.

Unfortunately (fortunately?) there are packages out there which install all 
Apache/MySQL/PHP for you or whatever. So unless you state which package 
you're using then typical is still meaningless. It's just helpful when 
posting to provide as much _relevant_ info as possible.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Well, I'm disenchanted too.  We're all disenchanted.
-- James Thurber
*/

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



Re: [PHP] RE: **[SPAM]** [PHP] Server upload test

2004-09-17 Thread John Nichel
Jay Blanchard wrote:
[snip]
How/where/why does this relate to a 6.5MB file?

I'm guesing that the output of the script equates to 6.5mb.  But I'm not
going to take the time to do the math. ;)
[/snip]
Output? What output? You mean if I saved the final product? I am having
a blonde day I tell ya'
He's echoing out $i in every loop.  That's okay, go lay down, take a 
nap, and all will be better in the morning. ;)

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Hey, the reason it doesnt come in to play for you in linux, is becuase
mysql by default will connect through a unix socket, and not over
tcpip.  The unix socket is a connection thru the filesystem and not the
network.  Also, in linux, there is a virtual device for lopback, and the
firewall i dont beleive has any effect on the loopback device.  In
windows however, depending on what version, mysql will connect using
tcp/ip, unless told otherwise, in this case, Sam supplied localhost to
his connect function, which tells mysql explicitly to use the network
over a named pipe.

Jason

John Nichel [EMAIL PROTECTED] wrote: 
 
 Steve Brown wrote:
  snip lots of garbage
  
  OK, I'm going to jump in and try and take a stab at this.  
  
  Sam, if you wouldn't mind answering a question: are you still unable
  to connect to your mysql server?
  
  I'll also add that your understanding of firwalls is lacking. 
  Regardless of where your server is (local or remote), there is still a
  client-server relationship happening.  If you are trying to connect to
  localhost/127.0.0.1 (use the latter as previously recommended), your
  system is acting as the server.  ANY consumer firewall (free or
  otherwise) is going to block incoming packets not related to an
  already established connection, regardless of where they originate.
  
  Lots of consumer firewalls are going filter traffic on localhost
  because lots of vicious spyware out there are starting to install
  daemons on systems then rewiriting the HOSTS files to pull ads from
  the localhost rather then hitting the marketers servers.  If you don't
  believe me, google for spyware HOSTS file.  To assume that your
  firewall (ZoneAlarm, XP, or otherwise) is not in play here is false.
 snip
 
 This is why I originally said that the firewall shouldn't 
 matter...coming from the *nix world, it doesn't.  Even if I close off 
 port 3306 with iptables/ipchains, it's still going to allow local 
 connections, since the request is coming from, and going too localhost. 
   I guess with Windows, you need to close internal and external 
 connections to be save. ;)
 
 -- 
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
Jason Davidson wrote:
Hey, the reason it doesnt come in to play for you in linux, is becuase
mysql by default will connect through a unix socket, and not over
tcpip.  The unix socket is a connection thru the filesystem and not the
network.  Also, in linux, there is a virtual device for lopback, and the
firewall i dont beleive has any effect on the loopback device.  In
windows however, depending on what version, mysql will connect using
tcp/ip, unless told otherwise, in this case, Sam supplied localhost to
his connect function, which tells mysql explicitly to use the network
over a named pipe.
Jason
Windows doesn't have a loopback device?  Ye Gods, what were they 
thinking

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Manuel Lemos
Hello,
On 09/17/2004 02:40 PM, Rubem Pechansky wrote:
Thanks for the your comments. I'll definitely submit it to PECL as
soon as it is more stable, but I'm not sure it is a good idea to
submit a pre-alpha...
There are plenty of extensions in that state in PECL. The point of PECL 
is that you most likely get more feedback about your extension as you 
will find there more people interested in this kind of things. Your 
extension would also be automatically available in binary format (DLL) 
for Windows.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 23:23, Sam Hobbs wrote:
 Jason Wong [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

  IIRC the OP did have a successful test case when connecting from the
  mysql client.

 Yes, I did get it to work.

It would help in diagnosing your problem if you told us what connection 
parameters you used when connecting with the mysql client that made it work?

Also did you perform those dozen tests I outlined in a previous post.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Insults are effective only where emotion is present.
-- Spock, Who Mourns for Adonais?  stardate 3468.1
*/

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Windows likely has some sort of loopback device, but i dunno how it
works

Ive also come accross people complaining that SP2 has funked up local
connections for various server/clients.  However, ive seen firewalls
cuase problems for mysql on both windows and linux, so ya.. who
knows... Sam knows.. apparently. :)

Jason

John Nichel [EMAIL PROTECTED] wrote: 
 
 Jason Davidson wrote:
  Hey, the reason it doesnt come in to play for you in linux, is becuase
  mysql by default will connect through a unix socket, and not over
  tcpip.  The unix socket is a connection thru the filesystem and not the
  network.  Also, in linux, there is a virtual device for lopback, and the
  firewall i dont beleive has any effect on the loopback device.  In
  windows however, depending on what version, mysql will connect using
  tcp/ip, unless told otherwise, in this case, Sam supplied localhost to
  his connect function, which tells mysql explicitly to use the network
  over a named pipe.
  
  Jason
 
 Windows doesn't have a loopback device?  Ye Gods, what were they 
 thinking
 
 -- 
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



[PHP] can't get mysql or postgresql support for php

2004-09-17 Thread asolomon15
Hello everyone...   I have a problem getting support for mysql within 
php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run a 
php script that uses a mysql db connection, I got  this error
 *Fatal error*: Call to undefined function: mysql_connect() in

I did a phpinfo() and noticed i didn't see any mysql or postgresql 
support in it.   I then tried to install php4-mysql module from the 
freebsd ports and still no luck.I also tried reinstalling both and I 
still end up in the same situation.   I did a google search for how to 
load a mysql module but I keep getting articles about how to load it 
with apache.   What should I do?  

Antoine  

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


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Another test you might do , is use something like tcpdump to snif your
network to see exactly how its attempting to connect, then you could
ascertain on your own (as you dont beleive me) if mysql is connecting
over the network or through the filesystem.

Jason

Jason Wong [EMAIL PROTECTED] wrote: 
 
 On Friday 17 September 2004 23:23, Sam Hobbs wrote:
  Jason Wong [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
 
   IIRC the OP did have a successful test case when connecting from the
   mysql client.
 
  Yes, I did get it to work.
 
 It would help in diagnosing your problem if you told us what connection 
 parameters you used when connecting with the mysql client that made it work?
 
 Also did you perform those dozen tests I outlined in a previous post.
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Insults are effective only where emotion is present.
   -- Spock, Who Mourns for Adonais?  stardate 3468.1
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



[PHP] To Rasmus

2004-09-17 Thread Richard Whitney
Dear Rasmus,

Could you please unblock 140.99.35.6 from the mailing list.
I made a mistake once.
I subscribed using Gmail and I hate it.
Please forgive me.

Richard Whitney
[EMAIL PROTECTED]

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



Re: [PHP] RE: **[SPAM]** [PHP] Server upload test

2004-09-17 Thread Richard Whitney
Why did this mail get marked as SPAM?

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 23:21, Sam Hobbs wrote:

 Again, it is okay to say this once but it is not useful to keep insisting.
 I am smart enough to be aware of the possibility and if and when other
 possibilities have been exahausted I would have tried the possibility of
 disabling the firewall or whatever. Insisting upon it from others is not
 productive; it is more likley to polarize me in the opposite direction and
 get us to where we are now. It is the emotional commentary that is most
 unproductive. I try to explain (unemotionally and in a reasonable manner)
 that I don't need the additional assertion that I must try something and
 the response to that becomes emotional.

Being obstinate and contrarian does nothing to help resolve your problem. Time 
for another:

[quote from a Sam Hobbs post in reply to Jason Davidson]
 It is my understanding that the firewall is not supposed to be relevant. I
 have not seen anything saying it is supposed to be. If it is true that it
 is not supposed to be relevant, then simply saying it is just causes
 confusion. If you had said that the firewall is not supposed to be
 relevant, but try disabling it anyway, then I would say that I am totally
 able to think like that too. It is reasonable to try things like that to
 diagnose a bug.
[quote]

Would I be correct if I paraphrased the above as:

The wrong way to get Sam Hobbs to try something that might help in solving his 
problem:

[JD] The firewall might be blocking your attempts to connect to mysql. Try 
disabling it.
[SH] Yeah and what makes you think that? I KNOW the firewal has nothing to do 
with it. Get real (and go away).

The right way to get Sam Hobbs to try something that might help in solving his 
problem:

[JD] The firewall has nothing to do with your problem. But try disabling it 
anyway.
[SH] Yeah that sounds reasonable. Thanks, I'll try that.



How silly is that?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
If money can't buy happiness, I guess you'll just have to rent it.
*/

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



Re: [PHP] can't get mysql or postgresql support for php

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 02:47, asolomon15 wrote:
 Hello everyone...   I have a problem getting support for mysql within
 php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run a
 php script that uses a mysql db connection, I got  this error
   *Fatal error*: Call to undefined function: mysql_connect() in

 I did a phpinfo() and noticed i didn't see any mysql or postgresql
 support in it.   I then tried to install php4-mysql module from the
 freebsd ports and still no luck.I also tried reinstalling both and I
 still end up in the same situation.   I did a google search for how to
 load a mysql module but I keep getting articles about how to load it
 with apache.   What should I do?

Restart apache if you haven't already done so. If that doesn't help ask on the 
FreeBSD list.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
A clean and dry set of overalls is a magnet for mud and rain
-- Murphy's Bush Fire Brigade Laws n16
*/

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



RE: [PHP] can't get mysql or postgresql support for php

2004-09-17 Thread Jay Blanchard
[snip]
Hello everyone...   I have a problem getting support for mysql within 
php.   I am running freebsd 5.2.1 and php 4.3.8.  When I tried to run a 
php script that uses a mysql db connection, I got  this error
  *Fatal error*: Call to undefined function: mysql_connect() in
[/snip]


Did you configure PHP with MySQL like --with-mysql and/or --with-pgsql ?

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 02:30, Jason Davidson wrote:
 Hey, the reason it doesnt come in to play for you in linux, is becuase
 mysql by default will connect through a unix socket, and not over
 tcpip.  The unix socket is a connection thru the filesystem and not the
 network.  Also, in linux, there is a virtual device for lopback, and the
 firewall i dont beleive has any effect on the loopback device.  In
 windows however, depending on what version, mysql will connect using
 tcp/ip, unless told otherwise, in this case, Sam supplied localhost to
 his connect function, which tells mysql explicitly to use the network
 over a named pipe.

Further food for thought. How you originally phrased the GRANT command in 
mysql will (potentially) affect your ability to connect. For example

  grant all on database.* to [EMAIL PROTECTED] identified by 'passwd';

is different to

  grant all on database.* to [EMAIL PROTECTED] identified by 'passwd';

and require that you use different connection parameters (at least under 
Linux).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
It is through symbols that man consciously or unconsciously lives, works
and has his being.
-- Thomas Carlyle
*/

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



[PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Chris Lott
I have an array $links like this:

[1] = Array
(
[href] = http://www.poetrymagazine.org/epstein_sept_prose.html
[description] = Thank You, No
[time] = 2004-09-17T17:30:32Z
)

[2] = Array
(
[href] = http://110am.com/projects/manuscript/
[description] = Manuscript
[time] = 2004-09-16T19:25:14Z
)

I'd like to sort the array based on one of the values in the field
href, description, or time. Is there a canonical way of doing this?

c
-- 
Chris Lott

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
hehehe.. im actually looking forward to reading responses on this
thread.. 

funny stuff. 

Jason

Jason Wong [EMAIL PROTECTED] wrote: 
 
 On Friday 17 September 2004 23:21, Sam Hobbs wrote:
 
  Again, it is okay to say this once but it is not useful to keep insisting.
  I am smart enough to be aware of the possibility and if and when other
  possibilities have been exahausted I would have tried the possibility of
  disabling the firewall or whatever. Insisting upon it from others is not
  productive; it is more likley to polarize me in the opposite direction and
  get us to where we are now. It is the emotional commentary that is most
  unproductive. I try to explain (unemotionally and in a reasonable manner)
  that I don't need the additional assertion that I must try something and
  the response to that becomes emotional.
 
 Being obstinate and contrarian does nothing to help resolve your problem. Time 
 for another:
 
 [quote from a Sam Hobbs post in reply to Jason Davidson]
  It is my understanding that the firewall is not supposed to be relevant. I
  have not seen anything saying it is supposed to be. If it is true that it
  is not supposed to be relevant, then simply saying it is just causes
  confusion. If you had said that the firewall is not supposed to be
  relevant, but try disabling it anyway, then I would say that I am totally
  able to think like that too. It is reasonable to try things like that to
  diagnose a bug.
 [quote]
 
 Would I be correct if I paraphrased the above as:
 
 The wrong way to get Sam Hobbs to try something that might help in solving his 
 problem:
 
 [JD] The firewall might be blocking your attempts to connect to mysql. Try 
 disabling it.
 [SH] Yeah and what makes you think that? I KNOW the firewal has nothing to do 
 with it. Get real (and go away).
 
 The right way to get Sam Hobbs to try something that might help in solving his 
 problem:
 
 [JD] The firewall has nothing to do with your problem. But try disabling it 
 anyway.
 [SH] Yeah that sounds reasonable. Thanks, I'll try that.
 
 
 
 How silly is that?
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 If money can't buy happiness, I guess you'll just have to rent it.
 */
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Mark

--- Manuel Lemos [EMAIL PROTECTED] wrote:

 Hello,
 
 On 09/17/2004 02:40 PM, Rubem Pechansky wrote:
  Thanks for the your comments. I'll definitely submit it to PECL
 as
  soon as it is more stable, but I'm not sure it is a good idea to
  submit a pre-alpha...
 
 There are plenty of extensions in that state in PECL. The point of
 PECL 
 is that you most likely get more feedback about your extension as
 you 
 will find there more people interested in this kind of things. Your
 
 extension would also be automatically available in binary format
 (DLL) 
 for Windows.

Is this accurate? I ask because I use Horde, and one of the
recommended PECL extensions is fileinfo. But I can't find a way to
get fileinfo on windows. It's not in as a dll in PECL...

 
 -- 
 
 Regards,
 Manuel Lemos
 
 PHP Classes - Free ready to use OOP components written in PHP
 http://www.phpclasses.org/
 
 PHP Reviews - Reviews of PHP books and other products
 http://www.phpclasses.org/reviews/
 
 Metastorage - Data object relational mapping layer generator
 http://www.meta-language.net/metastorage.html
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


=
Mark Weinstock
[EMAIL PROTECTED]
***
You can't demand something as a right unless you are willing to fight to death to 
defend everyone else's right to the same thing.
***



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 22:56, Sam Hobbs wrote:

 It definitely takes more than a minute. It takes nearly a minute just to
 logoff one user and I often have another user, the Administrator account,
 also logged in. If the Administrator account is not lgged in already, then
 I must log in to it to shutdown ZoneAlarm. Then the system must shutdown
 and restart. While that is happening, I must unplug the cable modem to
 ensure I get nothing from/to the outside, but that can be done in parrallel
 with system shutdown. However I must stay at the system while this is
 happening; I prefer to unplug the cable after the system disconnects from
 the modem. Then I must log in to at least one account and start a few
 things, such as Apache. Relatively speaking, Apache starts immediatley, so
 it is not very relevant, but it does take time for my system to start. Then
 after the test I must restart ZoneAlarm, restart the system and be sure to
 plug the modem back in while the system starts. The whole operation is
 likely to take nearly a half hour at least.

Correct me if I'm wrong but on my (Win98) system disabling ZoneAlarm is a 
simple matter of a few clicks. No need to restart Windows or anything (Your 
mouse has moved, you need to restart Windows for the changes to take 
effect).

Doesn't your version of ZoneAlarm have options which allows you to quickly and 
simply DISABLE all internet access and ENABLE all internet access (in reality 
disable ZoneAlarm)?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
How untasteful can you get?
*/

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



Re: [PHP] Re: Server upload test

2004-09-17 Thread Jason Wong
On Saturday 18 September 2004 01:20, Richard Whitney wrote:
 On Fri, 17 Sep 2004 10:17:41 -0700, Richard Whitney [EMAIL PROTECTED] 
wrote:
  Anyone interested in seeing how fast your server can serve up a 6.5MB
  file?
 
  Run this:
 
  ?
  $start = time();
  echo $start;
  echo 'brbr';
  $i = 1;
  while($i  101){
  echo $i.' ';
  $i++;
  }
  $end = time();
  $total = $end - $start;
  echo 'brbr';
  echo $total;
  ?
 
  Just a little fun!

 It might be good to see results from different hosts if you care to share.

And just what metrics do you hope to be measuring (if any)? Or is this just 
for the fun of it?

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Every love's the love before
In a duller dress.
-- Dorothy Parker, Summary
*/

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



[PHP] Dissappearing instance variables; Bug or Feature?

2004-09-17 Thread Ryan Briones
This is a scaled down example of something I'm doing in some code. The
results are very funky. I guess I could understand this happening if
$two was out of scope when print_r($this) was called in
One()...actually no I couldn't.

?php
Class One {
function One() {
$this-test = array();
$two = new Two( $this );
print_r( $this );
}

function set( $index, $value ) {
$this-test[$index] = $value;
}
}

Class Two {
var $one = null;
function Two( $one ) {
$this-one = $one;
$this-one-set( 'foo', 1 );
print_r($this);
}
}

$obj = new One;
?

OUTPUT:
two Object
(
[one] = one Object
(
[test] = Array
(
[foo] = 1
)

)

)
one Object
(
[test] = Array
(
)

)

This only happens if you assign the reference passed to the second
class as an instance variable. If you call the reference directly, the
variable persists. ie:

?php
Class One {
function One() {
$this-test = array();
$two = new Two( $this );
print_r( $this );
}

function set( $index, $value ) {
$this-test[$index] = $value;
}
}

Class Two {
var $one = null;
function Two( $one ) {
$one-set( 'foo', 1 );
}
}

$obj = new One;
?

OUTPUT:
one Object
(
[test] = Array
(
[foo] = 1
)

)

Any Ideas?

Ryan Briones

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



Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Jason Davidson
http://ca3.php.net/manual/en/function.array-multisort.php

this might do it.

Jason

Chris Lott [EMAIL PROTECTED] wrote: 
 
 I have an array $links like this:
 
 [1] = Array
 (
 [href] = http://www.poetrymagazine.org/epstein_sept_prose.html
 [description] = Thank You, No
 [time] = 2004-09-17T17:30:32Z
 )
 
 [2] = Array
 (
 [href] = http://110am.com/projects/manuscript/
 [description] = Manuscript
 [time] = 2004-09-16T19:25:14Z
 )
 
 I'd like to sort the array based on one of the values in the field
 href, description, or time. Is there a canonical way of doing this?
 
 c
 -- 
 Chris Lott
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread John Holmes
From: Jason Davidson [EMAIL PROTECTED]
hehehe.. im actually looking forward to reading responses on this
thread..
Whatever happened to those monthly stat posts? most posts, most posts per 
thread, etc...?? Who was doing that? I haven't seen one in a while.

---John Holmes... 

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


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
Im not sure who was doing that.  i missed that stuff i think.
Jason

John Holmes [EMAIL PROTECTED] wrote: 
 
 From: Jason Davidson [EMAIL PROTECTED]
  hehehe.. im actually looking forward to reading responses on this
  thread..
 
 Whatever happened to those monthly stat posts? most posts, most posts per 
 thread, etc...?? Who was doing that? I haven't seen one in a while.
 
 ---John Holmes... 
 
 

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Andre Dubuc
Amazing how long that thread is -- must be a record. Seems to be classic case 
of 'ignore-the-obvious' or 'my-mind-is-made-up. Don't-confuse-me-with-facts'. 
Perhaps I should start a new thread:

[PHP} Can't get NULL to output anything!

hehe
Andre


On Friday 17 September 2004 03:11 pm, Jason Davidson wrote:
 hehehe.. im actually looking forward to reading responses on this
 thread..

 funny stuff.

 Jason

 Jason Wong [EMAIL PROTECTED] wrote:
  On Friday 17 September 2004 23:21, Sam Hobbs wrote:
   Again, it is okay to say this once but it is not useful to keep
   insisting. I am smart enough to be aware of the possibility and if and
   when other possibilities have been exahausted I would have tried the
   possibility of disabling the firewall or whatever. Insisting upon it
   from others is not productive; it is more likley to polarize me in the
   opposite direction and get us to where we are now. It is the emotional
   commentary that is most unproductive. I try to explain (unemotionally
   and in a reasonable manner) that I don't need the additional assertion
   that I must try something and the response to that becomes emotional.
 
  Being obstinate and contrarian does nothing to help resolve your problem.
  Time for another:
 
  [quote from a Sam Hobbs post in reply to Jason Davidson]
 
   It is my understanding that the firewall is not supposed to be
   relevant. I have not seen anything saying it is supposed to be. If it
   is true that it is not supposed to be relevant, then simply saying it
   is just causes confusion. If you had said that the firewall is not
   supposed to be relevant, but try disabling it anyway, then I would say
   that I am totally able to think like that too. It is reasonable to try
   things like that to diagnose a bug.
 
  [quote]
 
  Would I be correct if I paraphrased the above as:
 
  The wrong way to get Sam Hobbs to try something that might help in
  solving his problem:
 
  [JD] The firewall might be blocking your attempts to connect to mysql.
  Try disabling it.
  [SH] Yeah and what makes you think that? I KNOW the firewal has nothing
  to do with it. Get real (and go away).
 
  The right way to get Sam Hobbs to try something that might help in
  solving his problem:
 
  [JD] The firewall has nothing to do with your problem. But try disabling
  it anyway.
  [SH] Yeah that sounds reasonable. Thanks, I'll try that.
 
 
 
  How silly is that?
 
  --
  Jason Wong - Gremlins Associates - www.gremlins.biz
  Open Source Software Systems Integrators
  * Web Design  Hosting * Internet  Intranet Applications Development *
  --
  Search the list archives before you post
  http://marc.theaimsgroup.com/?l=php-general
  --
  /*
  If money can't buy happiness, I guess you'll just have to rent it.
  */
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php

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



Re: [PHP] To Rasmus

2004-09-17 Thread blackwater dev
how did gmail get you blocked?

On Fri, 17 Sep 2004 11:48:53 -0700, Richard Whitney [EMAIL PROTECTED] wrote:
 Dear Rasmus,
 
 Could you please unblock 140.99.35.6 from the mailing list.
 I made a mistake once.
 I subscribed using Gmail and I hate it.
 Please forgive me.
 
 Richard Whitney
 [EMAIL PROTECTED]
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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



Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Steve Brown
 I'd like to sort the array based on one of the values in the field
 href, description, or time. Is there a canonical way of doing this?

Probably easiest to write your own sort function the use usort(), 
http://www.php.net/usort has pretty good documentation on how to
accomplish this.

Steve

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



Re: [PHP] sorting multidimensional array by a second level value

2004-09-17 Thread Matt M.
  I'd like to sort the array based on one of the values in the field
  href, description, or time. Is there a canonical way of doing this?

you might be able to use http://us2.php.net/manual/en/function.usort.php

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



[PHP] Help with PEAR on OS X

2004-09-17 Thread Dan Phiffer
Hi there,
I'm having trouble getting PEAR to behave on my Mac, and I was wondering 
if there might be some obvious reason that somebody could point out. I'm 
running OS X 10.3.5 and PHP 4.3.8.

Here's the summary:
$ pear upgrade-all
Will upgrade archive_tar
Will upgrade db
Will upgrade http
Will upgrade mail
Will upgrade net_smtp
Will upgrade net_socket
Will upgrade xml_parser
downloading Archive_Tar-1.2.tgz ...
Starting to download Archive_Tar-1.2.tgz (14,792 bytes)
.done: 14,792 bytes
At this point the terminal window just sits there. The same happens if I 
issue the command using sudo, and also with the 'pear install' command.

Thanks for any help,
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Curt Zirzow
* Thus wrote Sam Hobbs:
 Curt Zirzow [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 
  RTFM.
 
  mysql:
   This MySQL extension doesn't support full functionality of MySQL
   versions greater than 4.1.0. For that, use MySQLi.
 
  mysqli:
   The mysqli extension is designed to work with the version 4.1.3 or
   above of MySQL.
 
 What the manual says (as quoted) is either not relevant or is not clear.

sigh.


Curt
-- 
The above comments may offend you. flame at will.

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
John Holmes wrote:
From: Jason Davidson [EMAIL PROTECTED]
hehehe.. im actually looking forward to reading responses on this
thread..

Whatever happened to those monthly stat posts? most posts, most posts 
per thread, etc...?? Who was doing that? I haven't seen one in a while.

---John Holmes...
I was looking for one the other day.  Curt used to do something with the 
stats a while back (I think), but someone else was doing it recently.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Curt Zirzow
* Thus wrote Sam Hobbs:
 And the relevant portion of that says external access, which is not 
 applicable here. I do not see anything else on that page that is relevant.

what is relevant? only the last one?  :sigh:


Curt
-- 
The above comments may offend you. flame at will.

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread John Nichel
John Holmes wrote:
From: Jason Davidson [EMAIL PROTECTED]
hehehe.. im actually looking forward to reading responses on this
thread..

Whatever happened to those monthly stat posts? most posts, most posts 
per thread, etc...?? Who was doing that? I haven't seen one in a while.

---John Holmes...
Bill Doerrfeld
http://marc.theaimsgroup.com/?l=php-generalm=108359755823417w=2
STFA!!!
;)
Okay, someone else's turn to hijack the thread.  hehe
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Curt Zirzow
* Thus wrote Sam Hobbs:
 I appreciate your attempts to help, but you must understand that when 
 attempts to help just cause time to be wasted, then it might be appropriate 

:sigh:

Curt
-- 
The above comments may offend you. flame at will.

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jennifer Goodie
-- Original message from John Holmes : -- 

 Whatever happened to those monthly stat posts? most posts, most posts per 
 thread, etc...?? Who was doing that? I haven't seen one in a while. 
 
 ---John Holmes... 
 
Bill Doerrfeld
http://marc.theaimsgroup.com/?a=9211645541r=1w=2

STFA!!! :)

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Jason Davidson
HAHAHA, this thread is awsome though, you all  must admit the humor
involved here.  I hope this thread continues for a couple more days. 
or here is an idea for a thread
{PHP} globals.asp wont set my php vars

[EMAIL PROTECTED] wrote: 
 
 Amazing how long that thread is -- must be a record. Seems to be classic case 
 of 'ignore-the-obvious' or 'my-mind-is-made-up. Don't-confuse-me-with-facts'. 
 Perhaps I should start a new thread:
 
 [PHP} Can't get NULL to output anything!
 
 hehe
 Andre
 
 
 On Friday 17 September 2004 03:11 pm, Jason Davidson wrote:
  hehehe.. im actually looking forward to reading responses on this
  thread..
 
  funny stuff.
 
  Jason
 
  Jason Wong [EMAIL PROTECTED] wrote:
   On Friday 17 September 2004 23:21, Sam Hobbs wrote:
Again, it is okay to say this once but it is not useful to keep
insisting. I am smart enough to be aware of the possibility and if and
when other possibilities have been exahausted I would have tried the
possibility of disabling the firewall or whatever. Insisting upon it
from others is not productive; it is more likley to polarize me in the
opposite direction and get us to where we are now. It is the emotional
commentary that is most unproductive. I try to explain (unemotionally
and in a reasonable manner) that I don't need the additional assertion
that I must try something and the response to that becomes emotional.
  
   Being obstinate and contrarian does nothing to help resolve your problem.
   Time for another:
  
   [quote from a Sam Hobbs post in reply to Jason Davidson]
  
It is my understanding that the firewall is not supposed to be
relevant. I have not seen anything saying it is supposed to be. If it
is true that it is not supposed to be relevant, then simply saying it
is just causes confusion. If you had said that the firewall is not
supposed to be relevant, but try disabling it anyway, then I would say
that I am totally able to think like that too. It is reasonable to try
things like that to diagnose a bug.
  
   [quote]
  
   Would I be correct if I paraphrased the above as:
  
   The wrong way to get Sam Hobbs to try something that might help in
   solving his problem:
  
   [JD] The firewall might be blocking your attempts to connect to mysql.
   Try disabling it.
   [SH] Yeah and what makes you think that? I KNOW the firewal has nothing
   to do with it. Get real (and go away).
  
   The right way to get Sam Hobbs to try something that might help in
   solving his problem:
  
   [JD] The firewall has nothing to do with your problem. But try disabling
   it anyway.
   [SH] Yeah that sounds reasonable. Thanks, I'll try that.
  
  
  
   How silly is that?
  
   --
   Jason Wong - Gremlins Associates - www.gremlins.biz
   Open Source Software Systems Integrators
   * Web Design  Hosting * Internet  Intranet Applications Development *
   --
   Search the list archives before you post
   http://marc.theaimsgroup.com/?l=php-general
   --
   /*
   If money can't buy happiness, I guess you'll just have to rent it.
   */
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Curt Zirzow
* Thus wrote Sam Hobbs:
 Jason Wong [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 
  The firewall is relevant depending on your circumstances. In any case it 
  would
  take you all of one minute to disable your firewall to test out this wild
  far out suggestion. At the most you would have lost one minute but you 
  would
  have either:
 
  - gained the satisfaction of saying I told you the firewall was 
  irrelevant,
  now go away and stop wasting my time with your ridiculous suggestions
 
  or
 
  - you would have found the cause of your problem
 
 It definitely takes more than a minute. It takes nearly a minute just to 
 logoff one user and I often have another user, the Administrator account, 
 ...
 I must restart ZoneAlarm, restart the system and be sure to plug the modem 
 back in while the system starts. The whole operation is likely to take 
 nearly a half hour at least.

Um.. you do realize you have more problems than php not being able
to connect to the database.
 

Curt
-- 
The above comments may offend you. flame at will.

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



[PHP] reading from files

2004-09-17 Thread Merlin
Hi there,
I am wondering how to read lines from a file to a php array? I would like to 
integrate a logfile into a html site. Is it possible to read line by line and to 
check how many lines there are in total?

Thank you for any hint on that,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: A native Windows binding for PHP - released

2004-09-17 Thread Ricardo Cezar
I will wait WinBinder become mature and I will use it! I can´t use it now
because I´m not a very experienced programmer, and can´t do nothing without
the documentation to teach me! :(

But I loved your idea!

If it become PHP 5 compatible, and with a OO interface, it will be perfect.

Goood work!
Hugs,
Rics from Brazil

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



Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Matthew Sims

 [PHP} Can't get NULL to output anything!

 hehe
 Andre



Check your firewall.

-- 
--Matthew Sims
--http://killermookie.org

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



Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Matthew Sims
 * Thus wrote Sam Hobbs:
 Curt Zirzow [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
  RTFM.
 
  mysql:
   This MySQL extension doesn't support full functionality of MySQL
   versions greater than 4.1.0. For that, use MySQLi.
 
  mysqli:
   The mysqli extension is designed to work with the version 4.1.3 or
   above of MySQL.

 What the manual says (as quoted) is either not relevant or is not clear.

 sigh.


 Curt

PHP is either NOT IMPORTANT or I DON'T UNDERSTAND IT.

-- 
--Matthew Sims
--http://killermookie.org

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



RE: [PHP] mysql_connect does not connect

2004-09-17 Thread Chris Gregors
This whole thread has degraded to the point of:

YHBT. YHL. HAND.

and I'm not helping it.


-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 2:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql_connect does not connect


* Thus wrote Sam Hobbs:
 I appreciate your attempts to help, but you must understand that when 
 attempts to help just cause time to be wasted, then it might be
appropriate 

:sigh:

Curt
-- 
The above comments may offend you. flame at will.

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




smime.p7s
Description: S/MIME cryptographic signature


[PHP] Re: sorting multidimensional array by a second level value

2004-09-17 Thread Jasper Howard
the way i did this was by structuting the array like this
$array['href'][0] = 'www.com.com';
$array['description'][0] = 'blah!';
etc...

then use the array_multisort function like this
To sort by href:
array_multisort($array['href'],$array['description'],$array['time']);

a key point is that the first element in array_multisort is what the others
are sorted by. You can also use flags to get the type of reorder you want.

if you're getting the data from a database, try sorting in the query, it'll
make your life a lot easier.

anyway, hope that helps,

-- 


--
Jasper Howard :: Database Administration
ApexEleven Web Design
1.530.559.0107
http://www.ApexEleven.com/
--
Chris Lott [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have an array $links like this:

 [1] = Array
 (
 [href] =
http://www.poetrymagazine.org/epstein_sept_prose.html
 [description] = Thank You, No
 [time] = 2004-09-17T17:30:32Z
 )

 [2] = Array
 (
 [href] = http://110am.com/projects/manuscript/
 [description] = Manuscript
 [time] = 2004-09-16T19:25:14Z
 )

 I'd like to sort the array based on one of the values in the field
 href, description, or time. Is there a canonical way of doing this?

 c
 -- 
 Chris Lott

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



  1   2   >