Member Avatar cereal Posting Sensei

Community Member Featured
1,197 Began Watching
Hi Everyone - I keep getting the following error messages in my log file

[19-Jan-2017 22:16:46 UTC] PHP Notice: Use of undefined constant CURLOPT_httpsHEADER - assumed 'CURLOPT_httpsHEADER'
on line 22
[19-Jan-2017 22:16:46 UTC] PHP Warning: curl_setopt() expects parameter 2 to be long, string given
on line 22

This is the … Article by Lloyd_4 in Web Development
1,197 Replied To a Post in XML file for Italian "FATTURA PA"
Article by niobi in Software Development
Hi,

as the error states the format of the invoice is not recognized by their system, you are showing only the namespaces in the header of the XML document. The document must conform to these namespaces. So if the namespace `xlmns:p` defines nodes like `<p:FatturaElettronica>` the following:

<FatturaElettronicaHeader>
<DatiTrasmissione>

Will …
Article by Andera in Web Development
Was stuck on the same problem as well for a day and found that upgrading from php 5.5.9 to 5.6 fixed the issue. Thanks :)
Sponsored 1,197 Replied To a Post in RESTFul API actions
Article by Dani in Web Development
Hi!

I think jkon refers to this https://www.w3.org/TR/wsdl20/
i.e. a document that describes the features of the API endpoints. This is widely used in SOAP. See also:

* http://www.ibm.com/developerworks/webservices/library/ws-restwsdl/
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
Davy, I think you are able to solve this error, look it carefully.
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
> like how?

Download this file:

* https://github.com/bcit-ci/CodeIgniter/archive/3.1.3.zip

or download the version you are using. Extract, browse up to `application/views/` and copy the **errors** directory, with all the contents, into your `application/site/views/` directory.
1,197 Replied To a Post in inserting multiple value
Article by jailani_1 in Web Development
php
Hi Jailani,

in your code you are using:

$value = $_GET['change'];

which will not work if the form set the method to POST:

<form method="post">

if you perform a POST request then you have to use $_POST in the PHP side to access the values of the input fields. You …
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
Then add all the tree from the official download.
1,197 Replied To a Post in Current PHP version: 5.6.27
Article by Lloyd_4 in Web Development
php
The current latest stable PHP version is 7.* from which `ext/mysql`was removed.

If you are using PHP 5.6 then the query should still work, as `ext/mysql` is only deprecated. Can you share the error code you got from the above?
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
> C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\masterlinkci2\application\site\views\errors\html\error_php.php

Can you reach the **error_php.php** file by following the path described in the warning?
Article by Paul_51 in Software Development
Check `arp-scan -ln` it outputs something like this:

> arp-scan -ln
Interface: wls1, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
192.168.0.1 00:c0:9f:09:b8:db QUANTA COMPUTER, INC.
192.168.0.5 00:02:a5:90:c3:e6 Compaq Computer Corporation
192.168.0.87 00:0b:db:b2:fa:60 Dell ESG PCBA Test
192.168.0.90 00:02:b3:06:d7:9b Intel Corporation
192.168.0.153 00:10:db:26:4d:52 Juniper Networks, Inc.
192.168.0.191 …
Sponsored 1,197 Replied To a Post in CI error: Invalid argument supplied for foreach()
Article by davy_yg in Web Development
Can you show the method controller?
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
> Well, I redirect application_folder value to application/site since I divided application folders into two folders admin and site. admin for backend and site for frontend.
> [...]
> and still receiving that same error:

To make it work, both applications must have the requested folders and files. In practice …
1,197 Replied To a Post in hacking
Article by hinaraees in Information Security
> i am just curious how to access social media accounts like facebook, watspp etc. with the users' permission in order to help them prevent unethical hackers from breaking into their accounts.

Even if ethical, that would probably be a misuse of FaceBook terms of services. There are projects, like …
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
Ok, so you changed the `$application_folder` value to `application/site`, is this correct?

Are you creating an application folder named `site` inside the `application` folder? I mean, do you have something like the following:

application/
└── site
├── cache
├── config
├── controllers
├── core
├── helpers
├── hooks
├── index.html …
Sponsored 1,197 Replied To a Post in CI error
Article by davy_yg in Web Development
Hi,

are you loading the database library? You can do that in the `application/config/autoload.php` file, to make it available in all controllers and models:

$autoload['libraries'] = array('database');

Instead, if you do not want to load it for every resource, you can load it in the constructor of the model or …
1,197 Replied To a Post in PHP - SEO Friendly Links
Article by Stefan_1 in Web Development
Hi,

if this is for WordPress then follow these directives:

* https://codex.wordpress.org/Using_Permalinks

otherwise search for *apache and url rewriting.*
1,197 Gave Reputation to in hacking
Article by hinaraees in Information Security
I keep falling for these threads. I'm like Charlie Brown with Lucy and the football. For some reason, despite all my life experience that tells me that the OP is unserious, I want to believe that THIS TIME it's someone who just needs a nudge in the right direction.

It …
1,197 Replied To a Post in Mysql Select Join Query
Article by Lloyd_4 in Web Development
php
Ok,

it does not work because you are not accessing to the returned row when you call `$stmt->otdq_ordernum`.

Use:

$row = $stmt->fetch();

And then:

$row->otdq_ordernum;

Or use a MySQL variable.

Also `rowCount()` in PDO, assuming you are using it, does not return the rows found in a SELECT statement, but …
Sponsored 1,197 Replied To a Post in Can't connect with database.
Article by SimonIoa in Web Development
In this very specific case, because $ID is expected to be an integer, you could use `exec()` which returns the number of affected rows by the statement or something that evaluates to boolean FALSE (if something goes wrong) but you have to properly sanitize the variable.

$ID = filter_input(INPUT_GET, 'ID', …
Sponsored 1,197 Replied To a Post in Can't connect with database.
Article by SimonIoa in Web Development
Hi,

it happens because getDB() is using PDO and in the script you are using MySQLi. Fix it and it should work.
1,197 Replied To a Post in Compare POST Array with SQL Output
Article by davidjennings in Web Development
I was supposing the `$_POST['Net']` arrays to hold float values, not file names. Anyway you could write:

$files = [];
$products = [];

while($rowProduct = mysql_fetch_array($productSQL))
{
$products[] = $rowProduct['POProductNet'];
}

if(TRUE === isset($_POST['Net']) && TRUE === is_array($_POST['Net']))
{
$files = array_map('basename', $_POST['Net']);
$diff = array_diff_assoc($products, $files);

if(count($diff) > 0) …
1,197 Replied To a Post in Compare POST Array with SQL Output
Article by davidjennings in Web Development
Hi,

you could use [`array_diff_assoc()`:](http://php.net/array-diff-assoc)

<?php

$sql = [25.00, 25.00, 50.00, 82.00, 120.00, 205.00];
$post = [25.00, 50.00, 50.00, 80.00, 120.00, 205.00];

print_r(array_diff_assoc($post, $sql));

Returns:

Array
(
[1] => 50
[3] => 80
)

So you can manage the array through the index key of the array. But what is …
Sponsored 1,197 Replied To a Post in pdf link in CI
Article by davy_yg in Web Development
Check the PHP error log, it can be a permission issue.
Sponsored 1,197 Replied To a Post in pdf link in CI
Article by davy_yg in Web Development
> I also wonder if I could upload pdf through Roxy Filemanager?

It seems possible. This is defined by the `ALLOWED_UPLOADS` and `FORBIDDEN_UPLOADS` of the conf.json file (see previous link). The former is the whitelist, define for example `pdf jpg png` to allow these files to be uploaded. The latter …
Sponsored 1,197 Replied To a Post in pdf link in CI
Article by davy_yg in Web Development
That could be something else, like the rewriting rules of the server. Did you verified if the link appears different in the HTML source code?

**And:**

> Are you able to browse to the PDF through the plugin? Can you upload? Like in their demo?
Sponsored 1,197 Replied To a Post in pdf link in CI
Article by davy_yg in Web Development
Oh, ok, there is a configuration option `FILES_ROOT` in the conf.json file of the Roxyfileman, used to define the path in which upload the files. According to the documentation the path MUST be absolute to the document root of the website:

* http://www.roxyfileman.com/install#config

Looking at the HTML of the first …
Sponsored 1,197 Replied To a Post in pdf link in CI
Article by davy_yg in Web Development
Could you show the code used to build these links?
Sponsored 1,197 Replied To a Post in pdf link in CI
Article by davy_yg in Web Development
Hi,

the first link redirects with 302 to the home page, when instead should show a 404 error page.

Look here:

* http://www.gsa-constructionspecialist.com/assets/upload/artikel/2007TugasLPJKke5.pdf

And go to the first folder:

* http://www.gsa-constructionspecialist.com/assets/

You server is listing the index, from there you can see that the `upload` directory does not exists. It …
1,197 Endorsed pty 79