Jump to content

Anim9or

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Posts posted by Anim9or

  1. Thanks for the input!  I'm working on an "all else fails" square filler now, should be up fairly soon.

     

    Right now, I don't have a money plan.  At first, the goal is to use it to direct people to the Fauxsaics website, which has Adsene integrated in and more people means more clicks.  Once the app is stable I'd like to integrate ads into it and then reintroduced shirt selling as a viable income source. But for now, it's basically not making any money and the website(which I hope to upgrade soon with my new AJAX abilities) makes about $.10 a day.

  2. Hi, so I doubt anybody remembers me, but I run a small website called Fauxsaics that creates photo mosaics from users pictures. So recently, I felt like if I made a Facebook App, it could draw users and maybe even make me succesful. Now I'm not an expert at the Facebook server, so it's a little touchy but could mean the world to my mini-business. This app is brand new, and I just finished this build about an hour ago, so it's still in the beta stage. I'm hoping for it to be big, but I could really use some feedack about how well it works so far, and this is the best place I know to get it

     

    You can find the app at http://apps.facebook.com/fauxsaics/

     

    Any feedback would be much obliged!!! Thanks!!!

  3. Thank you!  I was really hoping someone would tell me they were having a problem like that, it sure beats "people aren't using the website because they're not interested in what the website does".  I'm going to look into some methods making it seem more direct.  In the mean time, I have added a set of step by step instructions to uploading on the top(the yellow bar) that should give people a better idea of how to make it and I have disabled the next step button for pictures with no tile pictures, but also added a caption explaining why they shouldn't press next step with a direct link to importing pictures from Facebook, which I believe is the best way to add tiles.  Thanks again, hope it helps!

  4. hey, sorry for bumping, but before I let this page fade into obscurity, I was wondering 2 things:

    1) According to Google Analytics, most people are creating their canvas picture, but are not uploading any tiles.  I've checked the buttons and their all working for me, has anyone else had problems?

    2)Also, does anyone have a good idea on how to promote the site?  I really think it's a good idea, but nothing I do sticks, probably because possibly because of the first question.  Does anyone know a photography forum, or anything of the sort that might be interested?

  5. heh, that's embarrassing :-[ .  Just fixed all of those(except the search issue, couldn't find the problem when I tried it).  Everything is now sanitized for the users convenience using either a red font warning or a JavaScript form validation. The page is once again open to users, so feel free to continue criticizing.

  6. Thanks for the advice! You brought up some good points that I'm going to work on to try to maximize the website.

     

    I think I agree about the green especially, I wanted it to be a signature idea, but now that think about it, most websites don't use one makor color(except white), I'll probably mix some more blue and white into it since they don't clash and most sites use that scheme.

     

    I fixed the ads, they're now centered and I changed the background color to blend with the box they're in instead of the total background.  it really does look much better.

     

    I see what you mean about everything being square, but I kind of like it.  It seems to go with the theme of breaking down the pictures, maybe that's just me though.

     

    I'm working on the smaller resolution thing, according to past experince no one seems to use the manual tile sizer so I guess it's my job to set up a good one from them from the start.

     

    If you don't mind me asking though, what do you think of the site's functionality?  According to Google Analytics, no one seems to be finishing their mosaic or uploading tiles as if it give them an error, but whenever I try the site, it runs fine.  if anyone could tell me if they ran into a problem or couldn't find a button I'd me much obliged.

     

    Thanks again!

  7. Hi, I've been working on small website called Fauxsaics (Faux Photo Mosaics) for a while that uses PHP to create photo mosaics for it's users.  I've recently redesigned it to make it more efficient and would really love for people to test it. 

     

    You can currently upload tile pictures, copy them from other websites, or import them from Facebook.  If anyone wants to try it, feel free to let me know how you process went and what you think of the final result.

     

    One example of me is attached.

     

    http://www.fauxsaics.com/

     

     

    [attachment deleted by admin]

  8. This has been bothering me for weeks and I've been trying to solve it without asking for help, but eventually I had to give up :-[

    Basically, I have a website that is based around manipulating photos with php commands(imagecopymerge,imagecolorat,etc.) however, one page, which compiles all of the data together, is way too large.  Most of the time it results in an internal server error.  Base on what a GoDaddy Customer service representative said, I assumed that this problem is caused by the script taking too much of the server's time and concentration.

    Because of this, I wrote a code to by pass it by doing some of the commands, then refreshing with a changed GET variable to tell the page where to start based on how high the number is.  This kind of solved the problem, but there's still a 50% chance that I will get a server error on any random step for reasons I don't understand.  My question is, is there any way I can stop an internal server error 500, or redirect the page automatically when it happens?  And if not, what part of a website package would I need to upgrade to allocate more time and processing power for my website?

    Thank you!

  9. Hi, me again

    Sorry to bother you with a fairly trivial question but I have a website that's very reliant on loading dozens of variables from a txt document into an array.  It is starting to run too slow.  I was just wondering if it would be quicker to use MySQL.  Until now I have been avoiding it but if it will in fact save time to load values from a database instead of text file, I will.  Thank you! :D

  10. Hello again,

    I was just wondering us there a way to use a php script to create a new web page.  I guess the best example is something like YouTube where when a video is uploaded, it's assigned a new web address and can be visited there.  For a while I had planned on having one dynamic page where information can be called to make it look like multiple pages.  But I recently relized that then the page could not be posted as a link for others to see.

     

    Anyway, thanks again!

  11. I hate to ask for help twice so close to eachother but...

    I'm working on a photo mosaic website that makes boxes, finds their average color and colors in each space it's boxes average color(eventually it will take picture with this average color and cover the boxes with them).  However, I have been having troube.  I'm trying to store all the color information using a txt document whihc lists each box's red, green and blue.  Below is the code, however, I can not get fwrite to work, the variables are fine but when I check the text file I left for it, it will be empty.  Can someone tell me why the fwrite isn't working?  Everything else is.

    for ($height=0;$height<($numberofboxeshigh*$boxsize);$height+=$boxsize) {

    for ($width=0;$width<($numberofboxeswide*$boxsize);$width+=$boxsize) {

    for ($x=$width;$x<($width+$boxsize);$x++) {

    for ($y=$height;$y<($height+$boxsize);$y++) {

    $rgb = imagecolorat($my_img, $x, $y);

    $r = ($rgb >> 16) & 0xFF;

    $g = ($rgb >> 8) & 0xFF;

    $b = $rgb & 0xFF;

    $totalr+=$r;

    $totalg+=$g;

    $totalb+=$b;

    }

    }

    $averager=$totalr/($boxsize*$boxsize);

    $averageg=$totalg/($boxsize*$boxsize);

    $averageb=$totalb/($boxsize*$boxsize);

    $boxred[$width][$height]=$averager;

    $boxgreen[$width][$height]=$averageg;

    $boxblue[$width][$height]=$averageb;

    $boxcolor=imagecolorallocate( $my_img, $averager, $averageg, $averageb);

    for ($x=$width;$x<($width+$boxsize);$x++) {

    for ($y=$height;$y<($height+$boxsize);$y++) {

    imagesetpixel($my_img, $x,$y, $boxcolor);

    }

    }

    $totalr=0;

    $totalg=0;

    $totalb=0;

    }

    }

    $text_colour = imagecolorallocate( $my_img, 255, 255, 0 );

    $line_colour = imagecolorallocate( $my_img, 128, 255, 0 );

    imagestring( $my_img, 4, 30, 25, $boxred[0][0]."x".$numberofboxeshigh."x".$averageb,  $text_colour );

    imagesetthickness ( $my_img, 5 );

    imageline( $my_img, 30, 45, 165, 45, $line_colour );

    $file = fopen("images/Pixelize Pictures/Goldie.txt","a");

     

    for ($x=0;$x<$numberofboxeswide;$x+=$boxsize) {

    for ($y=0;$y<$numberofboxeshigh;$y+=$boxsize) {

    fwrite($file, $boxred[0][0]);

    }

    }

    fclose($file);

  12. Hi again,

    What would be the best way to save a picture just created to the FTP server in PHP.  Right now I'm using this code:

     

    $my_img = imagecreatefromjpeg("images/Goldie.jpg");

    $background = imagecolorallocate( $my_img, 0, 0, 255 );

    $text_colour = imagecolorallocate( $my_img, 255, 255, 0 );

    $line_colour = imagecolorallocate( $my_img, 128, 255, 0 );

    imagestring( $my_img, 4, 30, 25, "thesitewizard.com",

      $text_colour );

    imagesetthickness ( $my_img, 5 );

    imageline( $my_img, 30, 45, 165, 45, $line_colour );

     

    header( "Content-type: image/jpeg" );

    //imagejpeg( $my_img );

    imagecolordeallocate( $line_color );

    imagecolordeallocate( $text_color );

    imagecolordeallocate( $background );

    imagedestroy( $my_img );

    Thanks!

     

  13. Hi,

    I was wondering if sanyone could help me with the fopen tool.  I'm tring to open a certain number of files, and pront out a specific line from them.  However, the function only seems to work when a single number is given.  If you use a variable, it will only access the first varaible number, even after the varaible is augmented.  Here is the code:

     

    for ($read=0;$read<=$z;$read++) {
    	$File2 = 'images/data/$read.txt';
    	$file[$read] = @fopen($File2, "r");
    	while($lines<3){	  
    		 $line[$lines]=fgets($file[$read]);		  
    		 $lines++;
    	}
    	echo "<br>$read";
    	echo "<br>$File2";
    	echo "<br>$line[1]";
    	fclose($file[$read]);
    }
    

     

    Thanks!

  14. I'm almost afraid to ask this question because I fear it's impossible to do on PHP

    I have a concept that I used to have on Java that I would like to try out on PHP, however I need to be able to return the Red, Green, or Blue of a pixel in an uploaded picture.  If anyone can help me find a tutorial or help  I'd be very grateful.

     

    Thanks! :)

  15. Hi, me again,

     

    I'm trying to set up a picture host online and I want each picture to be named the number in which picture, for example, the first picure is 1.jpg (or it could be 0), the next picture uploaded is 2.jpg, etc., However, I've spent the last 3 days trying to get the picture number to be saved and opened on any page.  I;ve concluded that using a text file with nothing but the number would be best, but it's still ot quite working. 

    The website is now 2 pages form.php and upload.php form is basically all html to make a front for the website, and links to upload.php upon submission. Upload.php will tell you it's uploaded and show you a picture(as well as save the picture to the data base).

     

    This is the code from upload.php:

    <?
    $handle = fopen("file.txt", 'r+');
    $z = fread($handle, 100);
    $time=$z+1;
    
    $userimage="images/".$name;
    $usertype=$_FILES['user_file']['type'];
    
    
    if(ereg("jpeg",$usertype)){
    	$userimage="images/".$time.".jpg";			
    	fwrite($handle, $time);				
    
    	print $time;
    }
    
    if (ereg("jpeg",$usertype))
    {	
    $move=move_uploaded_file($_FILES['user_file']['tmp_name'],$userimage);
    
    echo "<h2>Congratulations!</h2> Your image was uploaded.<br>
    Now you can choose any frame to apply it <br><br> ";
    
    echo"<img src=$userimage></img>";              
    }
    
    else
    {
    echo "we dont support this type";
    }
    fclose($handle);
    ?>

     

    So far did I've tried all other letter codes I know, and "r" and "r+" are the only ones that give a response.  "r" does nothing and "r+" can add the number to the file with the rest of the numbers, overwritting won't work.

     

    Is there a better way to do consecutive numbers?

     

    By the way, the website is available to see at:

    http://pixelate.fantastichost.co.cc/form.php

     

  16. Thanks for the help!

     

    However, I ran into a new problem on the way and I thought it might be easier to place here instead of start a new topic.

     

    I'm up to fwrite files now and no matter where I get my code from, I get the same errors, basically, I'm using this:

     

    $x=$_GET["suggestion"];
    $filename = "data.txt";
    $handle = fopen($filename, "r");
    $contents = fread($handle, filesize($filename));
    fwrite($contents, $x);
    echo $contents;
    fclose($handle);

     

    Now it will just write nothing now, however, if I change the "r" to a "w" or any other writing letters, I get this:

     

    Warning: fopen(data.txt) [function.fopen]: failed to open stream: Permission denied in /home/a4975390/public_html/default.php on line 11

     

    PHP Error Message

     

    Warning: fread(): supplied argument is not a valid stream resource in /home/a4975390/public_html/default.php on line 12

     

     

    PHP Error Message

     

    Warning: fclose(): supplied argument is not a valid stream resource in /home/a4975390/public_html/default.php on line 15

     

    Thanks in advance!

  17. Hi,

    I'm pretty new at PHP, as in I started yesterday, and have been following tutorials from ww3schools.com .  Right now I'm up to reading and writing txt files and I keep getting the same error.  This is the code:

     

    <?php
    $file=fopen("blah.txt","r");
    echo $file;
    ?>

     

    Hower I keep getting:

     

    Resource id #6

     

    When I open the page.

     

    I've searched around for people with simlar problems, but they always have trouble when they reach mySQL.

     

    Any help would be much obliged.

     

     

×
×
  • 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.