|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Speeding Shipping, Improving Compliance – Read the ScanCode Systems Case Study |
|
#1
|
|||
|
|||
|
php and ftp
I'm writing a what should be a simple ftp script for users to upload a gif or jpg image.
this is what I have : PHP Code:
My problem is that I get this error : Warning: Unable to find ftpbuf 0 I have no idea what is means and it occurs on the lines with ftp commands accept for ftp_connect. If someone could tell me what I'm doing wrong or what the error means I would be most grateful ![]()
__________________
http://www.myclantemplate.com We are what we repeatedly do, Excellence then is not something we do but a Habit. |
|
#2
|
||||
|
||||
|
Why do you have your function declaration inside of a conditional? Just define it and call it if you need it.
Where is $function defined? If it's not, then your function is never defined... Also, if you're going to use outside variables in your function, then you have to make them global. function whatever() { global $this; global $that; ... } etc... May be other things wrong, too, that's the first I noticed. i doubt you are even making a connection, you should check for that first. ---John Holmes... |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > php and ftp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|