Jump to content

dimik2

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dimik2's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello folks This is not an urgent problem and I already made a workaround for it. I just wonder if somebody knows what causing it. So you cannot upload big files eg 10-20mb files with a test upload script to your server. You already set post_max_size = 30M upload_max_filesize = 27M memory_limit = 128M In your php.ini but still not help. There is NO error messages in the webserver's access logs and debugging the file upload won't help either. The solution is adding these to the htaccess file: php_value upload_max_filesize 25M php_value post_max_size 25M php_value max_execution_time 2000 php_value max_input_time 2000 So what I want to know why are the global config options ignored and it only works this way? (yes I edited the proper global php.ini)
  2. Hi I facing with a task where I have to store icons (standard ms windows .icos) in a database then displaying them. By now I did some research and all current browsers ie,firefox,chrome are able to display icons natively without conversion. I also found a class to convert them to png http://www.phpclasses.org/package/2369-PHP-Extract-graphics-from-ico-files-into-PNG-images.html What would you suggest how to implement this. The drawback directly displaying icons is that an icon file is a container file which can contain icons with different resolutions so the browser will only show one. The drawback in converting icos to PNG or gif is they will use up more space but displaying them later won't be an issue. Thanks!
  3. Hi I have applications where I use fsocksopen but its disabled at many webhosting providers. I want to inform my application's users that it's disabled by the host but how do I check for it? I tried if (function_exists('fsockopen')) echo 'Fsocks enabled'; Doesn't work.
  4. Thanks its solved. It's really about that the php code has to come first even tho I not fully understand why.
  5. Well you asked for the full code but that's pretty much enough code to demonstrate whats going on. Let me make it full for ya: <?php session_start(); echo '<form method="post" enctype="multipart/form-data" action="'.$_SERVER['PHP_SELF'].'">'; echo '<br><input name="data1" size="50" value="'.$_SESSION['data1'].'"><br>'; echo '<br><input type="submit" name="prv" value="Preview">'; echo '</form>'; if (isset($_POST['prv'])) { if (strcmp($_SESSION['data1'], $_POST['data1']) != 0 ) $_SESSION['data1'] = $_POST['data1']; $data1 = $_SESSION['data1']; } ?> This will perfectly demonstrates whats going on.
  6. I'm sorry but why would I do this? That's the whole point to refresh the data in the input forms all the time so the user can modify it. Just like in this forum where you would change the subject field from "Re: Form FLIP-FLOP" "Re: Form FLIP-FLOP 2" when you reply.
  7. I still waiting for a meaningful answer for this. There must be something what I do wrong here.
  8. Hi guys I have an input form related problem, I simplyfy it by just showing an example with 1 field. So there is a panel where the user can enter certain informations eg name, birth, address etc and he can preview all the entered information (as many times he likes) just like a comment editor. Every time he pushes the preview button a preview will be generated on the bottom of the page. In order to not to reset out all the fields what he entered I store the data in session variables. If he modifies the field again the session variable will be updated. Here is a snippet about how did I implement this: echo '<form method="post" enctype="multipart/form-data" action="'.$_SERVER['PHP_SELF'].'">'; echo '<br><input name="data1" size="50" value="'.$_SESSION['data1'].'"><br>'; echo '<br><input type="submit" name="prv" value="Preview">'; echo '</form>'; if (isset($_POST['prv'])) { if (strcmp($_SESSION['data1'], $_POST['data1']) != 0 ) $_SESSION['data1'] = $_POST['data1']; $data1 = $_SESSION['data1']; ... validate input data ... } The problem is that this doesn't behaves as it expected. Once the user hits the preview button it shows the output right but for next time all the forms are empty, after that it's right again. It acts like it would store down everything twice. If I fill out the empty forms their content is saved too.
×
×
  • 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.