Skip to main content

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.

Filter by
Sorted by
Tagged with
32 votes
6 answers
7k views

Don't know where to start? Begin by checking out the Stack.PHP website. Then head over here for a quick tutorial on setting up and using Stack.PHP. About Why you should use Stack.PHP: Stack....
Nathan Osman's user avatar
  • 23.2k
20 votes
0 answers
2k views

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.2k
16 votes
2 answers
2k views

PHPstack PHPstack is meant to be an easy to use PHP wrapper for the Stack Exchange API. <?php require_once('lib/requestcore.class.php'); require_once('phpstack.class.php'); $so = new ...
nobody's user avatar
  • 864
14 votes
3 answers
698 views

Visit now: http://stackcenter.quickmediasolutions.com/beta/ Feedback is appreciated! About StackCenter 2 has been brewing for quite some time now. Since the global inbox was introduced, the original ...
Nathan Osman's user avatar
  • 23.2k
9 votes
1 answer
913 views

I had a developer setup StackExchange auth for a site last year and that still works fine. I have cloned that site and am in the process of changing out all of the relevant names and keys to the new ...
Lizza's user avatar
  • 193
7 votes
0 answers
149 views

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 can ...
Nathan Osman's user avatar
  • 23.2k
7 votes
0 answers
4k views

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 after the 4th of July 2013. ...
Nathan Osman's user avatar
  • 23.2k
4 votes
0 answers
124 views

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
378 views

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
3 answers
3k views

This is a very basic question. I just want to display a test batch of JSON with PHP, but I think I don't have the correct formatting, since the data received looks garbled when outputed, and it causes ...
Peter Ajtai's user avatar
3 votes
0 answers
166 views

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.2k
2 votes
1 answer
569 views

I want to fetch only my accepted answers from Stack Overflow using the API 2.1 and currently I've following code $data = file_get_contents("http://api.stackexchange.com/2.1/users/741747/answers?page=...
The Alpha's user avatar
  • 123
2 votes
0 answers
322 views

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
487 views

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
1 answer
349 views

When using the explicit OAuth authentication for apps, I have problems receiving the access_token. A user goes to /approve and is then forwarded to approve the app. When redirected back to my site I ...
ajthinking's user avatar
1 vote
1 answer
2k views

I am trying to decode HTML entities from the JSON data returned by the Stack Exchange API but it's not working. I have used both html_entity_decode and htmlspecialchars_decode but it doesn't effect ...
Skyyy's user avatar
  • 111
1 vote
0 answers
274 views

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
1 answer
374 views

I am developing a PHP library for interacting with the Stack Exchange API. Most of the methods are unimplemented so far. I am writing this post because I need to test some auth methods. My app ...
2359967's user avatar
  • 103
0 votes
1 answer
287 views

Is it possible to post a question to Stack Overflow using PHP in the same way that it's possible to post content to Facebook?
Mohan Raj's user avatar
  • 111
0 votes
1 answer
1k views

I'm building a phpapi and in this api will be giving my clients API key generated for each client. So basically my client will be sending client id, his personal data(to be stored in DB) & an ...
Kaushil Rambhia's user avatar