PHP

Moderators: None (Apply to moderate this forum)
Number of threads: 1845
Number of posts: 5013

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Help I am making a page with php Posted by newera70 on 29 May 2004 at 4:15 PM
ok im using part of my site as php i have the code i need but its not working i have one page saved as downloads.php and i have a uploader only the admin can use saved as admin.php but on the downloads page it has directories and the link i have in the source to get to the directory is downloads.php?dir=/scripts if i was to click that what do i have to save the page as that is the script directory?
Report
Re: Help I am making a page with php Posted by Manning on 29 May 2004 at 8:20 PM
: ok im using part of my site as php i have the code i need but its not working i have one page saved as downloads.php and i have a uploader only the admin can use saved as admin.php but on the downloads page it has directories and the link i have in the source to get to the directory is downloads.php?dir=/scripts if i was to click that what do i have to save the page as that is the script directory?


No offense, but could you try posting that again, maybe rewording the question a little to make it more clear what you are trying to do? A little punctuation here and there couldn't hurt either.
Report
Re: Help I am making a page with php Posted by newera70 on 30 May 2004 at 10:34 AM
: : ok im using part of my site as php i have the code i need but its not working i have one page saved as downloads.php and i have a uploader only the admin can use saved as admin.php but on the downloads page it has directories and the link i have in the source to get to the directory is downloads.php?dir=/scripts if i was to click that what do i have to save the page as that is the script directory?
:
:
: No offense, but could you try posting that again, maybe rewording the question a little to make it more clear what you are trying to do? A little punctuation here and there couldn't hurt either.
:


I can't explain it that well can you im me? nsb823
Report
Re: what do i have to save the page as that is the script directory??? Posted by turbo_eagle on 28 Jun 2004 at 6:08 PM
: ok im using part of my site as php i have the code i need but its not working i have one page saved as downloads.php and i have a uploader only the admin can use saved as admin.php but on the downloads page it has directories and the link i have in the source to get to the directory is downloads.php?dir=/scripts if i was to click that what do i have to save the page as that is the script directory?
:
Like Manning, no offense, but could you reword "what do i have to save the page as that is the script directory?"
if you mean how to download the file, just do this.
<?php
if ($_POST['file']="blah.exe") {
header("Location: http://www.blahblah.com/files/blah.exe");
exit()
}
etc...
?>



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.