Jump to content

requinix

Administrators
  • Posts

    15,265
  • Joined

  • Last visited

  • Days Won

    431

Everything posted by requinix

  1. You aren't using Homebrew?
  2. CommonMark is not compatible with PHP 8 yet. https://github.com/krakjoe/cmark/issues/21 Uninstall, then try downloading this version and phpize ./configure make install
  3. You've restated the problem like you first did last week. What progress have you made with the example code that has been given to you? What code do you have now? What is happening with it, and what were you expecting to happen?
  4. Does that mean sessions are working and persistent? And you just can't figure out where the data is being stored?
  5. checking for libcmark... checking for cmark_markdown_to_html in -lcmark... no configure: error: wrong cmark lib version or lib not found You haven't installed the cmark library.
  6. Most package managers have a concept of a "metapackage": it doesn't have anything itself, but it depends on other packages. Among other advantages, that means you can install the metapackage and the rest will be sorted out for you. php-dev is a metapackage for php<version>-dev.
  7. https://www.php.net/manual/en/function.str-contains.php
  8. According to this, PhpSpreadsheet only detects them for Excel 2007 files and even then you can't get their properties.
  9. PHP is mostly forward-compatible. Mostly. But PHP does use new major versions to make big, incompatible changes to some aspects. Short of checking DokuWiki's documentation about itself, where it will likely say something like "requires PHP 7+" and maybe even "...up to PHP 8.x", the most effective way to find out if it will work is to run it and see if it works.
  10. ~$ sudo pecl install cmark ... ERROR: `/tmp/pear/temp/cmark/configure --with-php-config=/usr/bin/php-config' failed I take it there was a lot of "..." that you removed? Did you read through it?
  11. For further information why: https://www.php.net/manual/en/cmark.setup.php
  12. You have multiple versions of PHP installed. One will be from apt, but the other is probably a manual install or something you got from another repository. Or maybe you installed from apt once, did something with your system setup, and then installed another. The easiest thing to do will be to remove all of your PHP and Apache stuff completely, make sure you're set up to be able to install the version of PHP you need, then install just that one. You should have one directory with all the extensions and they should be all available without having to edit any INI files.
  13. If you were able to install the mbstring and intl extensions through apt then you should have been able to install Apache and PHP that way too. Did you? Or did you install them some other way?
  14. Here is an introduction on how to use Composer.
  15. kicken already did that in his code. What problems are you having with trying to use it?
  16. I don't suppose you're trying to run that composer command from within a checkout of PHPMailer itself, are you?
  17. You cannot mix PHP and Javascript like this: PHP runs on the server and has finished running by the time your browser starts to execute any of your Javascript. If you want the length of the string then you can get that in Javascript easily. What are you actually trying to do with this code?
  18. Throwing syntax at the function and seeing if it does what you want isn't a very efficient way of programming. Do you understand how those regular expressions work? What the various symbols mean? Again: one step at a time. This ~(\bhttps?://\S+)(?:\s+\[([^]]+)\])?~i is a good enough regular expression that will match these: http://www.google.com https://www.google.com http://www.google.com [Link text here] https://www.google.com [Link text here] Did you know about the [text] bit at the end? Do you want that?
  19. Take it one step at a time. Do you have a regular expression that can match "www.google.com"? Do you have a regular expression that can match "google.com"? Do you have a regular expression that can match "[email protected]"?
  20. Don't use mail(). Do use PHPMailer or SwiftMailer, which understand how to do the sorts of encryption stuff that your server apparently (and fortunately) requires.
  21. What do you think? No really: do you think it's single or double?
  22. Don't do emails yourself like this. Use a library like PHPMailer or SwiftMailer. They know how to send emails properly.
  23. Meaning what? Giving us a single sentence of description and dumping a bunch of code doesn't go very far towards persuading us to help with a problem. Including an actual description, like of what you want to do and what you tried and how it seems to be (not) working, does help.
  24. That is also very, very much the more appropriate solution than creating dynamically-named variables. So that's great 👍
×
×
  • 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.