Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Archive > Archives of Old Posts > Web Design and Development (archive)

 
 
Thread Tools Search this Thread Display Modes
Old Oct 22, 2005, 01:30 AM   #1
yklxcq
macrumors member
 
Join Date: Jun 2005
PHP error message does not show in safari,help!

When i have made some syntax error of php in my page, and my windows machine can show some error message,e.g. tell me the line number of the error; however, in Mac os x, i just a blank screen, no error message at all, can someone help me to get the error message function out?
The broswer i am using are FireFox and Safari.
thx
yklxcq is offline   0
Old Oct 23, 2005, 12:56 AM   #2
Rower_CPU
Demi-God (Moderator)
 
Rower_CPU's Avatar
 
Join Date: Oct 2001
Location: San Diego, CA
The only reason it should doing that is if there are styles or javascript preventing the error from displaying on Mac browsers.

Do you have a page we can look at that does this?
__________________
Join MacRumors.com - Team Folding!
Rower_CPU is offline   0
Old Oct 23, 2005, 05:39 AM   #3
yklxcq
Thread Starter
macrumors member
 
Join Date: Jun 2005
Quote:
Originally Posted by Rower_CPU
The only reason it should doing that is if there are styles or javascript preventing the error from displaying on Mac browsers.

Do you have a page we can look at that does this?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>php_testing</title>
</head>

<body>
<?php
ini_set('display_errors','1');
$my_array=("one","Two","Three")
foreach ($my_array as $value)
echo "Value is:".$value;
}
?>

</body>
</html>

The code above got syntax error, e.g. $my_array=("one","Two","Three") should be $my_array=array("one","Two","Three"), but when i ran it, all i get is a blank screen, no error message at all
yklxcq is offline   0
Old Oct 23, 2005, 05:51 AM   #4
Nermal
Demi-God (Moderator)
 
Nermal's Avatar
 
Join Date: Dec 2002
Location: Whakatane, New Zealand
Are you connecting to the same server with both Windows and Mac, or are you hosting the PHP page on two different servers (one Windows, one Mac)?

OS 10.3 (Panther) included PHP by default, but 10.4 (Tiger) doesn't seem to have it anymore, and you'll need to install it manually.
Nermal is offline   0
Old Oct 23, 2005, 06:14 AM   #5
yklxcq
Thread Starter
macrumors member
 
Join Date: Jun 2005
The error message is showing now, what i have done is just go to the config file and change display_error=On; however, i found the error message most of time does not make any sence, if the syntax error occurred in line 20, the actual line number most of time always be the line number of my start PHP tag position , and i have try it in windows, same php code, same syntax error, the error line number is different, windows machine gave more accurate line numbers, why????
yklxcq is offline   0
Old Oct 23, 2005, 06:17 AM   #6
Nermal
Demi-God (Moderator)
 
Nermal's Avatar
 
Join Date: Dec 2002
Location: Whakatane, New Zealand
So you are running two different servers? Are they running different versions of PHP?
Nermal is offline   0
Old Oct 24, 2005, 12:37 AM   #7
yklxcq
Thread Starter
macrumors member
 
Join Date: Jun 2005
Quote:
Originally Posted by Nermal
So you are running two different servers? Are they running different versions of PHP?
I am running one server, the apache on my Mac only, with PHP version 5.
yklxcq is offline   0
Old Oct 24, 2005, 12:51 AM   #8
Nermal
Demi-God (Moderator)
 
Nermal's Avatar
 
Join Date: Dec 2002
Location: Whakatane, New Zealand
OK, I'm completely baffled now. I don't see how your Windows computer was throwing up errors in the first place without the display_errors variable set, let alone why they're giving different line numbers
Nermal is offline   0
Old Oct 24, 2005, 11:01 AM   #9
superbovine
macrumors 68030
 
superbovine's Avatar
 
Join Date: Nov 2003
run the script form the command line on your back and post what output you get. you check your /var/log files also? Also, have you tried testing from a remote Mac instead of the local server?
superbovine is offline   0

 
MacRumors Forums > Archive > Archives of Old Posts > Web Design and Development (archive)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
iTunes update; new music does not show in music tab Kid Red Mac Applications and Mac App Store 0 Aug 27, 2011 05:57 PM
JS Slideshow will not show in Safari candyvfowler Web Design and Development 1 May 29, 2011 09:00 AM
OS 10.6 Automator/Services: created a service but it does not show in Finder/Services StationV Mac OS X 2 Mar 21, 2011 11:31 AM
Itunes does not show in web browser-OSX 10.3.9 maryjude Mac OS X 2 Aug 8, 2010 12:42 PM
Website Logo not showing in Safari only SpaceKitty Web Design and Development 7 May 9, 2009 09:39 AM


All times are GMT -5. The time now is 09:45 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC