Search found 8 matches

by x4t
Mon Jul 18, 2005 11:07 am
Forum: PHP - Security
Topic: Using real_escape_string() on a int field
Replies: 47
Views: 20079

Re: Using real_escape_string() on a int field

I've got a small question, do I need to use real_escape_string on post and get if the data type in the database is a integer. Is there anyway that someone could get evil code into a integer field, and would real_escape_string help in anyway? You've got the PHP function is_numeric if you want to che...
by x4t
Sat Jul 16, 2005 3:48 am
Forum: PHP - Code
Topic: image into title of link
Replies: 4
Views: 397

Re: image into title of link

ddragas wrote:Hi all

Is it possible to put image into title of link?
What kind of info do you mean?
by x4t
Sat Jul 16, 2005 3:47 am
Forum: PHP - Code
Topic: Navigating page with PHP code :(
Replies: 3
Views: 397

Well i've developed a page that checks the password, and my problem is that if a user enters a password i've to show a message and redirect that user to a new page or somewhat like that. e.g: if($pass!="password"): echo("incorrect user/password<br>"); echo("Please <a href=l...
by x4t
Sat Jul 16, 2005 3:03 am
Forum: PHP - Code
Topic: echo html tags
Replies: 2
Views: 312

Re: echo html tags

is it generally a good idea to echo html tags or is it better to use them normally (echo '<tr>' compared to <tr>)? i'm working with dynamic tables, and echo makes things a bit more nice (no need to break php into <?php ?> parts). your opinions/suggestions are welcome. I think it depends on what you...
by x4t
Sat Jul 16, 2005 1:36 am
Forum: PHP - Code
Topic: Converting from ?id=blah to ?blah [56k warning]
Replies: 17
Views: 1147

I can only use PHP for this... if you havent guessed already. Mod rewrite isn't PHP either. Multiviews is. You'll have to add this to a .htaccess file; RewriteEngine On Options MultiViews (sometimes +Multiviews) Than you'll have to use a code like <?php function parseMultiviews() { $get = array(); ...
by x4t
Fri Jul 15, 2005 3:47 pm
Forum: PHP - Code
Topic: PHP File Manager
Replies: 10
Views: 1342

One thing I might suggest is not changing your directory. You can just as easily update the path of the directory your trying to open, and it has less overhead. Is the purpose of this script to be applicable to an arbitrary server or is it solely to access files on the server on which the script is...
by x4t
Fri Jul 15, 2005 3:40 pm
Forum: PHP - Code
Topic: Converting from ?id=blah to ?blah [56k warning]
Replies: 17
Views: 1147

bokehman wrote:Your server would need mod_rewrite to do this
You can also reach the goal with Multiviews :-)
by x4t
Fri Jul 15, 2005 3:34 pm
Forum: PHP - Code
Topic: PHP File Manager
Replies: 10
Views: 1342

Hi,

I think the FTP functions of PHP are rather slow, but I don't know for sure. Maybe you can do with a 'normal' file browser?

x4t