I am using some expressions to load the value of a parameter when
called, independently if used GET or POST method, using something like:
?php
$mydata = (isset($_GET[mydata])) ? $_GET[mydata] :
(isset($_POST[mydata])) ? $_POST[mydata] : 0;
echo $mydata;
?
The problem occurs with above
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.);
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
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; $icount($arr_phrase); $arr_phrase)
{ array_push($arr_frequencyids,explode( ,$arr_phrase[$i])); }
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