Jump to content

Derleek

Members
  • Posts

    297
  • Joined

  • Last visited

    Never

Everything posted by Derleek

  1. Hey there, I am ENTIRELY new to the zend framework... I am trying to follow this very simple tutorial to create a project using zend_tools. I am on a mac and fairly familiar with terminal commands (after reading up a bit anyways).... When I try to type in the command '% ~/path/to/ZendFramework/bin/zf.sh' -- I get the '-bash: fg: %: no such job' I have tried to add the zf.sh file to my system executable path (like the install.txt file says to do in order to use zend_tool). But I get the same result. i am pulling my hair out on this one... sheesh i haven't been this frustrated in quite some time... any potential solutions are greatly appreciated.
  2. hmm. How do you assign which files are downloaded first?
  3. Yea, i figured. I'll have to figure something else out then. Thanks
  4. Does splitting up my CSS code into different files effect performance? I am thinking about splitting up my really generic CSS into files for organization purposes. example file tree/filename: /css/menu/inline.css /css/footer/basic.css /css/main/style.css
  5. Let me clarify. I am sending a secure .jpg (secured w/ .htaccess) to my users using the header() and readfile() commands
  6. Hi there. I need to change the 'save as' value of an image file when a user right clicks to download it. Is this even possible?
  7. hmm. I seem to be missing something PFM I have figured out how to hide the file. Or even password protect it (.htaccess is pretty cool) But if i have an .htacess file like this... <files photoSet.zip> order allow,deny deny from all </files> It seems to not be recognizable by a simple header redirect. How can i hide the file and only accept a download if the user permission is set to do so? tired and digging the web... I'll post any solutions i find...
  8. Thx PFM. I actually dug that post up and was planning on changing the file directory outside of the root. I'm actually not sure if I do have the ability to do that though... I'm absolutely unfamiliar with .htaccess, how complex would that be?
  9. Hey there php freaks! So I have a really simple question... whats the best way to protect a zip file from being downloaded w/o the user having permission to do so? Here is the solution I have come up with... <?php if (isset($_POST["username"]) && ($_POST["username"] == "theUsersName") && isset($_POST["password"]) && ($_POST["password"] == "theUsersPass")) SendFile(); else DisplayLoginPage(); function DisplayLoginPage() { ?> <html> <head> <title>Protected download</title> </head> <body> <h2>Welcome to download area</h2> <p> Type username and password to download a file </p> <p> Type phpbee for both username and password </p> <form action="download.php" method="post"> Username<br> <input type="text" name="username"><br> Password<br> <input type="password" name="password"><br> <input type="hidden" name="login"><br> <input type="submit"> <input type="reset"> </form> </body> </html> <?php } function SendFile() { $FileName = "filename.zip"; header("Content-Type: application/x-zip-compressed"); header("Content-Length: " . filesize($FileName)); header("Content-Disposition: attachment; filename=\"$FileName\""); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); $fp = fopen($FileName,"rb"); fpassthru($fp); fclose($fp); } ?> Just wana make sure this is a valid solution... its kinda important i get this one right the first time... Thanks!
  10. yup. Works perfectly, kinda silly i didn't think of trying that... hahaha
  11. hahaha. Nice. I figured it would be something that simple Thanks bud, i'll give it a try and report back in a second =)
  12. hello php freaks! Not sure what else to title this topic so... that one will do I am creating an ajax application and i'm wondering the best way to loop through every variable passed via the $_GET[] method. Lets say I have 4 var's that I'm passing in the URL www.example.com/index.php?var1=blah&var2=asdfasdf&pumpkin=true. Is there a built in function to loop through every var passed this way? The only solution I have thought of off the top of my head is to have a variable that contains each of the names that also has a parsing character EX: www.example.com/index.php?varsPassed=var1/var2/pumpkin&var1=blah...etc I haven't tested this method so I am not sure even if the '/' character can be passed as a parsing character. This is my first in-depth ajax application so I'm kinda experimenting with it. Not too sure if even using the 'GET' method is the best option (or even if there are other viable options... haha). I'll be tooling around with this for the next hour or so and i'll post any new angles I dig up on the net. Any and all help is welcome and greatly appreciated. -thanks
  13. Just curious if any of you have a suggestion for some good flowcharting software I could use. I do use pen and paper whenever a I use a flowchart, but it'd be nice to not have worry about finding a pen/paper as I often work in coffee shops or other random spots. Just curious if there are any worth my time.
  14. First off, let me make it clear that i am just now venturing into the AJAX interface world and i love it! Although i'm not too good at planning my scripts to be unobtrusive... although i have been keeping this in mind while I experiment. So i completely understand and agree with the principles of using unobtrusive JS/AJAX applications on a public interface/websites/whatever... What i'm wondering is for personal web development tools (that i would eventually like to offer to others), should i worry about making things unobtrusive? Also, is there a way for a user to enable JS for a specific page/website? just wondering......
  15. Ahhh... ok i understand what you were saying... I guess i left out a key element of my problem. I am trying to get the height of the border to adjust to the content, along with the container (which does so automatically, as the height property is not defined). In short the height of the container needs to be fluid. I need it to adjust to the height of whatever content i put into it. I think the term commonly used is to 'shrink-wrap' the content.
  16. you attempted to fix my solution putting this into the css of the first example does not do anything =( html { height: 100%; }
  17. So i've been trying to figure out the best way to attempt to replace a border with images. I needed to use two different images, one for the top/bottom and one image for the left/right sides. I was running under the assumption here that i could just place two four individual div's using some positioning and what not and that would be the end... Like so... (for simplicity i'll only show the left border...) Here it is live HTML: <div id="container"> <div id='left_border'></div> <p>blah blah blah blah</p><p>blah blah blah blah</p><p>blah blah blah blah</p> </div> CSS: #container { background: #FCF5E3 url('images/elephant.png') no-repeat top left; width: 870px; margin-bottom:50px; margin: 0 auto; text-align: center; } #left_border { position: absolute; background: transparent url('images/frame_right.jpg') repeat-y top left; width: 10px; height: 100%;} Its pretty clear this is an inheritance issue. The div 'left_border' is setting its height to the document. Now i am clearly no css guru, but i was under the impression that setting the height to 100% it should set the height to 100% of the containing element. Is there a way to do this simply? My Solution: warning: it aint pretty So i had the idea to essentially have three containers. One for the entire display of the website. Another for the borders. And a third for the content of the website. (**note** I also added a header for this one) - **live demo** HTML: <div id="container"> <div id="header"> <img id='name' alt='Chy Thai Cuisine' src='images/chythaicuisine.png' width="227" height="36" /> </div> <div id='border'> <div id='content'> </div> </div> </div> CSS: (this includes some additional styles not mentioned) #container { width: 870px; margin-bottom:50px; margin: 30px auto; } #border{ background: #B59892 url('images/frame_right.jpg') repeat top left; width: 870px; margin-top: -10px; margin-bottom: -10px; padding-bottom: 10px; padding-top: 10px; padding-left: 10px; padding-right: 10px; } #content { background: #FCF5E3 url('images/elephant.png') no-repeat top left; padding-left:12px; padding-right: 12px; padding-bottom: 12px; height: 1800px; } #header { position: relative; background: transparent url('images/frame_top.jpg') repeat-x bottom left; padding-bottom: 15px; margin-left:10px; z-index: 5; } I know it aint pretty and non of this is compatibility tested... can some one help me with this little issue... how do i set the div of an element to 100% of its parent element? Am i mistaken in thinking that a nested div who's height is set to 100% should be set to 100% of its parent element? ugh... -thanks in advance for any help offered... if I need to clarify any points please let me know
  18. Is there a way to get a webcrawler to come visit my site? Basically I just updated some meta tags and titles in a website I'm working on. I would like Google/yahoo/whatever search engine to display my updated meta info. Is there a way to speed this up? or do i have to just wait for crawlers to come to my site?
  19. So this website obviously has some browser compatibility issues... It works fine in IE (not sure if it works in ALL versions of internet explorer), but not in firefox/safari... I'm a little confused as to why the transparency issues come about. I understand the positioning but I am not too proficient with flash yet so i can't really explain the transparency issues... I was just wondering if any of you guys had a good idea why...
  20. ugh... that makes sense.... change your name to css God. I swear you've helped on nearly all of my css issues
  21. Its not the image i'm trying to resize the image... just the div. The css: 'background: transparent url('../img/menu_background2.jpg') repeat-y top right;' makes the image repeat down the divider div. But for some reason the divider div does not inherit the height of the content div, even though it is nested. I'm trying to make the divider div adjust to the content divs height... sorry if this wasn't clear before.
  22. Hey guys... I have a image that displays next to the content of a website. I would like this image to expand or contract depending on the height of my content div. I am confused because setting the height of the img div to 'auto' does not work! code: HTML - <div id='content'> <div id='divider'></div> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam lacinia sollicitudin ante. Nullam rhoncus placerat dolor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; </div> CSS - #divider { background: transparent url('../img/menu_background2.jpg') repeat-y top right; width: 3px; height: auto; margin-left: -20px; position: absolute; } I could very easily use JS to do this but i'd rather not. Shouldn't the 'content' div's height be inherited by the divider div? Thanks for any advice!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.