SniderDK
Privileged
-
Joined
-
Last visited
Reputation Activity
-
SniderDK got a reaction from drennan in PHP echo only month from record<?php
$parts = explode('-', $row_events['fromdate']);
echo $parts[1];
?>
if thats uk format or
<?php
$parts = explode('-', $row_events['fromdate']);
echo $parts[2];
?>
if it is USA format
-
SniderDK got a reaction from Anonimista in PHP class modifiersThink the only time final would be handy is for Library writers, so you can make sure some functions dont get overwritten by child classes and other developers and not use private.... but using absract and final would be extreamly odd as Jock says,
Also google did this guide years ago, which basicly has 3 valid points
Avoid writing naive setters and getters
Don't copy variables for no reason
Avoid doing SQL queries within a loop
https://developers.google.com/speed/articles/optimizing-php
"- final can be used for class properties? (why?)"
also checkout this section of the php manual: http://uk3.php.net/manual/en/language.oop5.php
-
SniderDK reacted to webdeveloper93 in Addition and InsertYea hes pointing out that this
<?php $array = array(array('one'),array('two')); foreach($array as $v){ var_dump($v); } ?>
would output properly as
array(1) { [0]=> string(3) "one" } array(1) { [0]=> string(3) "two" }
but this
$array = array(array('one'),array('two')); foreach($array as $v){ } var_dump($v);
would out put as
array(1) { [0]=> string(3) "two" }
which is odd behaviour , it does not take a lot to understand this yea?
-
SniderDK got a reaction from Marvedia in What are MYSQL_NUM & MYSQL_ASSOC for?hiya,
The diffrence is the array format you get the results in, assoc will use the coloum names as array keys, the other will use a incremental number from 0 (computers count from 0 not 1)...
// numeric $results = array(0 => 'value 1' , 1 => 'value 2'); echo $results[0]; // will print out "value 1" echo $results[1]; // will print out "value 2" // ASSOC $results = array('key1' => 'value 1' , 'key2' => 'value 2'); echo $results['key1']; // will print out "value 1" echo $results['key2']; // will print out "value 2"
-
SniderDK got a reaction from RobbieD90 in How to transfer a Feedburner feed into raw XML?your browser makes it look nice, press CTRL + U
-
SniderDK got a reaction from webdeveloper93 in Really fed up with spami wouldnt block if one email is used to much as it would be stopping legit people who just want to use the system alot, adding a time value so like 2 submitions within 30 seconds... but its better to add a pause to the users session than the below.
SELECT COUNT(id) FROM banners WHERE email = '' AND timestamp >= (time()-60);
and for the searching, im delibratly not telling you, so that you google search how and learn... really the php manual is legandary, if the page dosnt say what you need its likley the comments will!
http://php.net
-
SniderDK got a reaction from webdeveloper93 in Really fed up with spamhey,
Using a diffrent capatcha would help, the version your using is easy for OCR to figure out. ReCapatcha is good, you can make it look diffrent.
also checking that the Reciprocal Link is on the other website would be a plan, could make a cron to check them once a month... or like daily until they earn a trust rating to goto monthly checks or what ever.
also are you doing proxy detection, you could not show the page through a proxy (if its in the HTTP headers).
thats some ideas
-
SniderDK got a reaction from rallport in It's late, I'm tired and I can't get this to work.hey,
Made a php lib so i can send push notifications to me android with platform updates, it dosnt use curl and uses php native stream wrapper so should work...
https://github.com/snider/php-notifyMyAndroid/blob/master/nmaApi.class.php#L145
-
SniderDK reacted to GaryP in What are MYSQL_NUM & MYSQL_ASSOC for?Thank-you for responding
-
The problem is, the company that does SEO for BA, doesn't do SEO for Thai Airways.
You're lying, and you know it.
-
SniderDK got a reaction from Bomb in Guarantee page 1 of google to your clients...if this thread gets banned can it just get locked... ive reported it to google and linked to this thread so they can decide.... nothing personal, im a adwords partner and cant not... goes agenst what i stand for
Original Post: (as its been removed by the OP)
-
I assume then you are talking about Big Mouth Media?
-
I think, you have had some mild success with minor key phrases with low competition, by using spammy link networks and black hat techniques. I think you are a fraud, and I think you are an individual who's figured out how to scam people out of a few hundred quid on your computer in your bedroom. You're not a company, you don't earn £30k a month, your software isn't some magical tool that guarantees front page using white hat techniques, and I think you are as full of sh1t as most other SEO "experts".
Please go and die in a fire.
-
Some guy just rang the doorbell, said he has a Taxi for someone called "seo masters"? Any ideas?
-
SniderDK got a reaction from Samus in PHP form problemssyntax error on the last line.
echo "$theResults" /// need to add a ;
very shocked i was the 6th downloader, and first to post.
anywho, what your doing is wrong, so so wrong for a Computer Forensics company... you should hire a php dev (not me) or dont use php on this project, really using a string to echo a variable shows a lack of understanding thats not good for this client in particular... im really not "digging" but the truth is the truth and you cant deliver a custom php website to a computer security firm.
im not going to harp on other than to say you should use one of the forms made by forum members steve's is a vast improvement in what you have, http://www.webdesignerforum.co.uk/topic/34628-my-contact-form-v19/
again, im sorry if i sound harsh, im really not on the attack here... but theres just some stuff i cant keep quiet especially when it concerns security firms.
-
SniderDK got a reaction from Aquavibe in Dedicated Server Software advice for a Wordpress sitemaybe it should be posted there.... however i don't subscribe to that forum tho so if i can help... maybe its the right place.
Do you use a CDN?
do you use stock configuration? (have you edited apache settings)
do you have a server control panel like cpanel or is it pure?
high traffic systems is kinda my thang so if you want a hands on dev/admin let me know.... someone here can vouch for me... probably Renascence-design if chris see's this
anywho, ive got a checkable linked.in profile to vet i can do this stuff... if you want that, im on skype
also another option is to checkout these service providers as there tailored hosting providers for high traffic stuff
http://vps.net/product/geohosting/
or depending on the budget
http://vip.wordpress.com/our-services/#compare-services
hope that helps
EDIT: your signature made i larf
-
SniderDK got a reaction from gormo7 in JavaScript SEO Enemy?your on page 2 for me... my first hunch was a personalized result... which is happening abit but the website is defo doing somthing.
I wouldn't be worried... looking at the code your ticking alot of boxes.... there are some things that could be improved... BUT they actually help you out.... it doesn't look like a SEO's work.
it is true they dont like spammy websites... websites with value can get away with alot... just make it a good resouce... dont over litter the page with ads and your going to be fine...
your doing well, the site is ranking obviously on a term with not much actual competitors in natural but adwords meaning people make money on these results.... this is actually the first time (i think) in over a decade ive had to say these words.... whats the problem? i dont get it...
-
SniderDK got a reaction from adsegzy in I need a business social network software/scriptsyou want dolphin social network script (http://www.boonex.com/dolphin)... the source is open source which is a massive help
-
SniderDK reacted to Renaissance-Design in SEO Conflicts of interestFind someone else you trust to do a good job and have a reciprocal arrangement: refer your second bod to them; they do the same to you. You can compete with each other's services without a conflict of interest and nobody goes away unhappy.
-
SniderDK reacted to Renaissance-Design in Minifying CSSThis is. It's nice to go plugin-free for some things, but sometimes it's not worth the hassle. If someone else has written something that works and they're prepared to support and update it, so much the better. -
SniderDK reacted to Renaissance-Design in Local PHP serverZend Server CE.
-
SniderDK got a reaction from Hermes in Serious problem *sad face*with mod_rewrite and php you could send everything to the script, filter out bad traffic and 302 redirect back to the resource requested.
could try using cookies also, like set one on this script and then check the user has one... the attacker is probbly using somthing basic so there is a chance the script wont send cookies with their requests.
if you can stop the traffic this way then he might still flood your server with requests but you wont be sending anything back, so as long as he dosnt then sap up the NIC with bogus traffic you should be cool.... and in fairness if they manage to saturate the nic then its the hosts probblem to deal with...
if you get stuck, i can whip up such a script...
{EDIT}
Yay for open source... http://forum.itratos.de/showthread.php?466-IP-Blocker that should help you gain some control
-
SniderDK reacted to Renaissance-Design in MySQL Undefined IndexIf you're only selecting the post column, where's "number" coming from?
-
SniderDK reacted to Renaissance-Design in Slug Generatorfunction titleToSlug($title, $maxLength) { $result = strtolower($title); $result = preg_replace("/[^a-z0-9\s-]/", "", $result); $result = trim(preg_replace("/[\s-]+/", " ", $result)); $result = trim(substr($result, 0, $maxLength)); $result = preg_replace("/\s/", "-", $result); return $result; }
Have to do your own duplicate checking.
-
SniderDK reacted to zed in Can anyone help me with my SEO site!?if it were my forum I'd kick anyone that opened up old threads.