User Profile
Collapse
-
rogerpride replied to XAMPP installation is better or Manual install is better for PHP, MySQL & Apache???in PHPdisregard that last post please. -
rogerpride replied to XAMPP installation is better or Manual install is better for PHP, MySQL & Apache???in PHPWell you'll ideally use Apache or IIS, not both. If it is going to go on a windows box, test it out first on your workstation.Leave a comment:
-
if your user inputs the month and year, use this:
$lastday = date("d", mktime(0, 0, 0, $month +1, 0, $year));
echo $lastday;
adding 1 to the month and setting the day at 0 forces date() to subtract a day, giving you the last day of the given month.
if you want the number of days in the current month modify it like this:
$month = date("n");
$year = date("Y");...Leave a comment:
-
The easiest way is to probably use the HTML <iframe> tag. That is if you really want to "embed" the other php page into the main php page.
<iframe src="navigator. php" scrolling="auto "></iframe>
file() is good for getting non-php files like xml, text and other stuff like that, but probably not for what you want here. Check out php.net for function descriptions.
...Leave a comment:
-
rogerpride replied to Need help with writting a javascript that displays my current weather conditionsin JavascriptThe national weather service offers current conditions in either XML or RSS. Here's the link.
http://www.weather.gov/data/current_obs/
I use the php curl() function to write the XML file to my web server and then parse it with javascript.
Try something like this:
function get_weather() {
$ch = curl_init();
curl_setopt($ch , CURLOPT_URL, "XML URL");...Leave a comment:
-
AJAX killing stream
Hello everyone, I've got a page that has an embedded internet radio stream (with Windows Media Player) that I want to keep running even as the user cycles through content on the page. So, I've set up a few XMLHttpRequests with AJAX and it works great in IE7 and Firefox. The content changes as the user clicks around and the stream plays uninterupted.
But in IE6, it is a different story. Everytime a new XMLHttpRequest is implemented,...
No activity results to display
Show More
Leave a comment: