Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 31
Search took 0.09 seconds.
Search: Posts Made By: xanderman
Forum: PHP 08-31-2010, 12:47 AM
Replies: 3
Views: 1,183
Posted By xanderman
<?php echo RandomString(8); echo "<br>"; ...

<?php
echo RandomString(8);
echo "<br>";
echo RandomString(8, false, true, false);
echo "<br>";
echo RandomString(8, true, false, false, 1);
echo "<br>";
echo RandomString(8, true, false,...
Forum: PHP 08-27-2010, 07:17 PM
Replies: 4
Views: 678
Posted By xanderman
you would have to have it check validation on the...

you would have to have it check validation on the server side after the form is submited. But really, most browsers should have the proper componets installed for AJAX to work, and you can call your...
Forum: PHP 08-27-2010, 06:14 PM
Replies: 8
Views: 1,106
Posted By xanderman
maybe try the ASP section? ...

maybe try the ASP section?
http://codingforums.com/forumdisplay.php?f=8
Forum: PHP 08-27-2010, 01:31 PM
Replies: 8
Views: 1,106
Posted By xanderman
ok, foreach loops are easy, lets start with a...

ok, foreach loops are easy, lets start with a simple array.

$colors = array('red', 'blue', 'green');

normaly we would access the values like so
$colors[0]
$colors[1] so on and so fourth
...
Forum: PHP 08-27-2010, 01:21 AM
Replies: 8
Views: 1,106
Posted By xanderman
yeah, that will work, its a bit redundant to have...

yeah, that will work, its a bit redundant to have each var broken down like that, i would recommend using a foreach loop as i have in my function above, then use extract() to assign variable names...
Forum: PHP 08-26-2010, 06:59 AM
Replies: 8
Views: 1,106
Posted By xanderman
you can use something like this to "Clean" your...

you can use something like this to "Clean" your post vars from injection attempts

function CleanPostVars ()
{
foreach ($_POST as $k => $v)
{
$cleaned[$k] = mysql_escape_string($v);
}...
Forum: PHP 08-25-2010, 08:22 AM
Replies: 2
Views: 760
Posted By xanderman
something like this might work you would use...

something like this might work

you would use it like this

if(PasswordStrength($yourpassword) == 4) //it met all 4 conditions
//3 means it met 3 conditions
// 2 conditions and so on and so...
Forum: PHP 08-25-2010, 03:51 AM
Replies: 3
Views: 1,342
Posted By xanderman
something else you may want to concider doing...

something else you may want to concider doing before placing raw $_POST vars into a database table is cleaning them, to make sure it can be "injected" into.

something like this should work
...
Forum: PHP 08-25-2010, 03:32 AM
Replies: 2
Views: 782
Posted By xanderman
create a new DB user for your client, give them...

create a new DB user for your client, give them acces to READ your database only.

Then any INSERT UPDATE and DELETE commands will be ignored.

In addition, including your config php from a...
Forum: PHP 08-24-2010, 02:50 PM
Replies: 4
Views: 678
Posted By xanderman
have you tried AJAX? ...

have you tried AJAX?

http://www.javascriptkit.com/dhtmltutors/ajaxgetpost2.shtml
Forum: PHP 08-24-2010, 02:22 PM
Replies: 9
Views: 566
Posted By xanderman
<?php echo getcwd(); ?> upload that to your...

<?php echo getcwd(); ?> upload that to your public HTML, thats your absloute path to your public_html folder

http://us2.php.net/manual/en/function.getcwd.php
Forum: PHP 08-24-2010, 02:17 PM
Replies: 9
Views: 566
Posted By xanderman
Storing images on the server? Storing how? in a...

Storing images on the server? Storing how? in a database? Flat file?

Flat File, make sure that your directory your writing to is CHMOD'd correctly.
Also, when running from a cronjob it may...
Forum: Post a PHP snippet 08-24-2010, 12:38 PM
Replies: 1
Views: 2,702
Posted By xanderman
If anyone has any issues, questions or comments,...

If anyone has any issues, questions or comments, please post here, you can also come to my irc channel on irc.rizon.net channel #xb for any of the above or testing purposes.
Forum: Post a PHP snippet 08-24-2010, 11:14 AM
Replies: 1
Views: 2,702
Posted By xanderman
IRC Channel Bot

So this idea just poped into my head, so i put it into some code.

Lets be clear from the start here, this is not ment to be an end-user client.

This is a irc bot to manage your channel. It...
Forum: Post a PHP snippet 01-11-2008, 01:27 AM
Replies: 5
Views: 5,222
Posted By xanderman
Captcha

Keep in mind that i wrote this for something diffrent, and you may need to change the "Injection Dection"

Using CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans...
Forum: Post a PHP snippet 01-11-2008, 01:21 AM
Replies: 20
Views: 60,084
Posted By xanderman
Well, as far as having it update in real time. ...

Well, as far as having it update in real time. The best your gonna get, atleast when using it as a page on a webserver, is using flush() after you display your text. This delay you can still notice...
Forum: PHP 11-24-2006, 01:50 PM
Replies: 1
Views: 693
Posted By xanderman
something like this should work <?php ...

something like this should work

<?php
$last_time = $_COOKIE['last_hit_time'];
$now = time();
$wait = 5;
if(empty($last_time))
{
setcookie('last_hit_time', $now);
}
Forum: PHP 08-03-2006, 04:24 AM
Replies: 7
Views: 977
Posted By xanderman
im not quite sure what your tring to do but i...

im not quite sure what your tring to do but i hate using arrays when i extract data from a database, i always do it like this


<?php
$query = mysql_query("SELECT * FROM `mytable`");
while($row...
Forum: PHP 08-03-2006, 04:19 AM
Replies: 3
Views: 629
Posted By xanderman
Some sort of javascript.

Some sort of javascript.
Forum: Post a PHP snippet 08-02-2006, 10:25 AM
Replies: 20
Views: 60,084
Posted By xanderman
Question hehe i will, been playing too much Final fantasy...

hehe i will, been playing too much Final fantasy XI lol havent been hittin the forums much.
Forum: Post a PHP snippet 07-28-2006, 07:34 PM
Replies: 20
Views: 60,084
Posted By xanderman
Its all about parsing the recived data, say we...

Its all about parsing the recived data, say we recived this chunk of data.



This is our chanel Topic.


This is our user list.
Forum: PHP 07-24-2006, 02:50 AM
Replies: 7
Views: 684
Posted By xanderman
$query = mysql_query("SELECT * FROM...

$query = mysql_query("SELECT * FROM `cms_links`");
while($row = mysql_fetch_array($query))
{
extract($row);
echo "<a href=$linkLocation>$linkName</a><br>\n\r";
}


Try that?
Forum: PHP 07-23-2006, 06:58 PM
Replies: 7
Views: 744
Posted By xanderman
Your password and or user name is wrong for that...

Your password and or user name is wrong for that mysql server, your code is fine
Forum: PHP 07-23-2006, 06:46 PM
Replies: 7
Views: 741
Posted By xanderman
wth is he setting a post varable? This is...

wth is he setting a post varable?

This is how i would do it, but thats just me.


<?php
$mkcomment = trim($_POST['mkcomment']);
$mcode = $_POST['mcode'];
$mktype = $_POST['mktype'];
$myear...
Forum: PHP 07-23-2006, 06:40 PM
Replies: 7
Views: 741
Posted By xanderman
$_POST['mkcomment']=trim($_POST['mkcomment']); //...

$_POST['mkcomment']=trim($_POST['mkcomment']); // this trims intial or end white spaces a user might put

...no


$mkcomment = trim($_POST['mkcomment']); // this trims intial or end white spaces...
Showing results 1 to 25 of 31

 
Forum Jump

All times are GMT +1. The time now is 09:57 PM.