Jump to content

rondog

Members
  • Posts

    753
  • Joined

  • Last visited

    Never

About rondog

  • Birthday 06/05/1986

Contact Methods

  • Website URL
    http://activeden.net/user/rondog?ref=rondog

Profile Information

  • Gender
    Male
  • Location
    San Diego

rondog's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. got it..since my htaccess was in the sub directory, I didn't need the first /sub RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [L] here is the full thread. It shows using htaccess in webroot as well as using htaccess in sub directory. The example above is for in the directory http://stackoverflow.com/questions/6668423/mod-rewrite-for-sub-directory
  2. I also tried: RewriteRule ^/sub/([^/\.]+)/?$ /sub/index.php?page=$1 [L] and same result
  3. I have a domain and a sub folder, called "sub"..inside "sub" is index.php which has this: <?php $page = $_GET['page']; switch ($page) { case "main": echo "main"; break; case "task_orders": echo "task_orders"; break; case "team_members": echo "team_members"; break; case "team_experience": echo "team_experience"; break; case "quality_assurance": echo "quality_assurance"; break; case "geographical_support": echo "geographical_support"; break; case "contact": echo "contact"; break; default: echo "main"; } my htaccess in "sub" is: Options +FollowSymLinks RewriteEngine On RewriteRule ^sub/([^/\.]+)/?$ index.php?page=$1 [L] when I click a link which looks like: <li><a href="/sub/main" title="Main" class="current">Main</a></li> <li><a href="/sub/task_orders" title="Task Orders">Task Orders</a></li> <li><a href="/sub/team_members" title="Team Members">Team Members</a></li> <li><a href="/sub/team_experience" title="Team Experience">Team Experience</a></li> <li><a href="/sub/quality_assurance" title="Quality Assurance Program">Quality Assurance</a></li> <li><a href="/sub/geographical_support" title="Geographical Support">Geographical Support</a></li> <li><a href="/sub/contact" title="Points of Contact">Points of Contact</a></li> I get a page not found rather than echoing out what page I am on
  4. you my friend are a genius...that totally worked!
  5. So a PHP script is creating the folder through a form and is setting the owner/group to "apache/apache" whereas the script is "mc1967/psacIn" Can I do anything in the PHP to set its owner/group?
  6. I'm installing an app on a clients server and when I try and upload through the form, I get this error: <b>Warning</b>: move_uploaded_file() [<a href='0function.move-uploaded-file0'>function.move-uploaded-file0</a>]: SAFE MODE Restriction in effect. The script whose uid is 10053 is not allowed to access /var/www/vhosts/xxxxxxx.ca/httpdocs/clients/project_data/test owned by uid 48 in <b>/var/www/vhosts/xxxxxxx.ca/httpdocs/clients/upload.php</b> on line <b>50</b><br /> I've installed this same app on other servers and haven't ran into this problem before. The client is on a shared host so I do not have php.ini access. Any ideas? thanks
  7. alright..im just tryin to figure out why this particular server I am working with is giving me a 500 internal server error after the upload reaches 100%. It uploaded a 5mb file fine, but a 40mb file produced a 500 internal server error. The max post size is 100m and the upload max filesize is 100m
  8. Not sure if this solves the issues, but before concatenating a var you need to first define it. This wont work: $message1 .= 'Email: '.$email."\n\n"; $message1 .= 'Name: '.$name."\n\n"; It has to be: Not sure if this solves the issues, but before concatenating a var you need to first define it. This wont work: $message1 = 'Email: '.$email."\n\n"; $message1 .= 'Name: '.$name."\n\n";
  9. the username and password you are using to connect to your mysql server are incorrect
  10. If I have an upload script and it takes 10 minutes to upload a file, will having max_execution_time set to 60 not work since it is only a minute?
  11. I like yours, nice. Yeah, not really sure why mine if coloring properly. I am kinda just bored with dreamweaver. It is still one of the best syntax highlighters I've came across. I spent a good deal of time modifying the CodeHints.xml file for dreamweaver. I added a ton of functions for hints
  12. I am trying out Zend Studio. I've used dreamweaver for years. The color highlighting isn't very good right off the bat. Simple php methods like 'readfile' or 'substr' aren't colored. Most everything is black text. I am seeing screen shots where this is actually colored properly. Am I doing something wrong? [attachment deleted by admin]
  13. You almost got it <?php $end_date = strtotime('29 March 2011'); if (time() < $end_date) { //show your form } else { //registration is over } ?>
  14. I have a mobile app. They visit a web site where they login. The videos live above web root, thus making it impossible for anyone to directly link to the video file. On iOS, I made a PHP script that checks if they are logged in first and if they are I use a range download method that acts like streaming. Works great! On android however, the script isn't working..lame. So I was trying to think of other methods to deliver the video, but first checking if they are logged in. My idea was to check if they are logged in, if they are, copy the video from above web root to a temp directory in web root and give it a uniqid name and insert it into the DB. That ID will then expire after two hours and I would delete the video. Ok that sounds like it would work for both phones, except with high traffic, that could be problematic. My next idea was symlinks, but I don't know much about them other than they are a shortcut. Could I potentially use a symlink to give the logged in user a video file that lives above web root?
×
×
  • 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.