Helllo -
I just started learning PHP and found this site, hopefully I will learn alot from it.
My problemo is this:
I have a PHP script on a diff server than mine, and the output of this file is the exact data that I want to put into a variable in one of my scripts.
The file is:
http://www.islamicfinder.net/prayer_service.php?country=usa&city=boston&state=MA&zipcode=&latitude=42.3586&longitude=-71.0605&timezone=-5&HanfiShafi=1&pmethod=5&fajrTwilight1=10&fajrTwilight2=10&ishaTwilight=10&ishaInterval=30&dhuhrInterval=1&maghribInterval=1&dayLight=1&page_background=&table_background=&table_lines=&text_color=&simpleFormat=simple&lang=english
Here is my code:
$url = "LONG URL HERE";
$namaztimes = include($url);
$length = strlen($namaztimes);
print "$length";
The problem is, that the $namaztimes variable is not taking in anything. When I execute the script, I see the output of that include command (which is not what I want)
I want $namaztimes to take in the output of the link specified!
How can I accomplish this?
Thanks !!
/edit btw: the print "$length"; is outputting "1"