How to get the full PHP documentation offline [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I travel frequently and am often without an internet connection, so I've been looking for PHP offline documentation for Mac OSX.
I have used the official offline PHP documentation, but I am not able to find many functions with the official documentation, and the user comments are not included. For example: I was searching for PDO syntaxes with MySQL Support, but that is not included in the package.
I also tried PHPfi, but it seems to use the same data as the official offline PHP documentation.
How can I get the full PHP documentation offline?

I personally use the .chm version of the manual - there are plenty of chm file readers for linux and OSX out there that can be used. It also offers integrated search, which is the main plus for it. The english chm download is also offered with the user notes included.
Also, php.net offers a the php manual as man pages, installable via PEAR - it's awesome to integrate into i.e. emacs or vim.
$ pear channel-discover doc.php.net
$ pear install doc.php.net/pman
$ pman strpos
In the last years I have switched from chm viewers to Zeal, which provides docsets for several programming languages, including PHP.
You can also check http://devdocs.io/offline for offline, also available for Windows, Linux and Mac binaries.

Related

PHP practice without XAMPP installed [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I just started learning PHP through online videos, I have also installed notepad ++ but I am not able to installed XAMPP due to security concern as I am using the company-provided laptop,
is there any way to do practice and run my PHP program without install XAMPP
First of all, PHP is a standalone program:
PS C:\> php -r 'echo PHP_VERSION;'
7.4.5
XAMPP is just a third-party package that bundles together several famous programs written by other people. You can always get any of those programs (PHP included) from each of the official web sites.
If you mean you want to use PHP to build web applications but you aren't allowed to install a web server, you may have a couple of options:
Use PHP builtin server
Find out if your Windows edition includes IIS
If you mean that you aren't allowed to run any kind of third-party software, you're out of luck: PHP itself is software and it's third-party.
In any case: if your company is asking your to learn PHP, they should provide you with the necessary tools. If you're doing it on your own, know you're probably violating company rules anyway.
You need to have a local installed webserver. With XAMPP on your device you just have a nice tool for learning. Running a productive Application with critical data on it, would be not smart.

How to create ORC or Parquet files from PHP code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there any library that can be used to write custom data files from a PHP app in ORC or Parquet format for Presto queries ?
If not what is the best practice in this case? Hopefully one that doesn't involve setting up Map Reduce cluster.
10X
- Nir
Sorry for bumping, but I felt this question should be updated.
Last year, I released the first publicly available PHP library for reading/writing Parquet files, php-parquet.
See https://github.com/jocoon/php-parquet and/or the published composer package https://packagist.org/packages/jocoon/parquet (composer require jocoon/parquet). It is a partial port of and inspired by parquet-dotnet, based on the Apache Thrift specifications.
As far as you don't have special compression needs (e.g. snappy), you won't need exotic PHP extensions. BCMath and GMP are required, due to the possibility of arbitrary-precision numbers and you'll need to have zlib available (AFAIK the most-used/typical compression method for Parquet files, to be more precise: gzip).
Basic usage instructions are provided on the respective github page.
DISCLAIMER: I'm the developer of this package. This is not meant as advertising. The library is published under the MIT license. Feel free to submit issues or contribute.
There is the https://github.com/apache/parquet-cpp project that provides a C++ implementation to write Parquet files without any use of MapReduce or the JVM. While there are already Python (https://arrow.apache.org/docs/python/parquet.html), Ruby / GLib (https://github.com/red-data-tools/parquet-glib) and NodeJS (https://github.com/skale-me/node-parquet) bindings, there are none yet for PHP. But given those mentioned bindings, you should be able to write ones for PHP quite easily.
We’ve Apache licensed https://github.com/skipprd/php-parquet, a PHP binding for the C++ https://github.com/apache/parquet-cpp implementation that’s been battle tested by skippr.io.
Pleased to see another effort on jocoon/php-parquet too. So now there’s a C binding and a PHP implementation to choose from! :)
DISCLAIMER: I'm the developer of this package. This is not meant as advertising. The library is published under the Apache license. Feel free to submit issues or contribute.

Looking for OAuth DLL for Windows 7 (Need to use from PHP on WAMP Server) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have been struggling with this problem for several weeks now and would really appreciate any help.
I need an OAuth library which works with WAMP Server installed in a Windows 7 (64-bit) environment. I want to access this library from PHP.
There are 2 OAuth libraries (i.e., DLLs) available for Windows at http://downloads.php.net/pierre/ but both are not working for me possible because they are meant to be used only in a 32-bit Windows environment.
Some more pointers mentioned at http://in2.php.net/oauth are also not helpful because they only talk about UNIX environment.
Can someone please help me with a 64-bit version of OAuth library to be used in 64-bit Windows environment?
Thanks a bunch.
Su
I have several suggestions :
if the "target" architecture wont be a windows one ; why dont you use directly the same architecture for your development ? Thus you will avoid to loose a lot of time to try to compile this dll on your computer, wont you ?
if the target is windows, may be you could check all the existing PHP OAuth classes provided here and there for example :
https://github.com/abraham/twitteroauth
http://framework.zend.com/manual/en/zend.oauth.introduction.html
Hope this could help
Regards

OpenID Library for PHP 5.3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Does anyone have openid working in a PHP 5.3 installation? None of the libraries I've tried seem to be working.
Ok, I finally got to fix the library... I explained everything here (you can also download the php-openid library after my changes).
I needed to do what Paul Tarjan suggested but, also, I needed to modify the Auth_OpenID_detectMathLibrary and add the static keyword to a lot of functions. After that It seems to work perfectly although it is not an ideal solution... I think that someone should rewrite the whole library in PHP 5...
The solution is to remove all the of pass-by-reference elements in php-openid.
change
foo(&$param)
to
foo($param)
and the library should work again.
Zend_OpenId is compatible with PHP 5.3, however it only supports OpenID 1.1 and will not work with Google (which uses OpenID 2.0). Janrain's OpenID system normally available via http://openidenabled.com/php-openid/ is the one I'm using for my PHP 5 application (the OpenID enabled site is currently slightly down for maintenance today) - it is also one of the more popular PHP OpenID implementations (only small snag is that it uses temporary files for the OpenID sessions - making getting it working on a multi-server environment slightly tricky).

PHP's PDO Source Code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've got PHP installed from the repos on my Ubuntu 9.10 local machine. Where can I find the source code to the PDO classes?
As of PHP 5.1, PDO is part of the PHP core so it should be somewhere in there. My educated guess is
/ext/pdo
Before 5.1, it used to be a PECL package that is still available here. If you want to browse the source just for curiosity, it might do. If you need the current one, look in the core.
The PHP code can be found on GitHub: https://github.com/php/php-src
And the PDO classes are under /ext/pdo as Pekka 웃 pointed out.
In this way you don't need to download the full code, but read it online.
The PDO version of pgsql should come with the php5-pgsql package.
apt-get source php5-pgsql will grab the source code used by the Ubuntu team to package the module for the repository.
In the source directory you're looking for something like php5-5.2.12.dfsg.1/ext/pdo_pgsql/ the precise path will of course vary depending on the version of php used.

Categories