Jump to content

frio80

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

frio80's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. @corbin - Currently, we do have a set number of colors to choose from but now the client wants a color wheels of sorts. Thanks for the reply guys. Correct me if I'm wrong but storage is cheaper than processor processor, and I have to think that simply limited the color choices and storing the files is the way to go here.
  2. Hello all, Two part question really... I am designing a system that does two important tasks: 1) colorizes (using any color in the spectrum) white-colored shapes using the GD library 2) Adds a pattern to white-color shapes using the Image Magic library. Example. 1. I have a circle; 2. I can click on the color red and the circle changes color to red. 3. I now click on an camoflauge pattern and the circle now changes to a camoflauge color. My question is, which process is more efficient? A) Create the resulting image as a file and save it to the filesystem. Then simply check if that file exists and display it when a user calls that color. (Con: The file system could literally have millions of files.) B) Do everything on the fly? Use GD and ImageMagick to simply produce the colorized/patterned images on the fly when needed. (Con: Performance is 1,000,000 people access this functionality at once) Please keep in mind that simply changing colors using CSS is not an option AND the site will have excess of 100,000 people on at a time. Thanks a bunch!
  3. Hi all. I have an HTML string that I receive from a variable. It's not well-formed but contains some elements, I need to manipulate. Basically, just adding and removing some elements. After reading about PHP5's beautiful DOMDocument->loadHTML(), I realized it could be done. However, our server is using php4 =(. Is there a PHP Class floating around that may do the trick? I almost do not want the solution to use PHP4's DOM functionalities bc I read that they don't translate well when you update PHP to version 5. Any ideas? Thanks!
  4. Sorry for that lousy explanation. Let me try again. I would like to merge the arrays and add the values of the duplicates together. The array structure is: [<name>] [item#] = <quantity> ... So I have these two arrays named letter and evel [letter] = An Array: [96-19205] = '1' [97-19205] = '2' [98-12222] = '9' ... [envel] = An Array: [96-19205] = '3' [97-19205] = '4' [92-11231] = '3' I would like the resulting merged array to read: [papers] [96-19205] = '4' [97-19205] = '6' [92-11231] = '3' [98-12222] = '9' Thanks!
  5. I have an array: [letter] = An Array: [96-19205] = '1' [97-19205] = '2' [envel] = An Array: [96-19205] = '3' [97-19205] = '4' I would like the result to read: [papers] (the name isn't very important) [96-19205] = '4' [97-19205] = '6' Seems simple enough but just trying to figure out a more efficient method (using built-in array functions) rather than looping and looking for matches manually? Any thoughts? Thanks.
  6. Thanks. cURL was exactly what I needed to avoid 'POST'ing to another server.
  7. No limit on POST. I used cURL with POST with great success. I was thinking about the flow of data incorrectly. The solutions was to simply supply a link with some search params to my php script, i cURL a static link with those search param and voila, a POST is generated and returned with I need the data I need!
  8. Thanks for the replies. I have not used cURL before but from what I'm reading about it, it is exactly what I need.
  9. Yes, I really need to read-up on cURL. Thanks for the response.
  10. Perhaps, not a PHP question but I have a <form> variable that I need to access on a different website. <script language="JavaScript"> <!-- document.write("<form method='post' name='samplesearch' action='http://<my-website>'>"); document.write("<input type='hidden' name='data' value='<?=$data;?>'>"); document.samplesearch.submit(); //--> </script> This works in IE but now FF. Why? Security concern? Should I use cURL instead? Many thanks.
  11. What was I thinking? Duh! Thanks so much for the help!!!
  12. I feel like I've searched the entire Internet looking for a hint on this problem. It's gotta be a common question/problem which makes me believe there has to be a solid/proven methodology out there. Basically, I have a website that conducts a search using MySQL. Instead of showing a blank page while the search is being conducted, I would like a indicator that says 'Search Being Conducted, Please Wait...' Then, when the search is complete, the page displays the results. I've found partial solutions all over there place but does anyone have a complete methodology to make this work? Thanks in advance!
  13. This question is more of a design question and am not sure what forum this would go in but here goes. Is there a way or practice to search, navigate large result sets efficient in PHP?  My problem is that when I conduct a search I then want to search within those results using filters.  As of now, I keep researching the database when I enable filters. Should I simply 1)re-search the database with my new filter criteria or, 2)is there a way to search the original result set 3)maybe something cool that I dont even know about. Thanks.  Love the site!
×
×
  • 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.