Jump to content

zoeck

Members
  • Posts

    387
  • Joined

  • Last visited

  • Days Won

    2

zoeck last won the day on July 6 2022

zoeck had the most liked content!

2 Followers

About zoeck

  • Birthday June 12

Profile Information

  • Gender
    Male
  • Location
    Bavaria, Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

zoeck's Achievements

Sr. Member

Sr. Member (5/6)

331

Reputation

  1. Oh, that's really bad. Don't you have the hybrid option from deutsche telekom? I live in a village with only 1500 inhabitants and could order 250mbit/s immediately (but currently have 100Mbit/s). I'm currently waiting for my fiber line, which is already in the sidewalk in front of the house (up to 1000Mbit/s). It's hard to believe that there are such extreme differences in the country.
  2. Go to the first post in this thread, click on the „…“ on the right side -> edit - and then edit the title ?
  3. Just edit the thread title and add [solved]?
  4. Now I have finally switched from Laragon (Windows) to DDEV (WSL2). My first attempt some time ago was not very successful, but this time everything worked straight away. However, I need a "special" feature for my project: sqlsrv/pdo_sqlsrv as a PHP extension for the connection to an MSSQL server That was a minor challenge at first, then i found some older scripts on Stackoverflow, but unfortunately they no longer worked. Here is a short guide on how to use sqlsrv (incl. msodbcsql18) with DDEV: Create a "Dockerfile" and a "install_sqlsrv.sh" inside of the .ddev/web-build folder Dockerfile: ARG BASE_IMAGE FROM $BASE_IMAGE COPY install_sqlsrv.sh /var/tmp/ RUN apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests gcc make autoconf libc-dev pkg-config php-pear php-dev RUN /bin/bash /var/tmp/install_sqlsrv.sh install_sqlsrv.sh: #!/usr/bin/env bash export DEBIAN_FRONTEND=noninteractive # Install sqlsrv drivers. export PHP_VERSIONS="php8.1 php8.2 php8.3" # Note: Only works for PHP 7.0+. export PHP_SUFFIXES="8.1 8.2 8.3" OS=$(grep -P '(?<=^ID=)' /etc/os-release | cut -c 4-) VERSION=$(lsb_release -rs) if [ ! -f /etc/apt/sources.list.d/mssql-release.list ]; then curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg curl https://packages.microsoft.com/config/debian/12/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list fi sudo apt-get update sudo apt -y update for v in $PHP_VERSIONS; do sudo apt-get install -y "$v" "$v"-dev "$v"-xml done if [ ! -d /opt/microsoft ]; then sudo ACCEPT_EULA=Y apt -y install msodbcsql18 mssql-tools sudo apt -y install unixodbc-dev echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bash_profile echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >>~/.bashrc fi for v in $PHP_SUFFIXES; do sudo pecl -d php_suffix="$v" install sqlsrv sudo pecl -d php_suffix="$v" install pdo_sqlsrv # This does not remove the extensions; it just removes the metadata that says # the extensions are installed. sudo pecl uninstall -r sqlsrv sudo pecl uninstall -r pdo_sqlsrv done for v in $PHP_SUFFIXES; do sudo bash -c "printf \"; priority=20\nextension=sqlsrv.so\n\" >/etc/php/\"$v\"/mods-available/sqlsrv.ini " sudo bash -c "printf \"; priority=30\nextension=pdo_sqlsrv.so\n\" >/etc/php/\"$v\"/mods-available/pdo_sqlsrv.ini " sudo bash -c "chmod 666 /etc/php/"$v"/mods-available/*sqlsrv*.ini" done sudo phpenmod sqlsrv pdo_sqlsrv ddev start -> Aaaand BAM! Everything is working ? DDEV is simply great to use once you know how.
  5. I think he means the "ProcessWire Weekly #519" Newsletter ? This does not come from Ryan but from @teppo
  6. Did you use the "$cache->save()" method? So something like this: $cache->save("test", $consultants, 3600); // get single cache value $str = $cache->get('test');
  7. There is a paid module for this, called Media Manager https://processwire.com/talk/forum/67-media-manager/ Unfortunately, the purchase page is currently in maintenance mode, but i think you can also contact @kongondo directly
  8. Nice module! An "autoclose on save" function would still be good ?
  9. Did you take note of this information from the module description?
  10. zoeck

    if query

    "if ($article->gallery_images)" just works if the field is set to one image only. You have to use "if (count($article->gallery_images))" if you want to check whether one or more images are available. https://processwire.com/docs/fields/images/ -> "How to tell if a page has images present"
  11. That looks very interesting, currently I use PhpSpreadsheet for such tasks, but I think the library is actually too big for what I use ?
  12. No, the latest master version was released in august 2023…
  13. Could it be that you have an absolute path to the css files with https in the source code?
  14. Unfortunately, I'm not really familiar with XAMPP. But does the website work if you call it up via the following link: http://192.168.0.225/ticf/ or http://192.168.0.225:8080/ticf/ You would have to check which ports your XAMPP uses, apparently port 8085 is set for https. There should be another port for http (possibly 80 or 8080?)
×
×
  • Create New...