PHP code, upload graphic to a website?
818519
Here is one way to do it... although I prefer to do the uploads on my site with the php FTP functions (shown below).\n\n$uploaddir = '/var/www/uploads/';\n$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);\n\nif (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {\n   echo "File is valid, and was successfully uploaded.&#92;n";\n\n\n----------------------------------------------------------------------------------------------------\nFTP--\n\n<?php\n// set up basic connection\n$conn_id = ftp_connect($ftp_server); \n\n// login with username and password\n$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); \n\n// check connection\nif ((!$conn_id) || (!$login_result)) { \n       echo "FTP connection has failed!";\n       echo "Attempted to connect to $ftp_server for user $ftp_user_name"; \n       exit; \n   } else {\n       echo "Connected to $ftp_server, for user $ftp_user_name";\n   }\n\n// upload the file\n$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY); \n\n// check upload status\nif (!$upload) { \n       echo "FTP upload has failed!";\n   } else {\n       echo "Uploaded $source_file to $ftp_server as $destination_file";\n   }\n\n// close the FTP stream \nftp_close($conn_id); \n?>\n} else {\n   echo "File upload failed!&#92;n";\n}
1004807
U can use macromedia flash or any other graphical softwares. Then, upload it on the net ( goto: http://ripway.com ) and then use the proper HTML code ( eg if u've created a .jpg or .gif, use this code: <img src="THE URL OF THE PIC">\nGood luck;)
306215
Check out ImageMagick at imagemagick.org.  It's a great utility that can convert most image formats to other image formats.  You'll have to make sure that your hosting company has support for ImageMagick (many do).  Then it's easy.  Your PHP code will look like this:\n\n$ImageMagick="/usr/X11R6/bin/convert sample.pdf sample.jpg";\nexec($ImageMagick,$output);\n\nThere are LOTS of options for creating thumbnails (or images of any size), adding shadows, image effects, converting images from one type to another, etc.\n\nIt is the PREMIER software for the PHP programmer.  Just make sure your hosting company has it installed or will install for you.\n\nVisit:\nhttp://www.imagemagick.org/script/index.php\n\nGood luck.
1051101
Try\nwww.free2code.net/plugins/articles/read.php?id=119 -
776110
Im not to sure with the variable part put heres what I do:\n<img src="http://yourwebsite.com/image.jpg">\n\nYour variable might work if you have assigned it and you remove the / before the end bracket as it is not required so it would be: <img src="$image">
498663
< img src = "URL" > \n\nThat's all you need.\n\nIf you mean posting something on myspace.. goto www.photobucket.com, upload a picture, and photobucket will give you the html code to insert your picture.
801103
Read the PHP Manual: \n\nhttp://www.php.net/tutorial\n\n__________
949608
Post a code snippet.  There could be a dozen reasons why you can't insert it.  Try something like this:\n\n<img src="Thing.png">\n\nAlso make sure you are using a browser that renders pngs.
88358
sign up for photobucket.com\n\nit lets you upload for free and will give you the code you need for your web page.
650969
Some PHP IDEs will install PHP on your local machine for previewing code. I think Zend Development studio allows you to do this. One solution is to have a PHP enabled webserver and upload pages to that for testing. Macromedia Dreamweaver will let you do this in only a couple of clicks.\n\nYou can find a lot of good free PHP Editors online (PHP Designer 2005, PHP Edit etc). If you want something a little bit more powerful I'd recommend JEdit or Eclipse. Some of these have native support for managing file uploads or have plugins available.
225594
The easiest way is to simply embed PHP code within your JavaScript.\n\nFor example, if I wanted to pass the value of the PHP variable "$myName" to the JavaScript variable "theName", my code might look like this:\n\n<script type="text/javascript">\nvar theName;\ntheName = "<?php echo $myName; ?>";\n</script>\n\nSince your server will parse the PHP before sending it to the client, this code will set the variable properly.
1164788
Go to this website:\nhttp://webmonkey.wired.com/webmonkey/98/30/index3a_page6.html?tw=design\n\nIt gives you step by step directions on how to save it as a GIF file.\n\nNotice there's an Image Type pulldown menu. ImageReady allows you to use ye olde adaptive palette to map the colors of the image. You can also use Perceptual and Selective palettes, which use different algorithms. Try them all to see which one you prefer.
960353
You need to upload it onto an image host site, best one is www.photobucket.com after you sign up (they have free accounts) upload your photo and it will give you the html code you need to post it on the internet.\n\nPosting a picture straight from your computer to the net will leave a broken image for everyone except you, that's why it's best to use an image host.
586327
if you mean the html code , this is the code :\n<img src="here the source of the image" width="" height="">\nand if you know the code , but you don't know where to put the image on internet , find a website that supports image upload and storage for weblogs ,good luck !
965684
nope... you can only do that in html... like put the link before picture...
717841
just add the html code for the link to the pic.....\n<img src="http://www.picture.jpg>
970017
save the image\ngo to www.tinypic.com\nupload it\ntake the code\nand put it in a comment