Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 15th, 2004, 04:28 PM
Authorized User
 
Join Date: Dec 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default php downloads instead of running

The php was working okay for a few weeks on my windows xp home laptop but now its not.

The local info script works fine

<?
phpinfo();
?>

but if I make my own script and save it as a .php it tries to download instead of execute.

I uninstalled and re-installed php and the web server, and in fact changed from abyss web server to apache, still my scripts no longer run. They used to work okay a week ago.

What can I do?

 
Old February 16th, 2004, 11:08 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

if you edit the file you put the <?phpinfo();?> in to an echo "test"; statement or anything else, does it work? If it does then you are having file permission problems...

why are you using apache with windoze? you might as well use iis

 
Old February 16th, 2004, 03:25 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What's the filename of your local info script?

Is it .php, or something else (e.g. '.php4'?)


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Running PHP Triad on Win98 - Help with email? timmaher Pro PHP 5 November 22nd, 2006 03:43 AM
Problem running php files on IIS sami1925 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 14th, 2005 09:41 AM
Problem running PHP locally shoreman BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 April 24th, 2005 11:37 AM
Running cmd line .EXE through PHP geolast PHP How-To 2 January 6th, 2005 02:34 PM
Php running problem Yee PHP How-To 5 October 26th, 2004 08:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.