Re: [PHP] Good PHP book?
Web Database Applications with PHP MySQL, PHP in action, and php.net --Brendon On Dec 14, 2008, at 5:33 PM, jeffery harris wrote: Hi guys/gals. I'm a first time user. Does anyone know of a good php book? -- 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] PHP Dev Facts
a- (more out of interest) any problems with tasktop? I've found it a bit buggy/pain to install in ganymede (although mylyn works a dream) Haven't had any issues with tasktop but I'm very impressed with it so far. Install was just like any other extension, I'm using zend studio 6.1 which is based on 3.4 but seems like zend is still using 3.3 install/update manager (not sure why). The reporting with tasktop is really great and easy to use. I like how i can send emails from within the ide, link to the filesystem, and browser (ff support was just added). I'm still waiting to see better integration with leopard. If you paid for a subscription, subscribe to the beta update site which i believed is updated weekly. Only problem i have is $99 is a little much :) b- mylyn with trac and svn; does the set-up allow yuo to automatically submit the bug update/notes with the files to svn; ie bugtracker and svn reports in sync if only via text? + have you compared to mylyn/ bugtracker? I'd be ultra-interested to know (and tbh would save me some more research) Are you talking about svn commit hooks? Trac has commit hooks for svn so commits can be posted to a specific ticket. For example your svn commit message can be refs #313, #314 my commit message and it will post that message to those tickets with links to the svn commit. When you do this mylyn sees the incoming message and updates the ticket locally as well. What's nice is you can, from within mylyn, is click each of the ticket numbers or the svn revision # to either view the changelog or the actual ticket. I haven't tried out bugtracker, i started using trac before i started using mylyn. I picked trac just because of the great wiki and svn integration and when i became aware of mylyn I was lucky enough that they had the trac connector with some great functionality. They've recently added sub-tickets with the masterticket trac plugin so you can have ticket dependencies. Hope this answers you questions. --Brendon On Oct 17, 2008, at 5:05 PM, Nathan Rixham wrote: Brendon Van Heyzen wrote: Have to say using eclipse/zend for eclipse with mylyn/tasktop really helps in keeping up with bug tracking (trac) with all my projects. Helps to keep everything organized, especially when management wants to know what's going on. SVN is also crucial and its nice to have commit hooks to work with trac. cheers! 2 questions; a- (more out of interest) any problems with tasktop? I've found it a bit buggy/pain to install in ganymede (although mylyn works a dream) b- mylyn with trac and svn; does the set-up allow yuo to automatically submit the bug update/notes with the files to svn; ie bugtracker and svn reports in sync if only via text? + have you compared to mylyn/bugtracker? I'd be ultra-interested to know (and tbh would save me some more research) -- 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] PHP Dev Facts
*Procedural or OOP?* I try now to do everything OOP, its just worth spending the extra time (depending) going the OOP route even on small tasks *Dev OS* Mac OS X 10.5.5 *Dev PHP Version* 5.2.6 *Live Server OS* Gentoo linux (not sure version) *Live Server PHP Version* 5.2.5 (haven't upgraded it, i've been lazy) *Which HTTP Server Software (+version)?* apache 2.2 *IDE / Dev Environment* Zend Studio for eclipse, macvim *Preferred Framework(s)?* Zend Framework *Do you Unit Test?* None my of current projects, but future stuff i'm really going to push for it. *Most Used Internal PHP Class* pdo, mysqli *Preferred OS CMS* none really *Anything else you use frequently in you're PHP'ing that's worth mentioning:* Have to say using eclipse/zend for eclipse with mylyn/tasktop really helps in keeping up with bug tracking (trac) with all my projects. Helps to keep everything organized, especially when management wants to know what's going on. SVN is also crucial and its nice to have commit hooks to work with trac. --Brendon On Oct 16, 2008, at 7:14 PM, Nathan Rixham wrote: Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* *Dev OS* *Dev PHP Version* *Live Server OS* *Live Server PHP Version* *Which HTTP Server Software (+version)?* *IDE / Dev Environment* *Preferred Framework(s)?* *Do you Unit Test?* *Most Used Internal PHP Class* *Preferred OS CMS* *Anything else you use frequently in you're PHP'ing that's worth mentioning:* ps: I'm not asking for any kind of research project, just interested and interested to know what's most common + might learn something/ find some new tools/toys! pps: will reply myself as well but if I do here it'll make your intertwined replies messy! Many Regards Nathan -- 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] PHP IDE needed
I really like zend studio for eclipse, debugger is slow at times on large projects. I hope, zend said they won't, is provide xdebug support for zend studio. I also really like working with mylyn. --Brendon On Aug 27, 2008, at 1:06 AM, Sascha Braun wrote: Hi people, I have a webproject which is round about 3 GB in size. I was usually using eclipse to work with the software but over time eclipse became very instable regarding that project. As soon as I open classes with 2000 or more lines of code in it, an out of memory error occours. So I need a new IDE for linux. Please tell me which IDE might be a true alternative for projects at that size. Thank you friends, kind regards, Sascha -- 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] PHP editor
Combo of Zend neon and vim (macvim). --Brendon On Nov 11, 2007, at 10:35 AM, Frank Lopes wrote: Being very new to PHP (empahsis on VERY...), I wonder what most of you use to develop in PHP? I have experimented with DreamWeaver, UltraEdit, phoDesigner, Eclipse etc. What would you recommend that I use? -- 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] PHP App User Permissions Tecnique
I am building a web based community forum type software using PHP. I am currently working on how different user privelages are handled. Each user is part of a group and each group has varying degrees of privelages. I need to add in functionality which at the begginning of every script check the permission level of the user accessing the page. There are about 15 different permissions. I am debating whether i should store all the permission abilities into session variables and they can quickly be checked throughout the script, or whether i should query the database to check to see if the user has adequate group permissions to perform a certain function. Could someone give me some advice as to which would be more advisable? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Forcing page refresh with http headers?
Can you use some kind of random url? eg ?cachebuster=url encode the date and time here its what i do to bust cache. -Original Message- From: Daniel Joyce [mailto:[EMAIL PROTECTED] Sent: Saturday, March 08, 2003 7:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Forcing page refresh with http headers? Daniel Joyce wrote: I've used the HTTP Location, Expire, and Refresh headers to no effect. What's the magic order to 1) Refer a browser to a new location 2) Ensure that the location is refreshed? I want to avoid using meta http-equiv tags, as this complicates things in the system I am designing -Daniel A little more explanation. I'm wanting to seperate form from content and processing... So page a.php has a form, that invokes b.php in it's action. b.php redirects the browser to a new page to show that processing is occuring, then redirects back to a.php when done. ( a.php is a query and display front end, so you enter a query, and it should reload displaying the results ). No matter what I use, whether http headers, or session vars to tell it to reload, when a.php is reloaded by the browser, it's somehow pulling it from cache, and not requesting the page again. If I tell the browser to refresh, then it displays the data. I've tried cache control headers, etc, to get the browser to reload the page, and it doesn't work... -Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: forking sendmail
On Sun, 16 Feb 2003 01:05:58 -0300, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, On 02/16/2003 12:15 AM, Brendon wrote: I've been trying to fork sendmail because DNS checks cause it to be slow delivering messages... Here's what i've tried, and many other variations... $str = to: [EMAIL PROTECTED]\nfrom: [EMAIL PROTECTED]\nsubject: test; exec('sendmail -i -t $str /dev/null'); Has anyone successfully acomplished something like this? ideas? You are duplicating a function that sendmail already provides given the right switches. Anyway, if you want to raise the message delivery throughput, the best you can do is to use the deferred mode so it does not take a long time to queue the messages and then sendmail will take care of the delivery next time it runs the queue. In that case you may want to look at this class for composing and sending messages that comes with sub-class to deliver with sendmail program directly. It comes with options to let you choose the appropriate sendmail delivery mode: http://www.phpclasses.org/mimemessage Thanks for that. I'll look at it and see if I can modify it for my needs. The problem isn't sendmail priority. The system isn't doing anything and sendmail isn't doing anything. The problem is that it takes sendmail awhile for it to respond. No. sendmail isn't broke, it just has to do a lot of thinking before it talks to a client. I want to remove that problem from the equation by puting sendmail in the background once its called. Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Protecting files
On Mon, 17 Feb 2003 15:32:31 -0600 (CST), Greg Donald [EMAIL PROTECTED] wrote: On Mon, 17 Feb 2003, PR wrote: How can I protect my php files among other files like templates (.inc) and mysql config (config.inc) files being copied/read/imported (front page)/used by other applications other than my site... can this be done by htaccess? is so , could anyone point me into right direction? The best way is to not allow anyone else access to your files to begin with. I assume you mean you are in a shared hosting environment? Your system administrators can and should have permissions setup so no one can mess with your stuff by default. If that is not the case, I'd move. What kind of system is it? If it's unix you can make use of chown and chmod to protect your stuff. If it's windows, I don't know. How can a user protect their files with chmod? You're PHP script runs as the web server's user. Calling the php script and telling it to browse the files on the server would give you access to read other users' data. Or am I wrong? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: URL of calling page
On Sun, 16 Feb 2003 15:58:30 -0600, Acleave [EMAIL PROTECTED] wrote: I believe there's a way in PHP to get the URL of the page that called the current page but can't find it. Is there such a function? Or would I have to use another script (like Javascript)? What I mean is if I click on a link on index.html to jeremiah.php I can call the function and find out I just came from index.html (and not henry.php or fred.php). If you're trying to get back to a page, I would suggest passing the current page as a variable to the next page. e.g. a href=somepage.php?return_to=? echo urlencode($_SERVER['REQUEST_URI']) ?Subscribe/a -- _BB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] processing status page
Hello, How can I create a page that notifies the user their request is being processed after they click a submit button? For example, they type in some information, the page then says Your request is processing... Maybe a few animated ... 's for eyecandy, and then once the process is completed, they get directed to a desired page. Regards, Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] processing status page
Yes, I'm using a form. How do you do it with Javascript? Do you have an example you can give? Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] forking sendmail
I've been trying to fork sendmail because DNS checks cause it to be slow delivering messages... Here's what i've tried, and many other variations... $str = to: [EMAIL PROTECTED]\nfrom: [EMAIL PROTECTED]\nsubject: test; exec('sendmail -i -t $str /dev/null'); Has anyone successfully acomplished something like this? ideas? Regards, Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $_SESSION['user']['nickname'] = Herbert
On Mon, 10 Feb 2003 16:36:58 +0100, Sascha Braun [EMAIL PROTECTED] wrote: Hi is something wrong with the above show argument? Under Windows everything works fine under linux it just shows me an 0 or 1, maybe for true or false, dont know. Nothing really, except maybe the missing semicolon. Maybe your problem is you haven't started the session? And don't forget, you need to start the session on every page. Good luck. -- _BB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: [PHP] Mass Mailing with PHP MySQL
I had an idea myself to do this. But I've held off because I want to do something rather robust but still flexible. I was going to use a database table.. with the fields.. to.. from.. subject.. body.. etc I was then going to have a cron task that ran every so often grabbing the records 1000-2000 at a time and sending them... if the script timed out the queue would still be there next time it ran. Would this be a good solution for a heavy amount of emails? The benefit I guess is I can use any language I like to read the database and send the emails but still queue it up with php or any other language. I could even add a date time field to send emails at a certain time as well. I think it would also free the user up faster as the records could be added to the database with Insert delay. The series of inserts would be done and the user can forget about it. A simple admin page with a Count query could monitor the queues progress. Am I on the right track? any ideas additions? Cheers Brendon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 3:09 PM To: [EMAIL PROTECTED] Subject: Fwd: Re: [PHP] Mass Mailing with PHP MySQL - Forwarded message from [EMAIL PROTECTED] - Date: Sun, 19 Jan 2003 22:07:34 -0700 From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: Re: [PHP] Mass Mailing with PHP MySQL To: Justin French [EMAIL PROTECTED] Is Peter McNulty out there anywhere? Don't have a lot of experience with mailing scripts, but I use the one found at codingclick.com Anyone else? RW Quoting Justin French [EMAIL PROTECTED]: ### A while() loop will, at some point, break. this is because the script ### will ### timeout on the server before you send to any large lists... when I say ### large, this could be 100 address', or could be 10,000 -- it all depends ### on ### your server/ISP and server load at certain times. ### ### A better/simpler solution would be to build a Bcc header field using the ### while loop, then only send ONE email to 1000's of email address' via the ### Bcc ### field, just like you would from Outlook. ### ### BUT, your host may impose restrictions on how many emails you can send in ### one Bcc... my host has a limit of 100. ### ### So, I tend to send a few emails of 50-ish people per email to my list, ### balancing the two above issues. ### ### ### There are also some simple/complex classes on phpclasses.org (esp the one ### by ### manuel lemmos) which can overcome both these problems, with various ### methods. ### ### I haven't used them yet, basically because I don't see the need yet, ### given ### my small lists. ### ### ### Justin ### ### ### ### ### ### ### ### ### ### on 20/01/03 3:21 PM, Tim Thorburn ([EMAIL PROTECTED]) wrote: ### ### Hi, ### ### I'm working on a mailing solution for a client. His site collects ### email ### address from a 'Send this site to a friend' page (user enters their ### email ### address and up to 10 other addresses - a message is then sent to the 10 ### addresses from the users own email address). The addresses are then ### stored ### in a MySQL database - a column for the users email address, and then a ### column each for the additional 10 addresses. ### ### Now the client would like to have the ability to send an email to all ### addresses collected at once - to inform the addresses of a sale, etc. ### I'm ### guessing for this to be done, I'd have to select all the DISTINCT email ### addresses from the 11 columns (users email, and the 10 addresses), then ### use ### a loop to send the mail out. ### ### I had planned on using PHP's mail() function - does anyone know of any ### limitations imposed by this method? Normally, I'd contact the ISP and ### ask ### them directly, however it's been several weeks since they've answered ### the ### phones. ### ### Does anyone have any other/better options that I should pursue? This ### will ### be my first mass mailing typed job so I'm not really sure where to begin ### or ### if I'm on the right path at all. ### ### Thanks ### -Tim ### ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### - End forwarded message - -- 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] exec() not exec-ing?
Could you just get the php script to send the commands to schedule it as a task to run via cron etc in say 1 minute into the future... that command would be done quickly.. and the server could continue.. i did something similar when i used NT/ASP. But i'm just a php newbie so i could be lost.. cheers Brendon -Original Message- From: gilrain [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 04, 2003 8:04 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] exec() not exec-ing? I'm back to square one, if I can't run that script without the browser waiting on it to finish... For instance, is there a way for my PHP script to log into my shell account and *then* send the command? Since I can execute the script, but PHP can't, this would solve the problem -- if it's possible. gilrain -- 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] I'm in need of a PHP web host recommendation
ProHosters http://www.prohosters.com Good plans, Good Price, Great Support. I recommend the semi dedicated plans. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Unusual HTTP header control
Not that I've ever used them but wouldn't Sockets be a good place to start? Cheers Brendon -Original Message- From: Morgan Hughes [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 17, 2002 4:40 PM To: PHP General List Subject: [PHP] Unusual HTTP header control Hello list, I'm hoping someone can shed some light on a problem I'm having with the header() function... I'm building a script to spool MP3 files to Winamp/xmms using the HTTP protocol. And it works fine, except I want to suppress the normal HTTP/1.1 200 OK header sent by PHP/Apache and instead send ICY 200 OK, to fool the player into thinking it's listening to a ShoutCast server... Does anyone know how to do this? The docs on header() don't mention it, nor do the user notes... Any ideas? Thanks! -- Morgan Hughes C programmer and highly caffeinated mammal. [EMAIL PROTECTED] ICQ: 79293356 -- 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] Help with project
*slaps head* *screams* feel better now *gets back to work* Cheers Brendon -Original Message- From: Karl James [mailto:karl.james;verizon.net] Sent: Thursday, November 14, 2002 3:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Help with project Hello people Im doing the fantasy football project I have created a form for my owners to register there username and passwords So that it gets added to the dbase. My question is what should be my next part? Make a login page if so I would need help with that and wonder if there is anyone Out there that can help me. Then from there, once you log in it will take you to your team action page Where you can add/delete trade players. I need help with interface and login script as well.pleas email me. Karl. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] refresh
http://www.google.com/search?q=meta+refresh+html+code Google is your friend. Cheers Brendon -Original Message- From: Shaun [mailto:johan;novtel.co.za] Sent: Monday, November 11, 2002 9:24 PM To: [EMAIL PROTECTED] Subject: [PHP] refresh hi, How do you refresh a page in php? If i cannot wat is the code or meta(i think) to do so? Thanks Shaun -- 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] How good is PHP to ASP?
I've noticed this question a fair bit, having to convince clients and employers of a technology.. DO you guys really have that much trouble selling php?? I tend to leave the development environment out of conversations all together and talk product features, scalability, promotion etc I do this with both the PHP and ASP projects I build. If you really need to convince someone then there the kind of person people who would really only need a name to associate things to. This list was posted a few days ago... This list is designed to convice teh boss (no type-o). If your boss is a bandwagon kind of guy, afraid to take risks, this is for you- er- him. And you. Him in that he can read it, you in that if he accepts LAMP, you're life will be a much more joyous existance ;) - Apache: By far the most popular web server, with 60.54% market share. Its closest competitor, Microsoft's IIS, has 28.89%. If all variants of each server are counted, Apache's install base increases to 62.17%, while IIS manages 29.42%). Statistics are from http://www.netcraft.net/survey Apache users: Yahoo! Amazon.com AltaVista BBC mp3.com SlashDot HP W3C IBM Verizon FEMA Infoseek PHP: In April 2002, PHP overtook ASP as the #1 server-side scripting language on the internet. In April, PHP was used by 24% of the sites on the Internet. Over the past two years PHP has averaged a 6.5% monthly growth rate. Source: zend.com/news/zendpr.php?id=49 PHP users: Cisco CMG Vodafone Motorola Siemens Ericsson CBS Unilever Philips BMC NTT Air Canada Lufthansa OnVista Lycos Europe Deutsche Bank NASA W3C MySQL: It isn't as easy to determine which database a site uses, but here is a list of sites that do use MySQL, according to MySQL.com: Yahoo! Finance Texas Instruments U.S. Census Bureau NASA Omaha Steaks Slashdot Cross Media Marketing Corp Powell's Books Department of Academic Information Systems Avacom Net Services Blue World Communications CoreSense Ericsson handy.de mobile.de Nemo-Q Silicon Storage Technology, Inc. Virage Linux: I can't find a list for this... I figured these out by trying big sites that came to mind. I didn't encounter a single Microsoft site, but I did get a few *BSD sites, and several Solaris sites. FBI Google Amazon AltaVista Slashdot Verizon FEMA CNN Security: Here's a list of security companies/groups that run any LAMP component: Security Focus(LA) Symantec (L) CERT (LA) Packet Storm (A) FBI (L) OSVDB (LA) At Stake (LA) Netcraft (LA) TESO (L) Phenoelit (LA) Doxpara (LAP) NGS Software (LAMP) PivX (LAP) Grey Magic(LAMP) Phrack(AP) *** -Original Message- From: Wee Keat [Amorphosium] [mailto:weekeat;amorphosium.com] Sent: Monday, November 11, 2002 11:42 AM To: PHP [General] Subject: [PHP] How good is PHP to ASP? Hi all, I'm not too sure if this is the right place to get my answers but I really need to know this: How can I convince my clients that PHP is really good? I mean not a lot of non-programmers have heard of PHP language. Most of them only heard of things like C/C++, ASP and the like. So, how can I prove to them that PHP is a much better language to use? Can anyone point me to the right resources for me to show and prove to my clients? Thanks a lot and sorry if this is the wrong place to ask this question. Yours, Wee Keat Chin --- Don't find a fault; find a remedy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Convince teh boss
In the end it think comes down to use what you know best.. Php vs ASp vs JSp vs .Net consider your budget, clients needs, bosses needs, future needs etc. I came to Php as .Net came in. I really like Php, i also really like ASP. I learnt ASP first because my job required it, we had a IIS server already. There all just tools to me, used to implement the best solutions for myself or my clients in minimal time for minimal cost. You mind find convincing your boss with $$$ easier. Then again i know what you mean about Bandwagon Bosses and there fellow MBM (management by magazine)types. Cheers Brendon -Original Message- From: John Nichel [mailto:jnichel;by-tor.com] Sent: Thursday, November 07, 2002 5:59 PM To: Evan Nemerson Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Convince teh boss Nice list. I might be able to put it to work for me. BTW, if you want, you can add my site as a LAMP site (of course, as small as it is compared to the sites you have listed, you may not want too :) http://www.by-tor.com Evan Nemerson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Okay, it took me a long (expletive deleted) time, so I figured I should share. Here is a list of popular web sites running Apache, PHP, MySQL, and Linux. If there are any errors, I apologize. This is not meant to be a definitive work. In fact, I wasn't even planning on posting it... until i looked at the clock ;) This list is designed to convice teh boss (no type-o). If your boss is a bandwagon kind of guy, afraid to take risks, this is for you- er- him. And you. Him in that he can read it, you in that if he accepts LAMP, you're life will be a much more joyous existance ;) - Apache: By far the most popular web server, with 60.54% market share. Its closest competitor, Microsoft's IIS, has 28.89%. If all variants of each server are counted, Apache's install base increases to 62.17%, while IIS manages 29.42%). Statistics are from http://www.netcraft.net/survey Apache users: Yahoo! Amazon.com AltaVista BBC mp3.com SlashDot HP W3C IBM Verizon FEMA Infoseek PHP: In April 2002, PHP overtook ASP as the #1 server-side scripting language on the internet. In April, PHP was used by 24% of the sites on the Internet. Over the past two years PHP has averaged a 6.5% monthly growth rate. Source: zend.com/news/zendpr.php?id=49 PHP users: Cisco CMG Vodafone Motorola Siemens Ericsson CBS Unilever Philips BMC NTT Air Canada Lufthansa OnVista Lycos Europe Deutsche Bank NASA W3C MySQL: It isn't as easy to determine which database a site uses, but here is a list of sites that do use MySQL, according to MySQL.com: Yahoo! Finance Texas Instruments U.S. Census Bureau NASA Omaha Steaks Slashdot Cross Media Marketing Corp Powell's Books Department of Academic Information Systems Avacom Net Services Blue World Communications CoreSense Ericsson handy.de mobile.de Nemo-Q Silicon Storage Technology, Inc. Virage Linux: I can't find a list for this... I figured these out by trying big sites that came to mind. I didn't encounter a single Microsoft site, but I did get a few *BSD sites, and several Solaris sites. FBI Google Amazon AltaVista Slashdot Verizon FEMA CNN Security: Here's a list of security companies/groups that run any LAMP component: Security Focus(LA) Symantec (L) CERT (LA) Packet Storm (A) FBI (L) OSVDB (LA) At Stake (LA) Netcraft (LA) TESO (L) Phenoelit (LA) Doxpara (LAP) NGS Software (LAMP) PivX (LAP) Grey Magic(LAMP) Phrack(AP) *** It should be noted that just because a component doesn't appear in the list doesn't mean it's not running. The only way I could figure out MySQL was sending a SYN to TCP/3306. If I got a SYN|ACK, I put an M. MySQL could be (should be) firewalled off, and infosec people know this. Also, infosec people tend to play with banners (hehe look @ TESO's - teso.scene.at), so it's entirely possible they're hiding something... Out of all the infosec sites I tried, I managed to find two Microsofts: NAI and Verisign. I didn't bother with ntbugtraq, windowssecurity, etc- then again, I didn't bother with linuxsecurity, root prompt, etc. Only went with groups who pay attention to all OS's... Phrack and OSVDB are a little biased, but they are still cross-platform. -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ygtO/rncFku1MdIRAmQpAJ9d+KkYSLhMriuZtI9jsjp3CAmZrACfaWJK Tf0R0hEMSICjAi6v9nz67GU= =Jj3Q -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit
RE: [PHP] Graphics question
If it's just the browser caching are you able to use something like graph.jpg?cachebust=something random here like a datetime or something. I'm not familiar with the way your doing it.. but I guess it has to be given a name to the browser somewhere doesn't it? I use this on pages and images as well as headers for things that must not be cached. Cheers Brendon -Original Message- From: Mike Mannakee [mailto:mike;basementideas.com] Sent: Friday, November 08, 2002 2:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Graphics question Jeez, this is simple. The browser is caching the image. There's no real way to fix that. There are some headers that may encourage the browser to not cache, but there is no sure way to control whether the users will have this setting overridden. imagedestroy($pic); is only freeing the memory used on the server while the script is executing. It's nice if you're doing a whole bunch of processing after generating the image but otherwise the memory is automatically freed when the script exits. It will do nothing to affect the copy that now sits in the browser's cache. In other words, you'll just have to hit reload. You can also search for specifics of the headers that are meant to stop a browser from caching. Mike @ Darwin [EMAIL PROTECTED] wrote in message news:ELEJIJLJOIJKFAHADGOMGEBHCBAA.superbus22;attbi.com... The reason imagedestroy() may have not worked for you is that maybe imagedestroy() is misspelled? If you misspelled it in the code then it won't work. Just a suggestion. - Darwin -Original Message- From: Robbert van Andel [mailto:robbert;vafam.com] Sent: Thursday, November 07, 2002 9:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Graphics question I have created a webpage that builds a table and graph using the GD functions. When I switch to another page or select a different month to build the table for, the graph.jpg does not rebuild. I have to press reload to make the graph render using the new data. I have used imagedistroy($pic) in the hopes that this will work, but it didn't. To elaborate on the situation, I first call imagecreate, then run the code to create the bar graph. I then use imagejpg($pic,$graphname) (or something ot that affect. I don't have access to the code at home). I then show the picture using echo img src=\$graph\; Finally I call imagedestroy($pic). Do you have any suggestions? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] checkboxes and selection lists
I use the following function for my check boxes in forms in PHP. Putting your form element creation into functions or even classes makes life so much easier when you have to validate / change code. you'll be glad you did it Cheers Brendon function fncwriteformcheckbox($strname, $strid, $strvalue, $varcheckedvalue) { /* fncWriteFormCheckbox Returns HTML for a checkbox element Accepts form element name as string Accepts form element ID as string Accepts form element value as string Accepts form element checked value as string or array. If checked value = default value then checked is written to the HTML stream Adapted from ASP functions by Ken Schaefer. */ define(PROC, fncwriteformcheckbox); $strtemp = input type=\checkbox\ name=\ . $strname . \ ID=\ . $strid . \ value=\ . $strvalue . \; if (is_Array($varcheckedvalue)) { foreach ($varcheckedvalue as $varcheckedvalueelement) { if ($varcheckedvalueelement == $strvalue) { $strtemp .= checked; break; } } } else { if ($varcheckedvalue == $strvalue) { $strtemp .= checked; } } $strtemp .= \n; return $strtemp; } - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 5:06 PM Subject: [PHP] checkboxes and selection lists Hi, as a beginner I find the way you declare variables through HTML-forms quite straightforward. But the reverse, to put the same variables back into a form field is not so obvious for selection lists and checkboxes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] getting HTML header from URL
Can't you just call the contents of the page into a variable and extract what you need with regular expressions? Php / Html makes no difference its all text to fopen.. ~ is there a way using fopen() or something similar to read an html/php file before it's loaded? ~~ I'm not sure what you mean here. How can you read anything with out opening it first?. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] .htaccess and mod rewrite.
I was looking over a tutorial on Php builder on making search engine friendly sites. While i got the concept of the tutorial and have it working here. I was wondering is it possible to get a php script to run out of the home directory of apache. tutorial: http://www.phpbuilder.com/columns/tim19990117.php3?page=1 in the tut they redirect any calls to files in /local/ to a php file in the root of the site. I'd like to if possible redirect it to script that's stored outside of the home folder for apache. Why you ask? 1. One file to update for any number of websites. 2. So clients don't go touching it. (i know permissions could solve this. but the reason one is more important.) In my .htaccess in the root of the site i have Options +FollowSymLinks RewriteEngine On RewriteRule local.*$ local.php Works fine.. but when i change it to a directory outside of the root it never gets to process or give an error. Any ideas? is it possible? Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: IIS 5 - ASP PHP dev enviorment
I don't know how familiar you are with PHP yet. But I recently decided to learn PHP myself having already learnt ASP. These 3 things helped me the most. This is a summary of the language differences between PHP, JScript/Javascript and VBScript http://php.weblogs.com/php_jscript_vbscript_1 ADOdb: encapsulates the different PHP database code into a class that's very similar to ADO. thus the name. This enables you to access a MySQL Db, an Access DB or anything else with little hassle. Handy from a cross platform point of view and when you might need to change DB's at a later date. http://php.weblogs.com/ADOdb And of course get the latest downloadable PHP manual. Happy Dabbling! Cheers Brendon -Original Message- From: Jason Morehouse [mailto:[EMAIL PROTECTED]] Sent: Monday, October 07, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: IIS 5 - ASP PHP dev enviorment If the PHP interpreter is installed, there is nothing stopping you from using both (morals aside). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: after mysqlfront?
DB tools (getting better every version) http://www.dbtools.com.br/EN/ Cheers Brendon -Original Message- From: Ernani Joppert Pontes Martins [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 6:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: after mysqlfront? Mascon or Free Mascon is really a good value HTH, Ernani Lallous [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello MySqlfront.de's mysqlfront program has been discontinued any equivalent alternative? thanks, Elias -- 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] ADOdb
Just curious as to what the general consensus of opinion is on the following class. Do many of you use it?. http://php.weblogs.com/ADOdb Coming over to PHP from ASP (I'm not really interested in learning .Net at the moment) I like that I can switch databases allot faster if the need occurs by using ADOdb. If I had written code just using MySQLconnect I'd have a hell of a time in the future. Cheers Brendon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] session
I am using PHP 4.06, IE 6 and Win 2000. When i register a session like so: session_start(); session_register(SESSION_UserID); and on the next page refer to the session: session_start(); if(!session_is_registered(SESSION_UserID)) { header(Location: error.php?ec=1); exit; } ? It registers a new session: I then have a session as so in the sessons directory: SESSION_UserID|s:1:1;SESSION_UPERMS|s:1:1; and a blank new one. any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: session
well i have a solution to my problem that makes no sense if i declare session_start(); on my login.html page which precedes these two pages it works and is now login.php this page creates the session and all is well if i create session_start(); on the next page and leave it off my login.php page i get multiple sessions. I cannot find any reason behind this and no one seems to have any idea what i am talking about Thanks anyway Brendon Brendon [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am using PHP 4.06, IE 6 and Win 2000. When i register a session like so: session_start(); session_register(SESSION_UserID); and on the next page refer to the session: session_start(); if(!session_is_registered(SESSION_UserID)) { header(Location: error.php?ec=1); exit; } ? It registers a new session: I then have a session as so in the sessons directory: SESSION_UserID|s:1:1;SESSION_UPERMS|s:1:1; and a blank new one. any ideas? -- 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]