Where is PHP's sybase_query Implemented? - php

I want to look at the implementation of sybase_query (http://php.net/manual/en/function.sybase-query.php) in PHP. How can I do that? I went here https://github.com/php/php-src, and searched for sybase_query, but nothing came up. Can you help me find the source to the sybase extension?

The source code can be found here on GitHub. This is the maintainer's fork.

I found this:
https://raw.githubusercontent.com/php/php-src/0676f39ee4f062da47255e3f477fa9857d2a0b52/EXTENSIONS
Which listed:
EXTENSION: sybase_ct
PRIMARY MAINTAINER: Timm Friebe <thekid#thekid.de>
MAINTENANCE: Maintained
STATUS: Working
So I googled Timm Friebe and saw that he had a forked version of the php code with the sybase_ct extension there.

Related

PHP, Bitmaps, and Redis

I found this blog post and would like to experiment with it more.. The issue is my environment is PHP and not Java. I've looked for how I can translate the code examples I would like to use into PHP but it doesn't look like there is much documentation on PHP and Bitmaps. Any help would be awesome!
Thanks!
http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps/
Actually, you do not really need to handle the bitmaps in the PHP code, provided you use a recent Redis version (2.6), and a compliant PHP client library.
See the following Redis commands:
http://redis.io/commands/bitop
http://redis.io/commands/bitcount
So you can count the bits directly in Redis rather than doing it in PHP.

Use C or C++ libraries as PHP extension

Minutes back I read something like "it should be possible to link the C++ library as a php extension".
Is it really possible?
if yes, which is better, newly written extension or a linked library (efforts and performance wise).
Also can you guys point me to some How-to or related doc.
Yes it is, check these out:
http://devzone.zend.com/1435/wrapping-c-classes-in-a-php-extension/
How to start writing a PHP5 extension in C++
The following link will probably answer all your questions. Basically yes, it's possible to link C++ lib as PHP extension.

Compiling PHP from source using Microsoft Visual c++ 2008 error

First off i want to thank everyone who has contributed towards making this website the great resource that it is today.
OK, Here is my problem.
I am trying to work with id3 tags in php and im using wamp server 2.0i on my vista 32bit ultimate. I followed the steps at php's wiki page on compiling extension for windows machines.(cant post the link).everything goes nice and smooth up until towards the end where i get an error saying fatal error c1083. could not open header zlib.h. I am running the shell as the administrator and not really sure what else there is i can do. But im really going crazy over this. I have followed instructions step by step but some how i am still getting stuck. Here is the link to the text file containing the compiling process.
https://docs.google.com/leaf?id=0Byjn3U-sXJBHNjA3ZTI1NTktYzlmZS00NjAxLTgyNzYtYTM3ZTRhYmY2NzE2&hl=en&authkey=CL6j7e4D
Thanks in advance,
I'm just gonna bang my head against the wall for little bit more and then either get unconscious or sleepy! LOL
Wooohoooo, Ok all I had to do was configure --disable-zlib and then nmake. But now one more thing. I am using wamp server and i tried just copy and pasting the produced folder but wamp does not like it and just crashes. Oops. good thing i kept the old copy of the php folder as a back up (unlike what i usually do). So i guess my question is: how do i use this compiled php with my id3 module? sorry about the dumm question.
The PECL id3 module is listed in alpha and hasn't been modified since 2004, so it is very unlikely that you'll be able to use it in any stable method against PHP 5.3.
Have you considered using the GPL-based getID3 class ( http://getid3.sourceforge.net/ ) which, despite its name, is capable of reading and writing id3 from a wide variety of files and has comparable functions to everything the id3 module ( http://us2.php.net/id3 ).

does netbeans include phpdocumentator?

does netbeans include phpdocumentator so you can comment your code?
is there some guide on how to use it, eg. how should i comment, how to read them and how to print them out?
It doesn't, but this link contains step-by-step instructions for setting it up.
https://blogs.oracle.com/netbeansphp/entry/generating_php_documentation_from_netbeans
I think the actual PHPDocumentor tool can be installed from PEAR. I doubt it would be included with Netbeans. I imagine Netbeans provides a way to make use of that facility once installed.
The IDE's ability to interpret your docblocks is built in to NetBeans and Eclipse, and probably other IDEs. That's not phpDocumentor working for you (but close I suppose).
Having phpDocumentor installed would mean having the ability to generate API docs from your code and its docblocks.

php pear net_dns

HI
Does anyone know where I can find good documentation on the Pear module Net_DNS?
There is its End-User Documentation, on PEAR's website.
There are a couple of examples for some methods, like Net_DNS_Resolver::query().
(Yeah, one problem with PEAR package is that some of them are not that well documented... This doesn't seem to bad, on this point ; I've seen worse ^^ )
there is also the generated API docs for Net_DNS; available at http://pear.php.net/package/Net_DNS/docs/latest/
If you have the time, and feel like you would like to help the PEAR project, you could always submit an update or "Documentation Problem" bug report.

Categories