-
Posts
15,265 -
Joined
-
Last visited
-
Days Won
431
Everything posted by requinix
-
Call to undefined function CommonMark\Parse()
requinix replied to rick645's topic in PHP Installation and Configuration
https://github.com/dwo0/cmark -
my MacBook Pro doesn't like java...
requinix replied to maya8989's topic in Other Programming Languages
You aren't using Homebrew? -
Call to undefined function CommonMark\Parse()
requinix replied to rick645's topic in PHP Installation and Configuration
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 -
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?
-
Containerized PHP application sessions directory is empty
requinix replied to xusword's topic in PHP Coding Help
Does that mean sessions are working and persistent? And you just can't figure out where the data is being stored? -
Call to undefined function CommonMark\Parse()
requinix replied to rick645's topic in PHP Installation and Configuration
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. -
Call to undefined function CommonMark\Parse()
requinix replied to rick645's topic in PHP Installation and Configuration
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. -
https://www.php.net/manual/en/function.str-contains.php
-
According to this, PhpSpreadsheet only detects them for Excel 2007 files and even then you can't get their properties.
-
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.
-
Call to undefined function CommonMark\Parse()
requinix replied to rick645's topic in PHP Installation and Configuration
~$ 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? -
Call to undefined function CommonMark\Parse()
requinix replied to rick645's topic in PHP Installation and Configuration
For further information why: https://www.php.net/manual/en/cmark.setup.php -
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.
-
Here is an introduction on how to use Composer.
-
kicken already did that in his code. What problems are you having with trying to use it?
-
I don't suppose you're trying to run that composer command from within a checkout of PHPMailer itself, are you?
-
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?
-
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?
-
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]"?
-
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.
-
What do you think? No really: do you think it's single or double?
-
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.
-
That is also very, very much the more appropriate solution than creating dynamically-named variables. So that's great 👍