I am following step by step this tutorial http://code.google.com/apis/maps/articles/phpsqlajax.html . I have tried all the 3 ways to output data to an xml file . But i get error "error on line 9 at column 1: internal error" which is the line that php script begins. Connection to database is ok. tables and fields are ok. I tried and copy pasted the exact code from google's tutorial (same values everywhere) to check if there was a problem with my database engine or something and I got an error again this time error on line 10 at column 8: Extra content at the end of the document that is $xmlStr=str_replace('"','"',$xmlStr);
I am running XAMPP 1.7.4 [PHP: 5.3.5]
Did you forget this line?
header("Content-type: text/xml");
How do you call your file? From an url?
Thank you
Related
I want to use Excel Power Query to import JSON data from web and transform the data afterwards. I have 2 versions of JSON Data, one development version and one live version. Both versions had no problem prior to last week and could connect without any issues.
Last week the live version stopped working and couldnt connect through Excel or PowerBI anymore. Curiously, nothing has been changed in both versions that could've contributed to this error happening, there were absolutely no hands in either versions during that time frame.
This is the dev connection string in PowerQuery thats working without problems.
Source=
Json.Document(Web.Contents("https://www.dev.com/dummy/YXC/JSONDATA")),
Now when I try to change it to this
Source=
Json.Document(Web.Contents("https://www.live.com/dummy/YXC/JSONDATA")),
the error message: "[DataFormatError] We found extra characters at the end of JSON input." arises
After this and some troubleshooting, I opened a new empty Excel file to put the link directly into the "from Web" tab. The connection fails and I get up to 2 Errors.
"[DataFormatError] We found extra characters at the end of JSON input."
"Details: The Ressource under "https://www.live.com/dummy/YXC/JSONDATA" cant be opened through Web.Page since its apparently no website"
Before the website can be openend one must have an authorized microsoft organisation account.
In Chrome the data shows up without any issues and there are no authorization issues, also when I download the JSON data and import it through a file directly there are no issues either. Same error occurs with other accounts.
Since it says DataFormatError, I started looking into the JSON Data. The JSON Data doesnt have any whitespace and is identical with the working dev version.
Does anybody encountered this or has a clue on how to fix this?
I'm running Octave 4.0.1 on windows 7 and I'm having this weird issue.
I created a functioning script which is saved under C:/User/Documents/Octave. This script also reads some files in a subfolder of this same location.
The problem is : my script correctly runs TWICE then I have the error "no such file" saying the software did not find my script (the same one I just ran). The only "solution" I have is restarting the whole software but then it still goes nuts on the third run.
In addition to that, my coworker tried it on an ubuntu machine and it seemed to work fine. Do somebody see an explanation?
Thanks
Here is the script :
data = [];
figure();
for i=1:200
filename = strcat('C:/Users/Utilisateur/Documents/Octave/data/DAQ_data_decoded_', num2str(1800+i))
d=lvm_import(filename);
data=[data d.Segment1.data(:,2)];
end;
data=reshape(data,6600,1);
hist(data);
The function lvm_import is a function I found on the web to extract data from a Labview data file. (d.Segment1.data(:,2) is a 33x1 array)
And the error message :
>> daqDataHist
error: no such file, 'C:\Users\Utilisateur\Documents\Octave\daqDataHist.m'
So I still don't really know what was going on but by adding fclose all at the end of the script I got rid of any error and can run the file as many times as I want. It was probably something going wrong with opening and closing the .lvm files and it "jammed" at some point.
Thanks anyway :)
I have copied a new installation of CakePHP 3 to a webhotel. On my local installation it runs without problems and shows the standard startup page, but on the webhotel I get a blank page.
If I place a test.php in /webroot it displays without errors.
If I in webroot/index.php include an
echo 'Show this line'
just before the line with
require dirname(DIR) . '/config/bootstrap.php';
it is displayed.
If I move the echo line below the require line it will not display.
So the error must be with require line.
Based on what I have found with Google I have included the following at the top in the webroot/index.php file:
ini_set('display_errors', 1);
error_reporting(E_ALL|E_STRICT);
This gives me the following error when I display the page:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /.../config/bootstrap.php on line 106
Line 106 in config/bootstrap.php looks like this:
(new ConsoleErrorHandler(Configure::read('Error')))->register();
As I wrote at the start if I run the same setup locally I don't get the error, so my guess is that I am missing a php-extension or something else on the webhotel.
As an endnote I can run CakePHP 2 without problems on the webhotel.
It looks like your webhotel is running PHP < 5.4. CakePHP 3 requires at least PHP 5.4.16 to run correctly.
You can check the following link for a list of hosts that support PHP >= 5.4
http://phpversions.info/
Thank you. I missed that. Based on your comment I checked and the webhotel uses the following in the .htaccess:
AddType application/x-httpd-php56 php
and I had replaced the .htaccess on the webhotel with the .htaccess that came with CakePHP3.
I am a beginner attempting to learn SQL with Zed Shaw's "How to Learn SQL the Hard Way"
In excercise 0: The Set up, he states:
Then, look to see that the test.db file is there. If that works then you're all set.
But when I run the command,
sqlite> create table test (id);
sqlite> .quit
the execution runs, but it doesn't create a test.db file. I looked in the same folder as where the sqlite3.exe file is and I see nothing.
I attempt to see if I can continue without this step, then - In his next exercise, "Excercise 1: Creating Tables":
I input his commands, but when attempting to run sqlite3 ex1.db < ex1.sql, it gives me an error.
I even tried putting the create table command and saving it as a '.sql' file into the same folder as sqlite3.exe.
How can I set this environment up properly? Can someone explain this on an "easy to grasp" level? Any response is appreciated**
Edit 1
I'm not exactly sure how Zed Shaw how he wants his learners to use SQLite 3, Maybe I can go into some research but I just don't understand why he leaves such a large gap of assumption that everyone knows what to do for the set up process...
I had this exact problem. I am using windows 7.
From this website: http://www.sqlite.org/download.html
I used the:
"sqlite-tools-win32-x86-3130000.zip
(1.51 MiB) A bundle of command-line tools for managing SQLite..."
under the "Precompiled Binaries for Windows" heading.
My helper directed me to open the file named "sqlite3" after I'd extracted the files from the zip file. It brought up a black window, in the command line style, showing some text, and then the familiar sqlite> prompt.
Then he had me input:" .save data_base_name.db " (I chose to have my database be named 'thedatabase'.)
which created a file in the same folder as the sqlite3 file, called "data_base_name" as a "Data Base File".
That's where I'm at so far, I'll post updates as I have them.
I am working in BIDS for 2008 R2
I have an annoying issue that I have not found the solution to yet. The error message is below. The line of code the error message refers to was from a Script Task that I deleted yesterday. My SSIS package executes fine and I am getting close to publishing the production version. I would like to clean up this non-fatal error first.
Would anyone have any suggestions on how to clear this up?
Thanks!
*Attempt to parse the expression "#[User::SS_Directory] +"''" + #["User::SS_InputFolderName] + "\" + #[User:SS_InputFileName]" failed and returned error code 0xC00470A6. The expression cannot be parsed. It might contain invalid elements or it might no be well-formed. There may also be an out-of-memory error.*
try
to rename the pkg and rebuild it, then rename back again.
check the connection manager
use format -> auto layout- diagram
open as text and lok for the string in the error
Mario