|
is there any API or code to update most of social networking from one place, for example: facebook, twitter, linkedin and google+?
Thanks
|
|
|
|
|
Every social network provide their own api, you can use them to make a common submission
|
|
|
|
|
|
hi for all
plz how can i open outlook from php ?
ty all
|
|
|
|
|
Here is the thing:
You must have to remember that PHP run on server side it has nothing to do in Client side. So, the fact is you cannot run outlook using PHP...
But the thing you are looking for is related with the browser html and browser.
here is an example:
<a href="mailto:someone@somewhere.com">Mail me</a>
When a user click on the the link browser open the default eamil client installed in your computer. follow the link[^] you will get clear view
|
|
|
|
|
|
I would like to ask how can i page my result from mysql just like linkedin and facebook where there is a MORE button whsn user click on it will display the more results?
|
|
|
|
|
Take a look at the mysql query with limit
here is two example
First list
SELECT Something FROM Somewhere where EveryOne LIKE 'SomeOne' LIMIT 0, 30
and when you populate go for:
SELECT Something FROM SomeWhere where EveryOne LIKE 'SomeOne' LIMIT 30, 30
In the first query you will get first 30 results,
In the second query you will get second 30 results
And you will also have to look at AJAX. Otherwise you will have to reload the entire page everytime
|
|
|
|
|
As mentioned in the above subject please provide me a project using using global.asax file so i can understand the concept of the same.
Please do the needfull.
Thanks and regards.
|
|
|
|
|
Global.asax files are used with ASP.Net applications, not PHP. You should post in that forum instead. PHP applications can do similar things, however, if you do something like:
<pre lang="PHP">
There really isn't a direct analog for the global.asax file in php.
|
|
|
|
|
I want to know how can I detect the client language so if it's arabic then leave it as www.mydomain.com but if it's english then redirect to www.mydomain.com/en?
|
|
|
|
|
If the user's browser is set up properly, you can use $_SERVER['HTTP_ACCEPT_LANGUAGE'] to find out which languages they prefer to use.
|
|
|
|
|
does PHP has global file similar to the global or config files in ASP.NET or I should add the language check in every php file in my website?
|
|
|
|
|
No, you would normally put anything you need to use on multiple pages into an include file, then load it on every page using include , require , include_once or require_once .
... unless you are using a framework, then there should be somewhere already that you can put code to execute on each request - but that will depend on the framework.
Or you could possibly skip checking it in PHP at all, and use a .htaccess file to redirect to a different path depending on the Accept-Language header.
|
|
|
|
|
when I check $_SERVER['HTTP_ACCEPT_LANGUAGE'] on Chrome it gives: "en-GB,en;q=0.8"
any idea what "q=0.8" means?
My logic is impeccable; my arithmetic lets me down.
|
|
|
|
|
It means Microsoft estimates your command of the English language is 80%, which is pretty good actually. More here[^]
|
|
|
|
|
Luc Pattyn wrote: It means Microsoft estimates your command of the English language is 80%
Microsoft? Surely it must be Google Chrome who made the estimate?
...and how does it (dare it!) make that estimate?!?
My logic is impeccable; my arithmetic lets me down.
|
|
|
|
|
You never have tried Google Translate, have you? Google knows zilch about languages.
|
|
|
|
|
You can redirect using user's timezone also..
|
|
|
|
|
Hi,
I am currentlly using this code to populate news from my database. I want to know how can I make the same paging the result with NEXT and PREVIOUS button?
<?php
$conn = mysql_connect('mysql.jassimrahma.com', 'jassimxxxxx', 'xxxxxxx');
mysql_select_db("jassimrahma", $conn);
$result = mysql_query("SELECT news_id, news_title, date_format(created_date, '%d %M %Y') as 'news_date' FROM news ORDER BY created_date DESC, news_id DESC", $conn);
$affected_rows = mysql_num_rows($result);
echo "<table width='100%' cellpadding='3' cellspacing='3'>";
while ($i < $affected_rows)
{
$news_id = mysql_result($result, $i ,"news_id");
$news_title = mysql_result($result, $i ,"news_title");
$created_date = mysql_result($result, $i ,"news_date");
echo "<tr>";
echo "<td align='center' valign='top'>";
echo "<img src='http://www.jassimrahma.com/images/news_arrow.jpg' alt='Jassim.com News' />";
echo "</td>";
echo "<td align='left' valign='top'>";
echo "<a href='http://www.JassimRahma.com/$news_id' target='_blank'>$news_title</a>";
echo "</td>";
echo "</tr>";
$i++;
}
echo "<tr><td align='center' valign='top'></td><td align='left' valign='top'><a href='http://www.JassimRahma.com/news' target='_self'><img src='images/more_news.jpg' alt='Technology News - JassimRahma.com' /></a></td></tr>";
echo "</table>";
?>
|
|
|
|
|
try the link. It might help you
|
|
|
|
|
Hi,
What's the best way to determine the mobile device then redirect to the /mobile?
Regards,
Jassim
|
|
|
|
|
|
|
Detecting if its a mobile device
Please follow the above link. It looks good
but how can I implement it? Do i have to put it in every page? is it possible to put it in one place for the entire application?
|
|
|
|