Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cyberrate

  1. cyberrate

    validation of checkbox

    Hello! How do i validate the input of checkbox usind validation.xml in struts? I just want to let user submit my form only if checkbox checked. Thank you.
  2. cyberrate

    Encoding

    Hello! i have apache2 running on my server. I have a problem with displaying Cyrilic characters, the line <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> in the head of my html document should do the trick, but it doesn't i still see some rubish letters, when i go...
  3. cyberrate

    Newbie: how to get parameter in JSP

    Hello everyone! How can i get a parameter sent from another page via POST method? <logic:present name="xxx"> seems to be getting only attributes set by request.setAttribute()
  4. cyberrate

    image handling

    the line 10 in the error message is this: $src_img = imagecreatefromJPEG("$image_path/$image_id.jpg");
  5. cyberrate

    image handling

    And still set_time_limit(0); didn't do the trick, here is what error i get: Fatal error: Allowed memory size of 8388608 bytes exhausted at (null):0 (tried to allocate 6144 bytes) in /home/htdocs/web0/html/photos1.php on line 10
  6. cyberrate

    image handling

    Sorry, of course before calling this function i do move_uploded_files and i checked and it does get uploded, but increaseing the execution time might be a good idea, thank you.
  7. cyberrate

    image handling

    Here is a function that i use to upload images submitted by users of a web page: function uploadimg($image_path, $image_id, $new_w, $new_h, $compression) { $src_img = imagecreatefromJPEG("$image_path/$image_id.jpg"); list($width, $height, $type, $attr) =...
  8. cyberrate

    Group by

    Thank you for your input, TonyGroves ! I'll just make the query as you suggested the first time and then select * from t_photos where score = '$topscore' and user_id = '$user_id' $topscore and $user_id are the values that i get from the query that you suggested, this way it will be easyer...
  9. cyberrate

    Group by

    Thanx for your reply! well the query you suggested works but... in a strange way, you see i also need an id of the photo so i tryed: SELECT id, user_id, MAX( score ) topscore FROM t_photos WHERE user_sex = '0' AND STATUS = '1' AND rated_times > '15' AND rated_times < '900' GROUP BY...
  10. cyberrate

    Group by

    Hello! I have a table t_photos from which i want to make a top 20 of all photos so i try: select * from t_photos where user_sex = '0' and status='1' and rated_times > '15' and rated_times < '900' group by user_id order by score desc i put 'group by user_id' because i want one user to have...
  11. cyberrate

    safe_mode

    Hello! I'm having a problem with php safe_mode, the thing is that i cant turn it off. I'm running Apache/2.0.48 on Linux/SuSE with confixx, however i tryed to change the php.ini file and then restart apache2 but still my phpinfo() says that safe_mode is on, then i a confixx_vhost.conf file...
  12. cyberrate

    rm directory

    Hello! How do i remove directory from shell on Linux machine? I tryed: rm -d myDir but it still says: rm: cannon remove directory 'myDir' : Is a directory Anyone?
  13. cyberrate

    Custom 404

    Hello ! Can i specify the custom 404 (Document not found) file for specifuc directory on my web server, and if i can than how? Thanx
  14. cyberrate

    installing mod_rewrite

    Hello! I have Apache/2.0.48 on Linux/SuSE how do i install mod_rewrite? I don't have this line : "LoadModule rewrite_module modules/mod_rewrite.so" in my httpd.conf file and all other modules are just included in this file like this: "Include /etc/apache2/mod_info.conf" so there is no...
  15. cyberrate

    redirect with mod_rewrite

    Thank you for your reply! Yes i have a question:how to install mod_rewrite on my server ?

Part and Inventory Search

Back
Top