- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
17 Posted Topics
so i have <?php ob_start(); session_start(); ?> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="file"><br><br> <input type="submit" value="Upload"> </form> <?php $file_name = $_FILES['file']['name']; $file_size = $_FILES['file']['size']; $file_type = $_FILES['file']['type']; $tmp_name = $_FILES['file']['tmp_name']; $error = $_FILES['file']['error']; if (isset($file_name)) { if (!empty($file_name)) { $location = '/user/'.$_SESSION['Username'].'/'; if (move_uploaded_file($tmp_name, $location.$file_name)) { echo 'Uploadat!'; } … | |
this is the code that works if (isset($_POST['add_to_cart'])) { if (isset($_POST['select_size']) && isset($_POST['select_color']) && isset($_POST['select_quantity'])) { $size = $_POST['select_size']; $color = $_POST['select_color']; $quantity = $_POST['select_quantity']; if (isset($_GET['lang'])) { $the_lang = mysqli_real_escape_string($connection, $_GET['lang']); if ($the_lang == 'ro') { $product_name = $product_name_ro; } else if ($the_lang == 'en') { $product_name = $product_name_en; … | |
I tried loading a swf through <mx:SWFLoader source="game.swf" /> (The game.swf is a flash free game if this helps) But it displayed blank, white screen. Why? | |
Re: for creating the file you can use the fopen() funtion, if there no file the function will create one | |
i have this class <?php ob_start(); session_start(); include 'db_con.php'; /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class … | |
this is the code if (file_exists('/user/'.$_SESSION['Username'].'/avatar.jpg')) { echo 'Exists'; } else { echo 'Doesn't exist'; } and i get the negative case | |
so i have xampp installed on windows the address is localhost and i have a page test.php to preview my code a couple days ago everything worked fine when echoing <?php echo '<'.htmlentities('?php if ($_SESSION['Username']=='nume') { echo 'right name'; } else { echo 'wrong name'; } ?').'>'; ?> and when … | |
what i'm doing wrong? <?php if (isset($_SESSION['Username']=='axxxA')) { echo '<form action="upload.php" enctype="multipart/form-data" method="POST"> <input type="file" name="file" /><br /><br /> <input type="submit" value="Upload" /> </form>'; } else { echo 'Trebuie sa fii logat ca axxxA pentru a modifica profilul.'; } ?> | |
I have a script that registers users and i want to implement in it this function to make for each user a folder with the name they supply so i used $user_folder = mkdir($_SERVER['HTTP_HOST'].'/user/'.$name, 0755); $name is the name they supplyed in the form so i get this "Warning: mkdir() … | |
so i have the following code and is not working // Make user folder if (!is_dir('../user/'.$name)) { $user_folder = mkdir('../user/'.$name, 0777); $user_index = copy('../login/user.php', '../user/'.$name.'/index.php'); if ($handle_append = fopen('../user'.$name.'index.php', 'w')) { echo 'Succes opening the file'; } else { echo 'Error opening the file'; die(); } $string = 'text to … | |
so i have followed this tutorial and i stuck into the activate section of this here's the tutorial. what went wrong? http://youhack.me/2010/04/01/building-a-registration-system-with-email-verification-in-php/comment-page-3/ | |
so i have the following script: <?php /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class breadcrumbs{ /* … | |
so i have the following css stylesheet [Click Here](http://www.jocurigratisonlinenet.ro/default.css) and i want that `#footer{}` and `#copyright{}` to stay at the bottom of the page all time. How can i achieve that? | |
hi, i cannot arrange the contents of a div inside, i used the command `text-align:center` and doesn't work. What can i do? here's a link of the css, you can find the problem at `#footer{}` [The css](http://www.jocurigratisonlinenet.ro/default.css) | |
Hello! The main idea is that i want to set the variable for screen resolution of the user and pass it to php to manipulate her. How can i achieve that? | |
Hi i have a long script named **images.php** that handles the image manipulation and the following script to handle multiple images at once <?php // load the image manipulation class require '../../image.php'; // create a new instance of the class $image = new Zebra_Image(); $directory = 'jocuri'; if ($handle = … | |
Hi I have the folowing problem: The css wont apply to html although everything is corectly <link href="../../../../default.css" rel="stylesheet" type="text/css" media="all" /> ... <h4><?php echo $gamename[2]; ?></h4> and in the css i have the following h4 { color: #FFF; font-size: large; font-family: "Courier New", Courier, monospace; } ![]() |
The End.