Jump to content

jackrabb1t

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jackrabb1t's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you very much for helping to test. It does really seem like some sort of network issue....everywhere I try that is not on this campus I don't have any issues.
  2. Nevermind, I found them. There doesn't seem to be anything in there relating to this problem.
  3. I'm starting to think it's a network configuration problem - I had been testing it on my university's network (even though Safari on Mac worked), but then I went home and tried it there and didn't have any problems. Maybe some kind of traffic shaping is causing this issue? I don't have access to any server logs since I'm on a shared host.
  4. What browser/OS are you using? I've tried 3 different browsers and 3 different computers, and the favicon bookmarks file always times out when I specify 'index.php'. Edit: Just tried 'test/index.php' on a Mac in Safari and it worked just fine. Tried 'test/index.php' in Firefox on that same Mac and it did not work. Now I'm really getting annoyed.
  5. I'm experiencing a very strange issue, and I'm not 100% sure it's PHP-related, but I'd like to at least rule it out if it's not. I've setup a test page here: http://www.linkboard.org/test/ Included on that page are two bookmarks files exported from a browser: one contains data-URI encoded favicons, and the other does not. Uploading both files via the above URL should work just fine in any browser (an array dump of characters should be the result). However, if you change the above URL to include the 'index.php', uploading the file with favicons in it no longer works - it results in a browser time out. If i change the name of the test page to something else, i.e. 'test.php', it will never work since I would always have to specify the page filename in the URL. So, anybody have any ideas? Could this be a server config issue? It doesn't appear to be a browser problem because I experience the exact same issue in Chrome, Firefox, and IE. Edit: Here's the code I'm using on the page: <?php if (isset($_POST['submit'])) { if (is_uploaded_file($_FILES['bookmarks_file']['tmp_name'])) { $file = fopen($_FILES['bookmarks_file']['tmp_name'], "r"); if ($file != false && $_FILES['bookmarks_file']['type'] == 'text/html') { $charArray = array(); while (!feof($file)) { $charArray[] = fgetc($file); } fclose($file); var_dump($charArray); } } } ?> <h2>Test Import</h2> <p><a href="bookmarks_4_24_12-favicon.html">Bookmarks file <strong>with</strong> Favicons</a><br /> <a href="bookmarks_4_24_12.html">Bookmarks file <strong>without</strong> Favicons</a></p> <p>Upload one of the above files with this form. If successful, the program will print out file contents.</p> <form enctype="multipart/form-data" action="<?php echo $PHP_SELF; ?>" method="POST"> <input type="file" name="bookmarks_file" /><br /><br /> <button type="submit" name="submit">Submit</button> </form>
  6. Sounds like what you're looking to do could be accomplished with AJAX. Take a look at this: http://www.w3schools.com/PHP/php_ajax_database.asp
  7. I made a mistake in the post above: name2 (foreign id from table2) should be : name2 (foreign id from table1) Because name2 is a name from table1 just like name1 is.
  8. I need help to solve a problem I'm having in MySQL. I have two tables: Table 1 id (primary key) name Table 2 id (primary key) name1 (foreign id from table 1) name2 (foreign id from table 2) address phone What I need to do is select all the records in table 2, and order them by the first name from table 1 and then the second name from table 1. Obviously, sorting by the ID's won't work. What is the best way to solve this problem?
×
×
  • 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.