Jump to content

bestrong

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

About bestrong

  • Birthday 01/20/1989

Contact Methods

  • Website URL
    http://bluebeanstalk.com

Profile Information

  • Gender
    Male

bestrong's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I have a website where I need to: redirect all http requests to https and remove the www from all requests. For example http://mysite.com -> https://mysite.com http://www.mysite.com -> https://mysite.com http://www.mysite.com/accounts -> https://mysite.com/accounts www.mysite.com -> https://mysite.com https://www.mysite.com -> https://mysite.com is there any way of doing this? I tried and tried in .htaccess with url rewriting ... but I got all sorts of unexpected results. please help thanks
  2. Ok, found the error, you are going to kick yourself $full_path="tmp/".$file_name; notice the "$full_path" $moved_file=move_uploaded_file($tmp_name, $fullpath); now notice the "$fullpath" compare "$full_path" with "$fullpath" Actually, I had to look a while too Have a good one, Ben oh and check out my website (www.bluebeanstalk.com) and pass the word along
  3. Hmm, it is difficult to understand exactly what you are trying to do. As I understand it, you have a page with an HTML <textarea></textarea> in a form. Are you trying to edit the HTML content of another page with this textarea? or are you trying to output this? <form> <textarea> Text Text <?php include('roomrates.php'); ?> Text </textarea> </form>
  4. Sorry, I did not scroll down in the code box. $_FILES["foto"]["tmp_name"] returns the name of the temporary copy of the file stored on the server not the directory AND $_FILES["foto"]["name"] returns the name of the file you uploaded...it is not stored on the server by this name. So, what I would do is : $path="directory/images/".$_FILES['foto']['name']; move_uploaded_file($_FILES['foto']['tmp_name'], $path); you are getting an error because there is no directory /tmp/phpTEq4Ri and no file logo.jpg
  5. I am assuming that you are uploading the file from a PHP form. If so make sure the form tag is similar to : <form enctype="multipart/form-data" action="your_file.php" method="POST"> Ben
  6. Hello! I can help you with this code, but first I need to know a few things: 1) You say "I have few hyperlinks say 500 in format like:" -Where are these? Are they being generated? In a table ... a file? 2) You have a file of keywords ... how are they delimited. Comma, newline, space Ben
  7. Thanks! I appreciate the help! Ben
  8. So, are there permissions I can set for this file that allow it to be accessed, or is the JSON route the one I need to take? (what is JSON) ?
  9. Hmm, How would you suggest serving people content off my server without compromising security? Thanks! oh, and could you briefly explain how that is dangerous?
  10. The php file is merely <?php echo('Test'); ?> The Ajax Call is <script type="text/javascript"> function getHTTPObject(){ if (window.ActiveXObject) return new ActiveXObject("Microsoft.XMLHTTP"); else if (window.XMLHttpRequest) return new XMLHttpRequest(); else { alert("Your browser does not support AJAX."); return null; } } var HttpRequestObject = false; if(window.XMLHttpRequest) { HttpRequestObject = new XMLHttpRequest(); } else if(window.ActiveXObject) { HttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getProgress() { if(HttpRequestObject) { HttpRequestObject.open('GET', 'http://www.mysite.com/phpfile.php', true); HttpRequestObject.onreadystatechange = function() { if(HttpRequestObject.readyState == 4 && HttpRequestObject.status == 200) { var progress = HttpRequestObject.responseText; alert(progress); } } HttpRequestObject.send(null); } } </script> It works fine if it is run on my server, but if I try to access it from another domain, it does not work.
  11. Hello, I am looking to make a plugin for websites, where they will put a snippit of code in their website, which makes a call to my server, and will show data on their site. I get access denied errors? Are there permissions I need to set? Thanks!!
  12. Added the ".bluebeanstalk.com", it is working now, Thanks a bunch!! Ben
  13. Ok, I created a example for you go to http://www.dev.bluebeanstalk.com/make_cookie.php enter a cookie value then open a new firefox window and go to http://www.dev.bluebeanstalk.com/index.php The cookie will show at the top of the page as cookie is: [your cookie value here] now, close that window, and re open a new window and go to http://www.dev.bluebeanstalk.com The cookie value will be blank Must be in firefox Thanks.
  14. I am trying to set a cookie setcookie('bbs_logged_in', 1, 7200+time(),"/"); Here is the issue If i close the window and go to http://www.website.com/ the cookie is not set BUT if I type in http://www.website.com/index.php the cookie shows up fine. This is only the case in firefox, IE works fine any ideas?
  15. ...again, this is only the case in firefox
×
×
  • 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.