Posts by rafaelphp • 582 points
32 posts
-
2
votes1
answer39
viewsA: Scroll on mongodb does not work
I found the answer in stackoverflow in English. I am using the version of mongodb 4.2, you have to configure in the /etc/mongod.conf security: authorization: enabled…
-
0
votes1
answer39
viewsQ: Scroll on mongodb does not work
created 2 db and a user for each, but the user 2 can enter data in the database 1, what I am doing wrong use shop db.createUser({user: "appdev",pwd:"appdev", roles:["readWrite"]})…
-
0
votes1
answer183
viewsA: foreach HTML table
<?php session_start(); //unset($_SESSION['contatos']); ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta…
-
-1
votes1
answer509
viewsA: Syntaxerror Error: JSON.parse: Unexpected Character at line 1 column 1 of the JSON data
try like this: use Zend\Json\Json; $data = array("teste"=>"123"); echo Json::encode($data); or if using Zend-Diactoros $data = array("teste"=>"123"); return new JsonResponse($data,200);…
-
0
votes1
answer32
views -
-1
votes1
answer28
viewsA: How to choose what will be displayed from the xml by the php you are reading?
Try this : $texto = ' <description> <![CDATA[ <div> <img…
-
-2
votes2
answers302
viewsA: can’t use android emulator on androidstudio
your machine has to have virtualization support, I believe i3 processors do not have and if you have Voce should enter the BIOS and activate virtualization.
-
1
votes1
answer509
viewsA: How to Get Header Information in Post Request, Ionic 3
Create a class InterceptService to intercept http requests, // Angular import { Injectable } from '@angular/core'; import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpResponse } from…
-
0
votes2
answers54
viewsA: Error creating directory with php even using file_exists
Try to use the function is_dir see in http://php.net/manual/en/function.is-dir.php remove the last concatenation in the variable $dir, following example below. $dir = 'imagens/'.$id_produto;…
-
0
votes1
answer42
viewsA: Create a standalone process in a web application
if your server is linux(probably) you can solve this using cron job. search google for crontab or via command line man crontab , basically you should create a php script and run via cli php…
-
0
votes2
answers1207
viewsA: How to use "background-image" correctly?
level exits and enters img folder PageList1 ul { border-top: 2px solid #ccc; border-bottom: 2px solid #ccc; background-image: url("../img/remove-icon-small.png") !important; } same css file level…
-
2
votes4
answers1354
viewsQ: XML returned by web service with encoding error
Hello, I have an XML that returns from a webservice with encoding errors, on encoding XML is like UTF-8 but it doesn’t display accents correctly and I can’t detect which correct encoding it should…
-
0
votes1
answer275
viewsA: Retrieve an ID and insert into Combobox for changes
Now yes. You should have it displayed inside the option tag like this <option value="<?php echo $id;?>"><?php echo $id;?></option>
-
2
votes0
answers38
viewsQ: What is the meaning of & in this sentence in PHP?
Sentenca: foreach ($this->table as $alias => &$tableObject) { $tableObject = clone $tableObject; } What is the meaning of & before the variable $tableObject? I have seen some codes…
-
0
votes1
answer470
viewsA: Redirect page through the link typed in the url
<?php /** * User: rafaelphp * Date: 22/07/16 * Time: 05:20 PM * File: index.php */ # exemplo basico - existem outras maneiras de fazer o que vc esta dizendo # inclusive atraves do arquivo…
-
-1
votes2
answers302
viewsA: How can I protect myself from proxy servers?
As far as I know if the user does not send some headers vc have no way to detect, however if the user sends a X-FORWARDED-FOR ai Voce can try to filter. But Voce has to accept that some will…
-
2
votes1
answer39
viewsA: Does not return all xml results
try another loop foreach($xml->news as $v) { foreach($v as $vv){ echo "<pre>"; print_r($vv['name']); echo "</pre>"; } }
-
1
votes4
answers1244
viewsA: How to Catch Data with JSON on Android
Try to return your post as in the example below, if this is what you need, I advise you to handle the post data before sending the array. <?php $data = $_POST; // onde data deve ser um array…
-
1
votes2
answers1012
viewsA: How to list and query contacts with PHP and Javascript?
thus tries HTML file <html> <title>teste</title> <head> <!-- CSS aqui --> </head> <body> <h1>Consultar</h1> <p>Clique no botao</p>…
-
2
votes3
answers2002
viewsA: Block access to pages containing ". php" with HTACCESS
Try one of these options: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php [NC,L] or that: RewriteEngine On RewriteCond…
-
2
votes2
answers367
viewsQ: Pass jquery variable in filename - as if it were get
Holá, guys, I’m not getting information about this because I don’t know how to look, I tried to get variable jquery, and things like that and didn’t return what I need. It is as follows: I need to…
-
1
votes1
answer2619
viewsQ: Free access to folders in . htaccess
First of all I want to say that I have already researched here in the stack and none of the examples helped me. However if you think it is duplicated please indicate the solution link. I have…
-
0
votes1
answer77
viewsQ: Router in Zend 1.12 hide controller and action
Hi, I want to make sure the user does not see my controller or the action in ZF 1.12. Ex: http://meusite.com/produtos/listar/item/iphone-5s-preto I want you to stay like this:…
-
5
votes1
answer618
views -
0
votes1
answer424
viewsQ: File size in windows and linux
I am transferring files through (FILEZILLA FTP Client) from my local machine that runs XAMPP/Windows8, but when placing the file on the LINUX server the files suffer a variation in size. Ex:…
-
0
votes1
answer967
viewsQ: Doubt in web service development for APP(android) and WEB(php)
Hello, we are developing an APP for android and this will make a query in a webservice (that is not done yet) to validate data requested by the APP. The same project runs on the web and is developed…
-
6
votes1
answer276
viewsQ: How to convert a date to this format in PHP?
Can anyone tell me what kind of date this format is? 2013-09-17T05:59:00+01:00 I have in the database a timestamp or date field. How to convert its value to this format using PHP?…
-
2
votes1
answer172
viewsQ: Redirect 404 pages to search
Hello, I have a website in Malta and some product pages no longer exist, but there are other products with similar names. What happens? Many of these links are still being accessed, what I would…
-
2
votes1
answer2109
viewsQ: Query in mysql with php does not return result in queries with accents
Hello I have a system in php/mysql using zend 1.12, but when consulting the mysql database with a word that has no accent and in the table has accent, does not return any result for example: when…
-
1
votes2
answers753
viewsQ: Put date in file generated by mysqldump
Hello, I want to date the file generated by mysqldump, I have a shell script that generates the dump, however I need to put the date that was generated in the file name Ex: //have this command…
-
0
votes3
answers192
viewsA: How to write an array post in current Intel - input file
I believe that because it is a Voce array I should validate as such. note that your input is so "" the idea would be that he would be with the numbers set, like: // entao se testaria mais ou menos…
-
1
votes5
answers5103
viewsA: Mail() function does not send email
see if it is not postfix (not sendmail), if you just add ('-r ' . $Sender) at the end of the mail function ex: if( mail($to,$subject,$message,$headers, '-r'.$sender) ){ echo "enviado"; } where…