[PHP] Re: PHP vs. ASP
Well, I personally prefer PHP over ASP because better support from webhosting companies, but ASP has some good points. This is especially the case if you can setup the complete hosting environment yourself and have some money to spend. First of all databases. PHP has support for a limited but interesting list of databases, especially the support for mysql and postgres is handy for a webserver. On the other hand, ASP has good support for most bussiness servers (ORACLE MS SQL Server,) with OLE-DB and a lot more databases with ODBC. The development tools. Definately a win for ASP (with vb.net C# and C++ you have a complete IDE and with Dreamweaver Ultradev you can pretty much point and click. SO you can choose whatever tool you like. PHP has very limited IDE's. Price. ASP solutions are mostly build with Windows 2000 Server and MS SQL Server or Oracle and an expensive IDE. So it's pretty expensive to build. PHP is mostly used with Linux, Apache and MySQL and is a lot cheaper (you only need to buy the hardware and the software is virtually free) Programming language: This is off course a personal taste but with ASP (.net) you can use VB/C++/C#. So if you are used to VB or C++ it's a bit easier to start with. Modules. Both have a lot of free tools available. However I personally find the PHP modules more usefull. (With the exception of the Crystal Report generator in .net, pretty usable reports without a lot of work). It's a bit easier for a novice to get started with ASP as with PHP, and it's pertty easy to make the project look good. So, if you have the cash and some inexperienced programmers working for you ASP is the save bet. If you have a small company, are a student, depend on webhosting or are a pretty experienced programmer, PHP might be a better choose. Robert Klinkenberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] RE: PHP vs. ASP
Off course PHP does support Oracle and the like. What I wanted to say is that PHP support most common databases, but if your company needs support for some strange database you can't access it very fast and easily (especially when you use PHP on Unix). On the other hand with ASP you can access anything that has an ODBC driver with a reasonable speed. And there are a whole lot more databases out there than the say 10-20 PHP supports directly. However, the support in PHP works pretty well 95% of the time for me, but this is something where Microsofts size is an advantage, they can (and have with ODBC) create an industry standard, and database vendors actively spend time and resources to create a stable and fast interface to Microsoft products. By the way, you can use iODBC in PHP to access ODBC databases but it is a bit slow for me :-( Robert Klinkenberg -Oorspronkelijk bericht- Van: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, January 09, 2002 5:52 PM Aan: Robert Klinkenberg CC: [EMAIL PROTECTED] Onderwerp: Re: PHP vs. ASP I don't want to start a war, but last time I looked PHP had native support for every database I'd ever heard of including Oracle, SQLServer, etc... Just don't want the guy doing the report that php is database limited... On Wed, 9 Jan 2002, Robert Klinkenberg wrote: > Well, I personally prefer PHP over ASP because better support from > webhosting companies, but ASP has some good points. > This is especially the case if you can setup the complete hosting > environment yourself and have some money to spend. > > First of all databases. PHP has support for a limited but interesting list > of databases, especially the support for mysql and postgres is handy for a > webserver. On the other hand, ASP has good support for most bussiness > servers (ORACLE MS SQL Server,) with OLE-DB and a lot more databases > with ODBC. -- 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] SSL & php
SSL encrypts the data between the user and your webserver only It does not encrypt data send by you to your mailserver, nor does it influence the way your mailserver sends the mailmessage to the mailserver of the user. (in plain text) So, you need to encrypt the data in the email. It is however not that easy to catch a mailmessage while in transit and I assume that both you mailserver and the mailserver of the user are both secure. Thus for simple things this mostly isn't a real issue. If you use encryption you might want to use something standard like PGP, so the user can use his normal email program to read the mail. Robert Klinkenberg -- 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] alzheimers and confused
It depends on how you exactly formulated the test // if((!strpos($yourimage, ".jpg")) or (!strpos($yourimage, ".jpeg"))) if((!strpos($yourimage, ".jpg")) and (!strpos($yourimage, ".jpeg"))) THe first is if !jpg or !jpeg while the second if statement tests for if !jpg and !jpeg another way to test this is if !(jpg or jpeg) basicly the first one doesn't work because when the filename is jpg it isn't jpeg so the code executes and when it's jpeg it isn't jpg, and again the code will execute. the two other tests will correctly test if it's either jpg or jpeg. Robert Klinkenberg -Oorspronkelijk bericht- Van: jtjohnston [mailto:[EMAIL PROTECTED]] Verzonden: Saturday, November 17, 2001 3:45 AM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] alzheimers and confused OK kids, I'm not 19 ... my old brain gets tired easily and my wife is complaining that I stay up too late PHPing :) Putting the rest aside, why does AND work and not OR. OR was what I meant? I meant ... if the string doesn't contain .jpg or the string doesn't contain .jpeg ... > ERROR! John -- 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] Client Side Printing
As the printing is done by the browser and not by anything controlled by PHP, it is impossible to create a solution for this with PHP. You might be able to change your browser settings with some javascript for this function but not with PHP. Remember: PHP is run on the webserver and returns a 'plain' html page to the client. It can't do any client side processing. Javascript(and java apps) on the other hand are run on the client and can interface with the browser. Robert Klinkenberg -Oorspronkelijk bericht- Van: Ye Tun [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, December 19, 2001 6:21 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Client Side Printing Hello, I am not sure if this is common question. I am just starting to write php code and I found one problem with printing. If my php server is sitting on 5th floor of our network and staff at 1st floor want to print the page without those URL and header included in the printout (just like printing invoice out of the intranet) at the printer directly connected to his/er client computer, how can I write php code for that? What function should I use.? REgards, Ye Tun -- 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] Stopping stolen / spoofed / linked sessions
Depends on what you want to do, first you have to define what are valid sessions, So think of things like this - One Session can only come from one IP address - A session ID that was created n minutes ago is no longer valid - A user using Netscape x can't be using IExplorer y After a user connects to you with a session ID you could check all those things yourself in your PHP script and respond appropriately. In this case, store the session in a Database with the remote IP address, expire the Session and check the referer. That should block a lot of script kiddies but of course slows down the site. Also, it's not that hard to create cookies by hand so that won't stop people who realy want to enter your site :-( and remember sessions are not meant to be secure, that is why we have SSL :-) Robert Klinkenberg > -Oorspronkelijk bericht- > Van: Bill Rausch [SMTP:[EMAIL PROTECTED]] > Verzonden:Saturday, June 30, 2001 12:43 AM > Aan: [EMAIL PROTECTED] > Onderwerp:AW: [PHP] Stopping stolen / spoofed / linked sessions > > Sebastian Stadtlich said: > > >there is an option in php ini : > > > >session.referer_check = > > > >which should fit your needs > > > >not sure how to use it, but probably one of the php-developers on this > >list can assist... > > I looked at this thing and can't figure out that it does very much. > If someone makes a web page that contains a link to my site that > contains the PHPSESSID=... then that session id will be invalid. > However, if they just type the same string into their browser by > hand, it is accepted? > > It seems that there is no stopping session spoofing if using the URL > method. The only work around is to expire sessions quickly or to > require that cookies be used? > -- 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] Overriding PHP build-in functions
Is it possible to override the php build-in functions without changing the PHP base distribution? We want to encode our scripts but zend is a bit expensive so we are looking to write something ourself. (encryption libs are freely available, so the main problem is changing the file open function so that it decodes the file while reading it from disk) Robert Klinkenberg -- 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]