Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Back to Zip with Template twist

Status
Not open for further replies.

YoungManRiver

IS-IT--Management
Feb 9, 2004
220
US
All,

I was working on some zip stuff a while back.

See thread434-1390625

I'm running a new project as part of or a sub piece of my project at:


I have posted the two main files and two methods I'm attempting to use to display the html template at:


As you can see from diagnostic echos, most code is working right, but still having problems getting input field values to refresh.

I particular, when Type="Directory" I want to strip the file off the directory and display only the directory, but re-display the complete path with file in the input box.

I worked with the combination:

Code:
   $src_fil = $HTTP_POST_VARS['src'];
   $src_fil = realpath($src_fil);
   $lst_pos = strrpos($src_fil,'\');
   $src_dir = substr($src_fil,0,$lst_pos);
   $src_fil = addslashes($src_fil);
   $src_dir = addslashes($src_dir);
to get the right directory and file name, but still can not get them to pass. I know this is possible, without declaring GLOBALS on, but do not know the technique.

Can someone enlighten me?

Thanks!

YMR
 
there's too much code (for me) to wade through in your linked posts. i am happy to help with zip functions and still maintain that system calls are better here. however with php 5.2.0+ zip support has got a little better so if you're up to date with your php installation we could do something natively too.


 
JPadie,

Still not to the ZIP processing. Right now having this template problem.

As REXX hack, used to using either the
"VALUE" or "OVERLAY" functions to drop values into the middle of a string.

Can't seem to find the right command in PHP to do this. The template guys on IRC tell me this should work with the "load_page" module/fuction I defined, but none of the var values are passing. So need to correctly pass vars back to the form to process, before I have the right info for ZIP to work with.

Also want to use "NEW ZIP" button to add a new zip archive and can not figure out how to make this execute a POP-UP window to capture the new zip file path/name.

YMR


 
JPadie,

Where I'm at here is really a template issue so maybe another thread is a better way to address this, then come back here with the ZIP issues.

YMR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top