CodeIgniter PHP Library load template not working in AWS server - php

I am facing to export dynamic data in word document format. Any idea?
I did tried in AWS server using CodeIgniter framework and same things are working with XAMPP server.
Image

Related

Url folder specified in my project to interact with files

I have a "web site project". In my project I am using the php exec to use the ubuntu package PDFTK to manipulate pdf.
For example I have this line of code(php) in my model, I am using code igniter :
shell_exec('pdftk /var/www/html/IntegrSupCours/uploads/GKAG01_FR.pdf dump_data output /var/www/html/IntegrSupCours/uploads/bookmark.txt');
Indeed Im starting from /var/www to access to my pdf file, because I am on ubuntu.
But let's say that I am on a localhost ubuntu pc and I want to migrate my site on a online server what will happend if I am changing to that, because the url string in my shell exec to access at my pdf file will be different ?
First of all the remote online server that you are mentioning is a machine with some operating system like ubuntu installed on it.
Also, the path that you are specifying is a path that is generally used by most of the web servers.
It is all about where you are installing your application on the online server. If you install the application at the same location as it is in your local, you will be able to see the pdf file in the online server too.

Cakephp 3: issue with DomPdf

I am using CakePHP 3.2 and dompdf library. It works well on local system but not on production. My code is the same on both portals. but it's working well with local but not on production.
In my local system, I got this pdf file here is a sample:
localhost pdf file
production pdf file
localhost pdf file got perfectly without font collapse. but after put my code on production it collapses fonts, tables etc.
Please help me. Sorry for my English.

How to configure Azure Web Service to read .php web pages

I am trying to set up a website on Azure, using the following tutorial.
https://www.wintellect.com/host-website-azure-functions-node-js-part-1/
It is all working well but I cannot seem to configure Azure correctly to read index.php, or any other php file with content.
Instead of opening the webpage, it downloads the php code.
In application settings I am on php version 5.6.
Any help here would be appreciated, thanks!

cakepdf not found engine on shared hosting

my app is throwing " Pdf engine "CakePdf.allengines" not found " but in my local is all fine, im using a shared hosting plan and all the app is working fine but cakepdf is the only plugin that Im using.
Other thing is that the mpdf or dompdf files are located in verdor folder, so i dont know where cakephp is looking for the engines in the shared hosting.
Thank you in advance

How to run php project in codeigniter using netbeans

I have included my php project developed in Codeigniter inside Netbeans project explorer.
But when I goes to run it with URL localhost:8004/index.php.It shows me following error.
> Unable to connect Firefox can't establish a connection to the server
> at localhost:8004.
I dont understand what is the problem. Please help me.
Honestly, you're better off running this in something like WAMP. As someone who uses CI on a daily basis, just go with me on this. The way they index the files and the file paths is using a routing file rather than actual file paths.
WAMP Server

Categories