Search found 21 matches

by Kev
Fri Feb 05, 2010 7:59 pm
Forum: PHP - Security
Topic: Chmod 777
Replies: 1
Views: 1106

Chmod 777

I'm installing OpenX Ad Server on my dedicated linux server and the install instructions says that I MUST chmod some directories to 777 for the software to work correctly. Is this safe to do? I really don't understand the consequences of this, even though I understand what file permissions are and h...
by Kev
Tue Feb 02, 2010 8:09 am
Forum: General Discussion
Topic: Is Baidu looking at you?
Replies: 3
Views: 542

Re: Is Baidu looking at you?

Baidu is heavy crawling all my sites. As it should. I get some traffic from it too.
by Kev
Fri Jan 22, 2010 7:24 pm
Forum: General Discussion
Topic: IE6 11% market share?
Replies: 14
Views: 2240

Re: IE6 11% market share?

I kid you not, one of my sites has a 17% IE6 demographic. It makes me want to puke! I consider myself expert-level CSS'er and within 10 minutes can make just about any design look the same across FF3.6 and IE6, but it's that 10 minutes I hate with every passion in my heart!!! Don't you wish you coul...
by Kev
Sat Dec 19, 2009 8:56 am
Forum: General Discussion
Topic: oh btw lets play a game
Replies: 10
Views: 1196

Re: oh btw lets play a game

supercalifragilisticexpialidocius

abcdefghijklmnopqrstuvwxyz

- no errors but felt the middle of the keyboard was hardest.
by Kev
Sun Nov 29, 2009 8:31 am
Forum: PHP - Code
Topic: Accessing another DB in WordPress...
Replies: 2
Views: 78

Re: Accessing another DB in WordPress...

daedalus__ wrote:how are you handling errors?
Hi daedalus... I handle errors when querying like so..

Code: Select all

$query = "SELECT * FROM table LIMIT 5";
$result = $GLOBALS['dbc']->query($query) or trigger_error("Query: $query\n<br />MySQL Error: " . $GLOBALS['dbc']->error);
by Kev
Sat Nov 28, 2009 3:41 pm
Forum: PHP - Code
Topic: Accessing another DB in WordPress...
Replies: 2
Views: 78

Accessing another DB in WordPress...

Hi Guys, I wrote a custom WordPress plugin that needs access to another database in MySQL (seperate from the wordpress DB, in other words). I include my own, non-wp, mysqli_connect.php file in my wordpress installation which simply does the following:   DEFINE ('DB_USER', 'XXXX'); DEFINE ('DB_PASSWO...
by Kev
Tue Nov 24, 2009 8:19 pm
Forum: General Discussion
Topic: Facebook Fanbox in XHTML Strict Page
Replies: 4
Views: 1112

Re: Facebook Fanbox in XHTML Strict Page

Thanks for the reply iankent. I guess I won't worry about it.

Here is the offending XHTML, if you can even call it that:

Code: Select all

<fb:fan profile_id="XXXXXXXXXXX" stream="" connections="10" width="300"></fb:fan>
by Kev
Tue Nov 24, 2009 4:28 pm
Forum: General Discussion
Topic: Facebook Fanbox in XHTML Strict Page
Replies: 4
Views: 1112

Facebook Fanbox in XHTML Strict Page

Hi guys.. My wordpress blog is XHTML Strict (no errors). And I want to add the Facebook Fanbox to it, but the code for the fanbox is invalid (no way to make it valid either). I want to embed the Facebook fanbox anyway, but wasn't sure what the consequences were (if any) of having that portion of my ...
by Kev
Thu Nov 12, 2009 2:06 pm
Forum: General Discussion
Topic: To & or &amp;, that is the question..
Replies: 7
Views: 605

Re: To & or &amp;, that is the question..

I tried but the validator doesn't address entities in URL's.
by Kev
Thu Nov 12, 2009 1:28 pm
Forum: General Discussion
Topic: To & or &amp;, that is the question..
Replies: 7
Views: 605

To & or &amp;, that is the question..

When writing XHTML, specifically creating anchor tags for links, should you use html entities for characters in URL's like &? For instance... if I'm writing XHTML, which is correct? <a href="http://www.example.com/index.php?a=2&z=9">Link</a> or <a href="http://www.example.com/...
by Kev
Thu Nov 05, 2009 9:28 am
Forum: General Discussion
Topic: IP Addresses : A better understanding..
Replies: 3
Views: 396

IP Addresses : A better understanding..

I'm coding a "click counter" jump script in PHP and wish to prevent counting of "double clicks" or people that click one link a whole bunch of times in a short period. One way I was thinking to achieve this was by seeing if that particular visitor's IP address had clicked on the ...
by Kev
Sat Oct 31, 2009 2:33 pm
Forum: PHP - Code
Topic: Checking a URL to see if it's broken
Replies: 3
Views: 141

Re: Checking a URL to see if it's broken

Thanks for the tip tasairis... is there any harm in using get_headers or cURL to check for broken links? In other words, will the other servers think I'm trying to hack, etc and ban me?
by Kev
Fri Oct 30, 2009 3:21 pm
Forum: PHP - Code
Topic: Checking a URL to see if it's broken
Replies: 3
Views: 141

Checking a URL to see if it's broken

Hi guys, I have written a nice little PHP jump script (link redirection script) and would like to build into the backend (admin area) the ability to check links to see if they actually work or are broken (ie. do they return a 404 or 202?). Does anyone know how to use PHP to check the workingness of ...
by Kev
Fri Oct 02, 2009 8:39 am
Forum: General Discussion
Topic: For those WordPress users out there...
Replies: 3
Views: 292

For those WordPress users out there...

I'm new to WordPress, but am a seasoned designer/developer. I'm playing around with the visual editor and when I highlight text and center align it (again, using the visual editor), it produces the following: <p style="text-align: center;">My test text</p> Are you kidding me? Is there some...
by Kev
Wed Sep 30, 2009 2:07 pm
Forum: PHP - Code
Topic: PHP Execution WordPress Plugin (Modifying)
Replies: 0
Views: 83

PHP Execution WordPress Plugin (Modifying)

Hi guys, I have some WordPress blogs that I need to be able to execute PHP within the posts (in other words, I can type <?php echo data('Y'); ?> in the WordPress "New Post" editor and everyone will see in my blog entry... 2009). There is a plugin called PHP Execution ( http://wordpress.org...