Re: Function inop, but tosses no errors
- From: Michael Fesser <netizen@xxxxxx>
- Date: Thu, 31 Jul 2008 20:27:46 +0200
..oO(Twayne)
Below is fully functional, non-functional code :^): In other words, it
works, but it doesn't do anything and darned if I can see why. None of
the 3 $email assignments result in any output. I just kept two
commented out so I could easily switch addresses for testing, thus the
"#"s. It does not kick out any errors and syntax checks valid with
tswebeditor (freebie).
[...]
---------------------
<?php
$email="mine@xxxxxxxxxx";
#$email="a@xxx";
#$email=".mine.@.domain..com";
echo "<br/>KB PFSTART"; <------- PFSTART etc are just ts names,
nothing more.
echo '<br/>using: ' . $email; <------- shows email address correctly
function validateEmail($email){
[...]
}
Maybe a stupid question, but do you actually call this function
somewhere?
echo '<br/>$output is ' . $output; # <--- $OUTPUT DOES NOT ECHO
This line should cause an E_NOTICE error, since $output is not defined
anywhere.
Micha
.
- References:
- Function inop, but tosses no errors
- From: Twayne
- Function inop, but tosses no errors
- Prev by Date: Re: create file and write content in same code block
- Next by Date: Re: Working more efficiently in PHP
- Previous by thread: PS Re: Function inop, but tosses no errors
- Next by thread: logic problem
- Index(es):