PHP Problem

This is a discussion on "PHP Problem" within the PHP Forum section. This forum, and the thread "PHP Problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 19th, 2007, 11:34
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
PHP Problem

Hi all!
Right, I don't really know how to explain this, but here goes!
When I am in work and editing PHP files, I use IIS to view my work that I have done, because without it, the php page wont appear!

So my question is, how can I view my PHP pages without using IIS?
because say when I am at home, I don't have IIS on there, so is there anyway I can still create PHP files and see the content at home without IIS!?

I hope I explained this well enough, just ask if I didn't!

Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote

  #2 (permalink)  
Old Sep 19th, 2007, 12:00
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP Problem

You could set up a testing server on your home computer...

www.apache2triad.net is a great bundle of apache server/PHP/Mysql that has a binary installer.

You can then check your pHP files using http://localhost

I use this on my laptop - it's great for testing purposes.

Cheers.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Sep 19th, 2007, 12:10
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: PHP Problem

You could also try winLamp http://sourceforge.net/projects/winlamp/

I prefer setting up WAMP without an installer becuase sometimes other versions went screwy.

You can find a tutorial on installing WAMP here http://www.puremango.co.uk/cm_wamp_97.php
Reply With Quote
  #4 (permalink)  
Old Sep 19th, 2007, 12:17
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

Thanks for all your help both of you!
But I am still a newbie at all of this!

So, at my home computer I don't have a server connected to it, or anything like that, is there anyway of doing it without one?

Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #5 (permalink)  
Old Sep 19th, 2007, 12:30
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: PHP Problem

It's how i test my site when making changes.

Using Apache and php etc is like viewing your site if it was hosted on a server.

When you have Apache and PHP installed, go to the htdocs directoty in the Apache folder and put your website that you are working on in there. When you open a browser, enter in the url window http://localhost and you will see your website
Reply With Quote
  #6 (permalink)  
Old Sep 19th, 2007, 13:09
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

Oo Right, well that sounds alot easier!

Thanks for your help, when I get home I will give that a go

Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #7 (permalink)  
Old Sep 19th, 2007, 20:36
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

Hi again!
I have installed that onto my computer now and have followed what you have said, but it is not working, this message is coming up when I go on http://localhost/:

If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
Seeing this instead of the website you expected?

This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.
The Apache documentation has been included with this distribution.
You are free to use the image below on an Apache-powered web server. Thanks for using Apache!
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #8 (permalink)  
Old Sep 19th, 2007, 20:37
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

anyone know how I can get around this?

Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #9 (permalink)  
Old Sep 19th, 2007, 20:39
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,650
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: PHP Problem

have you created a new folder in htdocs?

Once you've done that put your web files in that folder then you will be http://localhost/my_folder.
Reply With Quote
  #10 (permalink)  
Old Sep 19th, 2007, 20:56
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

Ok thanks for that, that helped me, because at least that file shows up!

But I am still having trouble seeing php files on there, because it is just coming up with the code!
Any recommendations on what to do next?

Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #11 (permalink)  
Old Sep 19th, 2007, 21:02
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: PHP Problem

Have you installed php?

If you haven't follow the instructions in the wamp tutorial from www.puremango.co.uk
Reply With Quote
  #12 (permalink)  
Old Sep 19th, 2007, 21:04
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: PHP Problem

Quote:
Originally Posted by Marc View Post
have you created a new folder in htdocs?

Once you've done that put your web files in that folder then you will be http://localhost/my_folder.
You do this if you want to test multiple sites which I imagine you want to do. if you don't then just delete all the rubbish in that folder so the htdocs folder is empty. When you eventually view your page again you will see your site
Reply With Quote
  #13 (permalink)  
Old Sep 19th, 2007, 21:24
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

I am struggling with downloading the PHP!

Because the link you sent me, is invalid, because that product is old, so I downloaded the newest version, went through the installation process, and it still wont work :S

any more help please ???

Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #14 (permalink)  
Old Sep 19th, 2007, 21:36
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: PHP Problem

What version are you trying to download?

I have all the files if you need them......apache 1.3, PHP5 and MySQL 4.0.23
Reply With Quote
  #15 (permalink)  
Old Sep 19th, 2007, 21:41
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

I have apache 2! and PHP 5.2.4!
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #16 (permalink)  
Old Sep 19th, 2007, 22:09
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: PHP Problem

What are you having probles with? PHP?
Reply With Quote
  #17 (permalink)  
Old Sep 19th, 2007, 22:12
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

Yeah!
Just the PHP! the apache is working and soo is MYSQL, but just that, and that is main thing i wanted it for!
Really annoying me now, so fink I may go to bed now!

Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #18 (permalink)  
Old Sep 20th, 2007, 06:16
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
Re: PHP Problem

There's also xampp, which is super easy to install and run. (If what you're trying to use doesn't work....)
Reply With Quote
  #19 (permalink)  
Old Sep 20th, 2007, 08:17
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

Thanks alot for all your help everyone!

&&&

Cheers AdRock for tha zip file, I will give that a go when I get home tonight!

Thanks
Cracka
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
  #20 (permalink)  
Old Sep 20th, 2007, 18:55
crackafaza's Avatar
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 452
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to crackafaza
Re: PHP Problem

I zipped that file, and followed that website as you suggested, and yet, when I open my local host, the code just comes up not the actual page!

Really infuriating now Lol!
__________________
Check out my Portfolio cfdesignz.co.uk and my blog at blog.cfdesignz.co.uk
Reply With Quote
Reply

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08


All times are GMT. The time now is 07:15.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43