-
Content Count
182 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Mencarta
-
Rank
Member
Previous Fields
-
Languages
(X)HTML, CSS, JavaScript, XML, XSLT, ASP, ASP.NET, PHP, MySql
Contact Methods
-
Website URL
http://
-
ICQ
0
-
java script: function changeOpacity(var opacity){ // CSS3 document.getElementById("gallery-pic").style.opacity = opacity / 100; // IE document.getElementById("gallery-pic").style.filter = "alpha(opacity=" + opacity + ")";} For some strange reason this code won't work. Nothing is wrong with it as far as I can tell. Any help would be greatly appreciated.
-
Doesn't work. I modified to the code to:upload.php <?php $links = 5242880; $pics = 2060451840; $pptx = 2060451840; $path = "http://localhost/projects"; if (isset($_POST["type"])) { if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) { if ($_POST["type"] == "pptx" && $_FILES["file"]["type"] == "application/vnd.openxmlformats-officedocument.presentationml.presentation") { $tmp = $_FILES["file"]["tmp_name"]; $name = $_FILES["file"]["name"]; $dir = $_POST["type"]."/".$name; if ($handle = opendir("pptx")) { $size = 0; while (false !== ($file = readdir($handle))) {
-
I get the error: Warning: filesize() [function.filesize]: stat failed for Fever 1.0.png in C:\apache\server\projects\upload.php on line 38 When I submit an image through this code.upload.php <?php $links = 5242880; $pics = 2060451840; $pptx = 2060451840; if (isset($_POST["type"])) { if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) { if ($_POST["type"] == "pptx" && $_FILES["file"]["type"] == "application/vnd.openxmlformats-officedocument.presentationml.presentation") { $tmp = $_FILES["file"]["tmp_name"]; $name = $_FILES["file"]["name"]; $dir = $_POST["type"]."/".$name;
-
I have the code <?php if (isset($_POST["type"])) { if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) { if ($_POST["type"] == "pptx" && $_FILES["file"]["type"] == "application/vnd.openxmlformats-officedocument.presentationml.presentation") { $tmp = $_FILES["file"]["tmp_name"]; $name = $_FILES["file"]["name"]; $dir = $_POST["type"]."/".$name; move_uploaded_file($tmp,$dir); if (file_exists($dir)) { header("Location: uploaded.php?file=".$name); } else { header("Location: error.php?file=".$name); } } if ($_POST["type"] == "scrapbooks" || $_POST["type
-
I get the error: Warning: move_uploaded_file(http://localhost/projects/pptxfever.pptx) [function.move-uploaded-file]: failed to open stream: HTTP wrapper does not support writeable connections in C:\apache\server\projects\upload.php on line 8Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\TEMP\php1B8.tmp' to 'http://localhost/projects/pptxfever.pptx' in C:\apache\server\projects\upload.php on line 8When I try to run upload files with this script:upload.php <?php if (isset($_POST["type"])) { if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) { $tmp = $
-
My code:index.php <?php $dir = "/files"; $files = array(); if ($handle = opendir("/files")) { while ($false !== ($file = readdir($handle))) { $files[] = $file; } }?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html> <head> <title>Fever 1793 - Home</title> <link rel="stylesheet" type="text/css" href="fever.css" /> </head> <body> <div id="header"> <h1>Fever 1793</h1> </div> <div id="page"> <h2>Fever 1793</h2>
-
My website: yellowfever.zxq.net has a gallery box and I want it centered. I've tried margin and text-align but it doesn't work.
-
Thanks, I realized echoing each time was the problem after I posted this and went to sleep.
-
Now the real challenge italics and bold. I got italics working, but when I try to use it in the same field it does the italics and bold, but the tags are left in. Here is my code:fml.php <html> <head> <title>Server - PHP - FML</title> <style> a, a:link, a:visited, a:hover { color:blue; } ul { list-style-type:none; position:relative; left:-17px; } </style> </head> <body> <center> <h1>Server - PHP - FML</h1> <p>Please enter some text with using the following format:</p> <ul>