I am developing in zend on my local machine. When i get an error i am shown the link to the php file that gave me the error. What i would like to do is be able to click on that link and have the file open in sublime text 2 so it would same me some time. I have installed the chrome extension LocalLinks to get the browser to open local files but the php file only opens in the browser. Any ideas on this?
Thanks.
LocalLinks:
https://chrome.google.com/webstore/detail/jllpkdkcdjndhggodimiphkghogcpida
Why you just simply use CTRL+P (CMD+P in Mac) to open the file you need in sublime by just typing a little part of the name?
Related
I have a Laravel App that can upload file to a folder.
The folder is a symlink to /media/folder_name, that is a mount point of a Windows share (mounted via fstab).
Upload and Download works.
The download action returns a copy of the file:
return response()->file($path_file);
I want that the download action to show me the original file (saved in windows folder, like: //192.168.1.2/share/folder/file.pdf).
It is possible?
After some research, direct link to local resource is denied in Firefox and Chrome for security reasons.
So, the solution is to install the Local Filesystem Links extension for firefox. In Laravel, return a blank page with the link to the resource, like: file:////192.168.1.2/folder/file.pdf.
Finally, when you click the pdf link, the original resource is opened with the default program (Adobe Reader, for example).
I'm not sure if I did anything to cause this, but when I opened up Eclipse, it would only let me view and edit HTML, CSS, and JavaScript files. If I try to open a PHP file, a blank window opens where you would normally view the file. The window has no content or title, just the "X" to close it. Anyone have any ideas what would cause this?
In case it matters, I'm using Version: Luna Release (4.4.0)
Build id: 20140612-0600
Does anyone know how to serve my own files like TestFlight or Diawi ?
I used Firefox web developer tools to let me pick up the header information (from Diawi) then used PHP to set header and readfile to output but this has failed - I have also tried to just reference the file via my web browser but each time my iPad Safari tells me it cannot download this file.
Don't try to download .ipa file directly, you should create manifest.plist file that contains app information and create a link to this .plist file like below.
Than go to this link via safari.
Manifest file should like this : https://gist.github.com/hramos/774468
And you link should like this: itms-services://?action=download-manifest&
url=http://example.com/manifest.plist
You can check this page:
Wireless AdHoc Distribution
There are online tools that simplify this process of sharing, for example https://abbashare.com or https://diawi.com
Create an ipa file from xcode with adhoc or inhouse profile, and upload this file on these site.
I prefer abbashare because save file on your dropbox and you can delete it whenever you want
I have made a custom theme with wordpress locally with wamp.I use notepad++ for writing my code.Some days before when I wanted to load my page from notepad I had to go to run->launch in Firefox and had no problem showing the page where in the address bar the URL was:localhost/wordpress.
Now when I try to load my php files from notepad (run ->launch in Firefox) it shows a corrupt html page not all of it ,with some rules of php and without CSS and no images.In the address bar when running my project from notepad the URL is file:///C:/wamp/www/wordpress/wp-content/themes/revenant/page-about-us.php which is incorect ofcourse.Also it does not understand the php code.For example the title for about us page is
<?php echo get_the_title('about-us'); ?>
But when I write manually in the address bar the URL of my project like localhost/wordpress everythng shows as they shown before with no problem.I have not changed any settings in notepad.Why this problem came up with no reason?Why it doesnot load php and css? Thank you!
Notepad++ doesn't know that you have a webserver running or what the document root is, so it cannot take you to the file's URL. When it opens the file in the browser, it is loading the file directly off the hard drive (hence the file://). It is not being served by the webserver that knows how to parse PHP, it is being read directly by the browser, which does not.
I tried to use Google Doc Embedder by using this code
[gview file="http://localhost/wordpress/wp-content/uploads/2013/07/list.pdf"]
but this error keeps on showing up..
Sorry, we were unable to find the document at the original source. Verify that the document still exists.
You can also try to download the original document by clicking here.
I checked in the directory/path to verify and its still there. So what is the reason that this error keeps on showing up?
Google Docs doesn't have access to your local machine. It will need to be on publicly accessible web server for that to work.
Your file path is wrong. You are pointing to localhost for your server. This is something running on your machine only so google reader would not be able to point to a file on your machine.
You should upload your file to a public server.
You can try even
<iframe src="http://localhost:8080/pdf">
I think there are plugins for iframe in wordpress ,Try it out..
In my Wordpress I use this plugin for Google Docs to embed .pdf
DirtySuds - Embed PDF
Then in the post use this:
[embed width="620" height="600"]http://site.com/file.pdf[/embed]
edit:
You will need live host to upload your .pdf files there.