Jump to content

Gafaddict

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Gafaddict's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am using the Tool Man script, a script that allows one to "drag and drop" the position of a list of elements. It uses cookies to pass the information from one page to the next. When I try to use PHP to clear the value of this cookie, it doesn't work. I have a suspicion that this has something to do with the fact that the cookie was set in JavaScript, because if I try to clear a cookie which I set in PHP, it clears easily. The code I am using to clear is: setcookie("list_boxes", "", time() - 3600); The script that Tool Man uses to set cookies can be found at: http://tool-man.org/source/org/tool-man/cookies.js Any ideas?
  2. Is there any possible way for this to render properly: <ul style="display:inline"> <li>Line1<br>Line2</li> <li>Line1<br>Lin2</li> </ul> In Firefox etc. it displays each list item on a different line, but I wonder if the display:inline feature works with line breaks. Is there any way to achieve a similar affect if the two won't combine?
  3. I'm building a photo album script and am coming across a problem here. I want to redirect users to a certain album based on the criteria they give me: RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/? picture.php?year=$1&season=$2&meet=$3&picture=$4 The problem is that the actual "images" folder I'm storing the pictures is also susceptible to this rule. I tried replacing the above code with this, as the first level is a numerical value (a year): RewriteRule ^([1-9+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/? picture.php?year=$1&season=$2&meet=$3&picture=$4 But that just causes the redirect to fail completely. Is there any way to exclude only the "images" folder from this rule?
  4. Anybody here know how to solve this problem? I've seen it done before on another PHP powered site, in fact I'd ask the fellow who coded that site but he seems to have vanished off the face of the earth... anyway: I have a series of files in a directory, 491_1.jpg, 491_2.jpg, 491_3.jpg. Now, I'm trying to figure out a way by which if one was to enter "491_1.jpg" into a text box and have that processed, the script would be able to find all three of those images, more if there were additional images following that syntax, in the directory. Now, if it's impossible to detect that set of files by entering "491_1.jpg," is there something else that could be processed in order to find that set of files? Such as "491_*.jpg" or something? I appreciate this...
  5. Brilliant! That turned it into an array, so I used foreach to compile a final variable. Thanks a lot
  6. Why not write up seperate stylesheets for each browser? It might seem like a bit of a hassle, but it's really the only way to achieve true cross-browser compatability.
  7. Hey all -- I'm running into a problem with a select box. Its values in PHP are not properly parsed. <select name="frm_owners" size="10"> <option value="1">Apples</option> <option value="2">Oranges</option> </select> Now, if I were to select both options and then output $_POST[frm_owners] on another page, all I would get is "2." But I'm looking for a comma-seperated value like "1,2." Any ideas? I thought this would be a fairly common question--funny I haven't found any related threads on the board. Thanks in advance.
  8. Why can't PHP just write the cookie to begin with?
  9. You actually use a function for this: $aircraft = $_POST[aircraft]; $similar = strpos($aircraft, '747'); if($similar || $aircraft == "747") { $aircraft = "B747"; } In strpos, the first argument is the variable to search in and the second is what to search for. It returns a true if it could find it, a false if it couldn't.
  10. MadTechie, The first option worked fine. Thanks!
  11. Hi guys, At the moment I'm writing a script which deals with the possibility of analyzing a file that is not on my server -- rather, it is located on another server and a completely different domain. Say the image is http://www.example.com/logo.jpg. The script needs to find out the dimensions of logo.jpg when a user inputs that string into a textbox. I know how to get the dimensions of an image on the server, but how would I get the dimensions of an external image? Is it even possible? If that is not possible, how would one go about copying that external image from the URL to their own server? I've seen this done before in phpBB before but they don't seem to have any documentation about it. Thanks in advance,
  12. Hi, Thanks. I've got a question for you, though... how exactly would you implement that function? I've looked over the documentation and it doesn't seem to go into much detail about exactly how to do that. Say I wanted to periodically refresh a file called test.php -- how do I specify that file in the function?
  13. Well no, there are less basic implementations of it on the site, I just used this as an example rather than the more descriptive ones, to avoid any confusion. I guess a more sensical implementation of it would be a shoutbox somewhere on the page. Is there any way to make that page continuously refresh so when a message is posted you don't need to manually refresh it?
  14. Sorry, the CSS code should have been: .dedicatedserver { background-image: url("images/2200.png"); width= 97px; height=31px; } .dedicatedserver:hover { background-image: url("images/2200.png"); }
  15. Well Dreamweaver; mainly because it's the only designer I can find that works for the Mac. On the PC I have used software like Notepad++, PHP Designer, and PHP Edit; as well as Quanta Plus on Linux, but none of them really have the complete interface Dreamweaver does. No other software I've used has the software tree Dreamweaver does, which is really convenient and necessary to me. Few others highlight the code properly that Dreamweaver does, and the ones that do don't have a file tree.
×
×
  • 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.