TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 25 of 47
Search took 0.07 seconds.
Search: Posts Made By: tony
Forum: MySQL & Databases 07-09-2012, 03:27 PM
Replies: 2
Views: 665
Posted By tony
You need to escape...

You need to escape (http://us2.php.net/manual/en/mysqli.real-escape-string.php) the special characters. If you don't sanitize your user input, you are vulnerable for SQL injections...
Forum: Member Introductions 06-05-2012, 12:17 PM
Replies: 2
Views: 791
Posted By tony
Welcome to the forum. If you have any questions,...

Welcome to the forum. If you have any questions, it is a good place and also if you want to help people out.

See you around.
Forum: MySQL & Databases 05-24-2012, 05:40 PM
Replies: 4
Views: 1,307
Posted By tony
does your table only has the fields name and...

does your table only has the fields name and comment? you would need an extra field that would hold the date and time when the comment was created then you can order them. For example lets say the...
Forum: Member Introductions 05-15-2012, 12:43 PM
Replies: 3
Views: 1,262
Posted By tony
Welcome aboard! We'll see you around the...

Welcome aboard! We'll see you around the forum.

P.S. You reminded me I need to learn Bahasa. I have a couple Indonesian friends and the language has intrigued me since I hang out with them.
Forum: Advanced PHP Programming 04-26-2012, 04:46 AM
Replies: 3
Views: 1,883
Posted By tony
I've never seen that error before. But it seems...

I've never seen that error before. But it seems that your left side of the assignment is evaluating $property_obj to a string because you have the dollar sign after the -> . So change...
Forum: Member Introductions 02-04-2012, 02:27 AM
Replies: 3
Views: 482
Posted By tony
welcome aboard Arpit. We'll see you around here.

welcome aboard Arpit. We'll see you around here.
Forum: Member Introductions 10-13-2011, 12:58 PM
Replies: 4
Views: 526
Posted By tony
Hi nishat90 and Welcome! You will like it over...

Hi nishat90 and Welcome! You will like it over here.
Forum: MySQL & Databases 09-16-2011, 07:08 PM
Replies: 1
Views: 548
Posted By tony
You can use PHP for desktop gui applications...

You can use PHP for desktop gui applications using http://gtk.php.net/
It has been a while since I used Visual Basic, but as far as I know this http://paulbradley.tv/37/ is about the other way to...
Forum: Advanced PHP Programming 08-01-2011, 07:59 PM
Replies: 6
Views: 747
Posted By tony
you can use the the hash-table characteristic of...

you can use the the hash-table characteristic of arrays in your advantage here. For example:

$uniques = array();
foreach($missed as $record) {
$uniques[$record[2]] = empty($unique[$record[2]]) ? 0...
Forum: General 07-13-2011, 12:19 PM
Replies: 4
Views: 734
Posted By tony
Ok if it is just the back slashes that you want...

Ok if it is just the back slashes that you want to get rid of, then you can use the stripslashes, like you've done. But you need to save the results of that call in a variable. Kind of like...
Forum: General 07-12-2011, 07:57 PM
Replies: 4
Views: 734
Posted By tony
stripslashes is only for back slashes only to...

stripslashes is only for back slashes only to prevent quoted strings. But there is also other text replacement functions out there. my favorites are strtr and str_replace Plus in those functions you...
Forum: Advanced PHP Programming 05-11-2011, 09:29 PM
Replies: 19
Views: 1,045
Posted By tony
I see what you mean. There is a problem in the...

I see what you mean.
There is a problem in the vars function you where right with the = instead of concatenating it with .=

But there was another problem in the logic of multiples in a template.
The...
Forum: Member Introductions 05-05-2011, 06:12 PM
Replies: 3
Views: 617
Posted By tony
Welcome clonepal. That is how I find this forum...

Welcome clonepal.
That is how I find this forum too. :P
Forum: XHTML, HTML, CSS 04-22-2011, 02:59 PM
Replies: 2
Views: 760
Posted By tony
what about this...

what about this http://us3.php.net/manual/en/mbstring.supported-encodings.php
Forum: Absolute Beginners 03-25-2011, 12:46 AM
Replies: 2
Views: 654
Posted By tony
it seems that your best fit is using javascript...

it seems that your best fit is using javascript listening to the SELECT onChange event. I don't know where you want the result to come up so I am going to put it in an input text for this...
Forum: Absolute Beginners 03-14-2011, 03:49 PM
Replies: 5
Views: 620
Posted By tony
I was just mentioning __FILE__ so it is...

I was just mentioning __FILE__ so it is dynamically given, so it is not a static name like test.php

I am just to program the more dynamic to the context, the easier to port code somewhere else.
But...
Forum: Absolute Beginners 03-09-2011, 03:37 PM
Replies: 5
Views: 620
Posted By tony
if you want to combine this 2 files in 1, you...

if you want to combine this 2 files in 1, you would need to add an if statement checking for the submition of the form.
first change the form's action to your current file (and maybe closing the php...
Forum: Absolute Beginners 03-05-2011, 05:16 PM
Replies: 2
Views: 627
Posted By tony
I try that with this example echo...

I try that with this example

echo str_replace("<wordfilter>","&lt;wordfilter>","<wordfilter>hwekljo </wordfilter>");
//returns: &lt;wordfilter>hwekljo </wordfilter>

I don't see a problem, maybe with the...
Forum: Absolute Beginners 03-03-2011, 10:48 PM
Replies: 4
Views: 813
Posted By tony
I don't get where the problem is? I am guessing...

I don't get where the problem is? I am guessing from your intro is in your second example where you are trying to read the file of ips.
I would use the file...
Forum: General 01-03-2011, 12:53 AM
Replies: 3
Views: 658
Posted By tony
I am guessing is a mixture of document_root and...

I am guessing is a mixture of document_root and unsetting the $chosen_lang. There is ambiguity in which one you are unsetting since the class's property is named the same and can be access the same....
Forum: Absolute Beginners 11-11-2010, 02:27 PM
Replies: 2
Views: 823
Posted By tony
mysql_fetch_array only returns the first row of...

mysql_fetch_array only returns the first row of the result and then moves the internal data pointer ahead. The array has 2 entries because 1 is for the numeric indexed array and the other one is for...
Forum: Absolute Beginners 09-04-2010, 03:15 PM
Replies: 5
Views: 698
Posted By tony
So, if I understand it right, you want to convert...

So, if I understand it right, you want to convert a link like this http://website.com/post/123 to something like this http://website.com/?post=123?

In hard-coded simple terms it could be done with a...
Forum: General 08-14-2010, 05:36 PM
Replies: 2
Views: 614
Posted By tony
it is a language construct that suppresses...

it is a language construct that suppresses warnings and errors. In this case it won't stop the execution of the script if there is an error or warning.

It is a bad practice though, because if you...
Forum: Member Introductions 08-10-2010, 04:21 AM
Replies: 4
Views: 519
Posted By tony
Welcome aboard! and if you have any questions...

Welcome aboard! and if you have any questions just ask.
Forum: Absolute Beginners 07-15-2010, 03:47 PM
Replies: 2
Views: 584
Posted By tony
it seems that you closed the double quotation...

it seems that you closed the double quotation with a single one and no semi colon in both echo statements. f

when you write a string you either go "this is a string" or 'this another string'. They...
Showing results 1 to 25 of 47

 

All times are GMT. The time now is 05:05 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design