I'm learning PHP, yeah! :)

Wednesday, July 10, 2002 by paxx | Discussion: WinCustomize Talk

No purpose to this post.
Just wanted to share this info. I installed PHP and MySQL and I'm in lesson 2 of the tutorial.
First Previous Page 2 of 2 Next Last
craeonics
Reply #21 Thursday, July 11, 2002 7:12 PM
Word of advice to paxxy now that he has stepped onto the Righteous Path: object oriented code is your friend!
Chris
Reply #22 Thursday, July 11, 2002 7:14 PM
Yep. If given an infinite number of monkeys who were to bang on an infinite number keyboards an infinite amount of time, staticically you would expect at least on .PL file to make sense to due to random chance. You'd be wrong
paxx
Reply #23 Thursday, July 11, 2002 9:15 PM
Hum, been told MySQL wasn't relational, oh well.
treetog
Reply #24 Thursday, July 11, 2002 9:19 PM
paxx, I think that a good person for you to ask if you have any doubts is Johanne, she is a PHP master
paxx
Reply #25 Thursday, July 11, 2002 9:24 PM
Hehehe! Already talked to her. Thanks though.
So far, I've managed to annoy 3 PHP programmer friends (including Johanne). Not bad for 3 days of learning.

Actually, the problem I had before was due to the fact that version 4.2 of PHP has the parameter "register_globals" in the PHP.INI set to off by default. I turned it back to ON and all my problems went away!
Thank you newsgroups.
joetheblow
Reply #26 Thursday, July 11, 2002 11:47 PM
soooo basically if I use asp like this site for example only 8 people can assess a certian part of my site at a time? so I and 7 other people click on the default page from some other site and if a ninth person is also doing it then CRASH!!! so why are they so interested in teaching it (especilly asp .NET) at school? Because it is Micro$oft? Well I do not expect allot of people on my site so I will probably go with asp. I guess I will use cfm for another... and php for the anime site. that one I expect allot of people over time. The site I am thinking about is windows. I guess the anime site will be linux.

register_globals.... cout>answer;
joetheblow
Reply #27 Thursday, July 11, 2002 11:48 PM
cout<<
Chris
Reply #28 Friday, July 12, 2002 12:24 AM
Joe, what paxx was referring to is that Microsoft Access is not an industrial strength database. It's not meant to be. It's meant to be a desktop database that can handle relatively few simultaneous connections. So its good for test/learning purposes or really small non-desktop applications. (I don't know what kind of load Access can handle).

In the real world, .NET applications use Microsoft's more industrial strength database called MS SQL Server.

Or they could use IBM's DB2 or Oracle, as long as there is an ODBC driver or ADO driver to allow third party databases to interact with the .NET platform.

Or you could use MySQL since it probably has an ODBC driver.

I don't know about using CFM (Cold Fusion) as Crae says, it costs money. And I don't know if you have access to IIS and ASP (depends on what OS you have).

A totally free alternative is to use Apache web server with PHP as your processing backend and MySQL or ProgreSQL as your database server.
craeonics
Reply #29 Friday, July 12, 2002 8:43 AM
Not sure if MySQL has an ODBC thing. The only experience I have with it is in combination with Apache and PHP. MySQL then has its own daemon listening on port something something, so you have the sql server running next to the httpd server (Apache in my case). PHP then accesses it via localhost and the correct port.

By the way, what I heard about Access is that it can only handle one connection at the same time. So weird!
Chris
Reply #30 Friday, July 12, 2002 9:35 AM
Crae, I thought I saw an ODBC driver for MySql somewhere, but I could be wrong (this was a long time ago). As for Access, one of my previous jobs, the company wanted to switch over to Access for the backend of ther enterprise app in order to offer a cheaper alternative. It was comedic, it sort of worked but was terrible and ended up giving up on the idea (at least while I was still there).
paxx
Reply #31 Friday, July 12, 2002 9:39 AM
No craeonics, MS Access can handle 8 simultaneous connections.

joetheblow: From what I understand, it doesn't mean that no more than 8 people can visit your site at the same time, it basically means that no more than 8 people can call the database at the same time. In other words, if every page of your site retieved data from an Access database, no more than 8 people could click on a link at the same time. Once the page has been retrieved and the visitor is reading it, it doesn't count as a connection anymore until he clicks on a link again. And no, the 9th person wouldn't crash but would receive a message of this sort "The maximum number of connections has been reached. Please try again later." Or something like that.
joetheblow
Reply #32 Friday, July 12, 2002 12:35 PM
oooooooooohhhhhhhhh.......

thanks for the insite...

apache and php sounds really good.

now I seem to understand access better as far as me using it as a back end for my web site. I will come up with a better statagy depending on what I use.

It will be a few months before anything gets really started. I wil be sure to ask more questions later.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01