-Original Message-
From: Christian Ista [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 3:17 PM
To: 'Jay Blanchard'
Subject: RE: [PHP] Error
How large is the page, can you send more? If not, can ou put line
numbers
on the lines?
Not a of lines 20 for the moment but more
Have you tried saving the pages with a .phps extension and looking at them
in a browser? That usually uncovers syntactical errors quite quickly.
Miles
At 10:08 PM 8/15/2002 +0200, Christian Ista wrote:
Havn't the foggiest idea what it means, but what has usually happened
is
that I missed a
rite,
without access to the php.ini file, how can i get php to print all errors on
my web server. it runs linux
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing
start your file with :
error_reporting(E_ALL);
Op woensdag 14 augustus 2002 20:09, schreef Georgie Casey:
rite,
without access to the php.ini file, how can i get php to print all errors
on my web server. it runs linux
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
I've searched the entire archives and google for a solution to this. There
are plenty of references to the Unable to fork error.. most having to do
with a bug in PHP 4.02. I writing the script for a remote Windows server
running PHP 4.21 so the bug shouldn't be a problem.. I can only assume I
Hi all. Im getting the above mentioned error: *Parse error*: parse
error, unexpected $ in *c:\program files\apache
group\apache\htdocs\login.php* on line *38* when I try to view the page
I just created. As a forewarning, I am very new to PHP, so I may have
done something stupid, and if it
that error appears many times to me...you can show some code so we all can
see what's wrong, but i've solved it adding a }, as i told you, manny times
it has appear to me, and that's the way i've solved it :D
From: Shiloh Madsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Error
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 June 2002 15:19
when I try and view stat.php I get this error:
Parse error: parse error, expecting `T_STRING' or
`T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To
PHP)\includes\stat.php on
?
Thanks,
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
BTW I have fixed the error now.
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday, June 23, 2002 2:11 PM
Subject: Re: [PHP] Error(Newbie)
$query = INSERT INTO `stats
$_COOKIE['tececo_stats'] =
bad_data','bad_time','bad_host','bad_referrer','bad_agent')#;
it would allow them to insert bad data into your table...
---John Holmes...
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 23, 2002 2:50 AM
Subject: Re: [PHP] Error
The only data returned by a browser in a Cookie header is the
name/value pairs. So, your example would not pose a threat of any sort.
The Referer and User-Agent are separate headers, but like all data
from the client, they should also not be trusted.
If you have magic quotes enabled, you're
The only data returned by a browser in a Cookie header is the
name/value pairs. So, your example would not pose a threat of any
sort.
The Referer and User-Agent are separate headers, but like all data
from the client, they should also not be trusted.
If you have magic quotes enabled,
Both the below are in the same dir.
The meta.array_create.php file works fine
elsewhere
when I try and view stat.phpI get this
error:
Parse error: parse error, expecting `T_STRING' or
`T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To PHP)\includes\stat.php
on line 7
What does
the single quotes (for the other
vars, too).
You don't need all of those backticks in your query, either...
---John Holmes...
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 22, 2002 10:19 AM
Subject: [PHP] Error(Newbie)
Both the below
$query = INSERT INTO `stats` (`vid`, `id`, `vn`, `time`, `host`, `referrer`,
`browser`) VALUES ('', '$id', '$_COOKIE
['tececo_stats']', '$time', '$_SERVER['REMOTE_HOST']', '$_SERVER['HTTP_REFERER']',
'$_SERVER
['HTTP_USER_AGENT']'); ;
I hope you are using addslashes on your $_COOKIE and
Do NOT do it that way! That may work now, but it may not in the future!
The correct way is to append. Like .$_COOKIE['tececo_stats'].
(include the quotes). Do it the same way for the others.
1LT John W. Holmes wrote
Try using $_COOKIE[tececo_stats] instead...without the single quotes
Why would this be the case? PHP is server-side and client independent...
-Original Message-
Your problem is undoubtably to do with the difference in line
endings on
mac/pc/unix.
This message is
Ed,
Read the rest of the email. The problem WASN'T to do with what CLIENT was
reading the page at the time, it was to do with what SERVER was running the
PHP code.
Saving his text files onto the Mac, and then trying to run them produced
Error on line 1, whilst saving and running the code on
Hi! I did some code, and I am getting warning messages everywhr, I know thr
is a code for it, can u help me? I forgot that msg.
keep in mind, I don't have the xs to php.ini... pls. tell me the settings
for the code file itself..
thanks.
--
_
Shashwat
Try the error_reporting function, which is also
a PHP directive in php.ini
http://www.php.net/manual/en/features.error-handling.php
http://www.php.net/error_reporting
Although you should just fix the errors ;)
Regards,
Philip Olson
On Wed, 19 Jun 2002, Shashwat Nagpal wrote:
Hi! I did
I'm running php 4 on a unix server and am experiencing a problem with error
reporting I'm getting on my mac.
When I get a parse error it won't tell me what line the error is on...it
simply says parse error on line 1. When I test the page on a pc I get an
error message that I can use... parse
Perhaps it was a typo, but parse error on line 1 does state the line
number.
tyler
On Tue, 2002-06-18 at 09:57, Kevin Ruiz wrote:
I'm running php 4 on a unix server and am experiencing a problem with error
reporting I'm getting on my mac.
When I get a parse error it won't tell me what line
Software http://www.openlinksw.com
Universal Data Access Virtuoso Universal Server
-Original Message-
From: Kevin Ruiz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 9:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Error Reporing Questions with Mac
I'm running php 4 on a unix
I'm sorry...I think I was unclear.
Even if my script has an error on say line 42 it still tells me that the
error is on line 1. I've done some debugging and now that there's only one
error on the page but it always tells me that the error is on line 1.
Thanks.
in article
Your problem is undoubtably to do with the difference in line endings on
mac/pc/unix.
Basically, when PHP parses your file, it see's it all as one line, and is
finding the error on LINE 1, which is correct.
When the same file is saved on a unix or pc system, the line endings are
different, and
i've seen this quite often and in my case, it always happens when you
have en error in an if or similar sentence. then it always tells me
theres an error on line 1 (ie 5.2 on mac os x).
chris
Am Dienstag den, 18. Juni 2002, um 17:12, schrieb Kevin Ruiz:
I'm sorry...I think I was unclear.
It's nothing you have to worry about, but you need to edit your php.ini
file and change the error reporting settings. Find the error_reporting
directives (there will be several, all but one commented out) and
uncomment the one that looks like:
error_reporting = E_ALL ~E_NOTICE ~E_WARNING
Hello folks,
When i tried to install php.My make command stops with the following error
gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `php_if_imagecreatefromgif':
gd.c:1209: `gdImageCreateFromGif' undeclared (first
I am getting this error with a new install of PHP4.2.1 and Zend
Optimizer 1.3.1:
The file '/tmp/phpr4WYQY' must be in the database directory or be
readable by all
I just updated PHP and the Zend Optimizer, and it had worked previously
with PHP4.1.2,
Any ideas??
Thanks
--
PHP General
Hey all,
I recently installed Apache2, PHP4.2 on my win2k box as a module. It
works fine however say a script has a syntax error all that happens is a
blank screen is displayed. No errors are shown and thus it is very hard
to debug when I don't know what the error is, and what line it occurs
On Monday 10 June 2002 09:42, Scott 'INtense!' Reismanis wrote:
Hey all,
I recently installed Apache2, PHP4.2 on my win2k box as a module. It
works fine however say a script has a syntax error all that happens is a
blank screen is displayed. No errors are shown and thus it is very hard
to
I got an error handler setup, and Im using trigger_error() to do certain
things.
function errorhandler($type, $msg, $file, $line)
{
switch ($type)
{
/*
case E_NOTICE:
$exit = FALSE;
break;
*/
case E_USER_WARNING:
pretty_error_display($msg);
Hi everybody,
I hope u can help me with this. This file should give me an error msg
that there is time-out coz of the loop. But it's not giving me anything.
What could be the problem?
Thx a lot
?php
$str = (0,0);
// redefine the user error constants - PHP 4 only
define (FATAL,E_USER_ERROR);
Hi to All,
Is there anyone know's why im receiving this error in compiling PHP-4.2.1
with oracle support in AIX. Im using oracle 7.3.4.0.0 .
Im having an configure error: Unsupported Oracle version!
Here's my config script:
./configure --with-apache=../apache_1.3.24 \
--with-enable-track-vars
ummm ur answer is in your question !!
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 May 2002 12:56 PM
To: php
Subject: [PHP] error in compling with oracle support
Hi to All,
Is there anyone know's why im receiving this error in compiling PHP
can i now where and why? pls
ummm ur answer is in your question !!
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 May 2002 12:56 PM
To: php
Subject: [PHP] error in compling with oracle support
Hi to All,
Is there anyone know's why
that's what ur error message would suggest ... try looking on the php site .
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 May 2002 1:49 PM
To: Peter
Subject: Re: [PHP] error in compling with oracle support
so you mean php does'nt support oracle
iday, 24 May 2002 12:56 PM
To: php
Subject: [PHP] error in compling with oracle support
Hi to All,
Is there anyone know's why im receiving this error in compiling
PHP-4.2.1
with oracle support in AIX. Im using oracle 7.3.4.0.0 .
Im having an configure error: Unsupported Oracle
TECTED]]
Sent: Friday, 24 May 2002 12:56 PM
To: php
Subject: [PHP] error in compling with oracle support
Hi to All,
Is there anyone know's why im receiving this error in compiling
PHP-4.2.1
with oracle support in AIX. Im using oracle 7.3.4.0.0 .
Im having an configure er
would suggest ... try looking on the php site
.
-Original Message-
From: Michael P. Carel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 May 2002 1:49 PM
To: Peter
Subject: Re: [PHP] error in compling with oracle support
so you mean php does'nt support oracle ver 7.3.4.0.0 ?
right
Hi,
I'm getting errors when trying to install PHP 4.2.1 on Solaris 2.8 with as
a Dynamic module and as a Static module.
The error for the Static Module creation is:
configure: error: Invalid Apache directory - unable to find httpd.h under
/usr/l
ocal/apache/include
The thing is, it does
Hello everyone.
I have been using PHP since version 4.0.6 and always
compile from source. I have not had a single problem
until now. I'm trying to upgrade from php-4.1.2 to
php-4.2.1, and when i make install php-4.2.1, *any*
PHP page i access throws off a ton of errors that
i've never seen
, May 09, 2002 4:00 PM
Subject: [PHP] error-catching
Hi!
When I open a database connection and i. e. the db-server is down,
I get a very long, long error message telling me that the server is down.
What I want to do is just echo a text, i. e. DB-Server down and leave
out
the error message
Hey there,
I just came across a really busy site due to the murder on Pim Fortuyn in
the Netherlands.
Anyways, this site gives a really nice error message. I put it below. Is
this a PHP function/mode/config option or where these things written by the
people who maintain PHP on that site?
It
Ferry,
I think this is a fairly standard error message suggesting that the
password information being passed to the underlying database is
incorrect.
It would be the settings to connect to the database that need to be
altered in this case.
Michael Egan
Warning: Access denied for user:
really nice error message. I put it below. Is this a PHP
function/mode/config option or where these things written by
the people who maintain PHP on that site?
MySQL Error : Connection Error
Error Number: 1045 Access denied for user: 'icon@localhost'
[etc]
A little of both I would
I just finished recompiling PHP, and attempt to start the webserver
agian, but i get the following error:
Setting up Web Service: Syntax error on line 58 of
/etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: undefined symbol:
Im trying to connect to a mssql server but i results a could not
connect to server error.
The server is Win2000 IIS running MSSQL 2000.
PHP 4.1.2
Server API CGI
mssql config:
mssql
MSSQL Support
enabled
Active Persistent Links
0
Active Links
0
Library version
7.0
Directive
Local
It does not work. Can somebody to help me!?!?!?
Each time I try to write with ming it does not work. I have Popup: The
instruction At 0x00b907fc referenced memory At 0x00abc000. The memory
could not Be written.
I maked a file .mdb by my self (if the file would not be portable...) I
use a
Anyone recommend a good one? I am in need of the following features:
1) Catch any type of errors,
2) Actions like: Show on the screen, log on a file or database, or email,
3) Different actions for each error level/warning type, etc..
I have searched Hotscripts, but only found classes to
On Thursday, April 18, 2002, at 08:53 AM, Julio Nobrega Trabalhando
wrote:
Anyone recommend a good one? I am in need of the following features:
1) Catch any type of errors,
2) Actions like: Show on the screen, log on a file or database, or
email,
3) Different actions for each error
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says...
Hi Tyler,
Thank you,
I checked the permissions and the ownership, all ok, but by inserting
the absolute path
in the page, the code is running and get the expected output from the
script. I realized that
I made the same mistake in
Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: Andrew Schoenherr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 13, 2002 12:54 AM
Subject: [PHP] Error accessing class
Hello,
PHP Version: 4.1.0, Apache Version: 1.3.12, Server: Linux 7.0
Class name
Hello,
PHP Version: 4.1.0, Apache Version: 1.3.12, Server: Linux 7.0
Class name: class.Htpasswd.php3
Thanks to Jason Wong for pointers on posting to the list, the parse
error was a simple omission of a quotation mark on my part.
This is the error I am getting...
Warning: Failed opening
).
Good luck,
Tyler Longren
Captain Jack Communications
www.captainjack.com
[EMAIL PROTECTED]
- Original Message -
From: Andrew Schoenherr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 13, 2002 12:54 AM
Subject: [PHP] Error accessing class
Hello,
PHP Version: 4.1.0, Apache
Would any one know why when I run command line php I get the following?
[root@*** ]# /usr/bin/php /data/web/root/***/getdata.php
X-Powered-By: PHP/4.1.2
Content-type: text/html
br
bFatal error/b: Call to undefined function: ftp_connect() in
b/data/web/root/***/getdata.php/b on line
Did you compile in ftp support? It's not there unless you do.
http://www.php.net/manual/en/ref.ftp.php
- Original Message -
From: Chris Kay [EMAIL PROTECTED]
Would any one know why when I run command line php I get the following?
[root@*** ]# /usr/bin/php
At our web hosting facillity we have several developers (each who recieve a seperate
email when an error occurs on the site there working on) and we would like to have
extra
data included in the log files which are written (such as the $_POST, $_GET, $_ENV, and
$_SERVER arrays), this would help
When I try to configure PHP 4.1.1 I get the following error:
checking whether to include ming support... no
checking for mnoGoSearch support... yes
checking for mnoGoSearch version... 3.1.19
checking for mSQL support... no
checking for Muscat support... no
checking for MySQL support... yes
On Friday 22 March 2002 00:29, Richard Fox wrote:
When I try to configure PHP 4.1.1 I get the following error:
configure: error: Cannot find header files under /usr/include/mysql
The command line I'm using to configure:
./configure --with-mysql=/usr/include/mysql
./configure
I want errors reported on a page when the mail()
function for any reason fails to send emails. FOr
example, if there is a malformed email address or
anything, and the mail is not sent, how can i catch
the Error and Display it on the page?
Thanks,
T. Edison Jr.
=
Rahul S. Johari (Director)
On Tue, 12 Mar 2002, Thomas Edison Jr. wrote:
I want errors reported on a page when the mail()
function for any reason fails to send emails. FOr
example, if there is a malformed email address or
anything, and the mail is not sent, how can i catch
the Error and Display it on the page?
the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
I want errors reported on a page when the mail()
function for any reason fails to send emails. FOr
example, if there is a malformed email address or
anything, and the mail is not sent, how can i catch
the Error and Display it on the
PROTECTED]]
Sent: Saturday, March 09, 2002 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Error Handler Problem
Hi All,
I tell my requierment first. Just in short I want to capture a
error of Undefined Function .so and so... .
I set Error Handler to
E_ALL ~E_ERROR
what does this error mean. What should i do to make it
portable to future version of php. I'm using version
4.1.0
Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference, modify the declaration
of [runtime function name]().
On Saturday 09 March 2002 17:25, Kancha . wrote:
what does this error mean. What should i do to make it
portable to future version of php. I'm using version
4.1.0
Warning: Call-time pass-by-reference has been
deprecated - argument passed by value; If you would
like to pass it by reference,
Hi All,
I tell my requierment first. Just in short I want to capture a
error of Undefined Function .so and so... .
I set Error Handler to
E_ALL ~E_ERROR and I set my own Error Handler to capture errors
then I called a Non-Existent Function intentionally.
in this case
]]
Sent: Saturday, March 09, 2002 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Error Handler Problem
Hi All,
I tell my requierment first. Just in short I want to capture a
error of Undefined Function .so and so... .
I set Error Handler to
E_ALL ~E_ERROR and I set my own
You have to check your php.ini and set a valid tmp directory for storing
session data. Look for the session section.
William.
El vie, 01-03-2002 a las 02:52, mm fernandez escribió:
hi. i get this error message whenever i open my page (except during the
first time i open it). Can someone
hi i get this error message whenever i open my page (except during the
first time i open it) Can someone tell me what this means?
Warning: open(/tmp\sess_4ed4219513a84c54eba4c1117756c572, O_RDWR) failed: m
(2) in C:\apache\htdocs\rs_alumni\alumniphp on line 2
Here is the beginning of my code:
Anyone know why someone would get a 405 Resource not allowed error while
trying to input to a PHP script from a form, using Windows XP, IIS 5 and PHP
1.1.1 (CGI Ver.)
_
Get your FREE download of MSN Explorer at
-O3 -march=i686
-o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot find -l--library=gmp
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory
`/data/software/php/php-4.1.1'
make: *** [all-recursive] Error 1
Please help.
Thanks,
bb
I am getting the following error after upgrading from PHP4.0.3 to PHP4.1.1
on Apache 1.3.9 and RedHat Linux 6.1. Complied as a dynamic module.
Cannot load /usr/modules/libphp4.so into server: /usr/modules/libphp4.so:
undefined symbol: ssl_onceonlyinit
Could anyone indicate why I may possibly be
Hi,
everytime I request a phpscript form my Apache I got an segmentation fault 11 in
apaches errorlog.
System is:
Apache 1.3.22, PHP 4.1.1, SuSE Linux 7.2 (2.2.19)
The backtrace:
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
Program received signal SIGSEGV, Segmentation
When trying to load Zend optimizer, the following error gets logged:
Failed loading /var/www/lib/ZendOptimizer.so: ld.so.1: \
/opt/apache/bin/httpd: fatal: relocation error: file \
/var/www/lib/ZendOptimizer.so: symbol _erealloc: referenced \
symbol not found
How can i include error notification, like if an MySQL error occurs, to notify me of
the offending
page and what the error was, while having the page die quietly or nicely, like an
message saying
that the webmaster will be notified please continue?
=
dan mccullough
Hi Dan,
How can i include error notification, like if an MySQL error occurs,
to notify me of the offending page and what the error was, while
having the page die quietly or nicely, like an message saying that
the webmaster will be notified please continue?
you can make a generic function to
Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]]
Sent: January 21, 2002 11:22 AM
To: PHP General List
Subject: [PHP] Error notification and pretty error page
How can i include error notification, like if an MySQL error
occurs, to notify me of the offending
page and what the error
Hi I am learning php with Sams leanr php in 24 hours.
This is one example
?php
function addNums($firstnum, $secondnum)
{
$result = $firstnum + $secondnum;
return $result;11: } // this is line 13
print addNums (3,5);
?
On Tuesday, January 8, 2002, at 09:37 AM, Dean Ouellette wrote:
Hi I am learning php with Sams leanr php in 24 hours.
This is one example
?php
function addNums($firstnum, $secondnum)
{
$result = $firstnum + $secondnum;
return $result;11:
Hey there,
I'm playing around with the logging options in the php.ini file.
I set this:
display_errors = Off
Because I don't want to visitors to see any errors (besides the errors I
define myself in the PHP script, which is exactly what this does... I only
print out things like can't open
A visitor to my site repeatedly receives a fatal error in one of my scripts.
He is using a Compaq PC with IE 6; Windows 98. He gets this error message:
Call to unsupported or undefined function srtoupper() in on line 82.
Line 82 is a compound IF statement which uses strtoupper(). As best I
A visitor to my site repeatedly receives a fatal error in one of my scripts.
He is using a Compaq PC with IE 6; Windows 98. He gets this error message:
Call to unsupported or undefined function srtoupper() in on line 82.
Line 82 is a compound IF statement which uses strtoupper(). As best I
: Tuesday, December 25, 2001 6:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Client side fatal PHP error
A visitor to my site repeatedly receives a fatal error in one of
my scripts.
He is using a Compaq PC with IE 6; Windows 98. He gets this error message:
Call to unsupported or undefined
:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Client side fatal PHP error
A visitor to my site repeatedly receives a fatal error in one of
my scripts.
He is using a Compaq PC with IE 6; Windows 98. He gets this error
message:
Call to unsupported or undefined function srtoupper() in on line
Call to unsupported or undefined function srtoupper() in on line 82.
srt != str (typo).
if (strtoupper(substr($xmbrcode,11,1)) != B
strtoupper(substr($xmbrcode,11,1)) != P
srtoupper(substr($xmbrcode,11,1)) != H
srtoupper(substr($xmbrcode,11,1)) != O) {
See above.
Is there a utility out there that checks for typos, like a spell check but
for code? They are the most annoying things ever and probably the hardest of
errors to find in scrips.
Something simple, even command line would be handy.
Also, its interesting that only one user of the script got the
Yeah,
I know it's executed client side, but if the buffer fills up because you
have a lot to send to the client (and the network connection is saturated),
then it might fail, since it cannot do the test. it is unlikely, but
possible. Also, that code you quoted is (out of context) inefficient, so
Ah yes... that would do it. How embarrassing! But another respondent brought
up an interesting question. Why does this error not show up every time? As
written, it is a basic syntactical error. I tested this thing up and down; I
test it in production every day.
Ah it's always something
Is there a utility out there that checks for typos, like a spell check but
for code? They are the most annoying things ever and probably the hardest of
errors to find in scrips.
Something simple, even command line would be handy.
It's good to program with error_reporting turned all the way
Ah yes... that would do it. How embarrassing! But another respondent brought
up an interesting question. Why does this error not show up every time? As
written, it is a basic syntactical error. I tested this thing up and down; I
test it in production every day.
This error will happen every
will never happen.
Also, if your if statement isn't always reached, then the error will not happen.
Finally, not all users will report the error when they get it. But you can deal with
that by looking at your PHP error log file.
I believe there is a way to call PHP from the command line and do
-
From: jjt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 26, 2001 1:53 AM
Subject: Re: [PHP] Client side fatal PHP error
Ah yes... that would do it. How embarrassing! But another respondent
brought
up an interesting question. Why does this error not show up every time
Hi pals,
Thanks a lot for all the PHP pals , I have recoded my script an'
now itz working fine.
cheers an' regards,
- JFK
kishor
Nilgiri Networks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
What warnings are you receiving? Many can be avoided by doing various
checks:
e.g.
if (!isset($some_variable))
...some error code
else
...all is well
others which may be useful:
function_exists()
file_exists()
HTH
Neil
Yoel Benitez Fonseca wrote:
Hi!
There is in PHP some way
hi all,
I have got a problem, when I execute the following script it gives
a Fatal error, could any one tell me why is it ?, If this is a silly
problem please execuse me but, plz do reply me.
The script is
-
html
body
?
if(!$Phone)
{
?
form action=?echo $PHP_SELF?
I don't know all the details about how PHP compiles a program, but
having your function definitions in an if-else statement that may not be
executed looks suspicious to me.
You've got
if(!$Phone)
{
do something
}
else
{
function is_phone() { ...blah, blah...}
}
is_phone($Phone);
If
Try putting a closing ? php tag just before the final HTML.
Jim
- Original Message -
From: J.F.Kishor [EMAIL PROTECTED]
To: PHP Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 5:26 AM
Subject: [PHP] Error while calling a function
hi all,
I have got a problem, when I
Steve is right on the money.
Your function definitions are inside a conditional if statement which means
that they may or may not be parsed. Your call to the function, on the other
hand, is not within that same conditional if statement. That means your
functions is getting called
AM
Subject: [PHP] Error while calling a function
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
901 - 1000 of 1121 matches
Mail list logo