Jump to content

gar onn

Members
  • Posts

    68
  • Joined

  • Last visited

Previous Fields

  • Languages
    PHP, javascript, (X)HTML, CSS, SQL

Contact Methods

  • Website URL
    http://friesbie.comeze.com
  • ICQ
    0

Profile Information

  • Location
    Europe, Belgium

gar onn's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. See http://www.w3counter.com/globalstats.php
  2. I don't realy understand your question but , i think this might help:see: http://www.w3schools.com/tags/tag_col.asp <table width="100%" border="1"> <colgroup span="2" align="left"></colgroup> <colgroup align="right" style="color:#0000FF;"></colgroup> <tr> <th>ISBN</th> <th>Title</th> <th>Price</th> </tr> <tr> <td>3476896</td> <td>My first HTML</td> <td>$53</td> </tr></table>
  3. So,... , What is it that you are asking?
  4. function createTextLinks($str='') { if($str=='' or !preg_match('/(http|www\.|@)/im', $str)){ return $str; } // replace links: $str = preg_replace("/([ \t]|^)www\./im", "\\1http://www.", $str); $str = preg_replace("/([ \t]|^)ftp\./im", "\\1ftp://ftp.", $str); $str = preg_replace("/(https?:\/\/[^ )\r\n!]+)/eim", "'<a href=\"\\1\" title=\"\\1\">\\1</a>'", $str); $str = preg_replace("/(ftp:\/\/[^ )\r\n!]+)/eim", "'<a href=\"\\1\" title=\"\\1\">\\1</a>'", $str); $str = preg_replace("/([-a-z0-9_]+(\.[_a-z0-9-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)+))/eim", "'<a href=\"mailto:\\1\" title=\"Email \\1\">\\1</a>'", $str); $str = preg_replace("/(\&)/im","\\1amp;", $str); return $str;} 2min google
  5. do you get anny errors from the FTP client, or does it say 'Upload successful' ?
  6. Check if you are edditing the right file on the right server, and try CTRL+F5
  7. gar onn

    User defined css

    I do,nt fully understand what you wat to say but I think this might help:You cam make a file style.phpAnd use Mysql and echo a custom CSS file don't forget header ('content-type: text/css; charset: UTF-8'); in your style.php file
  8. use an aditional page that doesn't show certain elements or/and use something like:<link rel="stylesheet" type="text/css" media="print" href="print.css" />
  9. gar onn

    Php wap script help

    I can't download annything with my nokia (C4) without packet-data conectivity, so I need a sim and credit on that sim.nokia only allows downloads from its default browser(Thats the only thin I can tell you about this)
  10. try: function view($id){ $var=$this->Post->findById($id); $this->set('post', $var['Post']); }
  11. file_get_contents("http://example.com/image.jpg"); // get filelist($version,$status_code,$msg) = explode(' ',$http_response_header[0], 3); // $http_response_header is someting like: string(15) "HTTP/1.1 200 OK"if($status_code==200){echo "good work!";}else{echo "the url gives a ".$status_code."! ^please give an other url!";} found it here: http://php.net/manual/en/reserved.variable...ponseheader.php(not tested)
  12. I guess you need: switch <?phpswitch ($i) { case "apple": echo "i is apple"; break; case "bar": echo "i is bar"; break; case "cake": echo "i is cake"; break;}?> Merry x-mas
  13. gar onn

    compressing pages

    Copressing pages can be done withe gZIP of DEFLATE in various waysCompressing (PHP) pages can be done with if(!ob_start("ob_gzhandler")) ob_start(); this will gZIP your page content
  14. First result on google might felp you out: http://goo.gl/Y9Xq6found this:
  15. gar onn

    Search functions

    add: if(empty($_POST['realname']) && empty($_POST['keyword'])){/* handle if both values are empty or not set */}else{/* rest of code */}
×
×
  • Create New...