Old 11-23-2003   #1 (permalink)
culex
Guest
 
Posts: n/a

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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2003   #2 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
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.
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2003   #3 (permalink)
culex
Guest
 
Posts: n/a

Thanks alot Digital.

This is a whole lot better than uploading to a host and testing.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2003   #4 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
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...
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2003   #5 (permalink)
culex
Guest
 
Posts: n/a

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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-23-2003   #6 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
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...
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-24-2003   #7 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
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..
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-24-2003   #8 (permalink)
culex
Guest
 
Posts: n/a

I hope you can figure out what's wrong.
Attached Files
File Type: zip shoutbox.zip (3.4 KB, 22 views)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-24-2003   #9 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
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..
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-24-2003   #10 (permalink)
culex
Guest
 
Posts: n/a

Ok. Thanks.

Well, I just used the shoutbox.php from the older version of Webfroot Shoutbox2.32. Now it works.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-25-2003   #11 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
ok, that is good, the source of the one you have is hideous, and not well designed..
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-25-2003   #12 (permalink)
Sheep Worrier
 
Man1c M0g's Avatar
 
Join Date: Sep 2003
Location: Portsmouth, UK.
Posts: 4,105
Blog Entries: 14

Send a message via ICQ to Man1c M0g Send a message via MSN to Man1c M0g Send a message via Skype™ to Man1c M0g
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
Man1c M0g is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 11-25-2003   #13 (permalink)
Local Biorust Beast
 
Order's Avatar
 
Join Date: Oct 2003
Location: San Diego, CA, USA
Posts: 2,253

Send a message via AIM to Order Send a message via MSN to Order Send a message via Yahoo to Order
For it to work, that is easy, for it be good, that is another story
__________________
Order is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 03:07 PM.
Content Relevant URLs by vBSEO 3.2.0

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT