Jump to content

paymentstv

Members
  • Posts

    33
  • Joined

  • Last visited

    Never

Everything posted by paymentstv

  1. I was able to see the image fine but I will use another png file hosted in a spare server. http://173.244.194.170:805/item.png When I use that image in; $file_1 = "http://173.244.194.170:805/item.png"; $image_1 = imagecreatefrompng($file_1); I get the original error back. Warning: imagecreatefrompng(http://173.244.194.170:805/item.png) [function.imagecreatefrompng]: failed to open stream: Connection timed out in /home/veedo/public_html/logo/logo1.php on line 8 I have a feeling this might have something to do with URL open ability of php?
  2. 1. The timeout occurs at about 90Seconds now but since it is a very active site that is not a solution 2. I have tried another image http://www.drweb.de/icons/twitter/pd_twitter_iconset/pd_twitter_iconset/PNG/256/icon_c.png now I get a different error Warning: imagecreatefromjpeg(http://domain.com/logo/logo.php?txt=By:cnn.com) [function.imagecreatefromjpeg]: failed to open stream: Connection timed out in /home/domain/public_html/logo/logo1.php on line 15 Where line 15 is $image_2 = imagecreatefromjpeg($file_2); Where; $image_2= "http://domain.com/logo/logo.php?txt=By:$name"; //This logo.php converts the string By:$name to a jpeg file. logo.pho is working as I can see the image when I try this in a browser. 3.I am sorry because I am not authorized to put the whole code or site name in public forums. Please accept my apologies. Since the code worked 100% until tomorrow morning I believe it has to do with php installation/ WHM/Cpanel/ GD..etc but I need help to figure out where I should look.
  3. Hello All, I have tried to find a solution for this issue for days. The script was working fine until yesterday when all of a sudden I get this warning. line 8 is: $image_1 = imagecreatefrompng($file_1); Where $file_1 = "http://domain.com/images/broadcast1.png"; The exact code is working perfectly fine in a different server I have, both servers are running Centos with PHP5 + GD fully enabled. The image http://domain.com/images/broadcast1.png (~5Kb) is loading very fast when open through a browser. Please please help me resolve this, I have tried many different things and even uninstall and install GD again but n luck. Thank you so much for your help.
  4. Hello All, I am trying to create a png file (add to an existing png file). The code I have used to work without any issues until this afternoon. And I am 100% sure no one changed the code. When I try to access the logocreate.php now I get the following error Warning: imagecreatefrompng(http://www.domain.com/logo/logo.png) [function.imagecreatefrompng]: failed to open stream: Connection timed out in /home/domain/public_html/logo/logocreate.php on line 8 When I access the http://www.domain.com/logo/logo.png from browser it works (image is available) Can anybody think of server side errors that may cause this? I have GD enabled and in PHP info shows allow_url_fopen On On allow_url_include Off Off Any help is greatly appreciated. Thanks.
  5. This worked. Thank you very much !
  6. Hello all, I have a php file where i have a text input box in html. I have the following code now that succesfully check if the input is letters or numbers. However, I want to include . and / in the allowed characters. Can some one please help me to modify the code so that it accepts "." and "/" Thank you. else if( channelname.search("[^A-Za-z0-9\ ]") >= 0) { alert("Only characters and numbers allowed.") ; document.getElementById( "channelname" ).focus() ; return false ;
  7. Thank you so much.
  8. Hello All, I am new to PHP and I am trying to modify a already written script since I want to add a checkbox to my site. In the front end I have <input type="checkbox" name="privateurlcheck" id="privateurlcheck" value="0"> in the php I have var privateurlcheck = document.getElementById( "privateurlcheck" ).value Then in the mysql data insert php page, $records[channel_protected] = $postData[privateurlcheck] ; In MySQL "channel_protected" field is "ENUM" with Values '0','1' When I run the code I see 0 in the MySQL channel_protected field even when I check the checkbox. All other values that are passed on to mysql such as name, age are posted correctly without any issues. Can you please let me know how can I get 0 or 1 in the mysql depening on the checkbox status? It is 5AM and I am trying to figure this for 2nd consecutive day! Greatly appreciate if any one can help me out.
×
×
  • 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.