Jump to content

aleminio

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aleminio's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys, I'm using Apache on a linux server. I have a file in the following location : /home/stream/playlists.lst permissions are set to 0777 and even the owner/group are set to the one used by apache - "apache". I'm trying to read the file i mentioned from a php script located here: /home/admin/somedomain/index.php I'm accessing this index file using the domain or the ip allocated to that domain, but it fails. telling me that the target file(playlist.lst) is unreadable/unwritable. but if I'm trying to read other files located in the user folder (home/admin/somedomain) it does work. The weird thing is, if I'm using my second IP address that's allocated to my server, in order to access user's default domain in Kloxo, (the following way; http://256.256.256.256/~admin) which points to the same php file that i had issues with, then it suddenly works ! so what has changed exactly? The only thing i can think of is that apache/php doesn't let me access files outside my user root folder if the site's IP address is not the localhost one. but then why doesn't it consider my second IP address as my server's IP. I really don't know and would appreciate any ideas. Thanks.
  2. I am using an editor such as ckeditor in order to allow users on the website to submit their own guides. I want to prevent the user from inserting scripts therefore i am using preg_replace in order to replace words such as 'script' and 'embed' with the same words but as ascii code. for example 'script' as 'script' are there other things i should prevent the user from typing? the guides have to be approved so i see pure html, but it's hidden scripts and stuff like that i am afraid of.
  3. I know it's not a question, but it's a sort of help i need in order to improve. http://shavek.co.il/site.rar I only uploaded a few pages and folders so you can see the overall template and programming and i will really appreciate if you tell me your opinion and things i have to change, fix and improve. thank in advance.
  4. such tutorial is exactly what i was looking for. thank you.
  5. I have no clue about captcha and the way it works so i have a few questions. 1. how difficult it is creating my own captcha script, and are there any tutorials about doing such thing? 2. which captcha libraries do you know and think are good and easy to install? thank you, Alex.
  6. I've been using wamp for a couple of years and never installed anything besides that but i am just wondering why do i always find guides about how to install php and apache as addition to WAMP... and i know the default folder is 'wamp\www' but if i want to change it, is it under "DocumentRoot" or"<Directory>" thanks again and sorry for my english.
  7. WAMP suppose to include all the tools i need - PHP, APACHE and MYSQL so why do i always find guides about installing WAMP where there's instruction about how to install php and apache after you've already installed WAMP? When i have wamp installed and i open the httpd.conf file there's "DocumentRoot" and "<Directory>" which of those directs to my page files and what's the second one? ty.
  8. the date is Y n j and thanks.
  9. logical, here is what i need to write: [code=php:0] Select * from $log where date = $date AND [ ( name1= $n1 AND name2 = $n2) OR (name1 = $n2 AND name2 = $n2)] [/code] how can i write it as php select command?
  10. [quote author=JA link=topic=101740.msg403144#msg403144 date=1153833467] [quote author=aleminio link=topic=101740.msg403096#msg403096 date=1153827565] i have tried using $_SESSION but it does the same thing. when i run it with hamachi it shows. 127.0.0.1 when i upload it, and people submit the form, it shows the same ip. only the last digit changes sometimes. i guess it's the server's ip. and how can i open the crontab command line in the server i uploaded the files to? [/quote] make sure you've got session_start(); at the very top of the page (within php ofcourse). [/quote] indeed. even when i open a simple page and all i write is this code, still i don't get the correct ip.
  11. i have tried using $_SESSION but it does the same thing. when i run it with hamachi it shows. 127.0.0.1 when i upload it, and people submit the form, it shows the same ip. only the last digit changes sometimes. i guess it's the server's ip. and how can i open the crontab command line in the server i uploaded the files to?
  12. thanks, usefull reading :)
  13. First of all, i have for example a registration form. what are the differents between POST and GET methods?? wont it do the same thing? how can i get user's ip? i add IF... submit... { $ip = getenv('REMOTE_ADDR'); } and inserting the $ip into the database. but when i do that i think it inserts the server's ip and not the user's who submit. and how can i run a code at a certain time? if i want for example to clear a field at 12am without running a code manually. thank you.
×
×
  • 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.