* Thus wrote gohaku:
Hi everyone,
I have been experimenting with defining functions as constants.
Below is what I am using to test "Function Constants":
define(DBLOGIN,dblogin(LOGIN,PASS,DB));
This is simply not allowed.
see:
http://php.net/define
Hi curt,
Can you elaborate on w
any relevant results.
I would also like to know why I was able to redefine DBLOGIN, I always
thought redefining constants could
not be done.
Thanks in advance.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Does anyone if such a way exists?
Thanks in advance.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone,
I would like to know how to handle code breaks or code blocks
that takes up more than two lines.
For readability, I would like to know if there is something like the
following:
function input($type,$size,$name,$value)
{
return ">>
name=\"$name\">&quo
Small Business
Webhosting and not Geocities Webhosting.
Yahoo does provide Authentication but only for directories and not
individual files.
just wondering if there's another way.
Thanks in advance.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Apr 8, 2004, at 2:40 PM, Shaun wrote:
Thanks for your reply Michal,
but the regular expression still seems to reject the number...
Just out of curiosity,
Have you tried " if(stripslashes(htmlentities($_POST[mobile_number]) )
!= ") ?
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Hi everyone,
I was just curious if there is another function that
does the same job as stripslashes(htmlentities($textstring)).
I am using this Combined function to echo back Text that is entered in
a Text Field.
Thanks in advance.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To
On Apr 6, 2004, at 12:53 PM, Brian L. Ollom wrote:
Try
$output = `lynx --source
http://weather.noaa.gov/weather/current/KTOL.html |grep -v
'41-35-19N' |grep TOL | head -n 1`
Those are backticks, not single quotes surrounding the
command.
I use following to retrieve output with Lynx:
$out =
On Apr 6, 2004, at 10:57 AM, Robb Kerr wrote:
I know that this message is more related to MySQL than PHP but I don't
know
of a good MySQL board. This board is VERY active and useful.
Have you checked out MySQL General Discussion over at:
http://lists.mysql.com/ ?
--
PHP General Mailing List (http
nning time for my loop would be
O(n*n) if I'm not wrong.
I should add that my script looks for items created today, then looks
for yesterday and if that item is not available, it looks again until
it finds something.
Thanks.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To uns
Thanks.
Below is what I changed to session.php.
Are there any possible problems with my changes?
On Mar 23, 2004, at 4:28 PM, Justin Patrin wrote:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;number"), $number IS NOT NULL.
I did not see any difference with checkbox inputs either.
Any help would be greatly appreciated.
Thank you.
-gohaku
Name:
1
2
3
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Feb 7, 2004, at 10:36 PM, Jason Wong wrote:
So basically you haven't made any changes to php.ini at all. So
whatever got
your mail working was because of something else that you had done.
I stand corrected.
Now I don't remember what I did to fix this.
I waited 5 minutes between sending test e
On Feb 7, 2004, at 12:20 AM, John Nichel wrote:
Hi everyone,
I am using OS X v10.3.2 and just discovered that I can't send mail
using the mail() function.
According to phpinfo(), PHP is configured with sendmail.
Before upgrading to v10.3, I did not check if the mail() function
worked in v10.2
T
er servers.
mail( "[EMAIL PROTECTED]", "Feedback Form Results",
$message, "From: $email" );
header( "Location: thankyou.html" );
?>
I ran Postfix Enabler and still could not email myself.
What do I need to configure to get the mail() function to
Hi everyone,
Since everyone has been talking about XML, can anybody
tell me why XML is used as opposed to using a CSV file?
I'm probably wrong about why XML is used, this is why I'm asking.
Thanks in advance.
-Gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
Hi everyone,
I made the mistake of using strtotime("day") instead of
strtotime("today")
to get the current time.
I was just curious, what is strtotime("day") represent?
Below is what I used to test the "day" and "today" parameters:
Testing One Minute Difference
Thanks in advance.
-Gohaku
Hi everyone,
I was just curious if there is an equivalent of DBM files used in Perl
scripts.
Thanks in advance.
-Gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
do I have to modify in php.ini?
Thanks in advance,
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone,
I would like to know if there is a way to extend the limit of 255
characters when using the Levenshtein Function?
I have used user-defined functions such levdis and xlevdist but they
often take too much time.
Thanks in advance.
-Gohaku
--
PHP General Mailing List (http
to be more accurate.
Since the levenshtein function is based on Edit Distances and
similar_text is based on Decision Trees, I'm wondering when and why
similar_text would be used instead of levenshtein.
Thanks.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
On Sunday, December 14, 2003, at 09:51 PM, John W. Holmes wrote:
Gohaku wrote:
Hi everyone,
I'm trying to output PHP source within a PHP Script. The following
script seems to work(Viewing HTML Source reveals the PHP Source), but
the Browser output is very different. Is there a functi
Hi everyone,
I'm trying to output PHP source within a PHP Script. The following
script seems to work(Viewing HTML Source reveals the PHP Source), but
the Browser output is very different. Is there a function or header I
should set before echoing the PHP Source? Thanks.
';
echo $src;
echo '';
Hi,
I'm trying to obtain the similarity percentage for 2 Strings when using
the Levenshtein function but the percentages doesn't seem to match the
percentage
returned by similar_text($str1,$str2,$match_percent);
Below is what I use to calculate the similarity percentage
$dist = levenshtein($str1,$
Hi,
I'm trying to obtain the similarity percentage for 2 Strings when using
the Levenshtein function but the percentages doesn't seem to match the
percentage
returned by similar_text($str1,$str2,$match_percent);
Below is what I use to calculate the similarity percentage
$dist = levenshtein($str
, and the script ran fine.
I thought changing some settings in php.ini might help like:
implicit_flush = On
;Default is Off
but realized the On setting is for debugging purposes.
My question, what can I do to get Safari or Internet Explorer to handle
flushed output?
Thanks in advance.
-gohaku
-
$buffer = fread($fp,100);
echo $buffer;
Also, what is the best number to use when allocating Buffer space for a
URL?
Is 100 too much?
Thanks.
-Gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27 matches
Mail list logo