[PHP-DB] recover values independently of GET or POST used

2009-09-14 Thread buzon
I am using some expressions to load the value of a parameter when called, independently if used GET or POST method, using something like: $mydata = (isset($_GET["mydata"])) ? $_GET["mydata"] : (isset($_POST["mydata"])) ? $_POST["mydata"] : 0; echo $mydata; ?> The problem occurs with abo

[PHP-DB] Summary: Problems fopen like parameter

2008-05-06 Thread buzon
Thank you Chris, you give me the clue Using your method discover wrong pair of brackets, that make that $url_rss become inside a function, so, the variable was look as local variable, not a global one; then, the value become null. - Blinded inside the box. Quoting Chris <[EMAIL PROTECTED]

[PHP-DB] Problems fopen like parameter

2008-05-06 Thread buzon
I am opening a rss file using fopen. If I use direct value, it can be opened, but I use a paremeter, I obtain an error. This works: ... xml_set_character_data_handler($xml_parser, "characterData"); $fp = fopen("http://www.arteglobal.net/news.xml","r";) or die("Error reading RSS data

[PHP-DB] (Most frequently..) Corrected and added note

2008-01-17 Thread buzon
I notice the syntaxis error in my previous message array_slice(array_keys($hash_frequencywords,0,20)) must be array_slice(array_keys($hash_frequencywords),0,20); But the error continues generating me an "array enter" to my first array. The error occurs in the following piece of code: for (

[PHP-DB] Most frequently words in a text

2008-01-17 Thread buzon
Hello everybody, I am creating an algorithm to identify the most frequently words on different sentences, using the following code: // store in $arr_frequencyids all different words for($i=0; $iBut... is not working. It is not counting the ocurrences. It stores as a long string, even I us