Re: [PHP] Re: Linux vs. Windows
Ok the results are in heh :) With W2k the times were faster than on .NET but varied a lot. Ranging as low as .9 to as high as 2 full seconds. Ouch! So I got Mandrake 9 back up and with php 4.2.3 and mysql 4 I am back to the faster times. Heck even getting .007 on a regular bases. I still need to install Zend or ZPC. Anyone have any input on which is better to install? Zend or APC that is. Thanks Silly --- DvDmanDT <[EMAIL PROTECTED]> wrote: > Thanks, this sorta draws my intrest now... Also, I'm > a bit outdated on the > microsoft front... Has windows gone opensource? > > > "Azflsite" <[EMAIL PROTECTED]> skrev i meddelandet > news:[EMAIL PROTECTED] > > Thanks everyone for your replies. > > > > I did test on the same server. I had .NET > installed > > and tested. Then installed Linux on same box. The > box > > is a p4 1.7 gig with 512 ddr with a 30 gig 7200rpm > hdd > > > > Im going to drop to win2k and see the results. I > will > > post results here if anyone cares. > > > > Silly > > --- DvDmanDT <[EMAIL PROTECTED]> wrote: > > > It's quite suprising how fast my PHP (and Perl) > is > > > under WinME/Apache > > > 1.3.27/PHP 4.3.2... It's unstable as F though so > not > > > way to recommended... > > > > > > I was intrested in your server specs? How much > RAM? > > > And so on... And was the > > > tests on the same server or did I missunderstand > > > something? > > > "Azflsite" <[EMAIL PROTECTED]> skrev i > meddelandet > > > > > > news:[EMAIL PROTECTED] > > > > Thought I throw in my post from the forums > into > > > this > > > > mailing list: > > > > > > > > Just wanted to give my results on this test I > did. > > > > First the story. I will be hosting sites on my > > > server > > > > and decided to go with .NET/Win2003, with IIS. > > > Well > > > > most sites are php based or perl with mysql > > > backend. > > > > After configuring everything I gave it a test > from > > > > another system externally. i did that and > noticed > > > it > > > > was slow. Slower compared to the linux box I > > > currently > > > > have the site on for testing purposes on > another > > > > provider. Heck even while statements without > > > hitting > > > > the DB were giving delays that were over 10 > > > seconds! > > > > > > > > Wooa I couldnt believe it. So I decided to add > a > > > code > > > > snippet to get the seconds of script > execution. I > > > did > > > > this off a query with 12 results that echoed > out > > > into > > > > html. Now with Linux I came up with numbers > like: > > > > > > > > 0.0163360 > > > > > > > > > > > > The above number was pretty consistent. Now > onto > > > > Windows 2003 .NET. On the same page with the > same > > > > output: > > > > > > > > 2.6936080 > > > > 0.9500151 > > > > 4.9112860 > > > > 0.6226690 > > > > 0.6032619 > > > > > > > > Wooa!! But this cant be true. I have had Win2k > > > host > > > > php sites before and it seemed faster then > .NET. > > > But > > > > these are the results so far. So with this my > > > thoughts > > > > of cause are: > > > > > > > > a) Windows just plain sucks with open source > > > > b) .NET doesnt seem to allow cgi, only ISAPI. > > > Perhaps > > > > ISAPI is slowing it down > > > > c) In Linux Im using Apache, where in Windows > Im > > > using > > > > IIS > > > > d) The .NET OS is a beta and that could be the > > > issue > > > > e) My code just sucks. But why would it be > faster > > > on > > > > Linux then? > > > > > > > > Any thoughts on the possibilities I have shown > > > here? > > > > > > > > The Chaos > > > > > > > > __ > > > > Do you Yahoo!? > > > > Yahoo! Calendar - Free online calendar with > sync > > > to Outlook(TM). > > > > http://calendar.yahoo.com > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! Calendar - Free online calendar with sync > to Outlook(TM). > > http://calendar.yahoo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Linux question with mysql
I just installed the rpm for mysql 4 on Redhat 7.1. Now the service is running, but I cannot go to a command line and type in mysql to get to the mysql command prompt. Did I install it wrong? Do I need to add a path like you would in windows (Enviroment Paths)? Thanks Silly __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Linux vs. Windows
Thanks everyone for your replies. I did test on the same server. I had .NET installed and tested. Then installed Linux on same box. The box is a p4 1.7 gig with 512 ddr with a 30 gig 7200rpm hdd Im going to drop to win2k and see the results. I will post results here if anyone cares. Silly --- DvDmanDT <[EMAIL PROTECTED]> wrote: > It's quite suprising how fast my PHP (and Perl) is > under WinME/Apache > 1.3.27/PHP 4.3.2... It's unstable as F though so not > way to recommended... > > I was intrested in your server specs? How much RAM? > And so on... And was the > tests on the same server or did I missunderstand > something? > "Azflsite" <[EMAIL PROTECTED]> skrev i meddelandet > news:[EMAIL PROTECTED] > > Thought I throw in my post from the forums into > this > > mailing list: > > > > Just wanted to give my results on this test I did. > > First the story. I will be hosting sites on my > server > > and decided to go with .NET/Win2003, with IIS. > Well > > most sites are php based or perl with mysql > backend. > > After configuring everything I gave it a test from > > another system externally. i did that and noticed > it > > was slow. Slower compared to the linux box I > currently > > have the site on for testing purposes on another > > provider. Heck even while statements without > hitting > > the DB were giving delays that were over 10 > seconds! > > > > Wooa I couldnt believe it. So I decided to add a > code > > snippet to get the seconds of script execution. I > did > > this off a query with 12 results that echoed out > into > > html. Now with Linux I came up with numbers like: > > > > 0.0163360 > > > > > > The above number was pretty consistent. Now onto > > Windows 2003 .NET. On the same page with the same > > output: > > > > 2.6936080 > > 0.9500151 > > 4.9112860 > > 0.6226690 > > 0.6032619 > > > > Wooa!! But this cant be true. I have had Win2k > host > > php sites before and it seemed faster then .NET. > But > > these are the results so far. So with this my > thoughts > > of cause are: > > > > a) Windows just plain sucks with open source > > b) .NET doesnt seem to allow cgi, only ISAPI. > Perhaps > > ISAPI is slowing it down > > c) In Linux Im using Apache, where in Windows Im > using > > IIS > > d) The .NET OS is a beta and that could be the > issue > > e) My code just sucks. But why would it be faster > on > > Linux then? > > > > Any thoughts on the possibilities I have shown > here? > > > > The Chaos > > > > __ > > Do you Yahoo!? > > Yahoo! Calendar - Free online calendar with sync > to Outlook(TM). > > http://calendar.yahoo.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Linux vs. Windows
Thought I throw in my post from the forums into this mailing list: Just wanted to give my results on this test I did. First the story. I will be hosting sites on my server and decided to go with .NET/Win2003, with IIS. Well most sites are php based or perl with mysql backend. After configuring everything I gave it a test from another system externally. i did that and noticed it was slow. Slower compared to the linux box I currently have the site on for testing purposes on another provider. Heck even while statements without hitting the DB were giving delays that were over 10 seconds! Wooa I couldnt believe it. So I decided to add a code snippet to get the seconds of script execution. I did this off a query with 12 results that echoed out into html. Now with Linux I came up with numbers like: 0.0163360 The above number was pretty consistent. Now onto Windows 2003 .NET. On the same page with the same output: 2.6936080 0.9500151 4.9112860 0.6226690 0.6032619 Wooa!! But this cant be true. I have had Win2k host php sites before and it seemed faster then .NET. But these are the results so far. So with this my thoughts of cause are: a) Windows just plain sucks with open source b) .NET doesnt seem to allow cgi, only ISAPI. Perhaps ISAPI is slowing it down c) In Linux Im using Apache, where in Windows Im using IIS d) The .NET OS is a beta and that could be the issue e) My code just sucks. But why would it be faster on Linux then? Any thoughts on the possibilities I have shown here? The Chaos __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How do i valadate an email address?
I keep forgetting to do the reply to all thing! :) Here it is for anyone else as well. if (!eregi('[EMAIL PROTECTED],5}$',$email)) { echo 'Invalid email address'; } else { //do whatever } That should do it. Sometimes I get these wrong off the top of my head. Silly >--- "Philip J. Newman" <[EMAIL PROTECTED]> > wrote: > > How would i check that an e-mail has the right > parts > > in it. for example. > > > > username @ domain . ext > > > > Thanks > > > > / Jim Bob > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: > http://www.php.net/unsub.php > > > > > __ > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, > live on your desktop! > http://platinum.yahoo.com > __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MYSQL SQL Statement Question
Is there a way to search 3 tables or more at once and return all information that it finds? If I do a inner join it will only return if there are matches in the tables. If I do just a left join it returns the left if nothing in the right is found and visa versa for a right. Im using a unique id btw to search for any matches in the 3 tables. So in english I want to: Search 3 tables at once trying to find any field matching a number I pass to the query. Even if no info is found in table 1 or table 3 I still want to return the information in table 2 since there was a match found. How can I do that? BTW Im using mysql 3.23x Thanks Silly __ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php