[PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Lamonte
Okay I created a script that changes a basic smiley face into a red smiley face..but it doesn't replace all the yellow, it looks like a yellow shadow in the background: $color = imagecolorallocate($im,hexdec(substr($hex,0,2)),hexdec(substr($hex,2,2)),hexdec(substr($hex,4,6))); for($cloneH=0;$

Re: [PHP] Re: Setting a variable inside a function and making itglobal insideaninner function doesn't work?

2008-03-11 Thread Lamonte
Shawn McKenzie wrote: Lamonte wrote: Shawn McKenzie wrote: Lamonte wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Lamonte wrote: Setting a variable inside a function and making it global inside an inner function

Re: [PHP] Re: Setting a variable inside a function and making it global insideaninner function doesn't work?

2008-03-11 Thread Lamonte
Shawn McKenzie wrote: Lamonte wrote: Shawn McKenzie wrote: Shawn McKenzie wrote: Lamonte wrote: Setting a variable inside a function and making it global inside an inner function doesn't work? Right well I have created this function: [code] fun

[PHP] Setting a variable inside a function and making it global inside an inner function doesn't work?

2008-03-11 Thread Lamonte
Setting a variable inside a function and making it global inside an inner function doesn't work? Right well I have created this function: [code] function getForumChildrenTree( $id ) { $id = intval( $id ); $treeResult = array( 'topics' => array(), 'posts' => array(), '

[PHP] Re: Whats faster? simplexml_load_string or simplexml_load_file?

2008-03-11 Thread Lamonte H
Daniel Brown gmail.com> writes: > snipped It worked like a charm, thanks. Made it a bit faster. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I search the archives?

2008-03-11 Thread Lamonte H
I went to the page, but I didn't find a search box and what not. Is there a way to search the archives? Else when I get home I'll just create a script to DL all the links to a page then create a simple search box.

[PHP] Timezone management

2008-03-11 Thread Lamonte H
After a while of studying different softwares, I've still been getting confused on how to make a timezone management script to display time in different time zones. Like right now im in -0600 CST GMT, how would I create a script that would work on any server that would allow me to display my cur

Re: [PHP] Why use session_register()?

2008-03-10 Thread Lamonte H
So you wouldn't need to use session_start() when dealing with session_register()? On 3/10/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 10, 2008 at 12:15 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 10, 2008 at 12:08 PM, Lamonte H <[EM

[PHP] Why use session_register()?

2008-03-10 Thread Lamonte H
Is it necessary to use session_register()? What exactly was the point of this function if you can set sessions using $_SESSION it self?

[PHP] Whats faster? simplexml_load_string or simplexml_load_file?

2008-03-08 Thread Lamonte
I was wondering this because at the moment using simplexml_load_file makes my script go at about 2 seconds per page load, in a loop. Then I created a cache system so it doesn't keep loading the xml file, but I'm wondering if theres a faster way to load xml QUICKER, is it possible with "file_ge