Jump to content

tawevolution

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tawevolution's Achievements

Member

Member (2/5)

0

Reputation

  1. nope, isnt what im looking for ..... This is what I want it to do: I have a jpg image. I use a form and upload it to my website hosting (I can do that ok), but before it uploads the jpg image, I want it to save a copy with 50% alpha (so two copies - one with 100% and one with 50% alpha) being uploaded. imagecreatetruecolor only does shapes through php, and not actual jpegs
  2. Hi, Im looking for a script that will actually change the physical images opacity (e.g. you upload an image, and it saves two copies - one normal, and one with 50% opacity). Does anyone know how this can be done? I dont want to have to use: opacity:0.5; in the css for the image. Please help Michael
  3. or you could try this: http://www.phpmix.org/how_to_create_a_dynamic_signature It may be a bit different to what you want, but it'll do a similar job. Just put whatever code you want in the 'text' thingy and away you go. $image_text = array( array( 'x' => 8, 'y' => 6, 'color' => array(50, 100, 180), 'font' => 9, 'text' => $anythinghere ), I have created this using SMF stats and whatnot in variables: in the url you can set variables like userid, colour of the background and style etc with some simple code (e.g. http://www.com/sig.png?user=71&colour=green etc The Username, number of posts, and user is [not] online thing is all done with php.
  4. sorry for double post ..... I have marked this post as solved because I found out why it wasnt working. I was sending an email to my hostings email accounts - and it doesnt like that - so i just created temp @gmail.com accounts and set up forwarders evo out thanks for your hepl guys
  5. oh yea ... forgot about that ...... and im going to look up switch now
  6. Hi, I have this bit of code: <?php $to=$_POST['to']; //Define Enquiry Types if($to="general"){ $type="General"; } if($to="pr"){ $type="Sponsership & Public Relations"; } if($to="jobs"){ $type="Job Applications"; } if($to="web"){ $type="Website Feedback"; } echo($type) ?> The $to is retrieved from a form on another page (which works because when i echo($to); it comes out right), but when it comes to corresponding to $to with a $type it only shows the last one. e.g. $to could be "pr", so $type should be "Sponsership & Public Relations", but it allways comes up with "Website Feedback". a) Why is this? and b) how do I fix it? Thanks Evo
  7. I have the same problem. in the phpinfo thing it says: Why does this not work - is it because its set to localhost?
  8. Its on a live server .... so what should i do to make it work?
  9. Hi, Im trying to use the mail() function. Here is my code: <?php $to = "email@address.co.uk"; $subject = "subject here!"; $body = "this is the body section of the email message"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> Every time i run the script, it says "Message successfully sent!".... so i then go over to my email inbox (i set the $to to my own email as a test) and the email never comes through. I have checked my email spam box, and i have tried several different email accounts (using diff email providers) .... none of which get through. Someone told me to make sure the 'safe_mode' was off, and 'register_globals' was on - of which they both are ...... any ideas????? Thanks Evo
  10. oh ok, well thanks guys for your help, much appreciated ... now for the 'fun' bit - the work xD
  11. thnx mlin, yours seems more suitable for the main thing i wanted, but roopurt18, that was another thing i was going to ask (btw, does that MOVE it or COPY it to the new host???)
  12. [quote author=BillyBoB link=topic=118360.msg483617#msg483617 date=1165962307] The below code is how to backup the database [code]<?php $tableName  = 'mypet'; $backupFile = 'backup/mypet.sql'; $query      = "SELECT * INTO OUTFILE '$backupFile' FROM $tableName"; $result = mysql_query($query); ?>[/code] The below code is how to Restore a backup [code]<?php $tableName  = 'mypet'; $backupFile = 'mypet.sql'; $query      = "LOAD DATA INFILE 'backupFile' INTO TABLE $tableName"; $result = mysql_query($query); ?>[/code] [/quote] Thanks Very Much BillyBoB!!! This is exactly what I have been looking for ... there are a few other things out there - but they are rubbish but this is perfect - thnx bud (btw utexas_pjm, I want it in PHP for my admin system xD) Thnx Guys, Evo out... EDIT:::: [u][b]This only seems to backup a table - I want the whole database (called development) which has all the tables in it[/b][/u]
  13. Ok, I am looking for a [b]PHP[/b] script that can back up a mysql database, save it to a folder on my web host (e.g. /backup), and then on another page (restore.php)  have the ability to restore one of the backups. How is this done?
  14. [quote]<?php echo "<a href='www.blah.com/read.php?".$_COOKIE['the_cookie_name']."'>LINK</a>"; ?>[/quote]That is what i though of doing, just wanted any other ideas. THANKS xD Oh, also, I know to send the data (Form method=get) how do i put that into a link (instead of a form). so click on an image link, which goes to www..com/index.php?lang=en
×
×
  • 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.