Questions tagged as 'php'

1
answer

How do I add a button to a product's edit page?

How do I add a button to the "Description" bar on the product editing page? The button should only be in tab Description, where it has the product description. I need to know how to set the route and how to mount the Block so that I in...
asked by 14.02.2014 / 16:54
1
answer

Store Files

I have a question about uploading files, do I have to create folders for each client and save files from them (Word files, Excel, txt, dwg, dxf, ascii, pdf)? Would it be feasible to store all this for each client in an online directory or wou...
asked by 23.03.2014 / 19:33
2
answers

Block javascript and sql-injection attack on the same string

I'm receiving data from a form in php via get. I am handling the information as follows: $search = mysql_real_escape_string(htmlspecialchars($_GET["t"], ENT_QUOTES, 'UTF-8')); With this I intend to block attacks by javascript and sql-inj...
asked by 12.04.2014 / 18:13
1
answer

Put emoticons in the chat of my site [closed]

I would like to know how in php or javascript how to put emoticons as the person types the text and a command, eg: Hello good morning [/ sun] or I'm fine [: smile] Anyway, regardless of the command how to do it to be replaced by an ima...
asked by 26.10.2016 / 08:22
1
answer

Error PHP Built in Server Invalid request (Unexpected EOF)

Eventually in the console or cmd the error Invalid request (Unexpected EOF) appears, note that I understand what EOF means, which is E nd O f F ile, but I do not understand why exactly this occurs. At first I thought it was som...
asked by 04.10.2016 / 15:57
1
answer

Upload file with post

My view has this field: <form class="form-horizontal"method="post" action="<?=base_url('index.php/home/cadastro')?>" enctype="multipart/form-data"> <input id="img" name="img" class="input-file" type="file"> In my controlle...
asked by 11.10.2016 / 20:20
2
answers

What is the best practice for integrating external content with my site?

I'm developing a website in PHP and I'm going to need to integrate content that will be on a page from an external site. This page will be poorly formatted, without header footer and sidebar , I'll just have the link on this page...
asked by 06.07.2016 / 14:00
1
answer

Send and pick GET by AMIGAVEL URL

I have this tag in the index <a href="projeto">Projeto</a> What sends me to this page    localhost / project.php What I'm leaving like this    localhost / project With RewriteEngine on RewriteCond %{REQUEST_FILE...
asked by 15.03.2018 / 00:11
1
answer

Doubt with relationship One to Many

I have two tables, produtos and categorias . In my view of produtos I want to show the category name of that product, not your code. Category Template Category.php namespace MagicCommerce\Site\Cadastros; class...
asked by 07.01.2014 / 22:19
1
answer

I can not insert data into the array

I linked two drives to this product, but when I select it I have no way of linking to another new drive, since% is done at all, not being distinguished a new record that I try to link to As below, I am trying to register the drive code P1, af...
asked by 31.10.2017 / 20:46