Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About cyber0ne

  • Rank

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    Columbia, SC
  1. Using the sample code on http://www.w3schools.com/css/css_image_transparency.asp (Example 3 - Text in Transparent Box), I tried changing the color of the div to black and the color of the text to white, working on a kind of "glass" effect over a background image.However, I seem to be running into a problem where the text within the div gets the same transparency as the div itself. I tried adding the following to the style for "div.transbox p": /* for IE */filter:alpha(opacity=100);/* CSS3 standard */opacity:1;/* for Mozilla */-moz-opacity:1; But that doesn't seem to make a difference. Curr
  2. Excellent, it's working now. And nice tip on glob, thanks!
  3. This is probably a simple one, but so far my searches have turned up no answer...I use "$fileHandle = opendir($directoryPath);" in a function to open a directory on my server (after which time, I will iterate through the files and put certain ones into an array). Normally, this works fine, but testing has found that it errors out when the $directoryPath contains a single quote (or potentially any of a short list of special characters, but so far this is the only one that's been found in testing).The error is:opendir([DIRECTORY_NAME]) [<a href='function.opendir'>function.opendir</a>
  4. Ah, you're right about that. But wouldn't that hidden field still be available in $_POST? In any event, I don't really need that hidden field. And if I need any other $_POST values on that form, I can hop on over to the PHP forum.Thanks
  5. This may be a very simple problem that I'm just not seeing, but maybe another set of eyes looking at it will be able to pick out what I'm doing wrong. I have some PHP code that outputs the following editavatar.php (stripped down for brevity): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html> <head> <title>cyber0ne.com</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <form action="/users/editavatar.php" method="POST" enctype="mul
  6. I was thinking of that this morning, ya. The output from the Japanese/English page is definitely using UTF-8, but I can't seem to find a way to scrape it properly in PHP, that's my problem.I have the entire output of the page coming to me as a string. First I try grepping out the Japanese part and then run that part through utf8_encode(), but it comes out as nonsense (not properly encoded). Then I tried running the entire page through utf8_encode() and then grepping out the Japanese part, but it still wasn't properly encoded. Tried the same stuff with utf8_decode() (that might have been a
  7. I need to build a simple little page that scrapes some Japanese text off of another page and feeds the text through BabelFish and scrapes the response. Sounds simple enough, but I seem to be having trouble with the character encoding (a subject I'm just now beginning to learn).The page I'm grabbing is mostly English, it just has some Japanese buried in there. Can anyone point me to some sample code that shows how to grab a properly encoded response from such a page, so that I can feed it through a regexp to parse out the non-English part?
  8. Indeed it does... I guess the problem lies elsewhere. I know that function is returning a 5-element array. Maybe I have a typo somewhere or something simple like that.In any event, you've given me something to go on. Thanks
  9. Can PHP store an array as a value in a session variable? The following code seems to suggest that it can't since it gives me an error, but I wonder if there's maybe something else I just need to do or if someone has figured out a way to at least achieve the same functionality: $_SESSION["UserGroups"] = {function that returns an array};$temp = $_SESSION["UserGroups"];echo $temp[count($temp) - 1];exit; Is this something that can't be done by design, or is there a way to have an array follow a session? I did notice that count($temp) is 2 in the above code (though the original array returned b
  • Create New...