26018FTP client in order to uploadhttp://scripts.franciscocharrua.com/ftp-client.phpAs a web developer, I have a persistent need for an FTP client in order to upload web content to my site. When I started working on Francisco Charrua and Web Hosting Montreal, CuteFTP was my tool of choice. Then my ranting about always having to re-login earned me a referral to SmartFTP. I reluctantly installed it on my development PC. After a few customisations and realizing that the expiration of the trial period didn't completely disable it, I switched. Being able to drag and drop files and folders into my web site was a very welcome enhancement.PHP > Tips and Tutorials > DevelopmentOct 15, 2006Francisco Charrua
This tutorial is designed for an advanced PHP programmer. It assumes you know how to handle cookies. (See Feedback with a Cookie to learn about using cookies.) You should also know how to pass data from one page to another using the POST and GET methods
It's hard to debug a CGI program. After all, you're not actually running it (unless your name is httpd). But when those bugs show up, a little creative thinking will help you overcome that limitation. Let's talk about a technique I've found to be very useful for debugging CGI programs written with the PHP scripting language. While the same basic idea could be applied to CGI programs written in other languages, the class extensions to PHP make the process a little more elegant, as well as easy to apply to many CGI scripts without a lot of extra work. (If you're not familiar with PHP, see the box titled " What Is PHP?")
In PHP4/5 there is an extension named "overload", it is enabled by default in PHP 4.3.0
and higher and also in PHP5. Below 4.3.0 it is usually enabled on most implementations.
Using this extension allows for property access and method calling of a class to be overloaded.
PHP's way of overloading is fairly diffrent in definition to overloading in more traditional OOP
language (c++, java), it works by defining a function within a class, __get, __set or __call. When
a property is accessed or a method is called within that class then the appropriate function gets
called, which provides the name of the propery/method that was used and whatever paramaters are
given. One must explicitly tell PHP to overload a class, as it is not done by default. this is done
with
What is meant by a Front Controller. This is a term used to describe a common place that all page requests are passed through before processing begins. This is ideal to setup your application environment (database connections, .ini configurations, etc). We will be using it to take the request and manipulate it to find the corresponding template. Once the template is found we then process it and then render it.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.