Jump to content

daled

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

daled's Achievements

Member

Member (2/5)

0

Reputation

  1. When using firefox, the onscroll event gets the job done. but ie doesn't support the onscroll event. is there a substitute for this event? and is there a way to make elements scroll smoothly?
  2. Sorry, if I'm being a nuisance not mentioning all the details. I did a manual installation so I had to download php_zip.dll from php.net and then add into my php.ini 'extension=php_zip.dll'. As far as I know, that's all I had to do as that's all that was on the php.net link you gave me. I put the dll in the path to my extensions and restarted Apache. I then ran some of the examples and got function undefined errors.
  3. I did that and then tried the example code, but it didn't work. I read somewhere about recompiling PHP. Is that something I should do and how would I go about doing that?
  4. How can I add the php extension that writes zip files to my MAMP configuration?
  5. The absolute paths are working. Thanks so much. But my script is still having trouble backtracking to the url. RewriteRule ^about/([A-Za-z]+) about.php?action=$1 [L] This doesn't find the string after about/ or it is but it's not getting put into the new url. :edit: Op. Fixed that. That had to be above some other script that was also searching for about.
  6. So I fixed that by adding a separate cond and rule for each case. But as I try to expand my urls to something like /about/administration (with two pseudo directories) I run into more trouble. The script: RewriteCond %{SCRIPT_FILENAME} about/[A-Za-z]+ RewriteRule ^/about/([A-Za-z]+) /about.php?action=$1 [L] So that's supposed to match "about/text" and convert it to about.php?action=text. It only half works. It redirects the page, but doesn't redirect with the correct action variable. It just completely skips over it. And it seems that when it loads the page, it loads into a sub-directory so none of the CSS or images load. To see what I'm talking about: http://www.fmxstudio.com/about/administration Thank you for all your help, corbin.
  7. Great! That solved my problem. But in doing so it created another. I added some script that redirects '/forums' to forums.php and '/news' to news.php etc. The problem arises when I go to the homepage that has no REQUEST_URI/SCRIPT_FILENAME. I get a 500 - server error, which is expected because there's no REQUEST_URI/SCRIPT_FILENAME. So how can I check for an empty string in regexp?
  8. Wait, but now every URL is being redirected, even one's that are files... RewriteEngine on RewriteCond %{REQUEST_URI} !-f RewriteRule ^(.*) user.php?user=$1 [L]
  9. YES!!! I believe that did it!!! hopefully it works everywhere else I need to use it!! Thank you so much!
  10. Still no success. This script results in a 400 - bad request.
  11. RewriteEngine on RewriteCond %{REQUEST_URI} !-f RewriteRule (.*) /user.php?user=$1 [L,R,PT] (Results in 400 - bad request) and RewriteEngine on RewriteCond %{REQUEST_URI} -f RewriteRule (.*) /user.php?user=$1 [L,R,PT] (Results in 404 - not found) both prove unsuccessful. i'm now starting to doubt whether mod_rewrite is actually enabled. was there anything i had to do besides uncommenting the line in httpd.conf?
  12. I changed the script to: RewriteEngine on RewriteRule ^(.*)$ user.php?user=$1 [L,R,PT] after: RewriteEngine on RewriteCond %{REQUEST_URI} -f RewriteRule (.*) user.php?user=$1 [L,R,PT] didn't work. Now I'm getting a 400 error and the rule is still being ignored.
  13. I'm using the mod_rewrite module to make some better looking URLs on my website. Here's my script within the .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^users$ RewriteRule ^/(.*)$ user.php?user=$1 [L,R,PT] What this is suppose to do is check to see if the host contains the text 'users' (users.domain.com). Then find what ever comes after the domain (users.domain.com/text-to-match) and then transform the url to www.domain.com/users.php?user=text-to-match My DNS resolves users.domain.com to the IP address of my server. But I don't believe that this should be a problem because the script should still execute. In any case, the URL is not being rewritten and my index page shows instead I ran phpinfo() on my server and it doesn't seem that mod_rewrite appears on the page under additional modules. I believe that I have configured it correctly: uncommented the LoadModule statement in httpd.conf. Also simpler redirects work; like redirecting news.php to register.php. But when I try to redirect a psuedo-directory, it doesn't work. I am running a WAMP server.
  14. here's my problem. when the div classes below don't have the float attribute, the object shows up, but the curves are out of place. but when the classes have the float attribute, the curves show up but the object doesn't. help. here's the code: <div class='topleft'><div class='topright'><div class='bottomright'><div class='bottomleft'> <div style="float:left; width:100%; height:16px; background:url(images/contenth3bg.png) repeat-x; margin-top:15px; padding-left:10px;padding-bottom:5px; padding-top:5px;"><span style="color:#cccccc; font-family:'Verdana'; font-weight:bold; font-size:14px; float:left;"><?php echo $row_songs['track']; ?></span><span style="float:right;"><?php echo $echoreport; ?></span></div> <img src='<?php echo $row_av['avatar']; ?>' style='float:right; padding:10px;'> <span style="vertical-align:50%; height:50px; padding-left:10px;">off of <B><?php echo $row_songs['bandname']; ?></B>'s new <B><?php echo $row_songs['genre']; ?></B> album <B><?php echo $row_songs['album']; ?></B>.</span> <br> <object codetype='audio/x-mpeg' data='<?php echo $row_url['url']; ?>' type='audio/x-mpeg' autostart='false' standby='Loading...' style="width: 50%; height: 15px; padding-left:10%; float:left;"></object> </div></div></div></div> code for div classes: .topleft { float:left; background:url(images/topleft.png) top left no-repeat #d5d5d5; margin-left:3px; margin-top:5px; margin-bottom:5px; } .topright { float:left; background:url(images/topright.png) top right no-repeat; } .bottomright { float:left; background:url(images/bottomright.png) bottom right no-repeat; } .bottomleft { float:left; background:url(images/bottomleft.png) bottom left no-repeat; }
×
×
  • 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.