Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. trq

    simple linux os

    You are aware that Linux doesn't get installed into XP? It is its own operating system, well, once its combined with the GNU tools.
  2. Is this your actual code or a simple example? Is there a particular reason you have decided to use a switch for this?
  3. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=307859.0
  4. Parse errors are simple syntax errors, you shouldn't really need help finding them. Indent your code consistently and this error in particular will stand out.
  5. There is no 'THE' standard. The idea of using any standard should suffice. I use Zend's which is a port of the PEAR standard I think. It depends. You can easily enough define your own. Your best bet however is probably to find one you like or code similar too already and role with that. There are tools like CodeSniffer around too which may help you stick to these standards depending on how much you want to enforce them.
  6. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=307810.0
  7. That won't work. You'd need to use a counter and access each index that way.
  8. How was the cli version of php installed? Ubuntu (I think) only officially supports 5.2.*
  9. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=307768.0
  10. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=307669.0
  11. trq

    Deleting files

    Looking at it now it seems you don't have a space between your options and your path. $command = "rm -Rf ".$path."*"; If that doesn't work, echo $command to see what you actually have.
  12. trq

    Deleting files

    Weird. Ive been a Linux user for about 6 years and never knew this switch.
  13. trq

    Deleting files

    It should be -r not -R
  14. A little off topic but are you aware of parse_ini_file? It would be allot more efficient than your current methods.
  15. If your hosting package is a 'windows developer' package chances are high that your site is hosted on IIS, not Apache. IIS does not natively support .htaccess files, and hasn't had a native rewrite engine until version 7. You need to check what server your using, not what OS. This information is easily available via phpinfo.
  16. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=307558.0
  17. The url needs to be rewritten otherwise your server will literally look for a file called 123
  18. A Google shows that this is quit the common problem, not many solutions around though, and I'm not a Windows user so would only be guessing. Some suggest making an alias, then using that as your document root. <VirtualHost *:80> Alias /foo "//comp01-kamer/D$/Development/mysite" DocumentRoot /foo ServerName local.mysite.own </VirtualHost> Its worth a shot.
  19. Continuously bumping this thread isn't getting you anywhere any faster.
  20. That url looks like it has been rewritten by mod_rewrite, do you have a .htaccess file?
  21. You will need to actually map the drive to a drive letter first.
  22. // make connection $sql = "SELECT fld FROM tbl WHERE fld = 'XX'"; if ($result = mysql_query($sql)) { if (mysql_num_rows($result)) { // XX exists } else { // XX not found } }
  23. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=307550.0
×
×
  • 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.