Jump to content

madhukar_garg

Members
  • Posts

    18
  • Joined

  • Last visited

    Never

Everything posted by madhukar_garg

  1. Dear Members, Is it possible to convert any video into a flash(flv) file in php. if yes then, can anyone please advice me how to convert it. i require urgent help. Thanks Madhukar Garg
  2. you can take reference from resize.php try imagecreatefromjpeg() function.
  3. yes, actually the problem is with GD support. i have enable extension=php_gd2.dll. but still its not working.
  4. Hi Billy, Thanks for your reply, here is my code for resize.php <?php //stop direct access defined( '_VALID_MOS' ) or die( 'Restricted access.' ); //IMAGE RESIZE FUNCTION FOLLOW ABOVE DIRECTIONS function makeimage($filelocation,$filename,$newfilename,$path,$newwidth,$newheight) { //SEARCHES IMAGE NAME STRING TO SELECT EXTENSION (EVERYTHING AFTER . ) $image_type = strstr($filename, '.'); //SWITCHES THE IMAGE CREATE FUNCTION BASED ON FILE EXTENSION switch($image_type) { case '.jpg': $source = imagecreatefromjpeg($filelocation); break; case '.jpeg': $source = imagecreatefromjpeg($filelocation); break; case '.JPG': $source = imagecreatefromjpeg($filelocation); break; case '.JPEG': $source = imagecreatefromjpeg($filelocation); break; case '.png': $source = imagecreatefrompng($filelocation); break; case '.PNG': $source = imagecreatefrompng($filelocation); break; case '.gif': $source = imagecreatefromgif($filelocation); break; case '.GIF': $source = imagecreatefromgif($filelocation); break; default: echo("Error: Invalid Image Type"); die; break; } //CREATES THE NAME OF THE SAVED FILE $file = $newfilename . strtolower($filename); //CREATES THE PATH TO THE SAVED FILE $fullpath = $path . $file; //FINDS SIZE OF THE OLD FILE list($width, $height) = getimagesize($filelocation); //CREATES IMAGE WITH NEW SIZES $thumb = imagecreatetruecolor($newwidth, $newheight); //RESIZES OLD IMAGE TO NEW SIZES imagecopyresized($thumb, $source, 0, 0, 0, 0, $newwidth, $newheight, $width, $height); //SAVES IMAGE AND SETS QUALITY || NUMERICAL VALUE = QUALITY ON SCALE OF 1-100 imagejpeg($thumb, $fullpath, 85); //CREATING FILENAME TO WRITE TO DATABSE $filepath = $fullpath; //RETURNS FULL FILEPATH OF IMAGE ENDS FUNCTION return $filepath; } ?>
  5. Hi, please help me i am getting this error: Fatal error: Call to undefined function: imagecreatefromjpeg() in resize.php on line 33 thanks Madhukar Garg
  6. Dear Member, I need your help, i have assigned a difficult(for me) task. Can any one tell me the procedure how can we send worldwide sms through php. Sms should be sent according to the time zone and in everycountry every subscribers got sms at 9 AM in morning. My Queries are: 1) How to send sms(is it possible in php)? 2) On which event i have to send it(there is no admin click and any other event. admin just save the message body.) 3) How to send sms according to the time zone. Anybody please advice me. Thanks Madhukar Garg
  7. hi taith, all of the thinks is going smoothly on my local host. the problem is generates on my host server because it has php 4+.
  8. hi ken, i am working on a oscommerce site. i am using oscommerce 2.2. and it need to enable register globals setting. please let me know how can i enable register_globals. thanks Madhukar Garg
  9. Dear members, please help me. i am getting register_globals setting disabled warning. i have attached a .htaccess file with my catalog folder, i have also attached php.ini file with my catalog folder. my .htaccess file has code given below <IfModule mod_php4.c> php_value include_path ".:/usr/local/lib/php" php_admin_flag safe_mode on php_value register_globals on </IfModule> my php.ini file have code given below register_globals = ON i have done a lot of afforts. i have read existing topics on same problem and try for solution. but my problem is still same. i need urgent help please Thanks in advance madhukar garg
  10. hi, my host server has old versions of php, mysql and phpmyadmin but on local server i have latest versions of php(5.2.0), mysql(5.0.27) and phpmyadmin(2.9.1.1). is this thing creates problem for me in uploading database......? pls help me thanks madhukar garg
  11. Hi jitesh, Thanks for reply but my database has about 40 tables and it is not possible to remove line one by one to each table.... do you have any other solution please thanks Madhukar garg
  12. Dear all, I have developed a site on localhost. now i want to upload it on webserver. the main problem is that server has phpmyadmin 2.5.2-pl1. can anyone tell me how to upload data using phpmyadmin 2.5.2. i have already export the database and trying to import the txt file generated by my localhost myadmin but it is not working.... is there any priviliges problem with it.. please help me......... thanks Madhukar garg
  13. nothing.......... if it is possible "by hitting enter key form will post".........??
  14. pls tell me where to add this code??? whether in form tag or elsewhere
  15. Hi Taith, Thanks for reply.. You wanna say that first i have change whole contents manually and then to store whole content of the site into that cookie value? please clearify me..... thanks Madhukar Garg
  16. Dear All, I am a new member in this group, can any one help me how i can submit a form without using a submit button, i have to use this in one of my ongoing project..... Thanks in advance....................... Madhukar Garg
  17. Dear All, Can any one tell me if it is possible to change in language of the complete website by clicking on just the flag of different country. i have seen it in many website. Thanks in Advance madhukar Garg
×
×
  • 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.