Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 82
Search took 0.14 seconds.
Search: Posts Made By: TFlan
Forum: PHP 02-23-2013, 07:11 PM
Replies: 3
Views: 200
Posted By TFlan
Yea there were two problems that I found. ...

Yea there were two problems that I found.

For my code lines, I have to have <code>...</code> around each individual line. It uses CSS. Which I then applied highlight_string() to each individual...
Forum: PHP 02-23-2013, 06:34 AM
Replies: 3
Views: 200
Posted By TFlan
highlight_string only using #000000 - INI File shows otherwise

The line of code in question is:

$content[$i] = highlight_string($content[$i], true);

However every single color hex is #000000 as seen here http://tristification.com/chit-chat/2/3

I have...
Forum: PHP 02-08-2013, 02:55 PM
Replies: 2
Views: 201
Posted By TFlan
Just use math to manipulate the row index you are...

Just use math to manipulate the row index you are trying to achieve (i believe this is what you're trying to do).

So if your limit $startLim, $endLim, for example $startLim = 30; $endLim = 50,...
Forum: PHP 02-07-2013, 02:21 PM
Replies: 2
Views: 212
Posted By TFlan
You're not really asking anything - or anything...

You're not really asking anything - or anything that is clearly a question.
Forum: PHP 02-06-2013, 08:38 PM
Replies: 9
Views: 370
Posted By TFlan
I understand where you are coming from, but for...

I understand where you are coming from, but for the sake of explanation, that could confuse the OP. Especially in this case with the new library the OP is learning
Forum: PHP 02-06-2013, 07:41 PM
Replies: 9
Views: 370
Posted By TFlan
Please do not take what Durangod has said about...

Please do not take what Durangod has said about his code being object oriented to mind.

It is not.

He is using the procedural style, just as you are, NOT object oriented style of the mysqli...
Forum: PHP 02-06-2013, 06:57 PM
Replies: 9
Views: 370
Posted By TFlan
Procedural: mysqli_error($link) $link...

Procedural:

mysqli_error($link)

$link being new mysqli(...);
Forum: PHP 02-05-2013, 09:16 PM
Replies: 19
Views: 503
Posted By TFlan
If you are not familular with character sets, you...

If you are not familular with character sets, you NEED to read this:

http://www.joelonsoftware.com/articles/Unicode.html
Forum: PHP 02-05-2013, 02:53 PM
Replies: 1
Views: 246
Posted By TFlan
PHP overall. PHP can be used for everything you...

PHP overall. PHP can be used for everything you mentioned.

The login, register, member section are very easy to do - there are many, many resources on the web to help you out.

I would use...
Forum: PHP 02-04-2013, 09:35 PM
Replies: 19
Views: 503
Posted By TFlan
If you copied as is, then it wouldn't do that. ...

If you copied as is, then it wouldn't do that.

You need to implement ucfirst() on the string that you want to have an uppercase first letter
Forum: PHP 02-04-2013, 09:25 PM
Replies: 19
Views: 503
Posted By TFlan
function valid($arg){ return...

function valid($arg){
return preg_match('/^[A-Z]/', $arg);
}

The variable $arg is abstract, it is only available locally - meaning you can only access it within the function valid().
...
Forum: PHP 02-04-2013, 09:15 PM
Replies: 19
Views: 503
Posted By TFlan
return preg_match('/^[A-Z]/', substr(trim($arg),...

return preg_match('/^[A-Z]/', substr(trim($arg), 0, 1));

trim() removes leading and trailing spaces, substr(), well, it explains itself.

ucfirst() will change the first character of a string to...
Forum: PHP 02-04-2013, 09:08 PM
Replies: 10
Views: 546
Posted By TFlan
You have solved your own problem... The...

You have solved your own problem...

The $_REQUEST array includes $_GET, $_POST, and $_COOKIE

You are utilizing $_POST for the form submission and $_GET for the link.

To get the information...
Forum: PHP 01-31-2013, 10:01 PM
Replies: 4
Views: 208
Posted By TFlan
Yes, unlink() deletes the designated file. ...

Yes, unlink() deletes the designated file.

You should be a little more clear in your intentions. So you are storing the file path in a mysql database?

If so, then yes you can remove the file...
Forum: PHP 01-31-2013, 08:38 PM
Replies: 4
Views: 208
Posted By TFlan
You would need to take advantage of the unlink()...

You would need to take advantage of the unlink() (http://www.php.net/manual/en/function.unlink.php) function.

Be careful not to allow someone with malicious intent to delete your entire website
Forum: PHP 01-31-2013, 08:24 PM
Replies: 3
Views: 202
Posted By TFlan
Wrap it in anchor tags. echo '<a...

Wrap it in anchor tags.

echo '<a href="'.$url.'"><img ... /></a>';
Forum: PHP 01-31-2013, 05:29 PM
Replies: 8
Views: 536
Posted By TFlan
Most phones have a very good...

Most phones have a very good anti-randomly-guessing-passwords system.

You have 5 attempts, after you fail 5 times you wait 60 seconds, then if you fail again it's 5 minutes, then again it's 10 min...
Forum: PHP 01-31-2013, 03:00 PM
Replies: 4
Views: 361
Posted By TFlan
"Only a handful of people won't have javascript...

"Only a handful of people won't have javascript turned on."

That's the reason why people don't use javascript unless absolutely necessary. What will you do for those people? Those people usually...
Forum: PHP 01-30-2013, 09:17 PM
Replies: 7
Views: 330
Posted By TFlan
Ah! I understand what you're asking.. $q60 =...

Ah! I understand what you're asking..

$q60 = mysql_query("SELECT `VotingSiteType` FROM `votingsite` WHERE `CheckedForVoting` = 1 AND `userid` = '".$uid."'");
while($q61 =...
Forum: PHP 01-30-2013, 05:35 PM
Replies: 7
Views: 330
Posted By TFlan
So then what's your question? You seem to already...

So then what's your question? You seem to already know the answer
Forum: PHP 01-30-2013, 05:33 PM
Replies: 11
Views: 409
Posted By TFlan
Sure, it's possible and works fine in a personal...

Sure, it's possible and works fine in a personal environment.

But he is in a corporation - corporations don't play nice. Use their existing server.

Talk to your IT department about setting up...
Forum: PHP 01-30-2013, 05:14 PM
Replies: 7
Views: 330
Posted By TFlan
Can you do a var_dump of the results? If the...

Can you do a var_dump of the results?

If the var_dump only shows 1 result, then it is a problem within your query statement or you don't have your data set right in your database.
Forum: PHP 01-30-2013, 05:10 PM
Replies: 11
Views: 409
Posted By TFlan
Again, DO NOT have two servers going at once....

Again, DO NOT have two servers going at once. It's more work and effort than it's worth


IIS supports multiple web sites, if you are familiar with it, you will know what I'm talking about, if...
Forum: PHP 01-30-2013, 04:30 PM
Replies: 11
Views: 409
Posted By TFlan
If they are asking if you know ASP, then they...

If they are asking if you know ASP, then they most likely have IIS already installed.

IIS supports PHP and MySQL, there is no need to double up on your web servers. Simply ask your IT Department...
Forum: PHP 01-30-2013, 03:08 PM
Replies: 1
Views: 273
Posted By TFlan
You need a merchant account with Auth.Net or...

You need a merchant account with Auth.Net or something simular and need to use their API and get a SSL certificate for every page with sensitive data.

It's a tricky process and sometimes, Paypal...
Showing results 1 to 25 of 82

 
Forum Jump

All times are GMT +1. The time now is 06:03 PM.