Jump to content

kuba2

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by kuba2

  1. Hello Several years ago I made a PW website using the blog module ( https://olikehrli.ch/ ). The internet provider is updating the PHP now. The blog module is using PHP 5.6 and it will be PHP 7. Can somebody tell me if it will still run as it should, and if not what can i do to make sure it works fine. What is the best action here? What could happen in the worst case? How do I make sure that everything will run as it should? Any help would be greatly appreciated. I am somehow lost on this topic. Thanks Jakob
  2. Hi there I would like to ask how to create a dev server locally? I have a PW Website to test, because it runs with PHP 5.6. and I have to switch to PHP 7. I have the blog module installed and don't know if it will run smoothly with the php change. Is that with xampp? Last time i tried to open a website with xampp, it didn't work because of the php href ( href="<?php echo $config->urls->templates?>...). How do I get that to work? Thanks a lot Jakob
  3. Yes I did. I deleted my templates in the database. Most elaborate and unnecessary way to learn about databases i guess 😉
  4. Hey thanks for alle the help. I rebuilt my templates. The site wasn't big fortunately. I have learned a lot. All the best
  5. Hello I have managed to delete my templates in my database. I am quite unhappy with myself. Now I have to rebuild them and I stil have the fields with content. Can I somehow restore them on my site? And how do I link them to right field in the database? The fields in the database have pages_ID....how can I Connect them? Thanks for any help
  6. Hello again I messed up. I have to remake my templates. The fields are stil intact. Is there a way I can restore all fields from my database?
  7. I installed a new PW on the server and liked it to the existing database. Could it be, that it changed/deleted something in the existing database?
  8. Thanks I have another issue A website I made has suddenly a "404 Not Found" message and I can't login to my backend. I changed only the password to the database, but put the new one into the config.php file. PW did an update....is it possible, that because of the update I can¨t login anymore? It is strange and I have no idea what is going on.
  9. Hello I installed PW on my server and linked it to an existing database. I copied existing templates on the server into site/templates, but when I login to the backend in PW the templates do not appear. I can add them ( add new ) , but I want to duplicate an existing website and usually when I copied .php files in site/templates they would appear as templates in the backend. Has something changed with the new PW? I am very confused right now Thanks for any help
  10. Hello Ich have made an new website which is identical to one already existing on the server I use. I have copied the sit/templates folder on to the new site and linked the database from the old website to it. Now my login, which I used in the PW istallation for the admin.php site doesn't work anymore. Can anyone tell me why? Did I change the login by copying the template folder? Is the login written somewhere? I have access to the server Thanks
  11. Thank You very much! Great answers! Have a great weekend.
  12. Thanks for Your answer. I have a follow-up question. The "new" website is on the same server/hosting...does this mean I can use the old database and "link" it to the new website? If I use the same site/config...would this new site use the existing database in the same manner as the old site does. Thanks for all Input. I have no experience with databases, but the idea above makes sense to me. hope this is doable like that. Thanks again
  13. Hello I have to move a website to a new adress because the URL changed. Can I copy all the templates and fields and contents in the fields from processwire and somehow install it in the new address/database? Or do I have to make the content all over again? thanks for all help Jakob
  14. Hi there Several years ago I made a website using the Blog module (https://modules.processwire.com/modules/process-blog/). The PHP version it is currently using is 5.6.38. Can I just update to PHP 7 and it will run ok, or do I have to do something first in the code? Thanks for all help Best wishes Jakob
  15. Hi there Two years ago I made a website with Processwire 2.6.1 and I used the blog module. Now the internet provider is changing the PHP to 7.2. Has anybody an idea if it still will run smoothly? Should I upgrade the processwire? Thanks Jakob
  16. Do You have an Idea how hard it is to install padloper? My PHP is minimal at the moment Thanks again
  17. Hello I need to make a small, easy Webshop for a friend. He is selling 4 music albums. What would be the best way to go? Is there a sensible solution for a webshop within processwire? Thanks Jakob
  18. Hello I am learning PHP and made a codeacademy PHP online course. Basic stuff and interesting course for free. But there is a do/while exercise I can't get my head around: In the following, there is a flipcoin example, which flips, as long the result is head. In the do statement there is the if and the else The if condition is $flip and it echoes a H letter for Head. The else echoes a T for Tail. $flip is random 0 or 1 My question: How can the if and else statements be H or T if $flip is random? I don't understand the $flip variable, because in my head it can be 0 or 1.....therefor if is not one fixed value, because of the rand(0,1) it can change How does the programm to put out a H or a T? I hope my question is clear enough Thanks for any clarification Jakob <!DOCTYPE html> <html> <head> <link type='text/css' rel='stylesheet' href='style.css'/> <title>More Coin Flips</title> </head> <body> <p>We will keep flipping a coin as long as the result is heads!</p> <?php $flipCount = 0; do { $flip = rand(0,1); $flipCount ++; if ($flip){ echo "<div class=\"coin\">H</div>"; } else { echo "<div class=\"coin\">T</div>"; } } while ($flip); $verb = "were"; $last = "flips"; if ($flipCount == 1) { $verb = "was"; $last = "flip"; } echo "<p>There {$verb} {$flipCount} {$last}!</p>"; ?> </body> </html>
  19. I changed it ti foundation slider! Thanks for the tip! All the best
×
×
  • Create New...