Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 2nd, 2002, 12:16 AM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
having trouble with PHP not parsing

I have been playing with installing apache 1.3.14 on Win2K machine, with php 4.2.3 .... both installed and I followed Ben's tutorial, as well as a few others on the subject but php does not seem to parse anything. I have a working server, can see it from all other machines on the intranet, but php even though it reads as running in the terminal, it is not doing its job.

I didn't want to run latest version of apache since I saw a bug warning about apache 2.* and latest php, but maybe the apache version is too old?

I'd post my httpd file but it is soooo long. Help!

Also, is anyone running phpmyadmin? I've used it and it works very well. Soon as I get apache running with php and mysql, I'll try phpmyadmin.
__________________
bow wow!

Reply With Quote
  #2  
Old October 2nd, 2002, 05:17 AM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
so when you run a php script eg index.php, it justs prints out the code instead of parsing it?!?!? sounds to me apache isnt running the php parser when a php file is called..

make sure that you have the following line in your httpd.conf file

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

this tells apache when a php file is called pase it with the php4apache.dll file

if that still doesnt work, make sure you copied the 2 dll files from the php file into the windows/system32/ folder, if that still doesnt work, that means that you have installed the wrong version of php or you installed it in correctly

Reply With Quote
  #3  
Old October 4th, 2002, 03:04 AM
littleblackdog littleblackdog is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Anchorage
Posts: 118 littleblackdog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I am trying EasyPHP

Although I do not speak French, I decided to load EasyPHP and it loaded great! I am off any playing with PHP and Apache, even phpmyadmin and mysql, but there are a few problems.

Code that works on my online server doesn't work on my personal server. The php works in some cases, in others it writes out in input forms or in the place of variables. Strange.

Has anyone else played with EasyPHP? I am interested in seeing someones entire httpd file for apache is I could. I think register globals is on and maybe it needs to be off... I can't remember.

Also, I can't seem to get links to work... and writing to the db returns errors of "No access" to the server. I own the server, don't I? Well, I have alot to learn.

How about a site dedicated to EasyPHP in English? Anyone?

Thanks for all the help.

Reply With Quote
  #4  
Old January 17th, 2003, 09:11 PM
garywee garywee is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Singapore
Posts: 1 garywee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Ben Rowe
so when you run a php script eg index.php, it justs prints out the code instead of parsing it?!?!? sounds to me apache isnt running the php parser when a php file is called..

make sure that you have the following line in your httpd.conf file

LoadModule php4_module c:/php/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php

this tells apache when a php file is called pase it with the php4apache.dll file

if that still doesnt work, make sure you copied the 2 dll files from the php file into the windows/system32/ folder, if that still doesnt work, that means that you have installed the wrong version of php or you installed it in correctly


Hi i hope someone can help me with this:

I'd copied the 2 dll files into the location.
the problem is i cant copy and paste the 3 lines of command into httpd. It says not enough memory. i have 256 Ram.
what do i do?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > having trouble with PHP not parsing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT