Public Messages
Welcome, guest! Please login or register for free to be able to join the php group and participate in the discussions.
-
murtlest 2012-06-26 22:56
(source)
-
murtlest 2012-03-05 18:29
it also has a built in webserver but i will use that
-
murtlest 2012-03-05 18:28
that's the main thing
-
murtlest 2012-03-05 18:28
new array syntax
-
pxl 2012-03-05 18:25
oooh.. major changes/features?
-
murtlest 2012-03-05 18:23
btw php 5.4 is out :)
-
murtlest 2012-03-05 18:23
good solution :)
-
murtlest 2012-03-05 18:22
ah i see
-
pxl 2012-03-05 17:41
So if a post doesn't have a custom image set, this little function scans through the post, takes the url to the first image and uses it instead.
-
pxl 2012-03-05 17:40
And the wordpress app can't edit/add custom fields.
-
pxl 2012-03-05 17:40
We always put the articles main image (the one on the front page) in a custom field to make sure the resizing and caching script can do its thing.
-
pxl 2012-03-05 17:39
Haha, actually it is to make sure that we can post content from wordpress mobile apps to bitro
-
murtlest 2012-03-05 17:38
what content are you going to steal now? :p
-
murtlest 2012-03-05 17:38
pretty usable though
-
pxl 2012-03-05 17:37
Mainly because I can't read them.
-
pxl 2012-03-05 17:37
I god damn hate regular expressions.
-
murtlest 2012-03-05 17:27
:)
-
pxl 2012-03-05 17:26
*and some cursing at the regular expressions I came up with this, which works fine:
function postbild($a) { $regexp = "/src=[\"\']?([^\"\']?.*(png|jpg|gif))[\"\']?/i"; preg_match_all($regexp, $a, $bild); echo $bild[1][0]; }
-
pxl 2012-03-05 17:26
a hell of a lot of googling and slome
-
pxl 2012-03-05 12:11
Let's say the information I want is at the same offset every time.
-
pxl 2012-03-05 12:11
Hm, what's the easiest way to extract a chunk of text from a string and put in a variable?
-
mezod 2011-08-31 23:51
perchance x)
-
Skalman 2011-08-29 18:34
haha XD
-
pxl 2011-08-29 18:07
Omg. Make this happen!
-
murtlest 2011-08-29 17:41
if PHP was british: http://www.addedbytes.com/blog/if-php-were-british/