Questions tagged as 'php'

1
answer

How to get the namespace where the function is called?

Is there any way to do this? <?php namespace Bar { class test { public function test($action) { call_user_func($action); // must call \Foo\Action } } } namespace Foo { $test = new \Bar\Test; fu...
asked by 25.08.2015 / 15:16
0
answers

Filter retweets using the twitter API

I'm doing a search tool using the twitter API to get tweets. However, I have a problem related to retweets, with every search I make, more than half of the results are retweets. Is there a way I can filter retweets without using '-RT' while fetc...
asked by 28.08.2015 / 15:07
0
answers

CKEditor - "ImageUploader" plugin - problem in image link

I can upload the image, it uploads the image correctly and it shows in the editor. I already checked via FTP and the file is uploading to the folder correctly. When I send the form to the other page, the image does not appear anymore and the...
asked by 26.08.2015 / 01:12
1
answer

PHP Source Security [closed]

I have a project in PHP and now I'll be working with 2 more programmers on it. Is there any way to protect the source code from undue copies by such programmers? In particular, is there any tool that can be installed to prohibit copying of ce...
asked by 02.07.2015 / 00:56
0
answers

error in content registration [closed]

This is my first post so sorry if I do something wrong if I violate any rules please let me know. My doubts are as follows:  I am creating a "social network" and the posting code is not working I used the same code (with other variables obvio...
asked by 21.01.2016 / 13:07
1
answer

Friendly URL with Generic Parameters .htaccess [duplicate]

I would like to set up a URL friendly with generic parameters, that is, receive any parameter in any quantity or file. Today I set the .htaccess so that the filename becomes URL . File I'm using: <IfModule mod_rewri...
asked by 18.01.2016 / 12:01
1
answer

Store all array positions in a variable?

I have an array that contains 3 positions, each of which stores a long text, how can I store all three of the array positions in a single variable? for example: Array ['Gol', 'Pallium', 'Celtic'] $ AllAsMarcas = // All positions in the arr...
asked by 15.09.2015 / 02:24
3
answers

Print orientation using JavaScript, CSS, HTML or PHP

Can I "preset" the page orientation when the user is printing is already marked as landscape? (Landscape) My case is as follows, I'm having code similar to this example    link I'm exporting my HTML to Excel and in this part every...
asked by 08.09.2015 / 16:38
0
answers

Comparison of Cities between Excerpts

Hello! I am developing a system that consists of registering parts by neighborhood or city. In this case that I am taking as an example, it includes only two excerpts, as I show in the figure. My question is, how to buy the snippets that are com...
asked by 02.09.2015 / 13:36
1
answer

Use namespace in include

I'm using namespace to use classes in PHP, there's a part where I do use StatusCorrida\StatusCorrida; include('arquivo.php'); The arquivo.php does $var = new StatusCorrida(); This file makes use of these StatusCorrid...
asked by 28.08.2015 / 16:42