473,856 Members | 1,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Errors won't show up even with error_reporting (E_ALL) and ini_set("displa y_errors","1")


Here's my code:

<?php

error_reporting (E_ALL);
ini_set("displa y_startup_error s","1");
ini_set("displa y_errors","1");

wefw
wefwef=wefwe
2349023909()
;wrgwrg ====232

phpinfo(); ?>
I get a blank page.

If I take out the crap, it prints phpinfo() just fine.

PHP 4.3.something.. .

Jun 19 '07 #1
2 14771
On Jun 19, 7:07 pm, mrbog <dterr...@hotma il.comwrote:
Here's my code:

<?php

error_reporting (E_ALL);
ini_set("displa y_startup_error s","1");
ini_set("displa y_errors","1");

wefw
wefwef=wefwe
2349023909()
;wrgwrg ====232

phpinfo(); ?>

I get a blank page.

If I take out the crap, it prints phpinfo() just fine.

PHP 4.3.something.. .
You have a syntax error, so the script can't even be parsed. If it
can't be parsed it can't be executed, so your error_reporting () and
ini_set() commands aren't even being run.

If you set those in php.ini (which is read before the script is
parsed) you should see the error.

Jun 19 '07 #2
On Jun 19, 7:11 pm, ZeldorBlat <zeldorb...@gma il.comwrote:
On Jun 19, 7:07 pm, mrbog <dterr...@hotma il.comwrote:
Here's my code:
<?php
error_reporting (E_ALL);
ini_set("displa y_startup_error s","1");
ini_set("displa y_errors","1");
wefw
wefwef=wefwe
2349023909()
;wrgwrg ====232
phpinfo(); ?>
I get a blank page.
If I take out the crap, it prints phpinfo() just fine.
PHP 4.3.something.. .

You have a syntax error, so the script can't even be parsed. If it
can't be parsed it can't be executed, so your error_reporting () and
ini_set() commands aren't even being run.

If you set those in php.ini (which is read before the script is
parsed) you should see the error.

Ah. figures. thanks.

Jun 19 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2533
by: Deane | last post by:
Has anyone had experience with "function_exists" not finding a function that you KNOW you've defined? I have defined a function we'll call "foo": 1. I know that function has been parsed, because code lower down the script executes a function in the same include file. 2. The function name appears in the "get_defined_functions" array. 3. If I just call the function (without bothering to check if it
1
6523
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
6
2450
by: SuperFool | last post by:
This has got to be one of those questions only a serious newbie would come up with.... Basicly: I select all the city names in the table and turn them into a pull down menu (code below) print "<form action=\"update-city.php\" method=\"post\" name=\"theform\">"; print "<SELECT id=\"city\">\n"; while ($row =mysql_fetch_object($result)) { foreach ($row as $col=>$val){
14
5519
riverdale1567
by: riverdale1567 | last post by:
Hi I am a newbie trying to get some of my first code working, yada yada yada. I have a drop down box which chooses a state then takes the post data to 'processform2.php' to use that to pull up all the rows which have the corresponding state. I am getting this 'Parse error: syntax error, unexpected T_STRING in /home/attorney/public_html/' on line 13 <? $username="XXXXXXXX"; $password="XXXXXX"; $database="XXXXXXXX";
0
9920
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11063
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10699
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10790
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9535
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7098
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5960
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4176
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.