User Profile

Collapse

Profile Sidebar

Collapse
Taorluath
Taorluath
Last Activity: Feb 27 '08, 10:37 PM
Joined: Sep 8 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Taorluath
    started a topic imagesetpixel() Troubles
    in PHP

    imagesetpixel() Troubles

    I'm trying to make a PHP script that increases the blue value of each pixel in an image by 1.
    It's important that the script goes pixel by pixel.
    For some reason, however, it outputs an image that is one solid color; a brownish red block.
    Why isn't this script only slightly increasing the values?? ??? ???



    Code:
    <?php
    $img = imagecreatefromgif('logo.gif');
    
    // get height and width
    ...
    See more | Go to post

  • Taorluath
    replied to chown() problems
    in PHP
    ideas anyone?
    I still can't seem to get it to work...
    See more | Go to post

    Leave a comment:


  • Taorluath
    started a topic chown() problems
    in PHP

    chown() problems

    I just made a simple program to create files; I'm trying to get the hang of basic file manipulations.
    Whatever file my program makes, the owner of the file is "www-data," so I can't edit it using my regular server user. I can use root to change the ownership to the server user, but I don't want to do that for every file.
    That's why I tried to use chown() to give ownership to the server as soon as the file is made, but I get...
    See more | Go to post

  • Dang it!!!
    How did I not see that?? Thanks a lot.
    See more | Go to post

    Leave a comment:


  • What's wrong with it?...
    See more | Go to post

    Leave a comment:


  • Sorry about that, I just tried to copy what I had posted. It didn't really work.
    See more | Go to post

    Leave a comment:


  • Taorluath
    replied to Whats Is Php ?
    in PHP
    For laypeople, it's a programming language that's for websites.

    Before you see the webpage, PHP gets run, and the output is your html file which you view.
    Basically it makes webpages more dynamic, e.g. most forums use PHP to display all the topics and such.
    See more | Go to post

    Leave a comment:


  • Sorry, Sorry!!
    I had to leave on a trip right after I posted this, so I didn't really explain it.
    basically, I get a number, (1260) and I try to find all the factors.
    lines 11-21 try to do this.

    first, in line 11, we start the loop to go through every number(counter) under x.
    in line 13, we see if counter is a factor of x, (if the remainder is 0, then it should be a factor)
    if it is, we add it to...
    See more | Go to post
    Last edited by Taorluath; Sep 12 '07, 02:00 AM. Reason: i had to add stuff

    Leave a comment:


  • Factoring Intergers script does not give correct results

    ok, so this little script is supposed to list the factors of intergers.

    [CODE=php]<?php


    function findfacts($x) {

    $highest = $x;
    $counter = 1;
    $factarray;
    $factarraycount er = 0;

    while ($counter < ($highest / 2)) {

    if ($x % $counter = 0){

    $factarray[$factarraycount er] = $counter;
    $factarraycount er++;
    }...
    See more | Go to post
No activity results to display
Show More
Working...