UnknownPlayer
Members-
Posts
269 -
Joined
-
Last visited
Never
Everything posted by UnknownPlayer
-
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 ?
-
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 ?
-
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..
-
Hi, i need to know for what is using tokens, for security or ? And if someone can give me some little example ? Thanks..
-
question about external form action
UnknownPlayer replied to UnknownPlayer's topic in PHP Coding Help
Ok, thanks.. -
question about url with end character "/"
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
Thanks.. works fine. -
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 ?
-
question about external form action
UnknownPlayer replied to UnknownPlayer's topic in PHP Coding Help
I need to put domain for cookie, like ".example.com" or ? -
question about external form action
UnknownPlayer replied to UnknownPlayer's topic in PHP Coding Help
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.. -
question about external form action
UnknownPlayer replied to UnknownPlayer's topic in PHP Coding Help
But what if i set to check referrer ulr ? -
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 ?
-
Problem with images directory and /cat-name/ (this way)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
Thanks.. this is good.. -
Problem with images directory and /cat-name/ (this way)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
I use constant just like u wrote, but how can i use that constant in .js file ? -
Problem with images directory and /cat-name/ (this way)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
Ok thanks.. But can i use some other solution for this? -
Problem with images directory and /cat-name/ (this way)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
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.. -
Problem with images directory and /cat-name/ (this way)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
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 ? -
Problem with images directory and /cat-name/ (this way)
UnknownPlayer replied to UnknownPlayer's topic in Apache HTTP Server
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 ? -
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?
-
Thanks..
-
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)
-
It works on my computer but on hosting it doesnt work, please help me?
-
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..
-
Maybe the problem is that on my hosting, variables are disabled in htaccess, in php.ini or something like that?
-
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..
-
Please help me, i really need this to work