I'm having trouble determining if it's possible, based on the amount of access I have to my Godaddy server, to install XPDF. Could someone shed some light on this?
Here's the link to XPDF.
And here is info about the GoDaddy server.
My goal is to convert PDF's to Plain Text automatically using a PHP script on the server. So far, other solutions like code posted in the comments of the PHP website have been insufficient. All research seems to point to XPDF.
From the information you give, it sounds like it is a shared hosting solution you are using. Typically, you will not be able to install system software on a shared hosting account. I doubt that Go Daddy will install this for you.
You would need to use a hosting solution that includes this software, or rather use a VPS(virtual private server) or dedicated server. Then you will have root access and install any software you like. Unmanaged VPS are not expensive, but you need to take care of backups and software upgrades. If you do not want to manage your server, then maybe find a hosting solution that includes the PHP extension and software you need.
The page you reference does not give detailed information on PHP (phpinfo). With this information, it is possible to determine if you can perhaps do what you are trying to do without xpdf. There is also pdf2text, IIRC.
I installed xpdf and it was a snap. Just followed the instructions that came with the binary distribution then copy the file to the directory of your choice. You can use the php exec() command to do anything that you would with a shell account.
Related
I'm doing a project that involves using a server to host files on the web. I'm very new to web hosting technologies and I found an angular tutorial that used a very simple server called http-server and with this tutorial I was able to get a site hosted to localhost. Getting something hosted using the tutorial required to know very little about how each individual step was working. I want to use PHP but also being new to that, I know that it's server side and I need the server to have PHP installed but I have no idea how or if it's possible given this tool.
I'm not sure if have to move to a larger scale web server with php installed by default like Apache, but I'd prefer to keep it simpler if possible. Here's a link to the tutorial and server utility if that helps at all
https://docs.angularjs.org/tutorial/step_00
https://github.com/indexzero/http-server
If you really want to publish anything "on the web", there's really no need to create a webserver on your own. Any provider you choose will have everything you need preinstalled for very little money, usually in the form of a LAMP stack. (Linux/Apache/Mysql/PHP). The DIY webserver you tested is a security risk at best if you're online with it. And simple as it may seem, the AngularJS server is surely more trouble than just using a pre-installed LAMP, especially when you think about maintenance. If you do not plan to use a commercial webhosting provider, tell us what your platform is, and somebody will be able to point you in the right deirection with a LAMP or WAMP install. It's not that difficult, really.
I created an extension for djondb, it's a wrapper of the library which is a C++ Library, I compiled it and it's available to be downloaded from djondb site, I'm not an expert on PHP and I've been having some problems with the distribution, mainly I realize that I need to do each compilation for each platform and create an installer for each one, which is time consuming, what I want it's a to ditribute the source code and allow the user to install it in the easiest way,
What I already tried:
Using phpize, configure, make, sudo make install the user can install the library very easy on Linux and Mac, the problem with this is that users need to have g++, make, etc installed on their computers, and this process of installation does not work on Windows.
Compile for each platform (Linux x86, x64, Mac, Windows, etc), and upload each tar.gz to the site, the user download it and place each file in the correct folder. the problem here is that the configuration is too manual and the users tend to miss some step, and it's not user friendly. The other problem is that I need to compile each version using a virtual machine and that's time consuming. (Now I'd to include versions for PHP 5.3 and 5.4, this means 8 virtual machines to create all the binaries)
I tried to create an account on PEAR but the registration screen always said that I dont need an account for the purpose I'm creating... (seems that it's a common problem in PEAR system but didnt find how to create the account to propose the package).
Did a proposal on PECL but nobody answered to the mailing list, seems that it's very common too.
So I'm stuck at this moment with the 1 and 2 ways to distribute, what is the best way to distribute a PHP extension that is created using C++ in a user friendly manner and easy to install?
Thanks in advance, you can see the code of the project at https://github.com/djondb/djondb_phpext if you have more questions about how the project is structured or the full explanation of the phpize/configure/make process.
Take the middle road: Distribute the source for Linux / OS X users, who can build it themselves, and offer compiled DLLs for Windows users. That will at least limit the number of versions you need to compile.
As a PHP developer who maintains the extensions we use in our company, it is PERFECTLY fine to give only the source code and expect the users to compile it on their machines.
If you want to be nice, compiling a version for each machine you support yourself, is also an accepted way (See Zend for example) and leave it somewhere easy to download (like sourceforge/github etc).
Then, just listen to the users and improve your (release) system as you go.
I create php application for small businesses. Some of the clients may prefer running the app on a local server, therefore my requirement is to create/bundle an app with apache/mysql/php with all the necessary confirguration and one click executable (be it a batch file) such that when the user opens it, it runs the apache server on some port say localhost:1234 and mysql as well.
and opens up the application in the default web browser.
To be more exact, Im looking for something like http://www.simpleinvoices.org/go, check their Simple Invoices for Windows which come budled with apache/php/mysql.
P.S - Im not sure if this question should be at SO or Superuser.
If you actually want to install a web server and a SQL server then Lars' solution would be a way to go. On windows you can generate a .msi installer containing the dependencies you need (like WAMP). An installer executable would be a cleaner solution than a batch file in my opinion, as it will also provide the user with an option to uninstall your software if they wish.
If you want to distribute your application in a standalone version, then you might also want to check a solution like NuSphere's PHPDock - http://www.nusphere.com/products/phpdock.htm
I had the same challenge and came across Uniform Server:
http://www.uniformserver.com/
You download it, add your application to it, start it and everything runs. Lovely.
Superuser would have been better. But depending on your requirements, you should just create a package to install. On windows, package it with WAMP, on linux, package it with either one-click-install or creating packages for the two biggest systems, namely APT and RPM. With the dependency-system on all of them you can make sure, that your application runs right off the bat.
PHP Desktop is the best option I found when researching this.
https://github.com/cztomczak/phpdesktop
PHP Nightrain is also an option:
https://download.cnet.com/PHP-Nightrain/3000-10248_4-76169308.html
Bitnami WAMP stack looks good as well:
https://docs.bitnami.com/installer/infrastructure/wamp/
i'm developing a PHP web application that i recently launched into a remote shared hosted server. However, i'm constantly updating it using Dreamweaver on my development machine. Whenever i use PUT to update a file on the server for example config.php, i think at that same time there are requests on the file already causing php fatal errors.
How can i avoid this? Please help. Thank you.
You need to find program, which will upload file with a suffix in the name (e.g. "filename.ext.!part") and only after uploading will rename existing file.
At this moment I don't remember existing solution, as variant you can try to play with this: http://winscp.net/eng/docs/script_commands
Another variant is using APC accelerator with apc.stat = 0 - cached copy of executable code of your scripts will be updated when server will restart. It's less comfortable way, of course.
Also, Dreamweaver isn't best IDE - try to use NetBeans (free) or PhpStorm (commercial).
I assume you're using FTP connection, which is probably the root of the problems.
You can try switching to SSH connection, which is faster and secure way to upload files. You will have to ask the hosting company for SSH access, as it might be different credentials.
If you're looking for more enterprise php deployment solutions, we use phing to deploy applications (http://www.phing.info/trac/). Phing is using XML files and task to deploy apps, which might by an overkill for you.
RakeshS's answer is the wisest and safest one. Using a version system like SubVersion or GIT will also help copy many files quickly (just update the hosting server at once, without having to wait for many files to be FTPed and w/o forgetting any), and will help get back to the previous version at once in case of a blocking error.
I there a PHP based source control 'server' that is compatible with SVN clients?
I'd like to host my SVN on my hosting servers, however the current host will not allow me to start any process or install any software
You could try:
http://sourceforge.net/projects/deltaweb
You can have a PHP front end but you will still need to have the SVN server running somewhere.
Not that I know of.
You can look at services like CVSDude.org which provide great SVN hosting that's pretty affordable. They basically specialize in both CVS, and now SVN hosting.
The only PHP-based SVN project I'm aware of is this package that allows PHP to utilize some of the SVN bindings: http://pecl.php.net/package/svn.
As the other answers here have indicated, I don't think you are going to find what you want. A PHP-based SVN server does not appear to exist.
I would suggest finding a different hosting provider for your repositories.
If you want a hosted svn repository and you don't mind using and trusting a 3rd party, try beanstalk, they have a free account and a number of fairly reasonable paid options, considering the management overhead you won't need with them.