Jump to content

Hologram_

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Hologram_'s Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi all, I used google to find solutions for my problem but none of them work. When I am using Content-Disposition: attachment, filename=.... IE just says rar archive is damaged. Sometimes it works, but mostly not. Any idea which headers should I use? Thanks in advance,   Hologram
  2. Hi all, it's hard to google, so I am asking what does it exactly means when I put '@' before function. I tried [code]@getimagesize ($file)[/code] and it doesn't show [code]Warning: getimagesize(): Unable to access ...[/code] anymore (I am using error_reporting (E_ALL)) So thats the only difference? Thanks in advance
  3. wildteen88 great thanks it works :) awesome SemiApocalyptic thanks very much for your time
  4. Yes i have tried file() also I am using print_r() too, it shows everything ok [code] Array ( [0] => blue [1] => orange [2] => yellow [3] => green ) [/code] php runs on Apache under Linux really dunno what I am doing wrong.
  5. Hi SemiApocalyptic, file contains lines like this: [code] blue orange yellow green [/code] I can find the string (e.g. "blue") in $theFile, but not in array $lines tried your code, thanks [code] $lines = file("file.txt"); print_r ($lines); if (in_array ('blue', $lines))   echo "in"; [/code] but still doesn't work I read that in_array() is binary-safe, but dunno if it relates to my problem
  6. hi all, this is my code [code] $string = "string"; $theFile = file_get_contents('file.txt'); $lines = array(); $lines = explode("\n", $theFile); $lineCount = count ($lines); if (in_array ($string, $lines)) {   echo "in"; } [/code] my problem is that in_array() returns false also when string is in array have no idea how to solve this thanks in advance
×
×
  • 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.