11-23-2003
|
#1 (permalink)
|
|
Guest
|
Server Set-Up
I want to set-up a local server on my computer to test out PHP and MySQL but I am having major diffuculties. Everytime I open a .html website with .php coding or files, it doesn't appear or asks me to download the .php file. HELP! Thanks in advance.
|
|
|
|
11-23-2003
|
#2 (permalink)
|
|
Local Biorust Beast
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253
|
I have had little luck in setting up a web server with php and mysql, it is difficult to get all the mime settings correct...
My suggestion is to go to http://www.hotscripts.com and click on PHP, then go to Servers, IBServer works great for me, and there is a little in the way of setting up and running it.
|
|
|
11-23-2003
|
#3 (permalink)
|
|
Guest
|
Thanks alot Digital.
This is a whole lot better than uploading to a host and testing.
|
|
|
|
11-23-2003
|
#4 (permalink)
|
|
Sheep Worrier
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
|
Setting up the webserver correctly is utterly crucial Culex. If you are setting up on Windows and are using an Apache-based server, remember to add the PHP mimetype to the apache config file or the server will think its a download and try downloading it...
|
|
|
11-23-2003
|
#5 (permalink)
|
|
Guest
|
Thanks for the tip Mog. It led me to find out why my php files weren't working. I was opening them up directly instead of using the browser through http://localhost. I'm so silly.
More bad news. I need more help. After I had set-up the database for Webfroot Shoutbox, I ran it and got this error...
Parse error: parse error, unexpected $ in c:\ibserver\www\shoutbox\shoutbox.php on line 221
I've just barely dove into php, I'm afraid I'm at the deep end. Thanks in advance.
|
|
|
|
11-23-2003
|
#6 (permalink)
|
|
Sheep Worrier
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
|
OOOH! You got me there - my shoutbox.php doesnt go past line 220! Just as a general note i'd make sure you have Register_Globals and server-side parsing set on in the php.ini and httpd.ini files. Huge troubles if you dont...
|
|
|
11-24-2003
|
#7 (permalink)
|
|
Local Biorust Beast
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253
|
post the shoutbox.php file here, zip it though, since we do not have php as an allowed filetype..
it is a parse error, so it has something set up in the code..
|
|
|
11-24-2003
|
#8 (permalink)
|
|
Guest
|
I hope you can figure out what's wrong.
|
|
|
|
11-24-2003
|
#9 (permalink)
|
|
Local Biorust Beast
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253
|
Ahh, the shoutbox source is a mess coding wise, my suggestion is to get a simplier box.. this one is way too much code, and who ever coded it did not close all the brackets, which is the cause of the errors, but I do not know where, and having code this bad is not a help..
|
|
|
11-24-2003
|
#10 (permalink)
|
|
Guest
|
Ok. Thanks.
Well, I just used the shoutbox.php from the older version of Webfroot Shoutbox2.32. Now it works.
|
|
|
|
11-25-2003
|
#11 (permalink)
|
|
Local Biorust Beast
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253
|
ok, that is good, the source of the one you have is hideous, and not well designed..
|
|
|
11-25-2003
|
#12 (permalink)
|
|
Sheep Worrier
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
|
Well, Webfroot's shoutbox works... just not very well! I run a vastly modified version myself, and it seems a little better... not much tho... :P
|
|
|
11-25-2003
|
#13 (permalink)
|
|
Local Biorust Beast
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253
|
For it to work, that is easy, for it be good, that is another story
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 03:07 PM. Content Relevant URLs by vBSEO 3.2.0
|