PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

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:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old April 23rd, 2004, 02:58 PM
Stu187 Stu187 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 3 Stu187 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
php problem with IE

So, I'm very new to PHP, however; when I try to run a script in IE (calling localhost/test.php) and there is an error in the script, the page loads blank, and I get no error message (not from IE or Apache). I've found that Apache is logging the errors in a .txt file, but the other people that I have talked to say that an error message appears on screen. Anyone have an idea of why my errors aren't showing up and how to get them to?
Any help will be extrememly appreciated. Thanks all.

Stu

Reply With Quote
  #2  
Old April 23rd, 2004, 04:57 PM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 5
Send a message via MSN to Spongy
Welcome to the forums Stu! I hope you'll have a pleasant stay here. Don't forget to read the forumrules, you can find them here

Regarding your question:
Do you have a link for a livetest?
It is useful to post your code here so maybe we can see the fault immediately.

Cheers,
__________________
Work to live, don't live to work

Reply With Quote
  #3  
Old April 23rd, 2004, 09:02 PM
Stu187 Stu187 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 3 Stu187 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
errors

I don't have a link to a livetest. Even if I know the error in the code, is there a way to get apache to print an error statement to the screen when a script is called that has an error?
(Even basic syntax errors)
In the error text file things come up as:

[Thu Apr 22 14:55:09 2004] [error] [client 127.0.0.1] PHP Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in c:\Program Files\Apache Group\Apache\htdocs\freight.php on line 12

But the screen in explorer is just a blank, white screen with no error message.

Stu

Reply With Quote
  #4  
Old April 24th, 2004, 11:05 PM
Stu187 Stu187 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 3 Stu187 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
found it

For anyone who is interested, I found the error. In the php.ini file, there is a line for display_errors. It is supposed to default to on, but for some reason in my file it was off. Easy fix, and all is well.

Stu

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > php problem with IE


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 3 hosted by Hostway