RE: [PHP] Web Site Directory Layout

2009-09-26 Thread Caner Bulut
Thanks for help. Caner. _ From: דניאל דנון [mailto:danondan...@gmail.com] Sent: Saturday, September 26, 2009 2:35 PM To: Caner Bulut Cc: php-general@lists.php.net Subject: Re: [PHP] Web Site Directory Layout There is no standard for that - Its your choice, I usually use

[PHP] Web Site Directory Layout

2009-09-25 Thread Caner Bulut
Hi All, Is there a stable or standart directory layout for PHP project (like web sites)?. Example; index.php img/ css/ js/ lib/ doc/ tools/ Thanks.

RE: [PHP] Web Site Directory Layout

2009-09-25 Thread Caner Bulut
Bulut Cc: php-general@lists.php.net; caner...@gmail.com Subject: Re: [PHP] Web Site Directory Layout On Sep 25, 2009, at 6:50 PM, Caner Bulut caner...@gmail.com wrote: Hi All, Is there a stable or standart directory layout for PHP project (like web sites)?. Example; index.php

RE: [PHP] Sanitizing mysql inserts of user data

2009-08-16 Thread Caner Bulut
Hi Dotan, You can use htmlentities(), htmlspecialchars() and strip_tags() functions when you show your saved data on your web pages. mysql_real_escape_string function saved data into mysql DB with a secure way. But when you try to show data you still have to control it. Thanks. Caner.

RE: [PHP] Cannot exec in my own directory

2009-08-16 Thread Caner Bulut
Dotan, Please copy your script in the Linux include paths. Such as /usr/local/bin and give it neccecary permission and try your script again. If you still have any problem, we understand that it is no related script path problem and permissions. Maybe there is some problems on your php script.

RE: [PHP] OOP Design Software

2009-07-26 Thread Caner BULUT
Hi Daniel, You can use Eclipse with plugin PDT or Zend Studio. They can track your classes and methods. They can remember your methods and classes also they have code completion abilities. Thanks Caner. -Original Message- From: Daniel Kolbo [mailto:kolb0...@umn.edu] Sent: 26 July 2009

Re: [PHP] XSS Preventing.

2009-06-23 Thread Caner Bulut
Michael, I can be useful for me. It seems there will be not ant charset problem occurs. Thanks for help. Caner. 2009/6/23 Michael A. Peters mpet...@mac.com Caner BULUT wrote: Hi Guys, I have a question if you have any knowledge about this please let me know. I getting data from

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Caner Bulut
I have read somethings about these issues. And i understand that If you use htmlentities() BEFORE insertion, when querying DB from XML, PDF or other data format, there will be some problems. I have some PHP books, the author codding like Martin Zvarík's way. If you have any pros and cons please

Re: [PHP] resubmit form after validation error

2009-06-22 Thread Caner Bulut
related to the item), I set up 2 submits - 1 to update.php and one to delete.php Maybe it's all cumbersome and maybe it is possible to streamline the whole process, but then it does work and I am just learning... :-) Thanks again. PJ Caner BULUT wrote: Hi, You can use a variable

[PHP] XSS Preventing.

2009-06-22 Thread Caner BULUT
Hi Guys, I have a question if you have any knowledge about this please let me know. I getting data from a form with POST method like following. $x = htmlentities($_POST['y']); . After getting all form daha I save them into DB, I used mysql_real_escape_string. I have an page

RE: [PHP] Re: XSS Preventing.

2009-06-22 Thread Caner BULUT
2009 23:27 To: php-general@lists.php.net Subject: [PHP] Re: XSS Preventing. Caner BULUT wrote: Hi Guys, I have a question if you have any knowledge about this please let me know. I getting data from a form with POST method like following. $x = htmlentities($_POST['y

RE: [PHP] Re: XSS Preventing.

2009-06-22 Thread Caner BULUT
-general@lists.php.net Subject: Re: [PHP] Re: XSS Preventing. Caner BULUT wrote: Thanks for response. But if I use before display there is charset problems occurs. And htmlentities does not support Turkish Charset. How can I decode data after pass thought htmlentities. I have no idea, I

RE: [PHP] resubmit form after validation error

2009-06-20 Thread Caner BULUT
Hi, You can use a variable to that. Like following. Example if the variable is 1 you start to processing form input. Example form method=post action=file.php?action=1 And in file.php you check the action variable if it is 1 you can start the processing data. If($_GET['action']==1) { Echo

Re: [PHP] Search/Replace in entire database?

2009-06-15 Thread Caner Bulut
Hi Chris, MySQL introduced full - text indexing and searching capabilities back in version 3.23.23. The implementation is straightforward and easy to use — define a FULLTEXT index and use MATCH / AGAINST in the query. Consider this example: CREATE TABLE SOCIAL_EVENT ( EVENT_ID INTEGER