Zend - The PHP Company




External

Add Code


A whois interface for EVERYTHING.  

Type: class
Added by: jcostom
Entered: 03/03/2000
Last modified: 08/12/1999
Rating: ***** (22 votes)
Views: 18994
It's a real pain to remember which whois server to use for which kinds of queries. The geektools.com whois proxy takes care of all that for you, interfacing with the correct whois server for your query. This version avoids all of the assorted nastiness that comes along with executing programs on your server using user input, as it directly connects to the geektools whois proxy.

The geektools.com guys have done a considerable amount of work on the proxy, which is available from their site. ISPs who plan on using this code are encouraged to run their own local copy of the geektools proxy, and save the load on whois.geektools.com.

Want to see it in action?



CafePress Box  

Type: class
Added by: amnuts
Entered: 03/01/2004
Last modified: 01/12/2003
Rating: - (fewer than 3 votes)
Views: 4545
This class will display a random product from your CafePress store. You can supply a simple template to control style, and have the output link directly to the shown product or simply to your main account. You can cache the results so you don't have to connect to the CafePress website all the time. Images can also be cached locally, and can be resized before caching.


checkdnsrr and getmxrr for windows NT  

Type: code fragment
Added by: twilop
Entered: 28/11/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 6679
checkdnsrr and getmxrr do not work on windows NT making resolution of email address a pain in the bum. Use these functions instead and you'll get the same functionality.


COM + Photoshop Example  

Type: code fragment
Added by: mikew
Entered: 10/04/2002
Last modified: 04/12/2001
Rating: - (fewer than 3 votes)
Views: 6607
COM and photoshop, opening image and running and action


COM Example  

Type: code fragment
Added by: herouth
Entered: 05/04/2000
Last modified: 08/12/1999
Rating: **** (17 votes)
Views: 12335
Creates a document using Word on the server, puts text in it and saves it. All this is done using the COM feature.


daemon checker  

Type: class
Added by: idban
Entered: 19/01/2001
Last modified: 07/12/2001
Rating: ***** (6 votes)
Views: 15091
i'm boring playing with ssh and typing
ps ax | grep somedaemon to checking any daemon up or not on my website.
hopely this is usefull for you


Encode a full Web Site/Project using Zend Encoder  

Type: application
Added by: scooch
Entered: 16/11/2001
Last modified: 02/11/2000
Rating: - (fewer than 3 votes)
Views: 5336
This small script was written to solve a problem i had when encoding a large amount of files using the zend encoder on windows (*nix has a .sh file to do this i believe). It mirrors a copy of your site/project keeping the directory structure whilst encoding any php files with the encoder. It filters out the filetypes in the $extensions variable. So include any file extensions you want to be encoded in there...


Execute and terminate background processes in Windows  

Type: code fragment
Added by: chnuschti
Entered: 30/08/2004
Last modified: 09/12/2003
Rating: - (fewer than 3 votes)
Views: 8341
Execute AND terminate background processes in Windows whilst your PHP-Script continues to execute. This code fragment is useful if you want to execute AND terminate a background process (that can be invoked via commandline) in Windows OS using PHP, without having your script hanging. The problem with the given functions of PHP for this purpose (exec(), passthru(), backtick-operators etc.) is, your script will hang if you launch a process that should run whilst your script is continuing to execute (e.g. services). To terminate the process you'll need the utility "pskill". Not a big thing, but I hope it helps you, as I wasted a lot of time on this theme until i got a working solution. It was tested only "local" on Windows 2000, Apache 1.3 and PHP 5.0. Read the original contribution at: http://php3.de/manual/de/function.exec.php download pskill at: http://www.sysinternals.com/ntw2k/freeware/pskill.shtml


external nslookup that displays only the resolved address.  

Type: code fragment
Added by: kurth
Entered: 11/09/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 8497
This code displays the remote address of the machine calling the page. Uses nslookup and grep.


Get TemplateMonster data  

Type: code fragment
Added by: olaflederer
Entered: 17/03/2005
Last modified: 03/12/2004
Rating: - (fewer than 3 votes)
Views: 4277
This is an simple example about how to get data from templatemonster's webapi to your website while using PHP (only). Of course this is not the most common way but it works if the execution time is not the most important factor. Try the demo link and see how it works.


gURL Class - Post/Get HTTP  

Type: class
Added by: euromarkus
Entered: 09/12/2005
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 4320
Like CURL, gURL allows you to GET/POST to an external website. Data can be passed both as String and Array.


Input Output Library  

Type: application
Added by: e1130
Entered: 02/03/2006
Last modified: 03/12/2005
Rating: - (fewer than 3 votes)
Views: 4886
This extension allows the direct access the parallel and serial(rs232) port in reading and writing by the DLL inpout32.dll under WIN9x/NT/2000/XP for any assembly. An example of concret application? Complete house automation with Web interface and php, connection hardware of any nature with the ports like assemblies simple or to complicate. One idea simple but quite practical... Extension and source was compiled with Delphi 6, sources and example included.


List Loaded Extensions  

Type: code fragment
Added by: florinl
Entered: 21/03/2001
Last modified: 04/12/2000
Rating: ***** (3 votes)
Views: 6827
Lists PHP extensions and there functions. It's a simple code, maybe it will be useful to somebody. Thanks to Cezary K. Wagner for fix code to avoid warnings.


Magic Packet Class  

Type: class
Added by: MrExpert2001
Entered: 06/06/2002
Last modified: 06/12/2001
Rating: - (fewer than 3 votes)
Views: 9517
This class allows you to wake up/power on a computer remotely.


Non-broken EscapeShellCmd()  

Type: code fragment
Added by: jribbens
Entered: 03/05/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 6051
This is a safe way of passing command-line arguments to child processes.


nslookup v2.0  

Type: code fragment
Added by: _The_Crow_
Entered: 27/06/2000
Last modified: 08/12/1999
Rating: *** (7 votes)
Views: 10593
Simply nslookup to use in PHP. Now in version 2.0 you can get the IP address corresponding to a given Internet host name and get the Internet host name corresponding to a given IP address.


Print output from external program  

Type: code fragment
Added by: ADMIN
Entered: 18/01/2000
Last modified: 08/12/1999
Rating: **** (9 votes)
Views: 10427
this code will run external program (ls -l) and print all the output


RPM List with contents  

Type: application
Added by: data
Entered: 03/03/2000
Last modified: 04/12/2009
Rating: - (fewer than 3 votes)
Views: 5815
Lists a dir with RPM's (updates) and makes a link in directory ./htmls with information and a link in ./updates where we store the RPM's. Useful to mantain a mirror information system. Just an example of how we can manage with files...


SSL/TLS enabled FTP-client to use on WINDOWS OS with PHP  

Type: code fragment
Added by: chnuschti
Entered: 11/02/2005
Last modified: 02/12/2004
Rating: - (fewer than 3 votes)
Views: 5851
I wasted a lot of time trying to get FTP over SSL/TLS working in PHP on WINDOWS OS (with precompiled SSL PHP-packages etc.). However, it never worked for me. While SSL/TLS may not be a complicate issue on Linux OS and others, on Windows OS it definitely is. I'm happy I found a nice solution now: using "MoveIt Freely", a commandline FTP-Client, freeware at http://www.standardnetworks.com. A nice tool that worked on all SSL/TLS-enabled FTP-servers for me. I know the issue is not related to PHP directly, anyway, I include an example that shows how to use it Hope it helps.


Whereis  

Type: code fragment
Added by: RLYNCH
Entered: 27/01/2000
Last modified: 08/12/1999
Rating: - (fewer than 3 votes)
Views: 7568
Will attempt to locate a given OS program.



Search



This Category All Categories