cancel
Showing results for 
Search instead for 
Did you mean: 

implode/move_uploaded file functions in php

beeversf
Newbie
Posts: 7
Registered: ‎12-08-2007

implode/move_uploaded file functions in php

I am trying to upload graphic images to my website. I can use implode/fopen or move_uploaded file to the ccgi directory but not to the general website directory as it is on another server and URL is not allowed in these functions ( as I can see).
Can I just keep the pictures on the CGI directory ( I though it was just for php type files) or what do I do to move them to the general web site ( htdocs).
andy
3 REPLIES 3
prichardson
Grafter
Posts: 1,503
Thanks: 1
Registered: ‎05-04-2007

Re: implode/move_uploaded file functions in php

You can indeed keep these files on the CCGI server.
Whilst the CCGI have been setup in mind for CCGI functions, it is afterall a standard web-server as a well and will quite happily serice static content such as images, text and html.
glyndev
Grafter
Posts: 620
Registered: ‎31-07-2007

Re: implode/move_uploaded file functions in php

Quote from: beeversf
Can I just keep the pictures on the CGI directory ( I though it was just for php type files) or what do I do to move them to the general web site ( htdocs).

I noticed that you said "CGI directory" and not "server".
On the CCGI server ALL files PHP, TXT, images etc go into the root folder (outside the cgi-bin folder) or a sub-directory that you create. You do not need to move them to the "htdocs" folder on the other server.
SoulBriski
Grafter
Posts: 179
Registered: ‎15-06-2007

Re: implode/move_uploaded file functions in php

In response to your original statement, would you mind sharing with me your method of uploading images.
I am trying to achieve the same but it is my intention to upload the images to the cgi server not anywhere else.
I have posted a thread in this forum to ask this question of everyone