Jump to content

Pickle

Members
  • Posts

    84
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Pickle's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi thanks for your reply, I really appreciate the help You are right, the session.save_path is set to \tmp. They do give me the option to change the path to something else via their control panel. I will create a new folder and change the path and hopefully it will go back to normal. I have access to one level up from the document_root, so i will give that a go. Should i put a .htaccess file in there anyway? By creating my own folder, does this solve the issue of the session.gc_maxlifetime being a short value or would I need to ask them to increase this for me? I also read somewhere that it might be to do with virtual memory, is that correct? thanks again
  2. its on shared web hosting. thanks
  3. Hi Everyone I have a weird session issue going on and i'm not sure what is causing it. Basically any sessions that i set are randomly expiring sooner than they should be. As a test I did the following: <?php session_start(); if(isset($_SESSION['views'])){ $_SESSION['views'] = $_SESSION['views']+ 1; }else{ $_SESSION['views'] = 1; } echo "views = ". $_SESSION['views']; echo '<p><a href="testpage.php">Refresh</a></p>'; ?> If i continue to click the refresh button, i sometimes get to 30 and then it starts at 1 again. Other times ill get to 20 and then back to 1. It has also sometimes skips a couple of counts from 7 to 11 as an example in one click. Any one come across this before? I have been reading up online and some have mentioned PHP upgrades from php4 to php5 cause some issues and specifically the hosting company changing the session.save_path. If this was the case, it wouldn't even count to 10, would it? Any help would be really appreciated. thanks in advance
  4. hi mchl great!! thanks for your replies and help. i really appreciate it.
  5. Hi Mchl thanks for your reply. im not sure what you mean. do you mean i can specify the tables to have utf8 encoding and then they will support most languages? and then for table structure i can have the following? product_tbl prod_id, prod_img, prod_price etc etc prod_lang_tbl prod_land_id, prod_id, lang_id, prod_name, prod_desc and have all the languages for each product in my prod_lang table?
  6. hi just wondering if anyone had any thoughts on this? *bump*
  7. Hi everyone I am just doing some research into mysql and the languages it supports and thought it would be good to ask for some advice on this forum. I am planning on building a site in the near future and I want to build it in such a way that I can easily add the choice to read the site in other languages. After the research I have done, the plan is to have a product_tbl where all the common product fields will be kept. i.e. image, prod_id, postage_id etc then to have a separate table for each language which links to the product table, these separate language tables will keep all the text for each product, so prod_name, prod_desc. so for example: uktext_tbl with fields: uktext_id, prod_id, prod_name, prod_desc and the same for other languages. the reason i have chosen to keep separate tables for each language is because from what i understand, you need to set each table upon creation to accept certain characters. so i cannot just have a separate field in the product table for the each language i.e. prod_nameuk, prod_namegr, prod_namede, prod_descuk, prod_descgr, prod_descde. is that correct? I also wanted to keep everything on one site, i dont want to have a different site for each language and so i would need to change the charset within the html file depending on the language chosen by the visitor in order for the file to support the language being retrieved from the database. So my question is, does this sound like a good way of doing this? is there an easier/better way of working this? any suggestions on how to implement different languages into one website would be great. this is how i have figured it out in my head and how it would work best for what i want but obviously it would be great to have opinions from others more experienced in this type of website. thanks in advance
  8. hi does anyone else have any other thoughts on this?
  9. hi stephen thanks for replying, i was given the impression that setting folders to 777 permanently through ftp to allow file uploads was unsafe because it allowed others to upload malicious scripts to do damage to your site/database etc. is that what other developers do? set their folders to 777 and leave them like that?
  10. just to add to this, am i right in saying that i need to set the tmp folder and the folder that i move it to to 777. or does the move_uploaded_file function work even if the target folder is not 777? the hosting company have said that setting the temp folder to 777 and leaving all others the same is standard, thats how all other hosting companies make use of the temp folder. is that correct?
  11. hi everyone I'm not sure if this is the right place for this question but here goes: I am currently working on an image upload script and i wanted to set the permissions for the target folder to 777 within the upload script and set it back to what it was after, so that i dont up the security risks of the site. However the hosting company wont seem to allow me to use the chmod function to change the permissions. They keep saying i need to set the folders permissions to 777 with my ftp but this isnt safe right? is there some kind of work around in this situation? any help/advice would be great. thanks
  12. great!! thanks guys really appreciate the help
  13. hi thanks for the replies. xcoderx --> not sure what you mean by your reply.obvisouly i have all other browsers i want to test in i.e. ie8, firefox, opera, chrome etc but the issues is with ie and its many varying versions. i need to make sure they work in ie8, ie7, ie6 seventheyejosh --> thanks ill look into wine since im not sure about virtual machines. thanks
  14. ok cool, thanks neil, that helps alot. i think i just need professional indemnity then. great thank you
  15. yeah, thats what ive been doing so far but obviously the insurance guys tell me i need this and that but theyre trying to sell it so of course theyre going to say that. i want to make sure i actually need it before paying out monthly for something. im definite i need professional indemnity, its the public liability i am unsure of really. so you think at least 100K. ok thats lower than what ive been looking at so thats good.
×
×
  • 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.