I've been out of PHP too long, and can't get a simple preg_match to work for me. Perhaps I'm going at this the wrong way, can anyone give me some help? hahaha!!!
<?php
$url="http://dtkbans.com/index.php?p=banlist&searchText=".$_GET['STEAMID']."&Submit=";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);
preg_match('/<i>Total Bans: |\d|</i>/igm', $data, $matches);
print_r($matches);
?>
I basically want it to return the amount of Total Bans. but its not outputting anything :(
Hey @Hawkee The bottom bar, where it shows, about, privacy policy etc. Nothing works on that for me :( Using Google Chrome!
@Hawkee I don't know about others, but I'm currently using Google Chrome Version 30.0.1599.101 m (Most up to date version) and I have problems "copying" scripts. I highlight it all, and i right click, and it makes my screen scroll to the bottom of the page...
Suggestions? :)
http://www.youtube.com/watch?v=8Qvhc-zJ-yY&feature=youtu.be
Found this old application i wrote 8-9 years ago.
Was for a year 10 IT Class project, where we told:
"Create anything that can assist someone within a School and doesn't require much updating."
This was my submission which consequently gave me the highest mark in the class!
The pause at the start and the ending are fade in/out animations!
@Hawkee have you noticed that uh, on threads/comments you've got displayed the escapes, example: http://www.hawkee.com/snippet/2459/
@Hawkee yeah i got it too, but i thought it was something on my end, as i had updated my browser.... lol
@Hawkee Might be because of the new facebook API. but when posting a comment, it says Share my comment on: and then doesn't display anything.
Don't know if you know about that yet, just thought i'd bring it to your attention :)
@Hawkee Frank, John, Joe, Felma liked your script "PHP Webchat"
perhaps an idea?
@Hawkee Suggestion for next update: Being able to lock comments (Snippets/Images)
Example: http://www.hawkee.com/profile/img/78325/
Then lock it so no more bull locks about who's ripping and stuff?
Cheers :)
@Jonesy44 whatcha doing in VB these days?
i'm thinking about creating an IRCd in VB.... with Services..... Whatcha reckon? ;)
@Hawkee lol i had that problem, thought you got rid of that so i just went to http://php.hawkee.com/ XD
@Hawkee other problem was solved after 15 minutes, dunno what happened
but just commented on my PHP Webchat script, and said share on facebook got the following error
Fatal error: Uncaught exception 'FacebookRestClientException' with message 'Updating status requires the extended permission status_update' in /home/hawkee/public_html/phpBB2/includes/facebookapi_php5_restlib.php:2457 Stack trace: #0 /home/hawkee/public_html/phpBB2/includes/facebookapi_php5_restlib.php(1315): FacebookRestClient->call_method('facebook.users....', Array) #1 /home/hawkee/public_html/phpBB2/includes/fbauth.php(86): FacebookRestClient->users_setStatus('Commented on PH...', '1283265564') #2 /home/hawkee/public_html/profile/comments.php(94): send_fbupdate('Commented on PH...') #3 {main} thrown in /home/hawkee/public_html/phpBB2/includes/facebookapi_php5_restlib.php on line 2457
@Hawkee http://www.hawkee.com/profile/img/67005/
error in Google Chrome :)
@Sockreg Hey dude, saw you've done a bit of .NET was wondering if you could help me out in a spot?
cheers