Jump to content

gar onn

  • Posts

  • Joined

  • Last visited

Everything posted by gar onn

  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 */}
  16. function EmailValidation($email) { $email = htmlspecialchars(stripslashes(strip_tags($email))); //parse unnecessary characters to prevent exploits if ( eregi ( '[a-z||0-9]@[a-z||0-9].[a-z]', $email ) ) { //checks to make sure the email address is in a valid format $domain = explode( "@", $email ); //get the domain name if ( @fsockopen ($domain[1],80,$errno,$errstr,3)) { //if the connection can be established, the email address is probabley valid return true; /* GENERATE A VERIFICATION EMAIL */ } else { return false; //if a connection cannot be established return false } } else { return false; //if email address is an invalid format return false } } Found this with google...
  17. gar onn

    1st Website

    ContentError on page: http://newyorkrocknroll.com/tinc?key=KwfslRCSStyleTry to use lighter colorsSet the opacity of #newsbox to 0.8; So you make shure your text is readable.The "E-Mail Sign up" link could use a better colorUse CSS hoverAnny way: great job
  18. gar onn

    session in URL

    you can make a page with a (hidden) form and use JavaScript to submit it, and pass the sid that way, so you wont see the SID in your URL.So you have links wich set certain values of that form (like the action) and submit them
  19. You should not omit the body tag if you're making any HTML page, same as the HTML tags...
  20. I don't fully understand you question but I think this function will help you...function array_diff( array $array1 , array $array2 [, array $ ... ] ) Returns an array containing all the entries from array1 that are not present in any of the other arrays.
  21. in the amp of your index.php you'll have a folder 'includes' in that folder you should open 'foot.php'And in foot.php you'll find the end of the body tag
  22. gar onn

    Load bar

    I have a script that performs multiple MYSQL SELECTION than analyses, and optimizes them in PHP and than put them back in the database,But it takes long to excute the script, so I would like a loading bar, so you can see the progress.Wat is the best way to do this?
  23. <?$num_st_checked=sizeof($_POST['dgfRegion']);switch (TRUE) { case $num_st_checked<=9: // if less than /or equal to 9 echo "you chose ".$num_st_checked. "states .", this means a price of XXX"; break; case $num_st_checked<=24: //if less than /or equal to 24 (but more than 9) echo "you chose ".$num_st_checked. "states .", this means a price of XXX"; break; case $num_st_checked<=52: //if less than /or equal to 52 (but more than 24) echo "you chose ".$num_st_checked. "states .", this means a price of XXX this is the supper promo"; break;}?> something like the above
  24. you can use relative and absolute positioning in css to put an DIV under a specific element,or you can nest the DIV and add a z-index (I think this is more a CSS problem)
  25. gar onn

    view php

    I use Server2Go to develop sites, it gives you a kind of 'server' on your own pc witch you can reach on (not over the internet)It works great (and you can put it on CD/USB/... and run it from usb/CD/...And its free!site: http://www.server2go-web.dePS;: if you use it, edit the config file to make shure it does not empty the database on each shutdown
  • Create New...