just-j
Members-
Posts
52 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
just-j's Achievements
Member (2/5)
0
Reputation
-
simple upload script not working or giving any error... help!!
just-j replied to just-j's topic in PHP Coding Help
ok that worked but what do i have to add to make it move the file to the "mp3z" directory that is a subdirectory where the webpage is. right now it moves the file to the webpage directory web page directory is /tbbc and i need the file to move to /tbbc/mp3z -
simple upload script not working or giving any error... help!!
just-j replied to just-j's topic in PHP Coding Help
ok that solved the problem, but now i get this error.. ================= Warning: move_uploaded_file(tbbc/mp3z/07 Way Up Top.wma) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\wamp5\www\tbbc\uploader.php on line 11 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'c:/wamp5/tmp\phpA39.tmp' to 'tbbc/mp3z/07 Way Up Top.wma' in C:\wamp5\www\tbbc\uploader.php on line 11 ================= the directory mp3z is in the same directory as the .php file -
html code for the form [code] <form action="uploader.php" method="post"><br> <input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> Type (or select) Filename: <input type="file" name="uploadFile"> <input type="submit" value="Upload File"> </form> [/code] and this is the PHP code... [code]<?php if ( move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "tbbc/mp3z/{$_FILES['uploadFile'] ['name']}") ) { echo "The file has been successfully uploaded"; } else { switch ($_FILES['uploadFile'] ['error']) { case 1: echo " The file is bigger than this PHP installation allows"; break; case 2: echo " The file is bigger than this form allows"; break; case 3: echo " Only part of the file was uploaded"; break; case 4: echo " No file was uploaded"; break; } } ?> [/code] it dosent return anything when i click the upload button on the form.. no error and no success... just shows a blank page. im also running wamp5 if that helps.
-
i dont think you got what i was talkin about. what i want is when someone scrolls down on the page then there is a clickable text link that kind of follows them as they scroll.. so no matter if they scroll the screen all the way down there is still that same clickable text link that is chillin where ever i want to keep it positioned. i could use a tiny iframe with z-indez and positions set but im trying to do away with iframes.
-
having trouble with a with setting a var with a counting number
just-j replied to just-j's topic in PHP Coding Help
[code] foreach ($lines as $line_num => $line) { $text = $line; if ($text == "") { $text = "-"; } if (strpos($text, "92239182") === false) { $go1 = "no"; } else { $go1 = "yes"; } if (strpos($text, "92239180") === false) { $go2 = "no"; } else { $go2 = "yes"; } if (strpos($text, "mmmmsgstart") === false) { $go3 = "no"; } else { $go3 = "yes"; } if (strpos($text, "mmmmsgend") === false) { $go4 = "no"; } else { $go4 = "yes"; } if ($go1 == "no" && $go2 == "no" && $go3 == "no" && $go4 == "no") { $htmlcode = array("<", ">"); $usermsg . $ar = str_replace($htmlcode, "",$text); $ar++; } [/code] i want it to end up with $usermsg1 = blablabla $usermsg2 = blablabalablablab ect...... [code] $counter = 1; while ($counter <= $ar) { echo wordwrap($usermsg . $counter, 70, '<br />'); $counter++; } [/code] and this is used to print it all out line by line -
try this [code] a:link { color: #1099FF; background-color: transparent; } a:visited { color: #2277EE; background-color: transparent; } a:hover { color: #FF2200 ; background-color: transparent; } a:active { color: #22FF00 ; background-color: transparent; } [/code]
-
i dont know if its css, javascript or both but i want a certain link to always be at the top even if someone scrolls the page down. could someone point to to a good web page that will help explain this.. thanks.
-
i figured it out... example... if i was to do this <tr> <td rowspan="4">blablabla</td> </tr> then i would have to add 3 more <tr></tr>..
-
the problem i have with div tags and css is you get a noticeably different out comes on different size screen resolutions. if a monitor runs at 640x480 and you made your page on a 1200x800 monitor then you could run into major problems as far as how it looks. so i dont think the minor speed difference you get in page loading using divs over tables is worth the switch. stick with tables and only use divs for positioning when absolutly nessissary.
-
i dont know if you can do it it javascript but i did mine in php somthing like [code] $textlen = strlen($line); $rowspan = (round($textlen / 80) + 1); if ($colspan < 4) { $rowspan = 4; } [/code] where $line = what i want to say in that <td> and 80 is where i want the text to wrap around and i used wordwrap() for that. i had to round the number so i didnt get a decimal place then i added 1 just in case it rounded down. the if (....) statement is used because i want the rowspan to be at least 4 and for it to work i use echo "<td rowspan='$rowspan'>"; if you dont know php and dont have it installed then you cant do it... i dont know if rowspan="auto" will work. i dont think it does though.. so learn php unless someone else has a solution.. im sure someone can do a javascript version similar to what i did in PHP that you would be able to use without having to install anything new on your server.
-
ok i have a bunch of php code that makes a bunch of information that it reads from a txt file and a database into a table.. this is what the source code comes out to [code] <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body bgcolor="#000000" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"> <div style='position:absolute; left:300px; top:110px;'><font size=2><a href='replyform.php?filename=qqjnxwfpgc'>reply to topic</a></font></div><table border='1'> <tr><td colspan=3 style='text-align: center; font-weight: bold;'>SUBJECT: TESTING</td></tr> <tr> <td width='25%' align='left' rowspan='4' valign='top'>just J <img src='images/msgicon.jpg' /><br /><img src='images/avatars/1.gif'> </td><td width='75%' rowspan='4' valign='top'>ok lets see what we come up with </td></tr><tr><td width='25%' align='left' rowspan='4'>just J <img src='images/msgicon.jpg' /><br /><img src='images/avatars/1.gif'></td><td width='75%' rowspan='4' valign='top'>asdf asdf asdf asd </td></tr><tr><td width='25%' align='left' rowspan='4'>just J <img src='images/msgicon.jpg' /><br /><img src='images/avatars/1.gif'></td><td width='75%' rowspan='4' valign='top'>asf asfd as asf as </td></tr></table></body> </html> [/code] the code is a little bundeled up but the <tr> tags arent makeing a new row. except the first one that has SUBJECT: TESTING. the SUBJECT: TESTING is on the first row and then it drops down the the next row and everything else is all on that row.. the <tr> tags will not make a new row!!! can someone help me?
-
i got it... thanks
-
i really dont know how to do that..