|
|
#1 |
|
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 |
|
|
|
0
|
|
|
#2 |
|
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! |
|
|
|
0
|
|
|
#3 | |
|
Quote:
<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 |
||
|
|
0
|
|
|
#4 |
|
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. |
|
|
|
0
|
|
|
#5 |
|
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????
|
|
|
|
0
|
|
|
#6 |
|
So you are running two different servers? Are they running different versions of PHP?
|
|
|
|
0
|
|
|
#7 | |
|
Quote:
|
||
|
|
0
|
|
|
#8 |
|
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
|
|
|
|
0
|
|
|
#9 |
|
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?
|
|
|
|
0
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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.




Linear Mode

