Jump to content

UnknownPlayer

Members
  • Posts

    269
  • Joined

  • Last visited

    Never

Everything posted by UnknownPlayer

  1. I thought that token can save from submiting form from other server to my file with same form and same action file and post method ?
  2. I know about sessions, but how can i generate token code ? This is how should token works: id ($_POST['token'] == $_SESSION['token']) to continue ? That is something like security for form post and get action ?
  3. I dont know anything about tokens, i just know that they are used for security, i need some example with form, can you give me ? And session token and hidden field token, and how to get token code..
  4. Hi, i need to know for what is using tokens, for security or ? And if someone can give me some little example ? Thanks..
  5. Hi, i have this code at .htaccess file: RewriteEngine on RewriteRule ^(login|registracija|kategorije|posmatram|admin)$ ./$1.php [L,QSA] Now when i go to www.example.com/login it works fine, but when i go to www.example.com/login/ with "/" on end, it doesnt work, what should i change at code to work on both ?
  6. I need to put domain for cookie, like ".example.com" or ?
  7. Ok, thanks.. But i didnt thought this on registration page, i mean on other things like send PM to member, but i will check login cookie for that..
  8. My question is, when someone make same html form with action that goes on same php file on my server, so i need to know, can my site be hacked in that way ? I mean if i have form that goes on file /sources/add_user.php and when someone make same html form that goes on www.my-site.com/sources/add_user.php and in that way to add users on my baze ?
  9. I use constant just like u wrote, but how can i use that constant in .js file ?
  10. But when i am trying to test my code on my localhost "/images/plus.gif" does not work, is that becouse my folder is http://localhost/up/ ? That is root of my code..
  11. Yes, i mean src attr at img tag, and image path in code is "images/plus.gif". So, how do i need to put path ?
  12. But my address for images is now http://localhost/freeoglasi/kategorije/1/cars/images/plug.gif and it need to be http://localhost/freeoglasi/images.plus.gif can i make rewrite to be disabled for image filder ?
  13. I have this .htaccess code: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(kategorije|artikli)$ ./$1.php [L,QSA] RewriteRule ^kategorije/(.*)/(.*)$ ./kategorije.php?q=$1/$2 [L,QSA] Now when i go to: http://localhost/freeoglasi/kategorije - all images works fine.. everything is good, and in js code i have function which set image src on place with folder images/plus.gif But when i go to: http://localhost/freeoglasi/kategorije/1/cars - all images on page works, when it is loaded, becouse i use full address + images/image-name.gif but in js i still use images/plus.gif and that doesnt work, so can i make exception for image files and foldes in mod_rewrite?
  14. Hi, need help with input type=file but 3 that fields with same name(array): <input name="slike[]" type="file" /> <input name="slike[]" type="file" /> <input name="slike[]" type="file" /> <input name="slike[]" type="file" /> <input name="slike[]" type="file" /> (im doing this becouse i have button to add more file upload fields, so i need to put name as array "slike[]") Now, how can i get: $_FILES['slike']['name']; $_FILES['slike']['tmp_name']; from each of this input fields(file upload) ? (with for or while)
  15. It works on my computer but on hosting it doesnt work, please help me?
  16. RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(usluge|masine|o-nama|kontakt|admin)$ ./$1.php [L,QSA] RewriteRule ^usluge/(.*)$ usluge.php?q=$1 [L,QSA] RewriteRule ^masine/(.*)$ masine.php?q=$1 [L,QSA] RewriteRule ^admin/masine$ ad_masine.php [L,QSA] RewriteRule ^admin/usluge$ ad_usluge.php [L,QSA] RewriteRule ^admin/admin$ ad_admin.php [L,QSA] RewriteRule ^admin/(.*)/(.*)/akcija/(.*)$ ad_$3.php?mod=$1&q=$2 [L,QSA] That is my .htaccess file.. Its seams that variables doesnt work but i dont know another solution btw folder where is this website located on hosting is "/public_html/des-kom.com", just for record if it is important..
  17. Maybe the problem is that on my hosting, variables are disabled in htaccess, in php.ini or something like that?
  18. Tha function works, i mean whole page works on my localhost(apache server) but on hosting service, this does not work.. php version on hosting is 5.2.17 and on my localhost is 5.3.0.. I tried with echo $_GET['q']; but it does not show anything, like q is empty :/ btw this domain www.des-kom.com is addon domain in cpanel.. if that make some changes..
  19. Please help me, i really need this to work
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.