Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
getting php scripts to run on local machine
Old 11-01-2006, 10:14 AM getting php scripts to run on local machine
matt w's Avatar
Super Talker

Posts: 136
Location: kalamazoo
Trades: 0
I tried running small test php scripts from the www folder on PHP 1-8, and I get this string in the address bar:
http://shell.windows.com/fileassoc/0409/xml/redir.asp?Ext=php

and nothing in the window. The www folder is in the PHP 1-8 folder and not inside the PHP folder.

Do you have a suggestion?

I feel like I'm making some fundamental mistake, but I can't tell what it is. Do I need to run a particular type of script for output to show up? (Is my machine running the script, but not showing me any output?)

Below are a couple of the php files I'm running. Double clicking on their icons:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

and,

<?php phpinfo(); ?>

Thank you,

matt
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
 
Register now for full access!
Old 11-01-2006, 03:42 PM Re: getting php scripts to run on local machine
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
php has to run from a PHP enabled server it will NOT run simply from the hard drive
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-01-2006, 06:40 PM Re: getting php scripts to run on local machine
feraira's Avatar
BeTheBand!

Posts: 350
Trades: 0
Quote:
Originally Posted by chrishirst View Post
php has to run from a PHP enabled server it will NOT run simply from the hard drive
Search google for Easy PHP
feraira is offline
Reply With Quote
View Public Profile
 
Old 11-01-2006, 08:34 PM Re: getting php scripts to run on local machine
matt w's Avatar
Super Talker

Posts: 136
Location: kalamazoo
Trades: 0
Quote:
Originally Posted by chrishirst View Post
php has to run from a PHP enabled server it will NOT run simply from the hard drive
Easy php 1-8 comes with apache and mysql (in the same folder).
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Old 11-02-2006, 04:26 AM Re: getting php scripts to run on local machine
Novice Talker

Posts: 5
Name: alamsyah
Trades: 0
Try open localhost first then see the result , maybe U already change documentroot but you did'nt realized that

I prefer use xampp for development :-)
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
alamster is offline
Reply With Quote
View Public Profile Visit alamster's homepage!
 
Old 11-04-2006, 06:13 PM Re: getting php scripts to run on local machine
matt w's Avatar
Super Talker

Posts: 136
Location: kalamazoo
Trades: 0
Thankyou to all!

Ahh the wonders of being a beginner!

I found this (Googled) page to be really helpful to someone of my level of skill:
http://www.homeandlearn.co.uk/php/php.html

matt w
matt w is offline
Reply With Quote
View Public Profile Visit matt w's homepage!
 
Reply     « Reply to getting php scripts to run on local machine
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23151 seconds with 12 queries