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": define(DBLOGIN,dblogin(LOGIN,PASS,DB)); This is simply not allowed. see: http://php.net/define Hi curt, Can you elaborate on w

[PHP] Is "Function Constants" the Correct Term?

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

[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
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

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

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

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 unsubs

[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/) To

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 =

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 (http

[PHP] Handling Randomly Updated XML Feeds

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

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: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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 e

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 T

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

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

[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, v

[PHP] strtotime Question

2004-01-27 Thread gohaku
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

[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
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

[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, v

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 functi

[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. '; echo $src; echo '';

[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 = levenshtein($str1,$

[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 = levenshtein($str

[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] Changing User Agent for fopen

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