Questions tagged [php]

Questions about using PHP code to interact with Stack Exchange and/or the Stack Exchange API. ... For general PHP questions, post on Stack Overflow instead.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
20 votes
0 answers
2k views

OBSOLETE - StackImage - Generating Images of Questions and Users [Now with Global Flair!]

RIP June 23, 2010 - July 4, 2013 All of the features that StackImage provides are either available with the built-in flair on each Stack Exchange site or provided by StackImage's successor: ...
Nathan Osman's user avatar
  • 23.3k
7 votes
0 answers
136 views

StackAd Wordpress Plugin - Display Community Ads on Your WordPress Blog with Minimal Effort

Screenshot (source: wordpress.org) About Now you can easily display community based advertisements (like these) on your WordPress blog with almost no effort. The plugin ships with a widget you ...
Nathan Osman's user avatar
  • 23.3k
7 votes
0 answers
4k views

StackMail - Making the StackExchange Sites Accessible Via Email

Planned Obsolescence Due to almost negligible usage and ongoing maintenance issues, I would like to announce that the StackMail service will be shut down in a few days. Screenshot http://files....
Nathan Osman's user avatar
  • 23.3k
4 votes
0 answers
102 views

How to quickly retag a question from the API?

I'm playing with the write API, and I'd like to simply retag a question. This is the code I have so far: $editURL = 'https://api.stackexchange.com/2.2/questions/' . $question->{"question_id"} . '/...
user avatar
4 votes
0 answers
363 views

Simple Answer Guessing App - Trivial Pursuit: Edition SO

About Stackoverflow Trivial Pursuit This app came about after I read this meta thread feature request by Evan Carroll. The idea is that you can look at questions on Stackoverflow without seeing the ...
Peter Ajtai's user avatar
3 votes
0 answers
150 views

Stack Cartographer - A PHP tool for generating a JSON map of the Stack Exchange API.

About After the JSON documentation for the Stack Exchange API was dropped for v2.0, I began to wonder if it would be possible to throw together a PHP script that did a bit of screen-scraping to ...
Nathan Osman's user avatar
  • 23.3k
2 votes
0 answers
313 views

Array boolean values are returning empty

I am trying to convert a JSON array to a PHP array, and the boolean values are being lost. I think I need to loop round using foreach() and cast the items as they are placed in to the new array, but I ...
EntityPaul's user avatar
2 votes
0 answers
471 views

OAuth2 Authentication Redirection error in PHP

I'm trying to authenticate into Stack Exchange's API with the following URL: https://stackexchange.com/oauth/dialog?client_id=3535&scope=write_access&redirect_uri=https://stackexchange.com/...
2359967's user avatar
  • 103
1 vote
0 answers
83 views

Get all questions of a particular tag in API 2.2 in PHP

I'm trying to get all the questions for documentation on Meta Stack Overflow in PHP. The code I'm using is as follows: <?php $feed = file_get_contents('https://api.stackexchange.com/2.2/...
Panda's user avatar
  • 119
1 vote
0 answers
228 views

/oauth/access_token not redirecting back to my redirect_uri

I am trying to implement Stack Exchange using oAuth 2.0. I am able to get CODE but, when I try to get access_token through this code: <?php if(isset($_GET['code'])) { ?> <form method="...
Amit Parmar's user avatar
1 vote
0 answers
104 views

Has anyone made a wordpress plugin for stack api?

Just wondering if as it would be nice to put a widget on a wordpress post that allows people to add new questions and answer them right there in the blog.
Joseph White's user avatar