Algorithms Arrays Passwords Uncategorized
Commerce Uncategorized
Databases Abstraction Layers Informix LDAP MS SQL MySQL ODBC PostgreSQL Uncategorized
Date & Time Calculators Conversion Translation Uncategorized
Discussion Chat Forums Guestbooks Polls Uncategorized
Email Validation Uncategorized
External Uncategorized
Files and Directories Uncategorized
Games Uncategorized
Graphics 3-D Graphs Resizing Thumbnails Uncategorized
HTML Forms Menus & Navigation Source Viewers Tables Templates Uncategorized
HTTP Authentication Cookies File Uploading Uncategorized
I18N Uncategorized
Math Uncategorized
Miscellaneous Uncategorized
Searching and Trees Uncategorized
Security Uncategorized
Text Uncategorized
Utilities Calendars Counters Link Checkers Weather Uncategorized
XML Uncategorized
| php sample source codes |
|---|
|
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.
<P>
The geektools.com guys have done a considerable amount of work on the proxy, which is available from <a href="http://www.geektools.com/software.html">their site</a>. 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.
<P>
Want to see it in <a href="http://www.jasons.org/whois.php">action</a>?
|
|
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 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 and photoshop, opening image and running and action
|
|
Creates a document using Word on the server, puts text in it and saves it.
All this is done using the COM feature.
|
|
i'm boring playing with ssh and typing<br> ps ax | grep somedaemon to checking any daemon up or not on my website.<br> hopely this is usefull for you
|
|
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 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
|
|
This code displays the remote address of the machine calling the page. Uses nslookup and grep.
|
|
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.
|
|
Like CURL, gURL allows you to GET/POST to an external website.
Data can be passed both as String and Array.
|
|
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.
|
|
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.
|
|
This class allows you to wake up/power on a computer remotely.
|
|
This is a safe way of passing command-line arguments to child processes.
|
|
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.
|
|
this code will run external program (ls -l) and print all the output
|
|
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...
|
|
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.
|
|
Will attempt to locate a given OS program.
|