Search found 1867 matches

Actual Results

Post Posted: September 14th, 2014, 1:16 pm

If you wanted to make it web based, you could use php and the GD library. Assuming your rom pic is aligned into a grid of rows and columns, you can just come up with a grid system for the "center" of each bit you want to sample, write a for loop to traverse that grid, and use something lik...

Post Posted: July 2nd, 2013, 3:18 pm

Unfortunately, it's in development and on an internal server, so I can't provide a link right now. I have been experimenting, and what I have found so far is that the best way to display on Android (so far) is to NOT specify any viewport attributes at all. I was using some javascript alerts to test ...

Post Posted: July 2nd, 2013, 10:25 am

Howdy yall, I have a web site that is a horizontal scrolling site, rather than vertical. Before anyone starts pointing out that horizontal is a bad design for the web, know that I did not design the site, our creative department did and I had no say in the matter, I was just told to build it. The si...

Post Posted: February 1st, 2011, 3:58 pm

There are two blatant issues with your script that I can see. First, $file will only contain the filename, not the path. In your case, you are reading the cache/ directory relative to the current script, but you are trying to delete $file, rather than cache/$file. Change:
PHP Code: [ Select ]
unlink($file);
t...

Post Posted: August 27th, 2010, 12:07 am

fsockopen supports a timeout argument, in seconds.
Code: [ Select ]
fsockopen ( string $hostname [, int $port = -1 [, int &$errno [, string &$errstr [, float $timeout = ini_get("default_socket_timeout") ]]]] )

Post Posted: December 10th, 2009, 11:15 pm

Actually, I solved it like an hour after I posted this. I used an mx:grid and adjusted the script a bit.

Post Posted: November 27th, 2009, 5:39 pm

I'm building a jukebox app in Adobe Air, and I have run into a small problem. The jukebox is for use with a touchscreen system, and as such, I want to use a kinetic scroller on any lists (current playlist, album tracklist etc). I have found a really nice kinetic scroller written in Flex, and I can c...

Post Posted: June 16th, 2009, 4:11 pm

You might look at Google's O3D. It's in alpha, and requires a browser plugin, but it's very robust, and there are even a few games in the samples.

Post Posted: June 10th, 2009, 10:41 am

you mean Sitepal?

Post Posted: May 4th, 2009, 11:10 am

I believe Opera will allow you to specify per-site rules, but I don't know if any of the browsers allow per-page rules.

Post Posted: May 4th, 2009, 4:05 am

Another thing that bugs me about the whole CAPTCHA thing: Fearmongering. For instance, many sites reported on this incident as "Recaptcha Hacked". Recaptcha was not hacked, not in the least. What 4Chan did was wrote a script that loaded thousands and thousands of instances of the form so t...

Post Posted: May 4th, 2009, 3:31 am

I don't care about spam. I have gmail, and I have gotten 4 spam mails in my inbox ever. I have been using gmail since 11/05. Sure I get TONS of stuff in my spam box, but that's why it's there.

Post Posted: May 4th, 2009, 3:28 am

I find this highly unlikely until after verizon switches to the LTE network. Apple is historically very unwilling to support older technology like CDMA since they want to bring a bleeding edge experience. Well, other than the touchscreen, I wouldn't exactly call the iPhone "Bleeding Edge"...

Post Posted: May 4th, 2009, 3:11 am

Most browsers allow you to create your own style-sheets: http://www.squarefree.com/userstyles/user-style-sheets.html

Post Posted: May 4th, 2009, 2:45 am

Here's my take on the CAPTCHA issue, and this is something that I have spent a LOT of time thinking about. All over the web, there are people proclaiming the death of CAPTCHA, that the bots have won, and that there needs to be a better way to determine bot from human. Most of them are well-intention...

Post Posted: May 4th, 2009, 12:32 am

You can use the following:
Code: [ Select ]
<a href="javascript&#058;window.close();">Close Window</a>  
Note the : above is a colon (:), but the code paste here converts it. or: [code]<input type="button" onclick="window.close();" value="Cl...

Post Posted: April 15th, 2009, 3:03 pm

Heyyyy Spock, I was just thinkin bout you the other day wondering where ya were when someone brought up Captcha. I've been very busy lately, and didn't have time to visit Ozzu but once every week or two. Was working for Filefront.com but the job disappeared at the end of March when Ziff Davis decid...

Post Posted: April 14th, 2009, 10:39 am

I was just asking about the structure for both the flat file and the database table, not the code yet. For example, your flatfile might look like this:
Code: [ Select ]
AAA,ABC,100 AAA,ABC,101 AAA,ABC,102 AAA,DEF,200 AAA,DEF,201 etc...  
and your database table might look like this: [code]CREATE TABLE  ...

Post Posted: April 14th, 2009, 1:35 am

Change this:
Code: [ Select ]
$query = "SELECT *FROM que WHERE que LIKE \'%$trimmed%\'   ORDERD BY id"; // EDIT HERE and specify your table and field names for the SQL query
to this: [code]$query = "SELECT * FROM que WHERE que LIKE \'%$trimmed%\' ORDER BY id ASC"; // EDIT HERE and sp...

Post Posted: April 14th, 2009, 12:46 am

Is this what you're looking for? [code]<select name="campus" id="campus" size="4" onchange="hideCampus(this.value)"> <!-- When the user changes the selection, call the hideCampus() function and pass the current value to it --> <!--<option>...

Post Posted: April 14th, 2009, 12:26 am

Can you give us the flatfile structure and the DB schema you're trying to use? That might help in figuring out a solution.

Post Posted: March 11th, 2009, 2:23 pm

Have you thought about using ajax to reload the random content instead of reloading the entire page? Seems like reloading the page would get annoying to the users after a while.

Post Posted: January 7th, 2009, 10:42 am

Wait, so this is a photography contest, not a digital art contest?

Post Posted: November 30th, 2008, 1:53 pm

For the record, php has several built in functions that check if a variable is numeric: is_numeric() Checks if a var is numeric (1234, or +1234.56 etc) is_int() Checks if a var is an integer is_float() Checks if a var is a float and several others. They tend to run much faster than regular expressio...

Post Posted: November 24th, 2008, 2:39 pm

well, the clean() function you listed will use mysql_real_escape_string if a connection to the database is already present, so I would use that one.

Post Posted: November 20th, 2008, 11:16 am

Well, you could try using the CSS print media type with an @page rule:
Code: [ Select ]
<style type="text/css" media="print"> @page land {size: landscape;} body {page: land;} </style>
Unfortunately, this only works in Opera. Last time I checked, IE and Firefox didn't even...

Post Posted: November 11th, 2008, 12:48 am

Well, if you're talking about the "GO" search box, it's quite simple. They're using a background image: http://www.revolutiontwo.com/demo/chrome/wp-content/themes/chrome_10/images/headrightbg.jpg A transparent gif as a submit button: [code]<input id="searchsubmit" type="i...

Post Posted: November 11th, 2008, 12:22 am

I've got to get my 2 cents in on this one. First off, there is no hard and fast rule that dictates when and where tables can and cannot not be used. With the current state of web design though, tables *should* only be used for tabular data (as digitalMedia pointed out) and *should not* be used for l...

Post Posted: November 10th, 2008, 12:22 pm

Database names in mysql correspond to directory names on the disk. Since windows filesystems are not case sensitive, neither are the database names in mysql.

Here's a better description: http://dev.mysql.com/doc/refman/5.0/en/ ... ivity.html

Post Posted: November 10th, 2008, 12:16 pm

The easiest way is to use a basepath var at the top of each script:
Code: [ Select ]
$basepath = "/home/mysite/mypath/";   require_once ( $basepath . "header.php" );   // page content here   require_once ( $basepath . "footer.php" );  
Using that code, it doesn't matte...

Post Posted: November 7th, 2008, 3:08 am

well, the code you pasted doesn't appear to have anything to do with the error, but it appears as if you are trying to instantiate the class mall_setup and then convert it to a string, possibly by appending text to it, like this: [code]$mall = new mall_setup( $parameters ); $mall .= "some text ...

Post Posted: November 5th, 2008, 6:46 pm

Well, the flipping problem is because you're using an IE filter in your css to flip the text:
Code: [ Select ]
.blueBackground {     background-color: #13273B;     border: 1px solid #333333;     padding: 5px;     filter: FlipV;     margin-top: 10px;     margin-bottom: 10px; }  
Get rid of the filter: Fl...

Post Posted: November 5th, 2008, 4:55 pm

Works fine for me in FF3. I'm using Vista, though I doubt that has anything to do with it.

Post Posted: September 20th, 2008, 1:42 pm

I actually prefer both to be installed. While GD2 is great for image generation, there are some things imagemagick is just better at (resizing images, for example)

Post Posted: September 2nd, 2008, 1:56 am

Sessions in php, by default, use cookies. If cookies aren't turned on in the browser, it tacks the php session id onto the URL. There is no requirement whatsoever to use a database connection with sessions. It definitely makes the session more useful to store bits in a database, but there's no requi...

Post Posted: August 28th, 2008, 2:30 pm

well, you're looking for the comma to NOT be in the address, then you're trying to replace the comma.

try this:
Code: [ Select ]
$row = mysql_fetch_array($res)
if(stristr($row['address'], ','))
{
  $useradress = str_replace(',', '', $row['address']);
}
  1. $row = mysql_fetch_array($res)
  2. if(stristr($row['address'], ','))
  3. {
  4.   $useradress = str_replace(',', '', $row['address']);
  5. }

Post Posted: August 18th, 2008, 1:09 am

well, your first problem is that you spelled background as "bakcground"

Post Posted: August 5th, 2008, 10:09 pm

your code works fine for me in Firefox 3 and IE 7 on my localhost. Do you have it up on a website where I can see it running?

Post Posted: July 15th, 2008, 9:49 am

Query:
Code: [ Select ]
  $conn = mysql_connect ( "host", "user", "password" ); $db = mysql_select_db ( "database", $conn ); $result = mysql_query ( "SELECT count(*) from table" ); list ( $count ) = mysql_fetch_row ( $result );  
$count will contain the ...

Post Posted: July 15th, 2008, 9:03 am

hai problem in the syntax .u can use set in update statement not in insert this is the syntax insert into table_name (col_name1,col_name2) values ('value_of_col_name1','value_of_col_name2'); cool Actually, his syntax is perfectly fine , you can use either way in an insert, but he's using "key&...

Post Posted: July 15th, 2008, 8:55 am

Joebert is correct. Style.visibility only makes the element invisible, it doesn't remove the space that the element takes up. Style.display will make the element invisible AND collapse the space it was taking up.

Post Posted: July 15th, 2008, 8:45 am

ScienceOfSpock wrote:
add spaces between your fields:


DOH! That was supposed to say Add commas between your fields. It was late :P

Post Posted: July 15th, 2008, 12:07 am

add spaces between your fields: "UPDATE news SET Title = '$_POST[Title]', Date = '$_POST[Date]', comment = '$_POST[Comment]' WHERE ID = '$_post[ID]'" and you REALLY shouldn't insert raw post data into your database without cleaning it up first, even if the script is only for you. You shoul...

Post Posted: July 15th, 2008, 12:01 am

How about something like this:
PHP Code: [ Select ]
function address ( $value="name", $type="name" ) {         echo "Your ".$type." is ".$value.".\n"; }
You can call it like: [php]echo address ( "555 Anystreet, Anytown USA", "address" ); //...

Post Posted: July 10th, 2008, 9:47 am

IE applies the opacity filter only once, and that happens right when the page finishes loading. If your dynamically created element isn't present on the page when this happens, you will not see the opacity applied to it. There are a couple of ways to get around this: 1. Create a dummy version of you...

Post Posted: July 10th, 2008, 9:34 am

Change (or remove) the width on your <td> tag. IE will enforce and wrap text to fit inside the width, regardless of how wide the <td> actually is.

Post Posted: July 3rd, 2008, 1:38 pm

btw, I wasn't talking about passing the session ID in the session, I was just talking about using php sessions and letting php handle it all.

Post Posted: July 3rd, 2008, 1:37 pm

Not sure I'm understanding what you're trying to do. Are you using a custom session ID? The Session ID is normally stored in a cookie, or passed as part of the URL if cookies are disabled, even if you're using custom session IDs. I guess I'm just not sure exactly what you are trying to accomplish wi...

Post Posted: July 3rd, 2008, 1:07 pm

use delimiters in your response from php, and then use the javascript split function to split the response into an array. php:
PHP Code: [ Select ]
  ... return $data1."[BRK]".$data2."[BRK]".$data3; }  
Javascript: [code]  data = xmlHttp.responseText.split ( "[BRK]" ); docum...

Post Posted: July 3rd, 2008, 11:58 am

You can use opacity to hide the button and still make it functional:
Code: [ Select ]
    -moz-opacity:0 ;     filter:alpha(opacity: 0);     opacity: 0;  
I use it to style a file input button and it works fine in IE6+, Firefox2+, Opera 9.5 and Safari (For windows) and you can see a sample here: http://...

Post Posted: July 3rd, 2008, 11:48 am

Couldn't mod_rewrite handle something like this, avoiding PHP all together? Actually, yes: Something like this should work:
Code: [ Select ]
RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.yourserver.com RewriteCond %{HTTP_HOST} ([^.]+)\.yourserver.com RewriteRule ^([a-zA-Z0-9\+]+)$ /%1
Which should r...

Post Posted: July 3rd, 2008, 2:45 am

The w3c has defined an "accept" attribute for the file input which you can use to specify the mime types of files you allow, however the only browser that displays it properly is Opera, and even in Opera it's not a restriction because the user can simply select All Files from the file type...

Post Posted: July 3rd, 2008, 2:32 am

Actually, you *CAN* use php to do this, but I wouldn't recommend it. I wrote a script to do this for a former project I was working on, and for the most part it worked fine (because I was the only one who used it) but there were still some rough spots (See problem list below). Make sure your domain ...

Post Posted: July 3rd, 2008, 1:54 am

is there a reason you're not using $_SESSION? It's automatically passed to each page.

Post Posted: July 1st, 2008, 9:49 am

Actually, because of inheritance, you can use absolutely positioned elements properly inside other elements as long as you specify positioning on the parent element. The reason your page isn't working properly is because absolute positioning is actually not as absolute as some people think it is. It...

Post Posted: April 14th, 2008, 6:43 pm

I know you got your script working, but here's what was wrong with the first one you posted: First problem, fopen returns a handle to the file, when you want to use fwrite to write to the file, you have to reference that handle, not the filename. Your code: [code]fopen($filename, "x+");[/c...

Post Posted: April 14th, 2008, 6:30 pm

Here's a simple example of how to do it: [code]<script type="text/javascript"> <!-- function toggle ( val, ele ) { chk = document.getElementById(ele).checked; if ( chk == true ) { document.getElementById("testarea").value += " "+val; } else { newval = document....

Post Posted: February 27th, 2008, 11:55 am

grinch2171 wrote:
This theme is identical to the main theme used when we were on phpBB2. Those that were using the dark theme on phpBB2 will have to make adjustments considering that theme no longer exists.


Yeah, I know. That's why I stuck with the dark theme when it was phpbb2.

Post Posted: February 27th, 2008, 2:48 am

I hate the topic listings now. I liked having the stats in a nice columnar format. Now I have to look at the fine print to see how many replies, who started the topic, etc. Really annoying and it makes the topic listing confusing. I know phpbb3 is a LOT different than phpbb2 to style (I use it on on...

Post Posted: February 12th, 2008, 2:47 am

IE is the only browser that implements the "tooltip" effect for alt tags. It is not the correct/intended behavior. Spork is correct. The alt attribute for images is "Alternate". It's meant for browsers that can't display the image (usually for visually impaired users) or if the ...

Post Posted: February 12th, 2008, 12:47 am

can you post your myspace url? You can pm it to me if you want.

Post Posted: February 11th, 2008, 6:16 pm

same here :)

Post Posted: February 11th, 2008, 5:42 pm

lol, sup Dog?

Post Posted: February 11th, 2008, 5:39 pm

Too much to change doing that, I already have it seperated with &'s normally in a lot of places... what I did would've worked except one stupid problem I didn't realize. My PHP code prints out javascript that ends up doing an http request... anyway the & symbols were beign converted to diff...

Post Posted: February 11th, 2008, 5:28 pm

You must have other elements with absolute positioning on them then. I just resized my header to 554px and set the top-margin to match and it works fine.

check it: http://www.myspace.com/scienceofspocktest

Post Posted: February 11th, 2008, 3:25 pm

For server side encryption using php, you will want to use mcrypt . Mcrypt requires php to be compiled with the mcrypt library, check with your hosting provider or check phpinfo() to see if your php installation has mcrypt. If it doesn't, you will not be able to use encryption in php. Mcrypt will al...

Post Posted: February 11th, 2008, 1:09 pm

That's not really a problem with your script, it's your mail server refusing to relay mail from an email address that doesn't exist on your server. remove this line and let the server use the default send email address: [code] $headers = "From: " . $your_name . " <"...

Post Posted: February 11th, 2008, 12:59 pm

This should get you started: [code]<div class="masthead"><object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="100" width="800" data="http://www.kgreene.com/myspa...

Post Posted: December 13th, 2007, 8:09 pm

back in HS (a long time ago) I tested at 162. I don't put much stock in IQ scores or other metrics though. All they really measure is your ability to ace that particular test.

Post Posted: December 13th, 2007, 8:02 pm

Hey yall, I need some help with a little office competition I'm taking part of. We've got a bunch of people who have started cities on myminicity.com, and the object is to get our population as high as possible by Jan 30th. (Winner gets bragging rights) To get a higher population, I need people to c...

Post Posted: December 13th, 2007, 1:28 am

Stop using html. Apparently spamassasin is hitting on all the html stuff you're using. I believe most spam busters hit high on HTML emails. If you really think about it, there are very few legitimate reasons you would NEED to use HTML in email (I can't think of any really). Also, most readers do not...

Post Posted: December 13th, 2007, 1:18 am

You can use php with GD to do that, or you can shell out to imagemagick to do it.

Post Posted: November 18th, 2007, 7:34 pm

What gets stored in the database is the actual binary data.

You can just use imagecreatefromjpeg using the tmp_name, as long as you're sure the incoming image is a jpeg.

Post Posted: November 18th, 2007, 4:48 pm

actually, make sure that you're sending image/jpeg and not image/jpg. I've read that IE doesn't like image/jpg. I'm not sure this is an IE issue, but to rule that out, try it in a different browser. If it works, then it is just an IE issue, and probably has to do with the header. Also, during upload...

Post Posted: November 18th, 2007, 3:37 pm

Your problem is most likely not with the conversion (your script looks fine), but with how you're sending the image back to the browser. I'm guessing you're using IE to test, because if you don't send the content type header before the image, IE only gives you the option to store it as a bmp. How ar...

Post Posted: November 18th, 2007, 1:28 am

It's output buffering. Under normal circumstances, php sends data to the browser whenever it can during the execution of a script. Output buffering allows you to control when data is sent to the browser. This is helpful when you are sending a lot of headers, and don't want to worry about having to m...

Post Posted: November 14th, 2007, 2:44 am

Got a question about using php's com class and trying to get a drives VolumeName. I have the following script: [php] $obj = new COM ( 'scripting.filesystemobject' ); if ( is_object ( $obj ) ) { $all = $obj->drives(); foreach ( $all AS $directory ) { echo $directory->DriveLetter."<...

Post Posted: October 21st, 2007, 1:45 pm

Nope. It's user preference. If the user wants it in a tab, it's going in a tab and there's nothing you can do about it.

Post Posted: October 21st, 2007, 2:23 am

php's includes can use relative or absolute filesystem paths, and php also has a default include path in php.ini. When you use include or require with just a filename, php will look for that file in the current directory and in the default include directory. You basically specify subdirs and parent ...

Post Posted: October 20th, 2007, 10:33 am

I hope you didn't pay too much for it. Most of the features they list are available in Apache without having to buy any software.

Post Posted: October 19th, 2007, 3:14 pm

I don't know how (or if) you're actually getting audio in the flv files, sonce they can only use NellyMoser or mp3 and you're not specifying the mp3 audio codec. I use a much simpler command than yours to convert to FLV and I haven't had any problems: [code]$command = "ffmpeg -i ".$inf...

Post Posted: October 15th, 2007, 11:21 pm

yes, php keeps track of includes and requires. When you use include_once or require_once, php checks to make sure the file hasn't already been included. If it has already been included or required it skips it. Also, the difference between includes and requires is in the type of error they throw when...

Post Posted: October 15th, 2007, 4:24 pm

Are the scripts including each other? I know this may sound weird and this is only a suggestion. Lets say you include contact.php into home.php and at contact.php you are including home.php. Just some thought. Also, I don't see any errors when I added a comment. (Visotor :)) http://www.shre...

Post Posted: October 15th, 2007, 1:05 pm

Nope, and it's really the site owner's prerogative whether they want to allow framing or not.

Post Posted: October 15th, 2007, 11:09 am

It may be because native flv files (ie files created or converted in the flash application) don't use the mp3 codec for audio, they uses the proprietary NellyMoser audio codec. Other flv files, like those created using ffmpeg DO use mp3 audio.

Post Posted: October 8th, 2007, 11:51 pm

Sorry, I should have been a little clearer. What I meant is you can add that to any link AS IS, and it will make that link open in a new window. In fact, if you have an editor with a halfway decent search and replace, you can can just: search: target="_blank" replace: onclick="window....

Post Posted: October 8th, 2007, 7:46 pm

you could also use a more general version without having to have a separate javascript function:
Code: [ Select ]
<a href="MyNewWindow.php" title="Opens in a new window" onclick="window.open(this.href);return false;">My New Window</a>
The bea...

Post Posted: October 7th, 2007, 1:01 pm

As Joebert stated, this is a problem with IEs4Linux.

The problem seems to be that the DLL that handles PNG rendering somehow gets unregistered.
There is a fix listed here: http://blog.chaosmeme.com/articles/2007 ... es-4-linux

Post Posted: October 6th, 2007, 7:20 pm

Actually, that will fail whether the server is up or down, because you are running on 2 different servers. When you include from the same server, php treats the included script as if it was part of the parent script. When you include from a remote server, the included script is parsed by php on it's...

Post Posted: October 1st, 2007, 1:16 am

Well, without trying to sound know-it-all and such, you could start with http://www.php.net/mail
In the comments section you'll find quite a few examples.

Post Posted: October 1st, 2007, 1:11 am

.htaccess uses apache rewrite. I'm not sure if you're refering to using rewrite rules in httpd.conf or not, but using .htaccess, you have the same availability to the apache rewrite engine without having to restart apache (as long as mod_rewrite is already turned on). other than that, it's really ju...

Post Posted: September 30th, 2007, 7:48 pm

well, Sony has the backward compatibility database here: http://www.us.playstation.com/Support/CompatibleStatus

Post Posted: September 30th, 2007, 6:07 pm

Another option to look at is DarkBasic. It's a scripting language that compiles to binary and you can build full featured 3D games with it, including multiplayer. If you come from a scripting background, like php or javascript, it's pretty simple to pick up, and their website has tons of example pro...

Post Posted: September 30th, 2007, 5:58 pm

you can also use the php dir class.

Post Posted: August 26th, 2007, 10:58 pm

EVERYTHING at that site is a mirror of Ozzu, except all the posts are posted by the Admin, and he's only listing the first post, not replies. He does have a link back to the original ozzu post in each post though.

Post Posted: August 24th, 2007, 12:41 pm

Can't think of any off hand specifically with SQL, but I have seen some syntax highlighters capitalize keywords. That's the only reason I can think of why the specific words he mentioned would end up capitalized.
I haven't used DBTools but It's possible that it's editor did it.

Post Posted: August 24th, 2007, 12:37 pm

1. The while loop is running forever because the condition will always be true, and you have no breaks to tell it to stop when your condition is met. 2. The while loop isn't needed at all. You are already checking the value of the hex variable and only call the function again with a setTimeout if it...

Post Posted: August 19th, 2007, 12:30 am

Looks to me like all your capitalized words are SQL keywords. Did you open your .sql file in an editor that does sql syntax highlighting? It's possible that DBtools does that automatically.

Post Posted: August 19th, 2007, 12:27 am

You have some problems with your form tags. You have 7 opening form tags, and 6 closing form tags. It appears that your hidden fields aren't actually inside a set of form tags at all. Firefox will allow you to reference form fields that appear outside of a form, but IE will not. To IE, those fields ...

Post Posted: August 15th, 2007, 4:26 pm

You probably want to use the php EXIF functions

Post Posted: August 2nd, 2007, 1:34 pm

imageTTFText will use installed fonts but you can also specify a path to a ttf file on both windows and linux systems and it will work fine. i usually just upload the font i want to use to a fonts directory and point to it in my imageTTFText() call.

Post Posted: July 28th, 2007, 5:57 pm

cool, glad to help.

Post Posted: July 28th, 2007, 5:42 pm

Also, what version of php are you using? the $_POST variable is "relatively" new. If you are using an older version of php, you might try using $HTTP_POST_VARS['url'] instead of $_POST['url']

Post Posted: July 28th, 2007, 5:39 pm

Yes, it should work without register_globals. Change jump.php to this:
PHP Code: [ Select ]
<?php echo "URL:".$_POST['url']; ?>
Then try it again. when it gets to jump.php, it should display the url in the browser window instead of redirecting to it. If it displays: URL: then something else is...

Post Posted: July 28th, 2007, 4:50 pm

when you are using checkboxes with php, you should name them as an array: [code]<tr><td align="right">Area of Interest:</td> <td colspan="3"> <input type="checkbox" name="Area[]" value="Renovation">Renovation...

Post Posted: July 28th, 2007, 4:36 pm

Sounds like jump.php was relying on register_globals to be on, and for some reason, register_globals is now set to off (Possibly your host changed the setting in php.ini) Change jump.php to read:
PHP Code: [ Select ]
<?php header("location:".$_POST['url']); ?>
When you are using get and post v...

Post Posted: May 29th, 2007, 2:15 pm

Your images disappear because the browser *thinks* it's in a different directory, and requests the images from the wrong location. For instance, if you have an image src like this:
Code: [ Select ]
<img src="images/image.jpg"/>
the browser will actually request the image from http://...

Post Posted: May 24th, 2007, 8:34 am

The script was a little longer than I remembered, so rather than paste it in a code block, I just zipped it up and put it on my server:
http://www.kgreene.com/wav_stitch.zip

Post Posted: May 23rd, 2007, 1:01 pm

I actually have a php script that will join multiple wav files into 1 wav file. It correctly strips out the old headers and generates a new header for the new wav file.

It's not that big, so I'll post it when I get home from work.

Post Posted: May 3rd, 2007, 9:36 am

I'm having to parse a form to check attributes on each element. I'm using a loop to cycle through every element in the form, but one thing I'm having a problem with is determining if an element has focus or not. Does anyone know a way to determine if an element has focus without having to set up an ...

Post Posted: February 14th, 2007, 11:43 am

ORDER BY can have some strange effects when using 2 LIMIT's. In your example, the "ORDER BY timeunix DESC" was causing MySQL to start at row 6, and count backwards 5 rows.

Post Posted: February 14th, 2007, 12:37 am

I'm not exactly sure if this is the problem, but shouldn't you have the full path to the fdb file in here:
Code: [ Select ]
$dbh = ibase_connect("nr.fdb", "SYSDBA", "masterkey");

Post Posted: February 13th, 2007, 12:47 am

Did you move the gds32.dll file to your windows/system32/ directory?

Post Posted: January 5th, 2007, 6:42 pm

Very cool. His other vids are pretty impressive too. He's got a lot of raw talent.

Post Posted: January 3rd, 2007, 3:43 pm

Well, it only loads one map at a time, and if you switch maps, it actually loads a different page, so the flash movie doesn't stay loaded when they switch maps. I wonder if it might be a problem with the line data xml, like maybe it's missing a single coordinate or something. I'll look into that.

Post Posted: December 30th, 2006, 3:57 pm

ok, here's the code I'm using. The first part is the xml parser: [code]mob_xml = new XML(); mob_xml.ignoreWhite = true; mob_xml.onLoad = function(success) { if (success) { var startTime = getTimer(); var mobs_xml = mob_xml.firstChild; for (va...

Post Posted: December 27th, 2006, 9:58 am

I'll post it when I get home on the 30th.

Post Posted: December 25th, 2006, 9:57 am

I do that too. Definitely a Homer Simpson "Doh!" moment :)

Post Posted: December 24th, 2006, 11:41 pm

well, that's what I'm doing, attaching an mc with a text field inside, but for some reason, some of the maps refuse to load. It's not a size thing, most of the ones that refuse to load are quite short. I thought there might be some unwanted "odd" characters getting in, but I don't see any....

Post Posted: December 24th, 2006, 11:28 pm

They use a cookie. When you get to the site, they assign you a cookie. When you add something to your wish list, they store it in the DB with your cookie ID.

Post Posted: December 21st, 2006, 2:22 pm

from this page: http://support.microsoft.com/kb/906103/ The power supply has several built-in safeguards to help prevent damage to either the console or the power supply itself. The power supply will automatically turn off in cases of too much current flow, too-high voltage, or too-high temperature....

Post Posted: December 21st, 2006, 12:29 pm

Nope, nothing. I <3 This string file searching tool on my editor... haha If I turn this on: zend.ze1_compatibility_mode = Off Should that make it work with PHP 4? Cause I know my site has no errors on PHP 4.4.4 zend.ze1_compatibility_mode turns on compatibility with Zend Engine 1, which is the e...

Post Posted: December 21st, 2006, 12:22 pm

if you scroll down to the codecs section, you'll see that WMV7 is working fully and WMV8 and 9 are partially working. Otherwise, you are correct. Either way, you have to shell out to a converter program, and because of the proprietary nature of the audio codec used in FMV, the likelyhood of a fully ...

Post Posted: December 21st, 2006, 10:54 am

yeah, I didn't think it was going to. We didn't need sound since it was for video banner ads. Just thought I would throw it out there as a possibility.

Post Posted: December 21st, 2006, 10:19 am

imagemagick can be used to take snapshots from movie clips. Google for "php imagemagick" and check out the imagemagick docs to see how it's done.

Post Posted: December 21st, 2006, 10:17 am

I wrote a script about a year ago in php that would take an uploaded movie file (wmv, avi or mpg), pipe it to a program on the server called ffmpeg and convert it to flv. The only problem is that ffmpeg doesn't support audio in FLV files (it didn't back then anyway) because it's a proprietary format...

Post Posted: December 21st, 2006, 9:48 am

Ok, next batch of questions: 31. Teal'c would win, physically. However, without going into to much detail, and trying not to sound too much like a geek, I don't think they would solve their differences physically :) 32. Mostly flash stuff (I'm learning), but I do read most of the articles on science...

Post Posted: December 20th, 2006, 9:34 am

You just asked this question a few days ago, and the plain and simple answer is that there isn't such a thing. Screen resolution is controlled by the USER and a web browser simply doesn't have access to change it, period.

Post Posted: December 20th, 2006, 9:06 am

Hey y'all! I saw this yesterday morning, but I had to fly down to San Antonio for the holidays. Ok, here are the first 30, I've got a busy day ahead of me shopping :) Lets see, where to begin.... How about at number 1? 1. I was working for an adult affiliate program a few years back, and there is a ...

Post Posted: December 18th, 2006, 7:43 pm

What is that, a nipple? (j/k)

Seriously, I'm with Bogey. I can't see a paypal anything on landscapeandlight.co.uk

Post Posted: December 18th, 2006, 1:39 pm

You don't need to save the file, unless you really want to. Just send the appropriate headers, and echo the data: [php]function csvmaker($filename,$titles,$sql){ foreach ($titles as $val) $csvoutput .= strtoupper(addslashes($val)).","; $csvoutput = substr($csvoutput,0,-1)."\n"; $...

Post Posted: December 18th, 2006, 12:02 pm

Notice in the top of Joebert's script:
PHP Code: [ Select ]
ini_set('max_execution_time', 60);
You're probably running out of time for the script to execute fully, but also have error reporting set so you don't get a message when the script runs out of time. Add something like that, or: [php]set_time_lim...

Post Posted: December 18th, 2006, 11:54 am

He DID ask for javascript. Strangely enough, there are still websites out there that don't use php (I can hardly believe it myself :P )

Post Posted: December 18th, 2006, 1:49 am

No computer that I know of (within the last 15 years or so) has "internal" RAM.

Post Posted: December 17th, 2006, 7:34 pm

Well, using something like php, you would first pull the data from the database (assuming you are using a database). You then use php to echo out the javascript. [php]<?php // set up the database connection // the @ sign silences the error reports from php $conn = @mysql_connect ( "localhost...

Post Posted: December 15th, 2006, 10:14 am

If you can't or don't want to upgrade, there are ways around it:

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

I had that problem on my dev box when MySQL 5 was first released and php didn't support it yet.

Post Posted: December 15th, 2006, 10:11 am

I work from home. There is no such thing as NSFW :P

Post Posted: December 15th, 2006, 2:29 am

david murphy wrote:
These are a little brutal
Some toned down
And one more for good measure


LOL, I just ordered the "I PINGed your mom and got 100% packet loss" shirt from badwool. Thanks for the link.

Post Posted: December 15th, 2006, 2:24 am

Disregard. The problem is with the labels on the maps, not the map data.
Anyone have a good tutorial for adding lots of text at arbitrary locations from an xml file with actionscript?

Post Posted: December 15th, 2006, 1:41 am

Hey yall, I'm having an odd problem with flash and XML. I have vector maps that are basically just text files with x,y,z and r,g,b values that describe 2 point lines. The text files range in size from a few K to almost 2MB. Now, on to the problem. I have a php script that loads a map file, and spits...

Post Posted: December 14th, 2006, 10:55 pm

Yeah, I understand they are probably hoping/planning to make it into a regular series, but the whole part with the "Prophet" in the hospital room was left unfinished, and the end was very anti-climatic.
It got off to a very good start, then just kind of deflated at the end.

Post Posted: December 14th, 2006, 10:45 pm

Oops, you should actually use sort instead of asort. asort preserves keys.

PHP Code: [ Select ]
<?php
 
$arr = array ( "a", "the", "aggression" );
 
sort ( $arr );
 
print_r ( $arr );
 
?>
  1. <?php
  2.  
  3. $arr = array ( "a", "the", "aggression" );
  4.  
  5. sort ( $arr );
  6.  
  7. print_r ( $arr );
  8.  
  9. ?>

Post Posted: December 14th, 2006, 10:43 pm

well, if you were using php (You didn't mention which language), you could put the strings into an array, then use asort to sort the array:
PHP Code: [ Select ]
<?php
 
$arr = array ( "a", "the", "aggression" );
 
asort ( $arr );
 
print_r ( $arr );
 
?>
  1. <?php
  2.  
  3. $arr = array ( "a", "the", "aggression" );
  4.  
  5. asort ( $arr );
  6.  
  7. print_r ( $arr );
  8.  
  9. ?>

Post Posted: December 14th, 2006, 1:42 am

Sounds like you're using href="#" on the tabs and a javascript onclick to actually change the page. If that's what you're doing, get rid of the href="#" and add style="cursor:pointer;". That will stop the jumping. The href="#" tells the page to jump to the top...

Post Posted: December 14th, 2006, 1:20 am

you can do it all with preg_match: [php]<?php $str = "%grdg<fesfa%"; // match a %, followed by any number of upper and lower case letters, followed by <, followed by any number of upper and lower case letters, followed by % if ( preg_match ( "/^[%][a-zA-Z]*[<][a-zA-Z]*[%]$...

Post Posted: December 13th, 2006, 9:43 am

I use Spyware Blaster along with Spybot Search and Destroy. Both very good programs, both free. Google them out.

Post Posted: December 12th, 2006, 7:08 pm

Try here

Post Posted: December 12th, 2006, 2:03 pm

I don't know, I like the 1st and 3rd ones on the second page. I'd like the first one more if it didn't have that useless swoosh curve in it. TOO MANY companies have incorporated some sort of curve into their logo lately, and none of them seem to really have a purpose.

Post Posted: December 11th, 2006, 3:03 pm

One thing I have noticed with windows servers is that their permission model leaves a lot to be desired. For instance, on one server, I didn't have permission to overwrite a file, but I DID have permission to delete the file and upload it fresh. in your upload script, check to see if the file alread...

Post Posted: December 11th, 2006, 1:30 pm

Are they on a shared or virtual host?

Post Posted: December 11th, 2006, 11:54 am

well, that site is storing the png file on the server, then using a feeder script to send the correct headers and force a download. You can still right-click save-as, just make sure you save the file with the right extension. If the browser wants to save it as .bmp, change it to .png. If it wants to...

Post Posted: December 11th, 2006, 12:38 am

Not sure what vid card you have, but it may simply be that your laptop uses shared memory for video.

Post Posted: December 10th, 2006, 11:59 pm

One more thing i would like to add is restrict the user to a particular number while inputting the data, for eg if one inputs his / her firstname then he/she must be allowed to input only 15-20 characters. This is very basic thing but ppl often forgot to get it in practice. This will reduce the ris...

Post Posted: December 10th, 2006, 11:49 pm

Make sure your numbers lock is on, then hold the alt key and type the 3 digit decimal code for the character you want to type on your number pad. For instance, the English pound symbol ( £ ) is 156. You can look up the rest of the codes on google. Just search for ASCII chart or ASCII codes. WARNING:...

Post Posted: December 10th, 2006, 11:33 pm

$_SERVER['HTTP_REFERER'] is just a variable containing the previous page they were on. It has nothing to do with a database. in your script, you have:
PHP Code: [ Select ]
 header ("Location:$location");
If you replace that with:
PHP Code: [ Select ]
 header ("Location:".$_SERVER['HTTP_REFERER']);
T...

Post Posted: December 10th, 2006, 11:28 pm

Right-click save-as should work fine. Make sure when you save it you save it with a .png name. usually, when you try to save a generated image, the browser will try to save it as the script name (like image.php) instead of the image name. IE will sometimes try to save images a .bmp files.

Post Posted: December 10th, 2006, 2:03 pm

well, you can use $_SERVER['HTTP_REFERER'] instead of $location, but in some browsers, or with some security programs, it's possible for the user to block referrer information.

Post Posted: December 8th, 2006, 2:46 pm

The first script is "scroller.js". There shouldn't be any html in it. It's a .js file, only javascript code can be there: [code] function addScrollers() { // code each scroller as follows: // startScroll('id of scroller div','content of scroller'); startScroll(...

Post Posted: December 8th, 2006, 11:49 am

Try Gif Movie Gear. It has a couple of optimization features for gif images.

Post Posted: December 8th, 2006, 11:46 am

ok, it looks like they may be using some kind of session ID to make sure you are actually at their site, or possibly checking the referrer. Not sure why they would do this, except that the details page is supposed to open in a new window and they want to enforce that.

Post Posted: December 8th, 2006, 11:35 am

I did some looking, and .url files support remote icons, but I also know that IE6 wouldn't display the favicon for a site until it was added to your favorites. Perhaps this has something to do with that? Have you tried adding the site to your favorites then downloading the shortcut? Another possibil...

Post Posted: December 8th, 2006, 11:17 am

Works just fine for me. If I click on your link, it takes me to Low-Profile DSX-3, Up to 24-term., with Active Modules

Post Posted: December 8th, 2006, 11:12 am

1: Use stripslashes() on the posted data. This will prevent stacking slashes, where stuff in your database ends up with a bunch of slashes prepended to it (like "...They\\\\\\\'re..."). 2: Make sure the data that is being sent is what you expect. Use preg_match() to make sure they aren't u...

Post Posted: December 8th, 2006, 2:18 am

Athlon XP 2800+ are Socket A. I have one in this machine. It's running at 2.08Ghz.

That doesn't mean his mobo will support it. It may only support original athlons and durons.

Post Posted: December 8th, 2006, 2:07 am

I notice you have windows "skinned". is that an xp theme or some kind of windowShade program? I ask because I've seen windowShade programs screw with window positions before. Have you tried disabling it?

Post Posted: December 7th, 2006, 11:40 pm

Looks like Gotisch SB to me

Post Posted: December 7th, 2006, 8:19 pm

the problem that you're encountering is that the file you're downloading was saved from flash 8 and it's not compatible with flash MX 2004 (Flash 7). In order for it to work, it will need to be loaded into flash 8, then re-saved for flash 7. Note: if the .fla is using any flash 8 specific features, ...

Post Posted: December 7th, 2006, 8:15 pm

IE disregards the embed tag. It's a Netscape tag.
Add the query string to your movie param tag.

Also, you should probably remove the space from your movie name. Not good form for the web.

Post Posted: December 7th, 2006, 5:16 pm

Well, the script you're using doesn't do any browser checking, so it throws the filter CSS in there whether or not the user has IE. Opera is pretty picky about CSS. The solution I use involves php in the style sheet instead of javascript. Also, as Zwirko pointed out, that image would be better using...

Post Posted: December 7th, 2006, 4:59 pm

My guess is that IIS doesn't process error pages on the server, it just sends them straight to the browser, so server side script doesn't get parsed at all.

Post Posted: December 7th, 2006, 4:57 pm

They have a "Charge per query" page yes, but you can also download their "lite" database for free, or pay to download the commercial database. With the downloads, you install the database on your server, so you can query it as often as you like. Tha page I linked to is the downlo...

Post Posted: December 7th, 2006, 12:10 pm

HTTP_REFERER isn't available from getenv(). Try using $_SERVER["HTTP_REFERER"] instead.
Also, remember if you just browse to your phpinfo page, there will be no referrer. A link has to be clicked in order for there to be a referrer.

Post Posted: December 7th, 2006, 10:54 am

Got a link? and perhaps the code you're using for the fix?

Post Posted: December 7th, 2006, 2:07 am

That's Odd. I've been using the webdev toolbar since it was released and I've never had a problem with it.

Post Posted: December 7th, 2006, 1:59 am

my favorite misread domain name: http://www.penisland.net :)

I know, I know, it's a joke site. (Pen Island)

Post Posted: December 7th, 2006, 1:56 am

This may sound really simple, but have you tried adding a To: header?
PHP Code: [ Select ]
$headers .= "To: $ab\n";


Also, all the examples on the php mail() page use \r\n as a line terminator. I know that linux uses \n, but it's worth a shot. Mail servers can be finicky.

Post Posted: December 7th, 2006, 1:46 am

I'm seeing the jitters when I scroll the page, but I doubt that's J2EE. since it's server side. It's possibly the embedded video and flash. There's a lot of rich media on that page.
I haven't tried any of the forms, but it's possible thay're slow because of J2EE.

Post Posted: December 7th, 2006, 1:35 am

If you're on the same LAN, why wouldn't you just share your old music drive on the network, then copy the music to your new computer through the network?

Post Posted: December 7th, 2006, 1:31 am

Well, there isn't a car audio forum, so this is pretty much the best place to post this on ozzu. Personally, I would go with the second one, mostly because it's brand new and the other one is a refurb unit. I've had bad luck with refurb car stereos in the past. Other than that, the only difference I...

Post Posted: December 7th, 2006, 12:13 am

when using LIKE and %, your search terms should go inside single quotes with the % sign:
Code: [ Select ]
$query="SELECT * FROM book where " . $searchtype . " like '%" . $searchterm . "%'";

Post Posted: December 6th, 2006, 11:45 pm

Exactly what Chris-Duff said. Draft a strict contract that states EXACTLY what is expected of both sides.
If nothing else, it gives you something signed that is legally actionable.

Post Posted: December 6th, 2006, 7:35 pm

I've posted this like 3 times now, lol. Maybe we need a sticky topic for it. Maxmind.com offers a free (GPL) database for city lookup by IP address. From that, you can convert the long/lat to a x/y coord on a map. http://www.maxmind.com/app/geolitecity They also have a more accurate version, but tha...

Post Posted: December 6th, 2006, 10:43 am

Chris-Duff wrote:
MS might have but it doesn't work very well very well -- certainly not in IE6


Well, that's because when IE introduced it, the only thing that was acceptable for use was a real microsoft .ico file. Many people didn't know this and figured it was just buggy when they tried to use a gif or a jpg.

Post Posted: December 6th, 2006, 10:35 am

Just add
Code: [ Select ]
$line = array_reverse ( $line );

right after
Code: [ Select ]
$line = file ( "YOUR_TEXT_FILE.txt" );

Post Posted: December 6th, 2006, 2:12 am

[code]<?php // This will read the text file into an array, with one line per array element // change YOUR_TEXT_FILE.txt to point to your real text file $line = file ( "YOUR_TEXT_FILE.txt" ); // create a variable to contain the table, and add the starting table tag $outpu...

Post Posted: December 6th, 2006, 1:54 am

Debuggler wrote:
Explorer 7.0 is now supporting favicons.


What exactly do you mean by this? Microsoft introduced the favicon back with IE 3 or 4. It's only relatively recently that the other browsers have started using them as well.

Post Posted: December 4th, 2006, 10:15 am

Presumably. There are a lot more factors than just setting the session variable, though. What version of php are you using? Some versions of php won't allow you to just set a session variable without first starting the session with session_start() unless you have session_auto_start turned on in your...

Post Posted: December 4th, 2006, 10:09 am

This is the problem:
Code: [ Select ]
ipaddressfrom ipaddressto ipnumberfrom ipnumberto code country 6.0.0.0 7.57.75.31 100663296 121195295 US UnitedStates 61.247.255.255 61.247.255.255 1039654912 1039663103 IN India
For the IP: 61.247.251.29 the ipnumb...

Post Posted: December 4th, 2006, 9:53 am

I am not an expert on C++, but sounds like you just need to cast the incoming data to int when you assign it to the ch_score array:
Code: [ Select ]
rx_msg[i]=receive(); ch_score[i]=int(rx_msg[i]); // functional notation
or [code] rx_msg[i]=receive(&#...

Post Posted: December 4th, 2006, 1:55 am

You only had the AJAX connection set up for IE. try this: [code]<script language="javascript" > //Set how often to update var intsecods = 5; //Set the url to get data from var url = "http://www.trinitysoundsystem.com/edmomaha/nowplaying.php" var x=setInterva...

Post Posted: December 3rd, 2006, 2:50 am

IceCold wrote:
oooh ... you know the old Dizzy collection? :D
yes, that's treasure island dizzy. Loved the Dizzy serie ... like 10 -14 years ago :D


Incidentally, I found where you can download the Dizzy series. It's considered abandonware now :)

http://www.abandonia.com/genre.php?genre=arcade&page=2

Post Posted: November 30th, 2006, 5:01 pm

Pot, this is Kettle. Kettle, Pot.

Post Posted: November 30th, 2006, 4:59 pm

Did you read what I wrote at all? That code outputs the proper css code based on the browser. If the browser doesn't support png, IT OUTPUTS A GIF IMAGE. How is that "far beyond accurate?" Lets run down the thread real quick: Cadalyst asked basically if it was ok to use PNG on the web. ATN...

Post Posted: November 30th, 2006, 10:32 am

I don't care how much money Macromedia or Adobe are worth. They don't set the standards. W3C does. W3C calls it a div, not a layer.

Post Posted: November 30th, 2006, 10:24 am

Actually, my objective is to provide as much correct information as I can. What you posted was incorrect. I was simply providing accurate information. It's nothing personal.

Post Posted: November 29th, 2006, 8:21 pm

yeah, you can store the md5 hash, but it's not reversible.

Post Posted: November 29th, 2006, 8:14 pm

All my css files are actually php files. At the top of the file, I have a function that checks the browser and returns the correct background-image string. For IE, it returns the filter tag, for all others it returns a standard url() tag. I got this function from some website about a year ago. I don...

Post Posted: November 29th, 2006, 6:34 pm

Actually, IE6 DOES support alpha transparency in PNG images, you just have to use a IE filter in the style sheet.
Code: [ Select ]
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/images/image.png', sizingMethod='scale');

Post Posted: November 29th, 2006, 6:25 pm

*technically* there is no limit to how long a url + querystring can be, but I do remember that IE used to truncate them to a really odd number a few years ago. We found out that we werent getting back all the data from one of our callback scripts, so we investigated and found that IE was truncating ...

Post Posted: November 29th, 2006, 4:31 pm

You call it what you want. I'm just trying to say that if you use the term layer in place of div, you're just going to confuse people. The Layer tag is gone. It's called Div now.

Post Posted: November 29th, 2006, 11:27 am

ScienceOfSpock, if you know, <div> tag is also know as layout layers, anything that can be placed over another object is referred to as {layers} ;) No, the <div> tag is called a <div> tag. I can place an image over another element, is that referred to as a layer instead of an imag...

Post Posted: November 29th, 2006, 1:51 am

well, the game is an RPG, and is based on php. The flash is just the display part. The actual game mechanics are handled in php and javascript.

Post Posted: November 28th, 2006, 5:31 pm

Code: [ Select ]
<a href="mailto:rimafarah@btinternet.com?subject=Blue+Canvas">Email Me</a>


Use a plus sign (+) to replace spaces.

Post Posted: November 28th, 2006, 4:12 pm

In addition to what joebert wrote, CSS2 also specifies a handheld media type for just this sort of thing.

http://www.w3.org/TR/REC-CSS2/media.html

Post Posted: November 28th, 2006, 2:25 pm

The way I understand it, depths in flash work like z-index in CSS, with the exception that you can only have 1 object per depth in flash. If you have 2 movieclips in the same relative x,y location, one on depth 1 and the other on depth 5, the mc on depth 5 will obscure the one on depth 1, so that in...

Post Posted: November 28th, 2006, 2:17 pm

well, the format string should be in quotes, but basically you get the idea.
Code: [ Select ]
date("M D, y", $unixtime);
However, the format you specified would result in a date like this: Nov Tue, 06 You probably want something more like this: [code] date ( "M d, Y", $un...

Post Posted: November 28th, 2006, 1:05 pm

Take a look at the date function. It accepts a timestamp as the second argument.

Post Posted: November 28th, 2006, 1:02 pm

Not sure what the problem is without a link, but wouldn't it just be easier to get rid of the outside table and add a 2px border to the inside table?
like:
Code: [ Select ]
<table style="border: 2px solid #000000;">...

Post Posted: November 28th, 2006, 12:55 pm

[code]<form> <select id="test1" name="test1" onchange="if(this.value!='xx'){document.getElementById('test2').value=this.options[selectedIndex].text;}"> <option value="xx">Select value</...

Post Posted: November 28th, 2006, 12:39 pm

And actually, disregard what littlephoenix wrote. You aren't using layers incorrectly. You aren't using layers at all. I guess s/he looked at your css, saw a few id's with "layer" in the name and assumed. Layers haven't been in use since NS4 and have since been replaced by the <div> ...

Post Posted: November 28th, 2006, 12:35 pm

For one thing, you are specifying XHTML 1.0 Transitional as your doctype, but XHTML doesn't support the bordercolor property for any element. All styling should be done in CSS. This includes borders, background images and background colors. Instead of doing this: [code]<td width="251" b...

Post Posted: November 28th, 2006, 12:22 pm

something like this? [code]<form> <select id="test1" name="test1" onchange="if(this.value!='xx'){document.getElementById('test2').value=this.value;}"> <option value="xx">Select value</option> &l...

Post Posted: November 28th, 2006, 11:47 am

it's a simple loop. There are some calculations on where the tile should go, but basically it looks like this: [code]z=0; for ( y = startY; y < endY; y++ ) { for ( x = startX; x < endX; x++ ) { newTile = _root.attachMovie("t"+_root.map_arr[y&...

Post Posted: November 28th, 2006, 1:45 am

That's what I tried first. When that didn't work, I thought it was a depth issue, so I added that. Anyway, it works now.

Post Posted: November 27th, 2006, 6:18 pm

Nevermind. The problem was that when the drawmap function is called, it draws out all the tiles and all the overlays using different names in the attachmovie method. I changed the function to use the same name for all of them, and now it cleans up just fine. Not sure why using different names on att...

Post Posted: November 27th, 2006, 1:23 pm

I got around that problem. I was noticing the zoom problem, so what I did was make the swf 1600x1200, then put it in a container div with overflow: hidden; and centered the movie in the div. Works pretty well. The whole reason for this is i wanted users to be able to resize the map window to fit the...

Post Posted: November 26th, 2006, 9:33 pm

Actually, I just noticed you didn't wrap your strings in quotes.
Code: [ Select ]
on (release) { myVar = "trained.htm"; play(); } on (release) { myVar = "aboutus.htm"; play(); }
[code]stop(); if (myVar == "...

Post Posted: November 26th, 2006, 7:26 pm

you probably want to look into php's fsockopen or curl functions.

Post Posted: November 26th, 2006, 7:16 pm

What is the time range on that stat shot?

Post Posted: November 26th, 2006, 7:14 pm

it has a 45 day no-restrictions trial. Last time I checked, it was still $40. The feature list is comparable to most higher priced editors, and the syntax highlighting is completely customizable, and it even has a hex editor.

Post Posted: November 26th, 2006, 6:36 pm

the only thing I can see wrong is that your myVar may not be carrying through to the getURL call. Try adding a trace(myVar); just before the getURL call and test it in flash to see if myVar is actually getting through. If it's not, create it as an empty string in the root timeline, then when you ref...

Post Posted: November 26th, 2006, 3:00 pm

A report today said in the past 5 months, spam has almost trebled They are saying that 90% of emails now are spam So every 10 emails you recieved, 9 of them are spam (This is an average, working without any spam blockers) The report is here http://www.timesonline.co.uk/article/0,,2087-2460324,00.ht...

Post Posted: November 25th, 2006, 10:45 pm

Actually, the Unix Epoch is a specific date, January 1, 1970. Do you mean converting a unix timestamp to a readable format?

What programming language are you using?

Post Posted: November 25th, 2006, 1:59 pm

I prefer Ultraedit. I've been using it for years. It provides support for Unicode and UTF-8, and it's a disk based editor. I have Zend studio too, but it's bulky and slow, probably because it's written in Java. If i'm in linux, I use Eclipse or Vim.

Post Posted: November 24th, 2006, 4:15 pm

http://www.htmldog.com/reference/htmltags/col/

Post Posted: November 24th, 2006, 2:20 pm

The problem with the thumbnails not loading is because of the URL. If you specify a url at all in flash when loading xml or images or anything, it has to match the url that the flash is on EXACTLY. In your code, you're doing this: [code]myPhoto.load("http://www.laurentilden....

Post Posted: November 24th, 2006, 2:06 pm

i restart the apache it does't display error message this time but does't change the url to http://localhost/scart/home/ i use the following code RewriteEngine On RewriteRule ^scart/([a-zA-Z\ ]+)$ /index.php?action=$1 ok, I think we're having a bit of miscommunication here. Mod_rewrite will not cha...

Post Posted: November 24th, 2006, 4:01 am

Yeah, I forgot one thing: put:
Code: [ Select ]
RewriteRule ^/$ /
at the end of your .htaccess file, so it looks like this:
Code: [ Select ]
RewriteEngine On RewriteRule ^scart/([a-zA-Z\ ]+)$ /index.php?action=$1 RewriteRule ^/$ /
Then reload it a few times (to get rid of browser cache)

Post Posted: November 24th, 2006, 3:17 am

Oh yeah, when you change your http.conf, you need to restart apache. If that doesn't help, can you post the server error you are getting?

Post Posted: November 24th, 2006, 2:27 am

Apache needs to load the rewrite module for mod_rewrite to work. If you're on shared hosting, or virtualhost, you will need to talk to your hosting company to get it turned on. If you have control of your own server, you will need to uncomment the following line in your http.conf: change: [code]#Loa...

Post Posted: November 24th, 2006, 12:43 am

Actually, I think they're talking about XML forms, or xforms: http://www.w3.org/TR/xforms11/

Post Posted: November 24th, 2006, 12:29 am

Here is a simple .htaccess file:
Code: [ Select ]
RewriteEngine On RewriteRule ^shop/([a-zA-Z\ ]+)$ /index.php?action=$1
This will take a url like: http://www.yoursite.com/shop/home and translate it to http://www.yoursite.com/index.php?action=home Only the first URL will show in the...

Post Posted: November 24th, 2006, 12:14 am

No, that doesn't work in MySQL, only the SET column_var = column_var+2 works.

Post Posted: November 23rd, 2006, 10:23 pm

Well, I haven't done much work with mp3's in flash, but i can tell you about the vocal blanking stuff: Good luck. I have tried SEVERAL vocal removers, including some professional plugins for sound forge, and NONE of them work worth a crap. They only work when the vocals are in a completely different...

Post Posted: November 23rd, 2006, 10:07 pm

Just because :) Me and a friend were fooling around on godaddy and decided to see how many characters it would let you put in a domain name, which was 62 characters. We tried a few phrases and that one just happened to be on topic AND fit exactly 62 characters, so I bought it for novelty's sake. I h...

Post Posted: November 23rd, 2006, 5:09 pm

Incidentally, I have another question:
Can the _root movie be resized on the fly?

Post Posted: November 23rd, 2006, 4:13 pm

That was an image in the link, not a site.

Post Posted: November 23rd, 2006, 3:33 pm

Well, I got my xml working and can now swap out maps on the fly, but now I'm running into another problem. My maps originally were 100x100, and that works fine, and loads quickly, so I decided to go larger, and built a map that is 100x200, and that loads fairly quickly as well. All in all, I'm prett...

Post Posted: November 23rd, 2006, 12:51 pm

I actually own thatisthelongestdamndomainnameihaveeverseenyoucrazysonofabitch.com

which is 62 characters (not counting the .com)

Post Posted: November 20th, 2006, 4:48 am

Exactly. I prefer to compare it to the old Ultima series, but that's mostly because that's what I grew up on. I've never played Zelda intentionally :)

That screen shot you linked to is Treasure Island Dizzy, isn't it?

Post Posted: November 18th, 2006, 5:09 pm

well, mine isn't fully flash. I'm just using flash for some of the heavier functions. The rest of it is php/ajax. You can see the old version here http://www.kgreene.com/rpg. I'm basically rewriting the entire UI right now.

Post Posted: November 17th, 2006, 5:48 pm

The dummy clip method doesn't seem to be working. Here's what I did. If you can see anything wrong with it, please let me know. 1. Created a new movie, pasted the array data into the actions area, and exported it as map1.swf. 2. In my main movie, I created a new movieclip, and named it mapData and d...

Post Posted: November 17th, 2006, 1:42 pm

First, I know that included actionscript files are loaded at compile time and cannot be included on the fly, but I have a need to be able to swap out some actionscript arrays arbitrarily. I'm building a tilemap display for a game, and basically, it's a swf with about 300 tile images in the library, ...

Post Posted: November 12th, 2006, 5:20 am

It sounds like you're missing a closing tag somewhere. IE will correct this for you, and display it correctly, because it is dumb. Firefox, on the other hand, will leave it as is, and display it broken. Double check your <td> and <tr> tags and make sure you don't have anything missing.

Post Posted: October 31st, 2006, 1:06 pm

Thanks for the help. That was easier than I expected.

Post Posted: October 30th, 2006, 4:31 pm

When you import items to the stage, Flash imports them to the center of the work area, not the center of the movie. Double click the pan button to center the movie in the work area before importing your frames and they should import without the offset.

Post Posted: October 30th, 2006, 2:41 pm

Hi yall, I'm having a problem generating dynamic text fields in Flash MX Pro. I know how to create a text field through actionscript, the problem is that I have to create an arbitrary number of them. I'm working on a mapping application that draws vector maps, and that part is all done and working p...

Post Posted: October 17th, 2006, 8:18 pm

Man, I wish I was back in SA for that.
  • Sort by
 
 

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.