Jump to content

skym

Members
  • Posts

    253
  • Joined

  • Last visited

Posts posted by skym

  1. Using <?php include "test.inc"; > is not wrong.<?php echo $test1 $test2 $test3; ?> is wrong. But probably it was made when typing the post.See if the test.inc is in the same folder as the script (as reportingsjr said), see the error log for warnings/errors if they are not shown on the page.Btw, if I would just type in the browser "www.site.com/test.inc" I would see all your code! Rename it to test.inc.php for example.

  2. We all know the textarea where we write our posts, clicking the 'CODE', 'QUOTE', 'B' etc buttons will insert the tags just at the position of the cursor. How does he know where the cursor is within the textarea?

  3. Thanks for the answer.

    <html><head><style>table {border: 1px solid #000000;}td {border: 1px solid #ff0000;padding: 0px;}table.one {/*padding: 0px;*/border-collapse: collapse;}</style></head><body><table class="one"><tr><td>1</td><td>2</td></tr></table><br><table cellpadding="0" cellspacing="0"><tr><td>1</td><td>2</td></tr></table></body></html>

    Still the result is not the same as for the cellpadding&cellspacing, in IE the border-collapse: collapse; makes the <td> borders to dissapear, and in FF it makes the <table> border to dissapear. With cellpadding&cellspacing all borders are still in place.

  4. <a href="file.doc">read me</a>If the browser opens the .doc file or begins to download it, it depends on the browser. I do not know any javascript methods to force the browser to open the file, but probably it could be done with some special <meta> tags, not sure at all.

  5. <?phpif (empty($_FILES['userfile']) == true) {echo "\r\n<form enctype=\"multipart/form-data\" action=\"{$_SERVER['PHP_SELF']}\" method=\"post\">",  "\r\n<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"30000\" />",  "\r\nUpload: <input type=\"file\" name=\"userfile\" /><br />",  "\r\n<button type=\"submit\">Upload!</button>\r\n</form>"; }else {  if (move_uploaded_file($_FILES['userfile']['tmp_name'], "./Art/{$_FILES['userfile']['name']}"))  { echo "Uploaden gelukt! klik hier: <a href=\"/sabin/Art/{$_FILES['userfile']['name']}\">Film</a>";  } else  { echo "Uploaden mislukt: " . $_FILES['userfile']['name'] ."<br />\r\n";    if ($_FILES['userfile']['size'] > 30000) echo "File too big!";    elseif ($_FILES['userfile']['type'] != "text/plain") echo "No correct filetype!";    elseif ($_FILES['userfile']['error'] != 0) echo "error: ".$_FILES['userfile']['error'];    elseif (file_exists("{$_FILES['userfile']['tmp_name']}") == false) echo "File not received!";    elseif (file_exists("/sabin/Art/{$_FILES['userfile']['name']}") == false) echo "Moving file failed!";    else print_r($_FILES);  }}?>

    This code just worked for me.I have the script at www.site.com/sabin/file.phpthe target folder at www.site.com/sabin/Art/ and set to 777.(also increased to 30000 because I couldn't find fast a <3000 bytes txt :) )

  6. I mean if the script would be at www.site.com/script/myscript.phpand the target folder would be www.site.com/profmemberone/Art/movies/then use ../profmemberone/Art/movies/

  7. It's not a javascript problem. I think I would record in a database when the first advertise is shown, then every time the advertise will be requested, I would check if the 2 hours have passed or not since the first one, if yes, then update the time and change the advertises.I can only think of this or a cron job.

  8. <HTML><BODY><form> <select name=State onChange="document.getElementById('myIframe').src=this.value">   <option value="form2.html">A</option>   <option value="form3.html">B</option>   <option value="form4.html">C</option> </select></form><iframe id="myIframe" src=form2.html width=300 height=100 frameborder=0 name=iframe></iframe></BODY></HTML>

  9. You have a strange HTML structure, 2 bodies and meta tags placed wrong. Here is how I would do it:

    <html><head><title> Brigantine Marine Consulting </title><meta name="description" content="Brigantine Marine Consultancy - professional marine consulting, Russian translation, Marine Engineering and Naval Architecture"><meta name="keywords" content="Naval Architect, Marine, Translation, Interpretation, Brigantine Marine Consulting, Consultancy, English-Russian"><style type="text/css">body {    margin: 0px;    padding: 0px;    background-image: url(back2.jpg);    }img {    border: 0px;    }</style></head><body><table width="100%" align="center"><tr><td align="center"><img src="banner2.gif" width="900" height="150"></td></tr><tr><td align="center"><a href="index.html"><img src="button1.gif"></a><a href="aboutus.html"><img src="button2.gif"></a><a href="engineering.html"><img src="button3.gif"></a><a href="translation.html"><img src="button4.gif"></a><a href="contacts.html"><img src="button5.gif"></a><a href="links.html"><img src="button6.gif"></a></td></tr></table><p align="center"><img src="welcome.gif"></p></body></html>

  10. It was just a joke :) you know that, there's no need to explain all that. I think we all have gone too far with these things, we all knew them already, there is no point of discussing more of this.What might help i3945 would be some links to tutorials in Chinese language, but maybe there aren't too many Chinese members on this forum to know these sites.

×
×
  • Create New...