This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's
Technology & Calculator Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.
Computer Tech Support =>
Technology & Calculator Open Topic
Author |
Message |
|
Newbie
Bandwidth Hog
Joined: 23 Jan 2004 Posts: 2247
|
Posted: 01 Oct 2008 05:25:32 pm Post subject: |
|
|
How do I get PHP 5.2.6 working with MySql 5.0.67? I've already got PHP 5.2.6 working with Apache 2.2 but cant get MySql to work. |
|
Back to top |
|
|
David The XORcist!
Advanced Member
Joined: 20 May 2003 Posts: 268
|
|
Back to top |
|
|
Newbie
Bandwidth Hog
Joined: 23 Jan 2004 Posts: 2247
|
Posted: 02 Oct 2008 11:46:01 am Post subject: |
|
|
David wrote:
Yeah I followed all of that, but mysql will still not work with php.
EDIT: Alright I think I may have found a problem. Apparently it thinks that my php.ini directory is C:\WINDOWS, although I never had a php.ini file in there it would still show phpinfo(). When I moved my php.ini file there I can no longer view my php file with phpinfo(). So I'm guessing php and Apache was not setup correctly.
Why would adding my php.ini file to C:\WINDOWS break it and cause it not to work?
Edit: PROBLEM SOLVED. I didn't have short tags enabled so "<?" was being recognized. Needed to change the script to <?php LOL. All works fine.
Last edited by Guest on 02 Oct 2008 02:34:39 pm; edited 1 time in total |
|
Back to top |
|
|
bananaman Indestructible
Calc Guru
Joined: 12 Sep 2005 Posts: 1124
|
Posted: 02 Oct 2008 04:26:18 pm Post subject: |
|
|
And now we find the reason why everybody says to use the full version of the tags.
:)
I'm glad you got your setup working correctly. |
|
Back to top |
|
|
bfr
Member
Joined: 13 Feb 2006 Posts: 108
|
Posted: 02 Oct 2008 05:15:38 pm Post subject: |
|
|
Even though in you have everything set up now, you, or anybody else, might want to check out xampp in the future. It easily sets up Apache HTTPD 2.2.9, MySQL 5.0.67, PHP 5.2.6 and PHP 4.4.9, phpMyAdmin 2.11.9.2, OpenSSL 0.9.8i, SQLite 2.8.15, and some other stuff (you can get the "lite" version if you don't want the other stuff) and includes upgrade packages to easily upgrade your xampp setup when upgrade are available, instead of trying to update each thing by yourself (although upgrade packages don't exist for the lite version). You can also easily install Perl and Tomcat as add-ons, too. |
|
Back to top |
|
|
Newbie
Bandwidth Hog
Joined: 23 Jan 2004 Posts: 2247
|
Posted: 02 Oct 2008 06:37:47 pm Post subject: |
|
|
bananaman wrote: And now we find the reason why everybody says to use the full version of the tags.
:)
I'm glad you got your setup working correctly.
[post="127505"]<{POST_SNAPBACK}>[/post]
So true. But thanks. Slackers never win. haha. Actually despite the fact I could change the php.ini to accommodate the short end version I didn't. I should just not be lazy that's all.
bfr wrote: Even though in you have everything set up now, you, or anybody else, might want to check out xampp in the future. It easily sets up Apache HTTPD 2.2.9, MySQL 5.0.67, PHP 5.2.6 and PHP 4.4.9, phpMyAdmin 2.11.9.2, OpenSSL 0.9.8i, SQLite 2.8.15, and some other stuff (you can get the "lite" version if you don't want the other stuff) and includes upgrade packages to easily upgrade your xampp setup when upgrade are available, instead of trying to update each thing by yourself (although upgrade packages don't exist for the lite version). You can also easily install Perl and Tomcat as add-ons, too.
[post="127506"]<{POST_SNAPBACK}>[/post]
Yeah I did install xampp, but I never find satisfaction in using it. I'm one of those people who prefer to do it themselves. But yeah anyone wanting to setup a development environment and doesn't want the hassle should check out xampp. |
|
Back to top |
|
|
benryves
Active Member
Joined: 23 Feb 2006 Posts: 564
|
Posted: 04 Oct 2008 09:05:28 pm Post subject: |
|
|
Alternatively on Windows use the bundled copy of IIS, where setting up PHP merely involves copying php.ini to %windir% and going Handler Mappings->Add Script Map and pointing *.php at php?isapi.dll. Good for lazy people! |
|
Back to top |
|
|
magicdanw pcGuru()
Calc Guru
Joined: 14 Feb 2007 Posts: 1110
|
Posted: 05 Oct 2008 12:44:21 am Post subject: |
|
|
I've found WampServer to be pretty easy to set up and very useful for building sites locally. |
|
Back to top |
|
|
koolmansam375
Advanced Member
Joined: 09 Oct 2004 Posts: 254
|
Posted: 05 Oct 2008 11:04:02 am Post subject: |
|
|
benryves wrote: Alternatively on Windows use the bundled copy of IIS, where setting up PHP merely involves copying php.ini to %windir% and going Handler Mappings->Add Script Map and pointing *.php at php?isapi.dll. Good for lazy people!
[post="127564"]<{POST_SNAPBACK}>[/post]
Quote: #445431 +(119)- [X]
<FireCat> Hmm, just wondered if using Windows, IIS, Mysql, and PHP would be called a WIMP platform
<modn> roflmfao
|
|
Back to top |
|
|
NETWizz Byte by bit
Bandwidth Hog
Joined: 20 May 2003 Posts: 2369
|
Posted: 05 Oct 2008 10:31:35 pm Post subject: |
|
|
In Windows:
Create an environmental variable for the System (not user) scope.
PHPRC and c:\php or wherever you PHP installation is located.
This is how to configure where PHP will look for php.ini
I would highly recommend using IIS if it is version 6.0 or higher. In other words, on Server 2003, IIS 6.0 and PHP is incredible. It is way better than Apache and PHP. I do not want to get into the whole Linux/Windows Apache/IIS debate again, but let me just say that Windows is really robust now.
Justin |
|
Back to top |
|
|
|
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
»
Go to Registration page