Jump to content

fert

Members
  • Posts

    1,114
  • Joined

  • Last visited

    Never

Everything posted by fert

  1. for($i=0;$i<3;$i++) { echo "<tr><td rowspan='4' colspan='4' align='center'>"; echo "<img src=\"".$xoopsConfig['xoops_url']."/images/avatar/".$zavatar."\" name=\"avatar\" id=\"avatar\"><br />"; echo "<a href='/members/userinfo.php?uid=$zuid'>".ucfirst($zuname)."</a>"; echo "</td></tr>"; }
  2. the only way you could hid the php.ini file would be to use .htaccess and you don't use include like this: include('http://www.mydomain.com/included/header.php'); you use it like this include('/included/header.php');
  3. That's most likely the time it takes to connect to the server, post the information and for the browser to parse the page
  4. Because it doesn't take more than 1.6 seconds for the script to execute
  5. foreach($array as $a) { $temp=explode(" ",$a); $array2[$temp[0]]=$temp[1]; } $array=$array2;
  6. http://us2.php.net/manual/en/language.variables.variable.php
  7. SELECT * FROM `members` WHERE username='$username' AND password='$password'
  8. change $get_user = mysql_query("SELECT * FROM `members` WHERE username='$username' AND password='$password"); to $get_user = mysql_query("SELECT * FROM `members` WHERE username='$username' AND password='$password") or die(mysql_error());
  9. http://us3.php.net/manual/en/ref.image.php The imagecreatefrom* and coping functions are what you need
  10. $count=1; while($row=mysql_fetch_array($result)) { $var="result".$count; $$var=$row['column']; $count++; } I'm pretty sure that's what you want to do
  11. yes, <a href="page.php">I liked it[/url]
  12. preg_match('[A-Z0-9]{2}-[A-Z0-9]{2}-[A-Z0-9]{2}-[A-Z0-9]{2}-[A-Z0-9]{2}-[A-Z0-9]{2}', $sometext,$mac); print_r($mac);
  13. change $sql = mysql_query("SELECT counter FROM hits WHERE page = '$_SERVER[php_SELF]'"); to $sql = mysql_query("SELECT counter FROM hits WHERE page = '$_SERVER[php_SELF]'") or die(mysql_error());
  14. foreach($_COOKIE as $key=>$value) { setcookie($key,"",time()-3600); }
  15. did you restart your webserver?
  16. preg_match_all("/(.*)\.php/s",$subject,$matches);
  17. you queries in my_pagina_class.php aren't working
  18. I believe that a timestamp holds how many seconds have passed since the unix epoch which I believe was January 1st, 1970
  19. file_put_contents("image.png",file_get_contents("http://site.com/picture.png")) this will work if you have allow_url_fopen is enabled
  20. This would be done in Javascript not php
×
×
  • 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.