Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
PHP is an open source general-purpose server-side scripting language.
0
votes
How do I force a jpeg image to download instead of open in a browser window?
ACT=123&imagepath=images/myimage.jpg
And in your module, use this answer:
https://stackoverflow.com/questions/1851849/output-an-image-in-php
And throw an exit() after. …
4
votes
Accepted
Simple PHP Substring not Working in Template
Also, if PHP is set on output, what happens when
{event_summary}
has a value like this?
And the event was great, he said "Everything is healing nicely!" …
0
votes
Include Issue Calling an External PHP Script from Expression Engine
'mandrill-api-php/Mandrill.php');
and like 10 others. … Do you have two different PHP agents (one for EE core, one running everything else)?
edit Are these templates set on PHP Input or Output?? …
1
vote
Accepted
How can I efficiently output a large channel entries query?
But if this isn't an option, you can set your PHP Mem limit higher. … Another option, if you (for some unfathomable reason) only want the memory raised for that particular page, but remain at it's lower setting for all other pages, you can turn PHP on for that template and …
1
vote
Looking for print_r or var_dump equiv for channel:entries row
--
This is my template
It has PHP Parsing set to `Output`
--}
<! … php
// Hrmmm.. what do we have here?
var_dump("{title}");
? …
1
vote
Accepted
Issue with PHP reading times in template
Is this on a load balanced server solution? Have you doubled checked that both the agent and the CLI php.ini files have the same setting for time zone? Try using this command before both date grabs (s …
1
vote
Which technologies are used in Expression engine
ExpressionEngine is a purely PHP Content Management System (CMS) framework. As you mentioned, it is currently based off of the CodeIgniter MVC framework. … -Linux or similar operating system; one capable of serving a PHP agent
-Database functionality, specifically MySQL with a MyISAM modern table engine
-- EE 2.9+ I've been able to run in production with …
0
votes
0
answers
86
views
Load framework outside of folder structure
Yes, I can do everything I want to in that /random-folder/index.php file in pure PHP, but this is related to an addon development and I'd like that file's contents to have the code structure and feel of …
1
vote
How to trigger P&T Assets to Update Indexes from a template
I can help you figure out the direction you should take, but this one seems obscure and like quite a process, and I'm pretty busy right now. First, I would trace back from the ajax hit that happens wh …
0
votes
How to send email report of total channel entries in Expression egnine on daily basis
Then, in that template, turn on PHP. Here's an example to help (assuming a channel ID of 1):
<? … php
// get number of products
$num_of_products = ee()->db->select()
->from("channel_data")
->where("channel_id", "1")
- …
0
votes
Uncaught Error: Class 'PDO' not found when I upgrade to PHP 7.2
As a boilerplate command for installing dependencies for most PHP CMS and software, when setting up a server/sand-box (of course, read your software's installation instructions to see if you need anything … else), I run this:
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install -y apache2 git curl php7.2 mysql-server mysql-client php7.2-mysql php7.2-gd php7.2-bcmath php7.2-bz2 php7.2-cli php7.2 …
1
vote
PHP.ini max_execution_time setting not being honoured by EE
Roll this:
http://php.net/manual/en/function.ini-set.php
into your main index.php file, and set your max_execution_time via that method. It only sets it for that script execution, so you may have to …
0
votes
Accepted
Call thirdparty module function directly from PHP in template
<php
include PATH_THIRD . 'freemember/libraries/freemember_lib.php';
$free = new Freemember_lib();
$free->logout();
?>
Have you tried something like that? … php ee()->freemember->logout(); ?>
Could work. Also, this seems likely to work as well...
<?php ee()->session->destroy(); ?> …
0
votes
AJAX Call on ExpressionEngine Install
That is not a cross scripting error necessarily, but probably is in your case. I can think of a bunch of ways to send out 403's from my server. Anyways, what script does that post to? Is that an EE te …
0
votes
Accepted
How can I use http parameters to create a new record in EE
You need to use the Channel Entries API. This will allow you to programatically create new Channel Entries.
https://ellislab.com/expressionengine/user-guide/development/api/api_channel_entries.html
…