Of course, you can submit any PHP-related questions you want. To ask a question, please post it in this thread.
And don't forget to edit your signature & profile.

// Define a load of classes...
// Define a load of functions in the global scope...
define("SYSPATH", "/home/username/public_html/system");
// Something happens in the script, that means you have to change SYSPATH to another value.
define("SYSPATH", "/home/username/public_html/application");
// Now run your script with the new parameters.
skunkbad wrote:I've been using php for a few years now, but have never really understood the use of sockets, and using the socket functions of php. If you would take the time to explain, I would really appreciate it.
Vitaly wrote:by @spikesan:
how about importing and exporting xls files via PHP?
dh3 wrote:I would like to be able to automatically collect an xml or csv feed from an affiliate program, and import it into my database, and have this run every night or so often.
mynameiszanders wrote:Is it possible to undefine constants? If it's possible to do this with Classes and Functions that would be even better.
libyano wrote:how i can protect my sessions variables when my website is in shared host ?
is using join really makes query slower? and what is alternative way if join is slower?
What is the best practice you do in php secuirty , php and mysql performance?
What is the best way to protect $_post values that coming from form (e.g. registration form) ?
libyano wrote:Hi ...
I've one more question , i programmed login process (login form and some code for redirect to targeted page) so i want to protect login form against several attacks including brute force attack , what is the best way to protect my login form?
thanks again
popbogdan wrote:libyano wrote:Hi ...
I've one more question , i programmed login process (login form and some code for redirect to targeted page) so i want to protect login form against several attacks including brute force attack , what is the best way to protect my login form?
thanks again
The best way to go around brute force attacks is to log each access to it by its IP (which is stored on your database). You can than increment faulty logins from that IP, and once they reach a number you like, you can ban that IP.
The second solution is the above scenario implemented with cookies. However, cookies are stored on the visitor's machine, and if they are cleared or denied, the attacker can continue with the brute force attacks etc.
I think I have some pre-historic script that does just this, somewhere on a site developed a few years ago. Let me know if you need it, or can do the trick yourself.
libyano wrote:i have questions related to performance .... and security !!
how i can protect my sessions variables when my website is in shared host ?
is using join really makes query slower? and what is alternative way if join is slower?
What is the best practice you do in php secuirty , php and mysql performance?
What is the best way to protect $_post values that coming from form (e.g. registration form) ?
Thanks
ini_set('session.save_path','/full_path_to_your_site/httpdocs/sessions');mynameiszanders wrote:Is it possible to undefine constants? If it's possible to do this with Classes and Functions that would be even better.
To the best of my knowledge, and to the best of the knowledge of the PHP Manual, this is impossible. But you never know, my luck could change!!!
Thanks to anyone who attempts to solve this question!
Example:
- Code: Select all
// Define a load of classes...
// Define a load of functions in the global scope...
define("SYSPATH", "/home/username/public_html/system");
// Something happens in the script, that means you have to change SYSPATH to another value.
define("SYSPATH", "/home/username/public_html/application");
// Now run your script with the new parameters.
Return to Server-side Scripting
Users browsing this forum: No registered users and 1 guest