Questions tagged as 'php'

1
answer

HTML Print - PHP

Next ... I have an HTML structure formed by TABS, the style of these link: link However, when printing with Ctrl + p, it only calls the TAB that is Active. How do I print the contents of all TABS? <div class="col-md-6"> <div cla...
asked by 20.05.2015 / 19:57
1
answer

Htaccess - redirecting the subdomain

I had the subdomain "b2b" .domain.com and now I have changed the files to the "catalog" .domain.com I want an htaccess rule When you enter the link No matter what level it is Be redirected to link I think that if I create seve...
asked by 27.04.2016 / 02:47
1
answer

Is it possible to know if a two-dimensional array is empty?

Basically my doubt is already cleared in the question. That's it, I wonder if can you tell if a two-dimensional array is empty? Thank you in advance!     
asked by 19.05.2016 / 02:03
1
answer

Because the expression "$ a-b-c-d-e-f-g-h-i-j = & $ null;" returns several objects inside the other, since it does not even exist?

I was doing some benchmarking tests with PHP references and I came across a curious example. $a->b->c->d->e->f->g->h->i->j =& $null; Both variables $a and Null do not exist in any scope of my scr...
asked by 11.05.2016 / 21:21
2
answers

Problem with a modal

Well,Ihaveaproblemwiththismodal,itopensassoonasIentertheindex.php,butincaseIchangethepagetoextoduvidas.phpandclicktogobacktoindex.phpthealertappearsagain,forthealertonlyappearsonceandonlyappearsdnvifthepersonclosethetab?code:<script>funct...
asked by 08.01.2018 / 21:04
2
answers

Dynamically execute a class model method from an ajax request for the controller

I'm creating a feature on my system for reloading components dynamically so that queries are executed that are allocated to model-layer classes through AJAX requests. However, as I use the MVC standard from the CodeIgniter framework, every reque...
asked by 05.01.2015 / 13:15
1
answer

Line break interferes with regular expression capture

I need to capture some information from divs that are sometimes separated by line breaks, and this causes the (.*) operator to not capture. For example, I have the regular expression: <div class="search tooltip box-video" search="...
asked by 17.01.2015 / 21:27
1
answer

How to get a PHP object in an ajax function

I have the code below that does a check in my controller and it returns me a count of my request. What I wanted is that in the success of my Jquery ajax I would capture this value to do some javascript conversations in my code. I'm using t...
asked by 18.02.2016 / 17:05
1
answer

Timthumb has security exploit issues?

I've heard of programmers saying they do not use Timthumb ("A small php script for cropping, zooming, and resizing web images (jpg, png, gif). safety. Does anyone know how to recommend another library or script that I have already used so that...
asked by 04.02.2016 / 14:36
1
answer

How to create a simulator using SESSION

Hello, I'm trying to create a simulator using SESSION, but since I'm a beginner and a lot of lay people, I'm asking the help of friends. Next I created the page where the user can change the logo, it simply selects the image and changes it with...
asked by 08.02.2016 / 20:49