User Tools

Site Tools


lemmy-php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

lemmy-php [2020/12/02 15:49]
neil created
lemmy-php [2020/12/02 15:49] (current)
neil
Line 6: Line 6:
 ==== Create a new post ==== ==== Create a new post ====
 <code php> <code php>
- +<?php 
-<?php require("​lemmy.class.php"​);​+require("​lemmy.class.php"​);​
 $url = "​https://​lemmy.glasgow.social"; ​ $url = "​https://​lemmy.glasgow.social"; ​
 $lemmy = new lemmy($url);​ $lemmy = new lemmy($url);​
Line 20: Line 20:
  
 $lemmy->​createPost($post);​ $lemmy->​createPost($post);​
 +?>
 </​code>​ </​code>​
lemmy-php.1606924156.txt.gz · Last modified: 2020/12/02 15:49 by neil