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.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 19th, 2007, 11:34
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 19th, 2007, 12:10
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 19th, 2007, 12:17
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 19th, 2007, 12:30
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 19th, 2007, 13:09
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 19th, 2007, 20:36
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 19th, 2007, 20:37
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 19th, 2007, 20:39
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,801
Thanks: 0
Thanked 17 Times in 17 Posts
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.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 19th, 2007, 20:56
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 19th, 2007, 21:02
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP Problem

Have you installed php?

If you haven't follow the instructions in the wamp tutorial from www.puremango.co.uk
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 19th, 2007, 21:04
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Sep 19th, 2007, 21:24
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Sep 19th, 2007, 21:36
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Sep 19th, 2007, 21:41
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Sep 19th, 2007, 22:09
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP Problem

What are you having probles with? PHP?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Sep 19th, 2007, 22:12
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Sep 20th, 2007, 06:16
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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....)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old Sep 20th, 2007, 08:17
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
Old Sep 20th, 2007, 18:55
Resources Team
Join Date: Jun 2007
Location: UK
Posts: 453
Thanks: 1
Thanked 4 Times in 4 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!