is it possible to use $_SERVER['HTTP_USER_AGENT'] in an html email ?
something like:
//What should we download based on user's platform ?
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Macintosh') !== FALSE) {
$download = 'Fonovisa.dmg';
echo 'Mac';
}
else
{
echo 'PC';
$download = '!Fonovisa.exe';
}
--
Gerard Samuel wrote:
Im trying to figure out how to create this.
But Im stuck in the foreach loop.
For some reason, $value in the foreach loop is not an object (Isn't is
supposed to be?)
Any hints to get me in the right direction.
Thanks
$array = array(1 = array(2 = array(3 = array(4;
class
Quoting: Richard Lynch [EMAIL PROTECTED]
Unless you KNOW your site will get loads of traffic from the get-go, I'd
focus more on the SIMPLE solutions that you can maintain as a beginner.
Quoting: Richard Lynch
Unless you KNOW your site will get loads of traffic from the get-go, I'd
focus
What would be the standard/accepted way to do this?
is it better to spell it out in the html email ?
Download:
Mac PC Linux ?
many thanks :)
On Jan 18, 2005, at 4:06 PM, [EMAIL PROTECTED]
wrote:
php is server-side, so no. you might be able to do what you're after
with
Richard Lynch wrote:
Brian A. Anderson wrote:
[...]
I am thinking of incrementally adding the resultant hits into two
associative arrays with the link to the data and a calculated
relevance value, and sorting this array by these relevences.
[...]
One Axiom: Keep as much of the scoring/sorting
Hi all,
How to access remote files with php?
For ex:
$sFile = http://www.php.net/123.txt;;
if (file_exists($sFile)) {
$hFile = fopen($sFile);
...
fclose($hFile);
}
Regards,
Sephiroth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Chris,
I've done something like this to update website's static pages. Basically,
in a php script I've replaced all of the print statements with $line.=
statements to accumulate all the items you want printed into one long
string. I've then ftp'ed this string, along with the name of the html
Relatively new to PHP. Having an issue trying to nest sql statements.
Basically I am trying to pull a variable from SQL1, Pass it as a
Variable/Bind or Parm to SQL2 and then Go back to SQL1 and pull the next
value and pass to SQL2 again for processing.
It seems like the SQL2 is getting stuck
Yes. I just use the same method which Curt mentioned below and seem well.
But I met the problem a little bit complex that the sql used group by.
Any idea?
Best regards,
Yang Shiqi
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 09, 2005 2:37
Hello,
I would like to add some debugging/info code to my pages. In test
environment of course. Any ideas how to do this? I mean for example to print
to a web page the line number when the script fails or something like that.
It's a pain on the **s to hunt typo's by just reading the source
Hello,
I have a for loop to create a HTML combo box that displays the 10 year
values, starting from today's year and incrementing until 10 years it
reached.
The output of the loop to the browser is weird.
If anyone has time, can you please let me know where I screwed up?
Here's my loop:
echo
Does anyone know when the exception objects listed in
item #6 at http://www.php.net/~helly/php/ext/spl/ will be available
in base php5??
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Store the sum into a variable (inside the loop) and print.I hope this will
work.
Binoy
__ __ __ __
Sent via the WebMail system at softwareassociates.co.uk
---
Scanned by MessageExchange.net (07:10:44 SPITFIRE)
On 19/01/2005, at 5:36 PM, William Stokes wrote:
I would like to add some debugging/info code to my pages. In test
environment of course. Any ideas how to do this? I mean for example to
print
to a web page the line number when the script fails or something like
that.
It's a pain on the **s to
101 - 114 of 114 matches
Mail list logo