Archive for June, 2009
PHP Tutorial 8 – Functions
Language: PHP
Assumed knowledge: HTML, CSS
Software required: PHP, MySQL and Apache
Topics covered: User defined and predefined functions, including dates
Duration : 0:8:8
PHP Tutorial – 18 – Beginning Forms
Subscribe if you like my videos!
Go to my website http://thenewboston.com/ if you need any help or have any questions. I will answer them all there!
Duration : 0:5:42
PHP / MySQL Test Server Setup – Part 5
This video is mostly for students in my programming class.
Part 6 – Coming soon: php.ini configuration, myphpadmin stuff
Part 7 – Coming soon: uninstall APache, MySQL, easyPHP package, final comments
Part 5 – This video
Duration : 0:6:42
PHP Tutorials: File upload (Part 1)
Uploading a file, learning how to get properties of the file, how to exclude specific file types and setting a file size limit.
Duration : 0:9:17
what is the importance functions in php and how is it embedded in the php program?
the functions are the additional code needed to compleate your project in minimum time, as in any other language.
there are a lot of tutorials in the net to teach u how to embed in the program.
these are the list of function catagories available int the site php.net (the official php site)
Affecting PHP’s Behaviour
APC — Alternative PHP Cache
APD — Advanced PHP debugger
bcompiler — PHP bytecode Compiler
Errors and Logging
Object overloading — Object property and method call overloading
Output Control
PHP Options/Info — PHP Options&Information
runkit — runkit Functions
Audio Formats Manipulation
ID3
oggvorbis — OGG/Vorbis
OpenAL Audio Bindings
Authentication Services
KADM5
Radius
Calendar and Event Related Extensions
Calendar
Date and Time
Command Line Specific Extensions
Newt
Ncurses Terminal Screen Control
GNU Readline
Compression and Archive Extensions
Bzip2 Compression
LZF
Phar
RAR
Zip
Zlib
Credit Card Processing
MCVE
SPPLUS — SPPLUS Payment System functions
Cryptography Extensions
Crack
hash
Mcrypt Encryption
Mhash
OpenSSL
Database Extensions
Abstraction Layers
Vendor Specific Database Extensions
File System Related Extensions
Direct IO Functions
Directories — Directory Functions
Fileinfo
Filesystem
Mimetype
xattr
xdiff
Human Language and Character Encoding Support
enchant
FriBiDi
Gettext
i18n
iconv
intl — Internationalization Functions
Multibyte String
Pspell
GNU Recode
Unicode
Image Processing and Generation
Exif
Image
Imagick Image Library
Mail Related Extensions
Cyrus IMAP
IMAP, POP3 and NNTP
Mail
Mailparse
vpopmail
Mathematical Extensions
BC Math — BCMath Arbitrary Precision Mathematics
GMP — GNU Multiple Precision
Math — Mathematical Functions
Statistics
Non-Text MIME Output
Forms Data Format Functions
gnupg
haru — Haru PDF
Ming (flash)
PDF
PostScript document creation
RPM Header Reading
Shockwave Flash
swish
Process Control Extensions
Program Execution
Expect
PCNTL
POSIX
Semaphore
Shared Memory
Other Basic Extensions
GeoIP — GeoIP Functions
JSON — JSON Functions
Misc. — Miscellaneous Functions
Parsekit
SPL — Standard PHP Library (SPL)
Streams — Stream Functions
Tidy
Tokenizer — Tokenizer Functions
URLs — URL Functions
Other Services
CURL
File Alteration Monitor
FTP
Hyperwave
Hyperwave API
HTTP
Java
LDAP
Lotus Notes
Memcache
mnoGoSearch
mqseries
Net Gopher
Network
Simple Asynchronous Messaging
SNMP
Sockets
Secure Shell2 Functions
Subversion
TCP Wrappers
YAZ
YP/NIS
Server Specific Extensions
Apache
IIS Administration
NSAPI
Session Extensions
Msession — Mohawk Software Session Handler Functions
Sessions — Session Handling Functions
Session PgSQL — PostgreSQL Session Save Handler
Text Processing
BBCode — BBCode Functions
PCRE — Regular Expression Functions (Perl-Compatible)
POSIX Regex — Regular Expression Functions (POSIX Extended)
Strings — String Functions
Variable and Type Related Extensions
Arrays — Array Functions
Classes/Objects — Class/Object Functions
Classkit — Classkit Functions
ctype — Character Type Functions
Filter — Filter Functions
Function handling — Function Handling Functions
Object Aggregation — Object Aggregation/Composition Functions
Variables handling — Variable Handling Functions
Web Services
SOAP
XML-RPC
Windows Only Extensions
.NET
COM — COM and .Net (Windows)
Printer
W32api
win32ps
win32service
XML Manipulation
DOM — DOM Extension
DOM XML
libxml
qtdom
SCA
SDO XML Data Access Service
SimpleXML
WDDX
XML Parser
XMLReader
XMLWriter
XSL
XSLT
how to execute a linux executable file in linux server using shell_exec in php?
i made a php program in windows server and here is my code:
$cmdline = "filenameexe" . -fast . " -infile=" . $target_path . "-gapdist= -gapopen= -endgaps=";
$result = shell_exec($cmdline);
in windows, filenameexe (without its extension .exe) will run, the exe file just resides in same folder where the php pages reside.
and the exe file accepts parameters like -fast, -infile=, etc.
now i need to upload my work in a linux server. what will be the right command in using shell_exec()?
i know that what i used in my program is a windows executable file so i will provide a linux executable file for this.
i just need to know the command in linux in order for my project to work. thanks in advance.
The same thing, only it is better to specify full path, because unlike Windows, the current directory is not not always included in the PATH on Unix.
$dir = basename(__FILE__);
$exe = $dir . "/linux-exe-file";
….
$result = shell_exec($cmdline);
By the way, dot (./) may not work, because it signifies "current directory", not necessarily the directory where your PHP file is located. The two quite possibly may be different.
Is there a PHP-MYSQL program all in one I can use or buy to make a website?
Hi, Is there a program that has php, mysql and maybe even a shopping cart all in one I can use or buy?
Iam a little confused.can I use soemthing that has all this already installed on it ?
and what is mysql lite ?
Thanks so much!!
try this http://www.apachefriends.org/en/index.html
What is wrong with my PHP program? Can someone please help me! I am just a beginner…?
This what the outcome should be: The correct counts are 8 orders with multiple copies, 13 copies of Linux, 23 copies of Macintosh, and 16 copies of Windows.
I am not getting anything – just the print out code, but no numbers nothing. This is what i get:
SOFTWARE ORDERS: REPORT
ORDERS FOR MULTIPLE COPIES: 0
LINUX COPIES ORDERED: 0
MACINTOSH COPIES ORDERED: 0
WINDOWS COPIES ORDERED: 0
Plus, I don't know if i am doing it right….can someone please give me some sugestions on how to make it more efficient? thanx! this is my code:
<html>
<head>
<title>Software2</title>
<link rel ="stylesheet" type="text/css" href="sample.css" />
</head>
<body>
<?php
$multipleOrders = 0;
$linuxCopies = 0;
$macintoshCopies = 0;
$windowsCopies = 0;
$orderFile = fopen("orders.txt", "r");
$nextOrder = fgets ($orderFile);
while (!feof($orderFile))
{
if ($nextOrder > 1)
{
$multipleOrders = $multipleOrders + $nextOrder;
$multipleOrders = $multipleOrders + 1;
}
elseif ($nextOrder == $linux)
{
$totalCopies = $totalCopies + $linuxCopies;
$totalOrders = $totalOrders + 1;
$nextOrder = fgets($orderFile);
}
elseif ($nextOrder == $macintosh)
{
$totalCopies = $totalCopies + $macintoshCopies;
$totalOrders = $totalOrders + 1;
$nextOrder = fgets($orderFile);
}
else ($nextOrder == $windows)
$totalCopies = $totalCopies + $windowsCopies;
$totalOrders = $totalOrders + 1;
$nextOrder = fgets($orderFile);
}
list($os, $numCopies) = split (":", $nextOrder);
}
fclose ($orderFile);
//end while
print ("<h1>SOFTWARE ORDERS: REPORT</h1>");
print ("<p>ORDERS FOR MULTIPLE COPIES: $multipleOrders</p>");
print ("<p>LINUX COPIES ORDERED: $linuxCopies</p>");
print ("<p>MACINTOSH COPIES ORDERED: $macintoshCopies</p>");
print ("<p>WINDOWS COPIES ORDERED: $windowsCopies</p>");
?>
</body>
</html>
Thanx in advanced!
well, I can do:
elseif ($nextOrder == $linuxCopies)
elseif ($nextOrder == $macintoshCopies)
elseif ($nextOrder == $windowsCopies)
all the variables above have been define to cero and still don't work.
ok elven_rangers, but how can I fix it? could you give an idea? I am new with all this…
There are many problems:
$macintoshCopies,$linuxCopies, $windowsCopies never change their values. Where do these get their values? They start at 0 and don't change.
What do the lines in the file represent?
What values do the variables $linux, $macintosh, $windows have? If they're not initialized, then they are null and whatver $nextOrder is, the code inside the if's related to these three will never ever run.
In the first if, you overwrite the value for $multipleOrders twice, first it's itself plus nextOrder, then it's itself plus 1, why don't you make it a single line?
What is $nextOder supposed to be? I can tell you that if it's a string, then your code will never run so it's no surprise the values are all 0 in the end.
Learning C Programming Lesson6 : Global Variables
Global, Static and Register Variable. Learn more by watching this video
More videos will be available on www.UmiCity.com www.umicom.com and you can email me for more info or a CD with all my videos in HTML, PHP, C programming and other courses
Duration : 0:7:46
Php tutorial #1: Introduction and programs
A quick good tutorial about php, more to come please comment rate and subscribe. pie314@sbcglobal.net
Duration : 0:8:24