Jump to content

khr2003

Members
  • Posts

    112
  • Joined

  • Last visited

    Never

Everything posted by khr2003

  1. I don't quite understand that. Why would it matter the password? Either way your server provider knows the password so how would it prevent them or the hacker of the server to modifiy your file pages? IF you do not trust you host provider why host with them at the first place. The problem is that the servers are compromised, so to prevent someone else on hosting his files on the same server to hack or identity your password you have to change your password to a very lengthy complicated one.
  2. There are heaps of resources on the internet for photoshop and illustrator: check these out: http://www.devppl.com/forum/ http://www.tutorialized.com/
  3. I guess you have to check their documentation: https://developer.mozilla.org/en/Building_an_Extension
  4. try this $var = strstr($link, 'HTTP://'); if($var) { // put your code here }else { //The else code here }
  5. I am not sure about the htaccess file, but I think you can redirect your visitors by using regexp to check whether there is a www in the url or not
  6. Hi It really depends on how you want to do it. You have number of options: Displaying the thumbnails on page and once you click on any of them you get the photo in another page. Displaying the thumbnails and the single large photo in one page, when you click on any thumbnail the page will be refreshed any you will get the new photo. Or the previous option but using ajax so you do not have to refresh the page to get the new image I think all these three options are valid for you case
  7. my guess is that you have to include the whole for loop in the included page, you can not include the for loop without the closing bracket
  8. The first part can be done through php. Making a table can be done through html. Writing pdf file can be done through this class: http://www.fpdf.org/
  9. which part of the code do you see in the browser?
  10. is 1 added to the database? then make a query and check the number. $query = mysql_query("Select * from tablename"); $row = mysql_fetch_row($query); if($row['energy'] == 100) { echo "We have reached the maximum entry allowed"; }
  11. this is a general question. if you have phpmailer class I am sure it comes with a good documentation on how to use it. You have to have an smtp server if you want an alternative to the mail function.
  12. have tried other functions like: fileread, get_file_contents or curl?
  13. it really depends on the server. I do not know how it is faster to upload them in jpg rather than bmp since their size will not change. Anyway, I think you need to modify some headers information in php, see these links for more information: http://au.php.net/manual/en/function.header.php http://www.jonasjohn.de/snippets/php/headers.htm
  14. why this line is commented: //header("Content-Disposition: attachment; filename=".basename($outputFile).";" );
  15. Just out of curiosity, How did you solve it? Is it the same way I posted or did you do it differently?
  16. use regexp or explode. Both ways are somewhat hard to implement in a large page but they get the job done.
  17. It is a bit hard to answer your questions knowing little about your website design. First how do does your website knows whether it is in an "english mode" or "gernman mode"? Is it through "$_GET", "$_COOKIES", "$_SESSIONS" or anything else? Second: how do get the id in the url for the news? Is it through number or words? I noticed this bit in the url "&newsid=rainy_day" is not that supposed to be "&newsid=105" or any other number? In anyway once you figure out the answers for both of these questions you can make a simple if statement or switch condition like this: if($_GET['mode'] == 'english') { $link = "mysite.com/de/nachrichten/rainy_day"; }elseif($_GET['mode'] == 'german'){ $link ="mysite.com/de/nachrichten/regenreich_tag"; } or something like that
  18. are using xp or vista? or mac? With xp you can go into safe mode and then go the administrator account from which you can remove the password for the other accounts. Vista is hard to do without an external program, same with mac (you can use mac os cd)
  19. Hi My advice is to use sessions. They are much secure than cookies and easier to use. As for the zen cart I am not sure as I never used it for anything other than quick testing.
  20. http://www.statcounter.com/ this is also good as it has visit path. but the free account is limited to 500 entries.
  21. Frankly I did not understand your question 100%, but I think the print_r is working fine, maybe you forgot to add ; at the end of print_r function. One hint though: a single array element can not be printed using print_r. Instead you might want to use echo $images['image'];
  22. try this mysql_query("SELECT * FROM videos rand() ASC LIMIT 0,100 ");
  23. since you exploded the $links it becomes an array, and the way to read is like $pieces[0], $pieces[1] ,$pieces[2] and so on just link another array. If you want to print an array use print_r() function
  24. It is better if you posted the code. But basically when query the database you can add the id into an array: $result = mysql_query("Select * FROM table"); while ($row = mysql_fetch_array($result)) { $id_array[] = $row['id']; } then when you want to send a message for each id you use the for each loop: foreach($id_array as $id) { $result = mysql_query("INSERT INTO table values ($id,$another_var)"); } [/code[
  25. sometimes the file is partially corrupted but it still works. Try downloading your file using Chrome Browser. additionally, try editing the zip file using notepad (right-click on it -> open with -> choose text editing program). If you get any text that you can understand (mostly HTML) then the file is currpoted and there is something wrong with the downloading process.
×
×
  • 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.