* Thus wrote gohaku:
Hi everyone,
I have been experimenting with defining functions as constants.
Below is what I am using to test Function Constants:
pre
?
define(LOGIN,user);
define(PASS,pass);
define(DB,mysql);
define(DBLOGIN,dblogin(LOGIN,PASS,DB));
This is simply not allowed.
see:
http
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
=\$name\;
}
Thanks.
-gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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 =
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
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 unsubscribe, visit
.
I did not see any difference with checkbox inputs either.
Any help would be greatly appreciated.
Thank you.
-gohaku
!--Form.html--
form action=session.php method=POST
Name: input type=text name=name size=30br
input type=radio name=number value=1 CHECKED1br
input type=radio name=number value=22br
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:
?
/***Session.php**/
$varcount = 0;
if($name){$varcount++;}
if($number){$varcount++;}
session_start();
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
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
to work?
Thank you.
-Gohaku
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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, visit: http
()
{
$now = strtotime(today);//Return value is 60
//$now = strtotime(day);//Return value is 86400
$onemin = strtotime(-1 minute);
return $now-$onemin;
}
?
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
?
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, visit: http
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.
?
//filereader.php
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 function
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 =
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 =
, 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
--
PHP
$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