Jump to content

zq29

Staff Alumni
  • Posts

    2,752
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by zq29

  1. You'll need PHP compiled with GD support to use its image functions. There is an example of resizing images on the [a href=\"http://uk.php.net/imagecopyresized\" target=\"_blank\"]manual page for imagecopyresized()[/a].
  2. I'm not sure how you'd go about doing that in Apache - I'm not even sure that you can. You could do this however if you have a DNS on your network, or if you manually edit the HOSTS file on each machine on your network. Windows machines store this file in \WINDOWS\system32\etc I think.
  3. Theres a good Photoshop tutorial site at psworkshop.net, I check it out every so often for ideas, but I feel a lot of the stuff there is getting a bit dated, sites are starting to look a lot cleaner these days with the 'less is more' attitude to design...

    Sometimes I even check out those sites that sell web templates for ideas on new designs.
  4. You could use PHPs file functions...
    [code]<?php
    $java = "class HelloWorld {\r\n
    \tpublic static void main (String[] arguments) {\r\n
    \t\tSystem.out.println(\"Hello World\");\r\n
    \t}\r\n
    }";

    $h = fopen ("hello_world.java","wb");
    fwrite ($h,$java);
    fclose ($h);
    ?>[/code]
    Don't forget the semi-colon on the end of the file functions, they're removed in my example due to a bug in the forum.
  5. [!--quoteo(post=386926:date=Jun 22 2006, 07:36 PM:name=Blue Phoenix)--][div class=\'quotetop\']QUOTE(Blue Phoenix @ Jun 22 2006, 07:36 PM) [snapback]386926[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Crayon: thank you for your reply, that is what I eventually want to do, but first I want to "validate" the VIN. In other words, I want to see if the string in VIN_ID can be found in the VIN. For that I need to check the entire column VIN_ID against the VIN and see if any of those can be found in the VIN, if this makes any sense.
    [/quote]
    Thats what Crayons code does... Searches all of the VIN_ID's in the database and returns all of the VIN_IDs that are found within the VIN held in $findme. You can just return a count if you like with:
    [!--sql--][div class=\'sqltop\']SQL[/div][div class=\'sqlmain\'][!--sql1--][span style=\'color:blue;font-weight:bold\']SELECT[/span] [color=blue]COUNT[/color](*) [color=green]FROM[/color] [color=orange]`table`[/color] [color=green]WHERE[/color] `VIN_ID` [color=orange]LIKE[/color] [color=red]'%$findme%'[/color] [!--sql2--][/div][!--sql3--]
    If that query returns a number higher than 0, you have a match.
  6. Books that teach PHP4 often cover alot of the features of PHP 4.x.x, PHP4 is just a generalisation as "sub-versions" get released on a some-what regular basis.

    Although, there were a handful of new functions that were implemented in PHP 4.2.x, there would be no fundimental differences in the syntax or functionality of the language.
  7. Surely if it is owned by the php user 'nobody', it wouldn't matter as you would be controlling it with php for the rest of your scripts anyway? Or is that not the case? I'm a little confused here too!
  8. [!--quoteo(post=386365:date=Jun 21 2006, 01:30 PM:name=w3sl3y2003)--][div class=\'quotetop\']QUOTE(w3sl3y2003 @ Jun 21 2006, 01:30 PM) [snapback]386365[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Thanks for the response SemiApocalyptic.

    I'm not sure how that would help me. even if i could just get the full url of y.php after i provide the username and password that would be great.

    is that even possible?
    [/quote]
    Oh, I'm sorry, I missunderstood you. With regards to your question, I'm not sure, hopefully somone will pop along soon that does know :)
  9. [!--quoteo(post=386290:date=Jun 21 2006, 06:22 AM:name=PikaKiller)--][div class=\'quotetop\']QUOTE(PikaKiller @ Jun 21 2006, 06:22 AM) [snapback]386290[/snapback][/div][div class=\'quotemain\'][!--quotec--]It really doesnt work at all and i have tried to figure it out but does not work. Can you help?[/quote]
    What is it (not) doing, and what are you expecting it to do?
×
×
  • 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.