I just started a new project on a new virtual server.
If I write a small script, it executes fine.
If there is an error in the small script, I get no output at all,
but the browser shows "done."
here is the small script:
<?php
session_start();
$debug=1;
if ($debug) {
error_reporting(E_ALL);
echo "<br />SESSION:<br />";
print_r($_SESSION);
echo "<br />POST:<br />";
print_r($_POST);
echo "<br />";
}
echo " duh";
echo "double duh";
?>
If I remove the semicolon after echo " duh"; to generate a syntax
error, I get no output at all. no error is reported in the browser.
Any ideas ?
bill 9 11851
bill wrote:
I just started a new project on a new virtual server.
If I write a small script, it executes fine.
If there is an error in the small script, I get no output at all, but
the browser shows "done."
here is the small script:
<?php
session_start();
$debug=1;
if ($debug) {
error_reporting(E_ALL);
echo "<br />SESSION:<br />";
print_r($_SESSION);
echo "<br />POST:<br />";
print_r($_POST);
echo "<br />";
}
echo " duh";
echo "double duh";
?>
If I remove the semicolon after echo " duh"; to generate a syntax error,
I get no output at all. no error is reported in the browser.
Any ideas ?
bill
Check the error_reporting and display_errors in php.ini
I get this on our live servers all the time but we can't turn the
reporting on, so I usually download to an internal dev machine
and test on there with all errors/display on.
bill wrote:
I just started a new project on a new virtual server.
If I write a small script, it executes fine.
If there is an error in the small script, I get no output at all, but
the browser shows "done."
here is the small script:
<?php
session_start();
$debug=1;
if ($debug) {
error_reporting(E_ALL);
echo "<br />SESSION:<br />";
print_r($_SESSION);
echo "<br />POST:<br />";
print_r($_POST);
echo "<br />";
}
echo " duh";
echo "double duh";
?>
If I remove the semicolon after echo " duh"; to generate a syntax error,
I get no output at all. no error is reported in the browser.
Any ideas ?
bill
I forgot to mention that this is a new php5 installation on a
remote host. But the same thing happens when I request it be
executed as php4 (by changing the extension to php4).
bill
On Oct 10, 10:33 am, Tyno Gendo <tyno.ge...@example.netwrote:
>
I get this on our live servers all the time but we can't turn the
reporting on, so I usually download to an internal dev machine
and test on there with all errors/display on.
Why not turn the reporting on and display off? That way you'll at
least have a logfile to examine when bad things happen.
On Oct 10, 10:28 am, bill <nob...@spamcop.netwrote:
I just started a new project on a new virtual server.
If I write a small script, it executes fine.
If there is an error in the small script, I get no output at all,
but the browser shows "done."
here is the small script:
<?php
session_start();
$debug=1;
if ($debug) {
error_reporting(E_ALL);
echo "<br />SESSION:<br />";
print_r($_SESSION);
echo "<br />POST:<br />";
print_r($_POST);
echo "<br />";
}
echo " duh";
echo "double duh";
?>
If I remove the semicolon after echo " duh"; to generate a syntax
error, I get no output at all. no error is reported in the browser.
Any ideas ?
bill
You need to enable error reporting and/or display errors in php.ini.
If it's turned off there and there's a syntax error your call to
error_reporting() will never happen since the code cannot be compiled,
much less executed.
Tyno Gendo wrote:
bill wrote:
>I just started a new project on a new virtual server. If I write a small script, it executes fine.
If there is an error in the small script, I get no output at all, but the browser shows "done."
here is the small script: <?php session_start(); $debug=1; if ($debug) { error_reporting(E_ALL); echo "<br />SESSION:<br />"; print_r($_SESSION); echo "<br />POST:<br />"; print_r($_POST); echo "<br />"; } echo " duh"; echo "double duh"; ?>
If I remove the semicolon after echo " duh"; to generate a syntax error, I get no output at all. no error is reported in the browser.
Any ideas ?
bill
Check the error_reporting and display_errors in php.ini
I get this on our live servers all the time but we can't turn the
reporting on, so I usually download to an internal dev machine
and test on there with all errors/display on.
php.ini has a blank for display_errors and 2047 for error_reporting.
using ini_set, what are valid values for display_errors ?
bill
Tyno Gendo wrote:
Check the error_reporting and display_errors in php.ini
I get this on our live servers all the time but we can't turn the
reporting on, so I usually download to an internal dev machine
and test on there with all errors/display on.
php.ini has a blank for display_errors and 2047 for error_reporting.
using ini_set, what are valid values for display_errors ?
bill
bill wrote:
Tyno Gendo wrote:
>Check the error_reporting and display_errors in php.ini
I get this on our live servers all the time but we can't turn the reporting on, so I usually download to an internal dev machine and test on there with all errors/display on.
php.ini has a blank for display_errors and 2047 for error_reporting.
using ini_set, what are valid values for display_errors ?
bill
You can't use ini_set to display syntax errors. Since there is a syntax
error, none of the code gets executed - including syntax errors.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
Jerry Stuckle wrote:
bill wrote:
>Tyno Gendo wrote:
>>Check the error_reporting and display_errors in php.ini
I get this on our live servers all the time but we can't turn the reporting on, so I usually download to an internal dev machine and test on there with all errors/display on.
php.ini has a blank for display_errors and 2047 for error_reporting.
using ini_set, what are valid values for display_errors ? bill
You can't use ini_set to display syntax errors. Since there is a syntax
error, none of the code gets executed - including syntax errors.
Well, heck. I can reach the ceiling by pulling myself up by my
bootstraps.
Because the web host runs php as a fastcgi, they had to create a
php.ini in my cgi-bin directory that I could edit.
Thanks all, now all is well.
bill
bill wrote:
Jerry Stuckle wrote:
>bill wrote:
>>Tyno Gendo wrote:
Check the error_reporting and display_errors in php.ini
I get this on our live servers all the time but we can't turn the reporting on, so I usually download to an internal dev machine and test on there with all errors/display on.
php.ini has a blank for display_errors and 2047 for error_reporting.
using ini_set, what are valid values for display_errors ? bill You can't use ini_set to display syntax errors. Since there is a syntax error, none of the code gets executed - including syntax errors.
Well, heck. I can reach the ceiling by pulling myself up by my bootstraps.
Because the web host runs php as a fastcgi, they had to create a php.ini
in my cgi-bin directory that I could edit.
Thanks all, now all is well.
bill
A poor workaround. Get a development system going. You should never
have display_errors enabled on a production system.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
================== This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Winterbottom |
last post by:
Some time ago Steve Jorgenson, (I think it was he), wrote of possible
problems using the intellisense-friendly "Form_" syntax to refer to forms
and their controls. At the time I responded that I'd...
|
by: Berend |
last post by:
when I try to write to a database I get a syntax error
I made the code a simple as possible bur also the VS generated code
gives the same error. WHY?
private void button1_Click(object sender,...
|
by: chump1708 |
last post by:
main(int argc, char *argv)
{
(main && argc) ? main(argc-1, NULL) : return 0; //line 1
}
1. Can I know why using return causes an illegal syntax...I guess it
has something to do with command...
|
by: fieldfallow |
last post by:
Hello all,
Before stating my question, I should mention that I'm fairly new to C.
Now, I attempted a small demo that prints out the values of C's numeric
types, both uninitialised and after...
|
by: Sandesh |
last post by:
Hello All,
Me saying " has any body come across such error would be
underestimating".
Well I am getting a very peculiar and unique error "Line 1: Incorrect
syntax near 'Actions'."
...
|
by: DC |
last post by:
The problem
I'm using the .NET GridView and FormView objects for the first time and
im getting the error "An OleDbParameter with ParameterName '@ID' is not
contained by this...
|
by: ronrsr |
last post by:
no matter where I place this imported file,the statement after it in
the main program gets a syntax error, regardless of the syntax.
I think I may have changed something in this file, but I'm...
|
by: Flic |
last post by:
Hi,
I have a basic db that I access with MySQL query browser. Everything
seems fine to me but I am using this db as part of a php shopping
basket and when I try to add an item I get:
Notice:...
|
by: Soniad |
last post by:
Hello,
I am excecuting a stored procedure in my ASP page , it has one out parameter (@confirm) . after executing the procedure i want to retreive this out parameter and assign it to variable...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |