Re: [PHP] Is Function Constants the Correct Term?

2004-07-18 Thread gohaku
* 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

[PHP] Is Function Constants the Correct Term?

2004-07-17 Thread gohaku
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

[PHP] GD Support without Recompiling?

2004-06-29 Thread gohaku
. 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

[PHP] Handling Code Continuation

2004-06-25 Thread gohaku
=\$name\; } Thanks. -gohaku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Realm Based Authentication Problem with webhost ( Yahoo domain )

2004-06-09 Thread gohaku
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

Re: [PHP] Regular Expression for a UK mobile phone number

2004-04-08 Thread gohaku
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

Re: [PHP] Connecting to Databases

2004-04-06 Thread gohaku
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

Re: [PHP] php + lynx + grep

2004-04-06 Thread gohaku
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 =

[PHP] Alternative to stripslashes(htmlentities($textstring))

2004-04-06 Thread gohaku
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

[PHP] Handling Randomly Updated XML Feeds

2004-03-29 Thread gohaku
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

[PHP] Null Variables after session_register() ( Radio Inputs Problem )

2004-03-23 Thread gohaku
. 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

Re: [PHP] Re: Null Variables after session_register() ( Radio Inputs Problem )

2004-03-23 Thread gohaku
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();

Re: [PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-07 Thread gohaku
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

Re: [PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-07 Thread gohaku
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

[PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-06 Thread gohaku
to work? Thank you. -Gohaku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reasons for Using XML

2004-02-04 Thread gohaku
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

[PHP] strtotime Question

2004-01-27 Thread gohaku
() { $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

[PHP] PHP Equivalent of DBM Files

2004-01-22 Thread 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

[PHP] Getting PHP to work with SQLite

2004-01-14 Thread gohaku
? Thanks in advance, -gohaku -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Extending String Length (255) limit for Levenshtein

2003-12-21 Thread Gohaku
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

[PHP] Levenshtein and Similar_Text Comparison

2003-12-17 Thread Gohaku
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

[PHP] Printing PHP Source with a PHP Script

2003-12-14 Thread Gohaku
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

Re: [PHP] Printing PHP Source with a PHP Script

2003-12-14 Thread Gohaku
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

[PHP] How to Calculate Similarity Percentage with Levenshtein function

2003-12-09 Thread Gohaku
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 =

[PHP] How to Calculate Similarity Percentage with Levenshtein function

2003-12-09 Thread Gohaku
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 =

[PHP] Getting flush() to work with Safari Internet Explorer in OS X

2003-12-06 Thread Gohaku
, 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

[PHP] Changing User Agent for fopen

2003-12-04 Thread Gohaku
$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