Skip to content

Tag: php

mailchimp API 3.0, template html source

I am in the process of migrating from MailChimp API 2.0 to 3.0 One of the features I used in 2.0 was to retrieve the HTML source from a template https://apidocs.mailchimp.com/api/2.0/templates/info.php so I could preview how a proposed email would look, without having to create a campaign first. There doesn&#…

PHP Loop inside array

How can I loop inside an array in my code? This is the static version of my script: Then, I need to retrieve the value and label from the database. So I customized my previous code to: When I run it I get this Error message: Parse error: syntax error, unexpected ‘while’ (T_WHILE), expecting &#8216…

Upload a ZIP file and UNZIP ftp folder via PHP

I want to make a form where you can fill FTP login server and get option to upload ZIP file. The script works apart from the last part (UNZIP the file) I want to perform UNZIP uploaded file. Does anyone know what is the problem? TIA THE ERROR Successfully uploaded ftp://:@ftp.***.com/htdocs/file.zip Warning: …

Allow any option passed to Symfony CLI

The goal is to allow any options to be passed to symfony CLI, rather than limiting to a defined set of allowed options. For instance: In this example, foo is an option which is not explicitly allowed by the symfony application. My console app is proxying to a different application with a number of CLI options…