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.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 11 months ago.
Improve this question
I need to upgrade PHP version of my project. It is PHP5.6 and I want to upgrade it to PHP8.1. I tried to search for such information but couldn't find it, thus, I want to ask. Is it better to upgrade directly from PHP5.6 to PHP8.1, or step by step (PHP5.6 -> PHP7.0, PHP7.0 -> PHP7.1, PHP7.1->PHP7.2 and etc until I reach PHP8.1)?
Upgrading step by step can help you to see what is deprecated by following the logs files and then review the code.
I have recently been made aware of this tool which ostensibly makes this process much easier. Note that I have not used it myself and as such can't speak to how well it works. It looks to be a FOSS project though which is good.
Website: https://getrector.org/
Github: https://github.com/rectorphp/rector
Updating manually as per the guides provided by vee will likely give you better understanding of the benefit each upgrade offers as well as maintaining full control over your project.
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
Please let me know if you know a word file generator for php on Linux server.
I have a template word file and I want to generate a word file according to the template using php from my linux webserver.
As far as I can find on the web, all of these php libraries need Microsoft Word application to install on the server. I need plug-in which doesn't need to install word in the webserver since mine is linux. Please guide me.
Any work around or name of the plug-in would help me. Thanks in advance.
As mentioned in comment you can use You can use https://github.com/PHPOffice/PHPWord It's a PHP library that can create DOCX along with some formatting.
If you are looking for a similar solution you can also visit this link
http://webcheatsheet.com/php/create_word_excel_csv_files_with_php.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 7 years ago.
Improve this question
I am looking to convert my PHP library code as a PHP extension. The full library is under a namespace. There are many PHP classes I am using under my library.
Is there any tool which convert the PHP code to .so and .dll PHP extension (with the namespace usage) ?
Writing the code in C or CPP is too much of work.
There is no tool that will automagically convert PHP code to a PHP Extension, but tools like Zephir provide a half-way DSL that can easily be converted from straight PHP and then compiled against Zephir to build a PHP extension... and yes, it does work with namespaces
The Zephir docs are pretty good, and give a decent explanation of how to write code for the Zephir DSL, and there are blog posts like marmelab's that show how to convert a PHP (namespaced) class to an extension using Zephir.
Edit
Since posting this answer, I've also discovered PHP-to-Zephir which claims to be able to convert PHP code to the Zephir DSL, although I haven't tested it in any way
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.
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
Free, portable, all included, all in one, (opensource is + ) php server? I have a USB FLASH 16gb card. I want to install on to it some kind of PHP server - some programm.exe which i could run on different computers without installing - call some localhost/phpserver and get my php scripts running.
So where to go to get such thing?
XAMPP and instructions:
http://www.pendriveapps.com/xampp-portable-web-server/
I'd try WAMP; hopefully it has what you are looking for.
I suggest XAMPP also but instead of pendriveapp fork, you can use the original "xampp lite" package served from their offical site. I's pretty portable and you can use without setup.
By the way, your problem will not be the choosing package. Problem is, you'll need an extremly fast flash drive or card.