Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 75
Search took 0.18 seconds.
Search: Posts Made By: kenshn111
Forum: PHP 05-03-2013, 01:03 AM
Replies: 6
Views: 142
Posted By kenshn111
Hi! This isn't related to strtotime anymore but I...

Hi! This isn't related to strtotime anymore but I thought if I made another topic..it wouldn't look good.

I found myself stuck in this problem:


function serialize_cache ($filecache, $array =...
Forum: PHP 05-02-2013, 02:33 PM
Replies: 6
Views: 142
Posted By kenshn111
wait a sec, you used 'midnight'! LOL I didn't...

wait a sec, you used 'midnight'! LOL I didn't notice it at first D:

and thank you for the fast replies and solution for my question! :D
Forum: PHP 05-02-2013, 02:10 PM
Replies: 6
Views: 142
Posted By kenshn111
1367232188 is the filemtime of a file I'm...

1367232188 is the filemtime of a file

I'm trying to make a cache here that renews on the first day of each month, but then the time when the file was made wasn't 00:00:00

time() -...
Forum: PHP 05-02-2013, 01:24 PM
Replies: 6
Views: 142
Posted By kenshn111
Make strtotime have 00:00:00?

I checked topics related to strtotime and I can't find anything near my problem:

I was hoping that maybe there's another way rather than doing this:

echo strtotime(date('Y-m-d 00:00:00',...
Forum: HTML & CSS 04-05-2013, 02:49 AM
Replies: 0
Views: 137
Posted By kenshn111
Forum: PHP 02-24-2013, 11:50 PM
Replies: 0
Views: 157
Posted By kenshn111
PHP Unpack

Hi! Is there a way to unpack/print all the content/variable/data of a file? Like without adding a first parameter?

Sometimes it successfully unpacks the info and when it doesn't, I get...
Forum: PHP 02-22-2013, 09:28 AM
Replies: 1
Views: 189
Posted By kenshn111
preg_match_all 2 cases

Heyyy

I was trying to get the text between the '.' and ']' and also the text between the two ":

$html = '[ACCESSORY_IDs.ACCESSORY_GOGGLES] = "_°í±Û"';

preg_match_all('/(s.)(.*?)]/', $html,...
Forum: JavaScript programming 02-03-2013, 02:21 AM
Replies: 2
Views: 267
Posted By kenshn111
How to check if domain is in the 'allowed list'?

I'm sorry if I'm not clear enough, but I believe I've seen sites which uses JavaScript where it checks if the domain is in the 'allowed list' so that it sents out information to that site? Am I in...
Forum: PHP 01-20-2013, 04:18 AM
Replies: 1
Views: 214
Posted By kenshn111
Best method to search to two tables?

Hi guys!

I wanted to make a search module that searches two tables, is it possible with only one query? I also thought of maybe dumping the tables, then just make a loop to search through it. Is...
Forum: HTML & CSS 12-31-2012, 12:47 AM
Replies: 1
Views: 232
Posted By kenshn111
Prevent center DIV from resizing to max width?

I have 3 divs:
-Float:left (fixed width)
-margin:0 auto; (uses min-width and max-width)
-Float:right (fixed width)

I wanted the middle DIV to fill the space between the other 2 DIVs however the...
Forum: JavaScript frameworks 01-01-2012, 07:29 AM
Replies: 1
Views: 622
Posted By kenshn111
jQuery hide trs from last child

<table style="width: 100%; text-align: center; font-size: 11px;">
<tr>
<th class="date_post"> Rank </th>
<th class="date_post"> Name </th>
<th class="date_post"> Kills </th>
<th...
Forum: JavaScript programming 12-28-2011, 01:10 PM
Replies: 2
Views: 422
Posted By kenshn111
Thank you very much!!

Thank you very much!!
Forum: JavaScript programming 12-28-2011, 11:04 AM
Replies: 2
Views: 422
Posted By kenshn111
Hide/Show the following DIV if clicked?

I know that this can be done using .hide/.show... I don't know how to say this but if you'll look at the code:

<div id="isclickable">
klasdlkasdklaklsjd
<div id="weeeee">
trolololololol
</div>...
Forum: MySQL 12-25-2011, 12:13 PM
Replies: 5
Views: 386
Posted By kenshn111
EDIT: okay so i think i got the first part: ...

EDIT:
okay so i think i got the first part:
<?php
mysql_connect ($dbhost, $dbuser, $dbpasswd);
mysql_select_db("forum");
$rows = mysql_query ("SELECT * FROM phpbb_topics WHERE (forum_id='2') OR...
Forum: MySQL 12-25-2011, 10:49 AM
Replies: 5
Views: 386
Posted By kenshn111
I'm not really that good in coding @_@ Could you...

I'm not really that good in coding @_@ Could you show me an example?
-
Oh and, what's the disadvantage of queries being run on every page visit?
Forum: MySQL 12-25-2011, 10:24 AM
Replies: 5
Views: 386
Posted By kenshn111
Minimize the number of query?

The following code runs a query every page visit, is there a way to make it run whenever a new post is made? I've thought of cache but I don't know how to make it work :( I'm trying to get new topics...
Forum: PHP 11-07-2011, 07:23 AM
Replies: 3
Views: 308
Posted By kenshn111
Thanks for the tip. $findme = 'news'; ...

Thanks for the tip.

$findme = 'news';
$pos = strpos("news_20110626050556.txt", $findme);
echo $pos;


$pos is 0. Why is that?

It says here x...
Forum: PHP 11-07-2011, 05:53 AM
Replies: 3
Views: 308
Posted By kenshn111
strpos problem

$list = $this->getNewsList();
$nr2 = "news";
foreach ($list as $value) {
$findme = 'news';
$findm2 = 'event';
$pos = strpos($value, $findme);

if ($value == ".htaccess") {
}...
Forum: PHP 11-02-2011, 05:15 AM
Replies: 4
Views: 461
Posted By kenshn111
I'm really sorry, I didn't mean to offend anyone....

I'm really sorry, I didn't mean to offend anyone. Yes, I'm from a non-English speaking country. I ran out of words to describe my question/problem, that's why it became a destructive post.


I'm...
Forum: PHP 11-01-2011, 07:37 AM
Replies: 4
Views: 461
Posted By kenshn111
Automatic Post Submit

Yeah.. like what the title says. You use a cURL to pass the data and then it will automatically submit the form. ;o Did you guys get it?
----
I was trying something..
you enter your acc info in...
Forum: HTML & CSS 10-11-2011, 11:11 AM
Replies: 4
Views: 503
Posted By kenshn111
I love you, man. :D Thank you very much!

I love you, man. :D Thank you very much!
Forum: HTML & CSS 10-09-2011, 10:04 AM
Replies: 4
Views: 503
Posted By kenshn111
Really? I found that in Tumblr. They could do it...

Really? I found that in Tumblr. They could do it with text, other pictures, and it changes eveytime I refresh my dashboard. I've seen this quite some time already they're like pop up balloons in...
Forum: HTML & CSS 10-09-2011, 12:54 AM
Replies: 4
Views: 503
Posted By kenshn111
Border with arrow?

Can't really describe it properly :
http://i52.tinypic.com/20svkp5.png
What's that arrow pointing downwards? How can you do it in css?
Forum: PHP 06-08-2011, 06:59 PM
Replies: 1
Views: 232
Posted By kenshn111
Showing and Paginating Files in a Directory

<?php
class aiNews{
var $newsDir = 'news';
var $newsList;
var $newsCount = -1;

function getNewsList(){

$this->newsList = array();
Forum: PHP 06-04-2011, 08:21 AM
Replies: 2
Views: 428
Posted By kenshn111
Hi! Though I already got it working, I used if...

Hi! Though I already got it working, I used if within the foreach

$list = $this->getNewsList();
global $form;
$i = 0;
$per_page = 3; //Number of News per page


$page =...
Showing results 1 to 25 of 75

 
Forum Jump

All times are GMT +1. The time now is 03:45 AM.