Re: [PHP] Includes
Hi, The best way to do this (it's only my opinion, I'm sure there are many other ways but this way works for me) is to create a .php file and fill it with your most commonly used functions. You can use a .inc file, which is probably recommended, but you will need to tell the server not to display this file. You can do this in php.ini but it will complicate things right now. For a header, use a function name like drawHeader() or something and then put all your database connection, navigation, page formatting etc in that function. Then, on all your pages, you just need to add the following at the top. This will draw you header the same on all pages that you include the above with. If someone navigates to yourincudefile.php all they should see is an empty page because all the code is inside functions. Hope this helps Andy. - Original Message - From: "Rick Beckman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 07, 2002 11:12 AM Subject: [PHP] Includes > I'm wanting to use PHP to make updating an entire site easier by using > include() [I think that's the function] to include navigation bars, notices, > etc. on multiple pages. What's the best way to do that, and is it possible > to keep the included files from being indexed/viewed on their own (possibly > by password protecting [htaccess] the directory they are in)? Thanks in > advance for any help. > > -- > Kyrie Eleison, > Rick Beckman > www.spiritsword.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] Is there a way to test for a file?
> I'd like PHP to check to see if the image/picture.jpg exists before > returning the picture. Is this possible? Yup - It's in the manual. http://www.php.net/manual/en/function.file-exists.php Cheers Andy - Original Message - From: "Doug Coning" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 08, 2002 3:59 PM Subject: [PHP] Is there a way to test for a file? > Hi everyone, > > I'm a PHP newbie and wanted to know if there is a way to test for a file. > The reason I'd like to do this is because I'm writing a query to return > items from a catalog. However, if the client hasn't uploaded a picture or > if the picture is misteriously missing from the image folder, instead of > returning the product with the infamous missing jpeg picture, I would rather > the product be skipped altogether. > > I'd like PHP to check to see if the image/picture.jpg exists before > returning the picture. Is this possible? > > Thanks! > > Doug Coning > American Web Studio > www.americanwebstudio.com > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Segmentation Fault
Hi All, I'm scanning email address for our mailing list to see if they are valid and the PHP app I have built for this bombs out at random complaining of a Segmentation Fault. I believe this is to do with memory and possibly down to the number of open file handles but the code is spot on in that it opens a connection, runs some code, then closes it. I've checked it, double checked it then checked it some more and fclose definitely gets executed every time. The variable I'm using for the file handle is $Connect and the reference to this gets incremented by 1 every time I run fsockopen on it. Should it do this? My question: Is there any limit to the number of times I can run fsockopen in any one instance of PHP even though the connection is being closed? Or is there something else I should know? Thanks in advance Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Maybe not the right place, but...
>> Maybe not the right place, but... Probably not but what the heck. IE has a cap of 2K. http://support.microsoft.com/default.aspx?scid=kb;EN-US;q208427 Netscape exceeds 2k but I've never tested out how much. Cheers Andy Woolley. Milonic Solutions Ltd - Original Message - From: "Alberto Serra" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 2:43 PM Subject: [PHP] Maybe not the right place, but... > ðÒÉ×ÅÔ! > > Does anybody know which is the lenght limit for the parameter string > when GETting an URL? If there is a limit at all, of course. > > áÌØÂÅÒÔÏ > ëÉÅ× > > > -- > > > @-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@-_=}{=_-@ > > LoRd, CaN yOu HeAr Me, LiKe I'm HeArInG yOu? > lOrD i'M sHiNiNg... > YoU kNoW I AlMoSt LoSt My MiNd, BuT nOw I'm HoMe AnD fReE > tHe TeSt, YeS iT iS > ThE tEsT, yEs It Is > tHe TeSt, YeS iT iS > ThE tEsT, yEs It Is... > > > -- > 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] _() undefined in 4.2.1
It's OK, I've found out that I have to include --with-gettext in the configure line. Cheers anyway -- Andy. - Original Message ----- From: "Andy Woolley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 05, 2002 2:43 PM Subject: [PHP] _() undefined in 4.2.1 > Hi All, > > I'm trying to install IMP and I'm getting the error:- > > "Fatal error: Call to undefined function: _() in blah blah." > > I know that _() is the same as gettext() and I'm sure it used to work. > > Anyone know where it went or what setting I have to change in php.ini to > bring it back. Sorry if I'm re-iterating things but trying to search for _() > is not having the desired effect in google. > > Cheers in advance > Andy Woolley. > Milonic Solutions Ltd > > > -- > 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] ??????????????????????????????????????????????????????````````````````````ØØØØØØØØØØ
Hi Ben, I've been on this list for a few years now and this is the first time i've seen anything this bad. Sorry it's just bad timing. There is no other list that comes anywhere near for quality and good folks. Try and stick it out it'll be worth it. Andy. - Original Message - From: "Ben Ramsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002 8:57 PM Subject: RE: [PHP] ??ØØ > I've just joined this mailing list this afternoon. Does this kind of thing > happen often? If so, I'm going to leave the list. > > Ben > > > -Original Message- > From: Andrew Brampton [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 3:40 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] > ??`` > ``ØØ > > > If you read the 3 emails he sent previous to his spam you will see that he > tried to get the moderators to remove him but after 6 hours he is still on > the list, so I guess he thinks that if he starts to spam he will be kicked > > Andrew > > - Original Message - > From: "Rodolfo Gonzalez" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, July 09, 2002 8:32 PM > Subject: Re: [PHP] > ??ØØ > > > > > To the kind moderator of the list: please kick off this guy (Erik > > Hegreberg <[EMAIL PROTECTED]> ), he's really annoying. Or at least bounce > > his e-mails back to him ;) ). > > > > Thanks. > > > > > > -- > > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RTF to HTML converter
Greetings, I'm looking for a script written in PHP that can convert an RTF string into HTML. Thanks in Advance Andy Woolley www.databasewatch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] whois
Ajdin, I know this is a little off topic but for your information 'whois.ripe.net' provide information for the .ba TLD I too am looking for a database of Top Level Domains around the world so if anyone knows of one I would be very much obliged If I could have a copy. Kind Regards Andy Woolley www.databasewatch.com - Original Message - From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 2:08 PM Subject: [PHP] whois > Perhaps not 100% php but still! > > Is there any way I could ping all whois servers that exist. Something > like whois.* ??? I am trying to ind a whois server that holds .ba domain > names information. I found some research and found that it should be > held at whois.ripe.net but I have tried and nothing found. I have tried > whois.nic.ba and no luck. .ba is for Bosnia and Herzegovina? Is there a > european server/db that holds all euro domain info?? > > Thanks > > Ajdin > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Javascript mailing list
The JavaScript Weenie is about the best I know of at: http://webdevelopersjournal.com/subform.html See you there. Andy. - Original Message - From: "Boget, Chris" <[EMAIL PROTECTED]> To: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 4:56 PM Subject: [PHP] Javascript mailing list > A bit OT, yes, but I don't want to ask an > inappropriate question here (not that this > isn't an inappropriate question :p). > Can someone recommend a good Javascript > mailing list? > > Chris > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Resize Images 'On The Fly'
Jamie, $imagesize = GetImageSize("yourfile.gif"); Will return an array of image properties that you can use. Andy. - Original Message - From: "Jamie Thompson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 24, 2001 11:46 AM Subject: [PHP] Resize Images 'On The Fly' > Is there any way you can resize images 'on the fly' with php? > > I have images in a directory and i want to pull one out at random and > display it at 50% of it's original size. I was thinking i could read the > file into a variable and then use one of php's image functions on it but I > can't find any documentation for this? is it possible? > > Thanks, > > Jamie :-) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic Navigation w/PHP
Hi, You could try using a DHTML menu like the one at http://www.milonic.co.uk/menu The array of elements needed can be generated using PHP based on certain criteria. Let me know if you or anybody else would like a PHP script creating so that you could generate menus based on values that you have in PHP. Regards Andy. - Original Message - From: "Mike Elkins" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 4:17 PM Subject: [PHP] Dynamic Navigation w/PHP > Hello All, > > I am looking for example code demonstrating the ability to dynamically > modify website navigation based upon data in a database. Specifically what I > am trying to figure out is how to control what pages are available based > upon whether they have been "enabled" in the database. I am developing a > template driven website, with content controlled by the database which > indicates what the customer has opted for. While ten pages might be > available and part of the web site template, a given customer may have only > paid for four, thus when his site is hit, only those four pages will be > available in the navigation elements. Should the customer care to request an > additional feature (page), simply accessing the database and enabling it > would make it immediately available. > > Any suggestions or pointers would be greatly appreciated. > > Michael > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Case?
The 'Switch' Statement is what you are looking for. Andy Woolley www.databasewatch.com "elias" <[EMAIL PROTECTED]> wrote in message 9a1pfp$v4n$[EMAIL PROTECTED]">news:9a1pfp$v4n$[EMAIL PROTECTED]... > You must be moving from Pascal alike coding to PHP ;) > > > "acleave" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I have tried the online documentation and it either errors out on me or > cannot > > find anything when I search on case. Can someone tell me if PHP supports > case > > statements (or do I just need to do a series of ifs?) and if so where I > can > > find them detailed in the online docs? > > > > Thnaks, > > Allan > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sorry - Way OT but I need help
Guys, I know this has nowt to do with PHP so I'll keep it as short as possible. My problem is, I'd like to get 404 error redirecting to work in IE under Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works in Netscape et al but not in IE. IE seems to be issuing it's own error page. I know there must be a config somewhere other than the client side "Show friendly error messages", but can't seem to find it. I have RTFM and scanned the Web but still not found it. Hope you can help. Once again I apologize for being Off Topic. Kind Regards Andy Woolley www.databasewatch.com ps if you want to test it try www.databasewatch.com/noexist -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sorry - Way OT but I need help
Jon, your a star...Thanks alot How rediculous is that of MS to do it that way. I really did try and find out what was going on and knew it had to be something simple, but I never expected it be that stupid. Thanks Again Andy Woolley www.databasewatch.com ps. If you ever visit the Midlands, I'll by you a beer :-) - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: "'Andy Woolley'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, April 09, 2001 6:09 PM Subject: RE: [PHP] Sorry - Way OT but I need help > Your custom 404 is probably less than 512 bytes. This causes IE to display > its own inbuilt error page (don't ask me why :-) Push it over that and all > should be well. > > HTH > Jon > > > -Original Message- > From: Andy Woolley [mailto:[EMAIL PROTECTED]] > Sent: 09 April 2001 18:00 > To: [EMAIL PROTECTED] > Subject: [PHP] Sorry - Way OT but I need help > > > Guys, > > I know this has nowt to do with PHP so I'll keep it as short as possible. > > My problem is, I'd like to get 404 error redirecting to work in IE under > Apache. I've set the ErrorDocument in apache.conf and in .htaccess. It works > in Netscape et al but not in IE. > > IE seems to be issuing it's own error page. I know there must be a config > somewhere other than the client side "Show friendly error messages", but > can't seem to find it. I have RTFM and scanned the Web but still not found > it. Hope you can help. > > Once again I apologize for being Off Topic. > > Kind Regards > > Andy Woolley > www.databasewatch.com > > ps if you want to test it try www.databasewatch.com/noexist > > > ** > 'The information included in this Email is of a confidential nature and is > intended only for the addressee. If you are not the intended addressee, > any disclosure, copying or distribution by you is prohibited and may be > unlawful. Disclosure to any party other than the addressee, whether > inadvertent or otherwise is not intended to waive privilege or confidentiality' > > ** > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sorry - Way OT but I need help
RE: [PHP] Sorry - Way OT but I need helpIf you place something like: ErrorDocument 404 /errors/404.php inside your .htaccess file and then create a file called 404.php in the errors directory it should work. You can also echo plain text to he screen using ErrorDocument 404 "Error Message Goes Here." HTH Andy Woolley www.databasewatch.com - Original Message - From: Boget, Chris To: 'Andy Woolley' ; [EMAIL PROTECTED] Sent: Monday, April 09, 2001 7:57 PM Subject: RE: [PHP] Sorry - Way OT but I need help > I know this has nowt to do with PHP so I'll keep it as short > as possible. > My problem is, I'd like to get 404 error redirecting to work > in IE under Apache. I've set the ErrorDocument in apache.conf > and in .htaccess. It works in Netscape et al but not in IE. > IE seems to be issuing it's own error page. I know there must > be a config somewhere other than the client side "Show friendly > error messages", but can't seem to find it. I have RTFM and > scanned the Web but still not found it. Hope you can help. > Once again I apologize for being Off Topic. Does someone have an example of how to do this within .htaccess? I've tried everything and all I ever get is an Internal Server Error when the .htaccess file is in place... :/ Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Commercial sites that use PHP
www.businessmeetings.com is another commercial site that I ported from ASP to PHP 12 months ago. Andy Woolley. www.databasewatch.com > - Original Message - > From: "Phil Labonte" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, April 10, 2001 7:22 PM > Subject: [PHP] Commercial sites that use PHP > > > > Can anyone send me a list of large commercial web sites that use PHP? > > > > I am trying to move to PHP here at work but I need some examples to > impress > > the boss!!! > > > > Thanks > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Uptime error
Does anyone know if it's possible to capture TCP_TIMESTAMP using a socket. If you could do that you wouldn't need to execute /usr/bin/uptime Andy. --- Need a DHTML Menu? Try www.milonic.com/menu it's free --- - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 8:34 AM Subject: Re: [PHP] PHP Uptime error > > I have a PHP script with the following code in it; > > > > $uptime = passthru ("/usr/bin/uptime"); > > > > but when I load the PHP page I get the following; > > > > 8:26pm up 0 min, 0 users, load average: 0.00, 0.00, 0.00 > > > > which is wrong (I have checked the uptime via telnet). Can anybody please > > help me try and fix this? > > When you checked uptime via telnet, were you logged in as "nobody", or > whomever PHP runs as?... If not, you haven't really duplicated the > circumstances where PHP exists. > > I can't think why "nobody" wouldn'y be allowed to do "uptime", but maybe > there's some security issue involved. Too bad those load numbers aren't > right though :-) > > You may have to resort to creating a suid shell script with some "real" user > as owner for PHP to be able to run it to do uptime. See "man suid" for > details. > > BE CAREFUL. A mis-configured suid script is a security risk. Actually, > that's like saying a sucking chest wound is a "cut" :-^ > > -- > WARNING [EMAIL PROTECTED] address is an endangered species -- Use > [EMAIL PROTECTED] > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I dont see whats wrong!
You could also perhaps try this. $message = " $alias $name $email $site $cam $quote "; Might not work in all cases though but it's certainly easier to read. It all very much depends on personal preference. Andy. - Original Message - From: "John Monfort" <[EMAIL PROTECTED]> To: "Kyle Smith" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, September 03, 2001 4:13 PM Subject: Re: [PHP] I dont see whats wrong! > > > Try removing the last period(.) after $quote. > > Also, try this method: > > $nl = "\r\n"; > > $message = $alias$nl$name$email$...so on and so forth. > > Come to think of it, I think PHP has a constant for "\r\". > I think its NL or something like that, I can't remember. Look in the > manual pages for some clues...hopefully, someone on here remember it. > > > I hope that helped. > > > -John > > > On Mon, 3 Sep 2001, Kyle Smith wrote: > > > i get this error message > > Parse error: parse error in /web/sites/197/lk6/www.stupeedstudios.f2s.com/sendcam.php on line 53 > > > > for > > > > $message = $alias. "\r\n".$name. "\r\n". $email. "\r\n". $site. "\r\n". $cam. "\r\n". $quote.; > > > > i honestly dont see whats wrong! > > > > -lk6- > > http://www.StupeedStudios.f2s.com > > Home of the burning lego man! > > > > ICQ: 115852509 > > MSN: [EMAIL PROTECTED] > > AIM: legokiller666 > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP Stress Testing.
Guys, Has anyone ever tested PHP, MySQL on Apache to see just how well it will work when put under serious pressure. Seems that people all over the world are saying how PHP doesnt cut it when pushed to the limit, question is what is the limit? Anyone interested in setting up a stress test, to try and prove how good PHP really is. Andy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP Stress Testing.
Thanks Michael, What I'm after is how well PHP can handle load, I know it's quick, I've tested it and I have to say that the results are somewhat interesting. But, what I can't test properly is how it handles hundreds, even thousands of simultaneous connections. I know that the above is probably more to do with the web server but I want to prove a point that PHP is not the "fly by night" software that some people are saying it is. I know it's good, but, I need to show just how good it can be. I then want to publish the results for all to see. Still interested? Andy. - Original Message - From: "Michael Kimsal" <[EMAIL PROTECTED]> To: "Andy Woolley" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 04, 2001 6:56 PM Subject: Re: [PHP] PHP Stress Testing. > Goalposts change. > > The zdnet eweek article from last november showed PHP being *THE* fastest > between JSP, ASP, CF and PHP. PHP was 47 pages/second. ASP was 43, CF > was 25 or 26, and JSP was 13. The benchmark was a ecommerce store - > each system had functionally equivalent code, and ran on the same hardware. > > CF got 'top honors' because of its 'ease of use'. PHP was hands down > faster > than everything else. ASP was close, and became way faster when MS rewrote > the code, but I suspect someone rewriting the PHP could have optimized > it to see > a 100% improvement as well. > > Part of the point here is that people will knock it for any reason they > can, > even if they don't know any better. We have a client (running PHP) who > was in > a meeting with one of their clients. Trying to demo a new service, they > went to > his site, which was responding very slowly (turns out there was some > routing > problems along the way - I *think* in the client's own office). Their > "IT" guy > (to use the term loosely) noticed the ".php" and said "Oh well, there's > your problem - > PHP isn't multithreaded - of course it's going to run really slow. You > should use our > __ system" (I forget if it was Java or MS). The guy was full of it, > but > everyone in the meeting got the impression that PHP sucked and was slow > because it's not "multithreaded" (as if ANYONE in that room, including that > dweeb, even understood the term, much less it's impact on performance). > > So what do you want to benchmark? Whatever it is, you really should get > others from > other camps to develop similar code - get an ASP person (who is good) to > write a similar > app, do the same with Java, etc. If you want to contact me privately, I > would > be interested in discussing this further (organizing, etc) > > > > Andy Woolley wrote: > > >Guys, > > > >Has anyone ever tested PHP, MySQL on Apache to see just how well it will > >work when put under serious pressure. > > > >Seems that people all over the world are saying how PHP doesnt cut it when > >pushed to the limit, question is what is the limit? > > > >Anyone interested in setting up a stress test, to try and prove how good PHP > >really is. > > > >Andy. > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mySQL wont connect
Kyle, If you are absolutely sure that your username and password is correct...You are sure arn't you ? Try changing "P500.MSHOME.NET" to either "localhost" or "127.0.0.1" Most likely the MySQL admin dude has set it so that you can only connect to MySQL from the machine itself Andy - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 05, 2001 11:59 PM Subject: [PHP] mySQL wont connect Well it wont! i get the error message "Warning: MySQL Connection Failed: Access denied for user: 'test@P500' (Using password: YES) in C:\apache\htdocs\php+mysql\connect.php on line 2 Could not connect" When using "" Please tell me its omething really simple please! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] File Download Completion
Hi Berber, The only way I've figured this at the moment is to use the web server access logs. They will tell you how many bytes were transfered, if it matches the file size then transmission was potentialy succesful. I'm trying to think of a better way using PHP and maybe JavaScript but at the moment I've hit a brick wall. I'll have a think later and get back to you, but for your information it is possible. Regards, Andy Woolley www.databasewatch.com - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]> Sent: Wednesday, January 31, 2001 10:44 AM Subject: [PHP] File Download Completion > Is it possible to find out if a client finished to DL a file? > > Suppose i put a link to a file and people start to DL the file. > Some people can stop the DL in the middle. I need to know > how many people completed the DL. > > Any simple ideas how to do this? > > thanks > > berber > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Run a script for 20minutes
Something doesn't seem right here. I've executed scripts that have taken 4 hours to complete in the past and the only thing I had to set was: set_time_limit(0); Are you echoing anything to the screen, if not maybe you should after every loop increment, you may also need to use the flush() command. Hope this helps. Andy Woolley www.databasewatch.com - Original Message - From: "Martin E. Koss" <[EMAIL PROTECTED]> To: "Dominick Vansevenant" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 12, 2001 12:08 PM Subject: RE: [PHP] Run a script for 20minutes > I'm using a mySQL database but to be honest I think the only thing that was > timing out was the browser, since hacking the registry to eliminate that > timeout the only thing I can do is wonder why it only finishes half what it > is supposed to do. > > I'll try it on a faster machine later - it's on a AMD K6-2/366 with 128mb > ram. I have a Athlon 900 that I could run it on but that's not a machine I > want to tinker too much with - will go for a trusty old 450 first. > > Is it a surprise that it might take up to 20 or 30 minutes to build over > 20,000 simple HTML files? > > Martin. > > -Original Message- > From: Dominick Vansevenant [mailto:[EMAIL PROTECTED]] > Sent: 12 February 2001 11:54 > To: Martin E. Koss; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] Run a script for 20minutes > > > I think there are timeouts on php as well: > > This is taken from the php.ini file. > > max_execution_time = 30 ; Maximum execution time of each script, in > seconds > > I hope this helps you, you can find php.ini in your windows directory. > > If you are using a database, also check that for timeouts. > > D. > > -Original Message- > From: Martin E. Koss [mailto:[EMAIL PROTECTED]] > Sent: maandag 12 februari 2001 12:51 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [PHP] Run a script for 20minutes > > > Hi, > I have PHP3 and MySQL on Win98 and am trying to run a script that loops > through a file making process and it needs about 20 - 30 minutes to run. It > generates static HTML files based on content in a database. I've increased > Internet Explorer's timeout to allow for this but for some reason only about > half the processing is done before everything seems to just stop. > > Does anyone know of a very basic way of executing a PHP script on a Win98 > machine without the need for a browser? Or, another way of running this > script that will take some time and create some 22,000 files through the > process. > > Thanks, > > Martin. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]