Jump to content

textbox

Members
  • Posts

    142
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

textbox's Achievements

Member

Member (2/5)

0

Reputation

  1. Thanks for all that feedback. What I actually aim on be able to do is have a base picture of a recognisable character such as John Lennon or Elvis for an example in this case. Display this pixelated image to start with. As users upload images the script works out their colouring and places them in an acceptable slot that builds up the original image. In short, it will be a collection of tiny images, that build up a recognisable image, in the form of a mosaic. I have seen this done in flash, but imagine php can do it using some algorithm or some sorts :S Ta Again everyone Nick
  2. Hello, im looking at creating a dynamic mosaic and was wondering if anyone has attempted this, or knows anything about it. I wish to allow users to upload or send in images that will be resized and placed with the mosaic which will obviously create an image of some sort. Any help or pointers would be great. Thanks nick
  3. Hello there, quite new to the world of js and having trouble with this. Code: <script type="text/javascript"> var current= new Date() var morning_afternoon_night=current.getHours() if (morning_afternoon_night<12) document.write("<img src='img/good-morning.gif' id='welcomeTitle'>") else if (morning_afternoon_night<18) document.write("<img src='img/good-afternoon.gif' id='welcomeTitle'>") else document.write("<img src='img/good-evening.gif' id='welcomeTitle'>") </script> This code should display an image dependant on the time of the users computer. I want to include something like this; Code: background : #bcd589 url(bg.jpg) repeat-x scroll 0 0; The last bit is CSS which sets the background of the page. I wish to set the bg of the page dependant on the users time. Any help would be great as everything ive tried has not worked!! Thanks Nick
  4. Here is one way i do it. // return the mime type associated with a filename including extension. function getMimeType( $filename ){ $extension = substr( $filename , strrpos( $filename, '.' ) + 1 ); switch( $extension ) { case( 'gif' ) : return 'image/gif'; case( 'jpg' ) : return 'image/jpeg'; case( 'png' ) : return 'image/png'; case( 'txt' ) : return 'text/plain'; case( '3gpp' ) : return 'video/3gpp'; case( 'amr' ) : return 'audio/amr'; default : return '?/?'; } }
  5. In my upload scripts there is a clause as to what the file will allow. Such as; //allowed Extensions $limitedext = array(".gif",".jpg",".png",".jpeg",".bmp"); This allows me to limit what they can upload. As AndyB says, you cant stop them from trying, but you can return them an error if, say, they tried to upload a .pdf or .doc
  6. Could you explain this a little more please?!?
  7. Thanks for that Shogun. However, it didnt work. Again however, saving things as .phps does work as Word retains the syntax highlighting copied in. Thanks everyone! Nick
  8. The way i get around that is to use an include file on any php script needing database access. Keep your connection string as it is and copy it over to another file, and name that file global.php or something similar. At the top of everypage (however, underneath if you are using sessions or anything else header related) call in the connection string using include_once ("global.php"); And your database will connect, leaving you free to give the script to whomever you wish. I tend to keep my included scripts in an include folder, in which case I am including /include/global.php Hope this helps and is what you were looking for Nick
  9. Do you simply want to check it for yourself, or for other users to check whilst on your site?! http://instantdomainsearch.com/ have a checking facility for top level domains, and they also have a widget you can place on your site.
  10. Sorry, i need to present all my coding in a printed formed report. There will be some extended writing etc. I need to be able to write say a paragraph, then have an excerpt of coding to explain, i wish to have code highlighting when i explain this coding. Obviously, Notepad ++ and Dreamweaver are not usable for this purpose. Thanks
  11. Not so much a PHP technical problem, but; I have to do a write up containing all my code, and i would really like it if the code had the syntax highlighting you find in Dreamweaver, Notepad ++ and on here. Any idea what software i can use to achieve this? Ive tried MS Word, but to no avail! Any ideas would be great! Thanks Nick
  12. I donnot have flash! Sorry. I do not follow that :S
  13. Its quite an expensive job. Im doing it myself, converting 3gp files into flv files on the fly. How is your php knowledge?!
  14. It will be called TextBubble. Why do you ask?!
  15. Hello. I wish to have a simple friends feature on my site. I know its just a relationship of somesort but how is it done? I can set up a new table if needs be. Also would like the code to pull out the friends from the db. Thanks Nick
×
×
  • 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.