<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Webmaster Forum</title>
		<description>Webmaster discussion on numerous topics including Website design, programming, scripting, hosting, server administration, search engines, and operating systems</description>
		<link>http://www.ozzu.com/</link>
		<lastBuildDate>Sat, 07 Nov 2009 06:03:02 -0800</lastBuildDate>
				<item>
			<dc:creator>CGFX</dc:creator>
			<pubDate>Fri, 06 Nov 2009 13:04:56 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-form-issue-t100907.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-form-issue-t100907.html</link>
			<title>PHP Form Issue</title>
			<description><![CDATA[Ozzu,<br /><br />I am having trouble with transferring my website visitors information from the HTML form to my PHP file to my designated email address.<br /><br />All I see when I open am email is this: <br /><br /><br /><br />--------------------------------------------------------------------------------<br /><br />Name: <br />Email: <br />Phone Number: <br />Comment: <br /><br />The above displays the field name of each row, but the input data from the websites visitors. <br /><br />Below is the PHP code I wrote, any suggestions?<br />Thanks cgfX<br /><br /><br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;"><br />&lt;?php<br /><br />/* Subject and Email Variables */<br /><br />	$emailSubject = Contact Us!;<br />	$webMaster = putEmailAddressHere;<br />	<br />/* Gathering Data Variables */<br /><br />	$name = $_POST &#91;name&#93;;<br />	$email = $_POST &#91;email&#93;;<br />	$phone = $_POST &#91;phone&#93;;<br />	$comment = $_POST &#91;comment&#93;;<br />	<br />	$body = &lt;&lt;&lt;EOD<br />&lt;br&gt;&lt;hr&gt;&lt;br&gt;	<br />Name: $name &lt;br&gt;<br />Email: $email &lt;br&gt;<br />Phone Number: $phone &lt;br&gt;<br />Comment: $comment &lt;br&gt;<br />EOD;<br /><br />	$headers = &quot;From: $emailrn&quot;;<br />	$headers .= &quot;Content-type: text/htmlrn&quot;;<br />	$success = mail($webMaster, $emailSubject, $body, $headers);<br />	<br />/* Result rendered as HTML */<br /><br />	$theResults = &lt;&lt;&lt;EOD<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-9&quot; /&gt;<br />&lt;title&gt;Website Name |  Thank You&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />Thank you very much, your email will be answered very soon. &lt;a href=&quot;websiteAddressHere/&quot;&gt;Click here&lt;/a&gt; to go back to our site.<br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br />EOD;<br />echo &quot;$theResults&quot;;<br /><br />?&gt;<br /></pre>]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
				<item>
			<dc:creator>CGFX</dc:creator>
			<pubDate>Fri, 06 Nov 2009 12:59:48 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-form-issue-t100906.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-form-issue-t100906.html</link>
			<title>PHP Form Issue</title>
			<description><![CDATA[Ozzu,<br /><br />I am having trouble with transfering my website visitors information from the HTML form to my PHP file to my desinated email address.<br /><br />All I see when I open am email is this:<br /><br /><br /><br />--------------------------------------------------------------------------------<br /><br />Name: <br />Email: <br />Phone Number: <br />Comment: <br /><br />The above displays the field name of each row, but the the input data from the websites visitors. <br /><br />Below is the PHP code I wrote, any suggestions?<br />Thanks cgfX<br /><br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;"><br />&lt;?php<br /><br />/* Subject and Email Variables */<br /><br />	$emailSubject = Contact Us!;<br />	$webMaster = emailaddressHere;<br />	<br />/* Gathering Data Variables */<br /><br />	$name = $_POST &#91;name&#93;;<br />	$email = $_POST &#91;email&#93;;<br />	$phone = $_POST &#91;phone&#93;;<br />	$comment = $_POST &#91;comment&#93;;<br />	<br />	$body = &lt;&lt;&lt;EOD<br />&lt;br&gt;&lt;hr&gt;&lt;br&gt;	<br />Name: $name &lt;br&gt;<br />Email: $email &lt;br&gt;<br />Phone Number: $phone &lt;br&gt;<br />Comment: $comment &lt;br&gt;<br />EOD;<br /><br />	$headers = &quot;From: $emailrn&quot;;<br />	$headers .= &quot;Content-type: text/htmlrn&quot;;<br />	$success = mail($webMaster, $emailSubject, $body, $headers);<br />	<br />/* Result rendered as HTML */<br /><br />	$theResults = &lt;&lt;&lt;EOD<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-9&quot; /&gt;<br />&lt;title&gt;Allied-Cocoa Inc. |  Thank You&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />Thank you very much, your email will be answered very soon. &lt;a href=&quot;websiteHomePage/&quot;&gt;Click here&lt;/a&gt; to go back to our site.<br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br />EOD;<br />echo &quot;$theResults&quot;;<br /><br />?&gt;<br /></pre>]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>CGFX</dc:creator>
			<pubDate>Fri, 06 Nov 2009 12:57:37 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-form-issue-t100905.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-form-issue-t100905.html</link>
			<title>PHP Form Issue</title>
			<description><![CDATA[Ozzu,<br /><br />I am having trouble with transfering my website visitors information from the HTML form to my PHP file to my desinated email address.<br /><br />All I see when I open am email is this:<br /><br /><br /><br />--------------------------------------------------------------------------------<br /><br />Name: <br />Email: <br />Phone Number: <br />Comment: <br /><br />The above displays the field name of each row, but the the input data from the websites visitors. <br /><br />Below is the PHP code I wrote, any suggestions?<br />Thanks cgfX<br /><br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;"><br />&lt;?php<br /><br />/* Subject and Email Variables */<br /><br />	$emailSubject = Contact Us!;<br />	$webMaster = chiflame1yahoocom;<br />	<br />/* Gathering Data Variables */<br /><br />	$name = $_POST &#91;name&#93;;<br />	$email = $_POST &#91;email&#93;;<br />	$phone = $_POST &#91;phone&#93;;<br />	$comment = $_POST &#91;comment&#93;;<br />	<br />	$body = &lt;&lt;&lt;EOD<br />&lt;br&gt;&lt;hr&gt;&lt;br&gt;	<br />Name: $name &lt;br&gt;<br />Email: $email &lt;br&gt;<br />Phone Number: $phone &lt;br&gt;<br />Comment: $comment &lt;br&gt;<br />EOD;<br /><br />	$headers = &quot;From: $emailrn&quot;;<br />	$headers .= &quot;Content-type: text/htmlrn&quot;;<br />	$success = mail($webMaster, $emailSubject, $body, $headers);<br />	<br />/* Result rendered as HTML */<br /><br />	$theResults = &lt;&lt;&lt;EOD<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-9&quot; /&gt;<br />&lt;title&gt;Allied-Cocoa Inc. |  Thank You&lt;/title&gt;<br />&lt;/head&gt;<br /><br />&lt;body&gt;<br />Thank you very much, your email will be answered very soon. &lt;a href=&quot;allied-cocoacom/&quot;&gt;Click here&lt;/a&gt; to go back to our site.<br /><br />&lt;/body&gt;<br />&lt;/html&gt;<br />EOD;<br />echo &quot;$theResults&quot;;<br /><br />?&gt;<br /></pre>]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>HaydenJW</dc:creator>
			<pubDate>Fri, 06 Nov 2009 12:56:42 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/dynamic-forms-t100904.html</guid>
			<link>http://www.ozzu.com/programming-forum/dynamic-forms-t100904.html</link>
			<title>Dynamic Forms</title>
			<description><![CDATA[Hello everyone,<br /><br />Ive done some searching on the forum but I havent been able to find anything that answers this question:<br /><br />Is it possible through JavaScript to make a form made up of 3 drop-down inputs that each subsequent inputs is based off the input of the prior. I would like to have users be able to select the year of the automobile they are looking for; then, have the list of all makes available in that year; then, all the makes from that Year and Make. Then, submission will be sent to an ASP server, eventually getting them to a page for that specific car.<br /><br />Thanks in advance,<br />Hayden]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>VeggiesanTaters</dc:creator>
			<pubDate>Thu, 05 Nov 2009 12:36:29 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/light-div-page-load-once-per-refresh-t100889.html</guid>
			<link>http://www.ozzu.com/programming-forum/light-div-page-load-once-per-refresh-t100889.html</link>
			<title>light up div on page load once per refresh?</title>
			<description><![CDATA[Everytime the page loads I need a message banner div to light up so people will take notice of it. <br />Does anyone know how I could do this? I figured it would have something to do with onload and a javascript function. <img src="./images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed"> <br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;"><br />&lt;!-- lit up div --&gt;<br />#title {<br />background:#ffc;<br />border: 1px dotted #CCCCCC;<br />padding:12px 1px 6px 1px;<br />margin-top:0px;<br />width: 370px;<br /> margin-left: auto ;<br />  margin-right: auto ;<br />}<br />&lt;!-- lit up div --&gt;<br /><br />&lt;!-- div in its normal state --&gt;<br />#title {<br />background:#E8E8E8;<br />border: 1px dotted #CCCCCC;<br />padding:12px 1px 6px 1px;<br />margin-top:0px;<br />width: 370px;<br /> margin-left: auto ;<br />  margin-right: auto ;<br />}<br />&lt;!-- div in its normal state --&gt;<br /><br />&lt;div id=&quot;title&quot;&gt;<br />&lt;center&gt;Top 10 List &lt;/center&gt;<br />&lt;/div&gt;<br /></pre>]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 5</description>
		</item>
				<item>
			<dc:creator>Steve[D]</dc:creator>
			<pubDate>Thu, 05 Nov 2009 08:19:20 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/help-with-redirecting-using-htaccess-file-t100881.html</guid>
			<link>http://www.ozzu.com/programming-forum/help-with-redirecting-using-htaccess-file-t100881.html</link>
			<title>Help With Redirecting Using htaccess File!</title>
			<description><![CDATA[Hi,<br /><br />I currently have four links to my forum as listed below:<br /><br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;">http://mysite .com/forum/<br />http://mysite .com/forum/index.php<br />http://www.mysite .com/forum/<br />http://www.mysite .com/forum/index.php</pre><br /><br /><br />Ive heard that Google can mistake these for 4 different websites which can lead to split results and poor ranking. So how can I edit my .htaccess file so that each of the above redirects to just one;<br /><br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;">http://www.mysite .com/forum/</pre><br /><br /><br />Im using vbulletin, if that makes any difference.<br /><br />Many Thanks,<br />Steve.  <img src="./images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy">]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 4</description>
		</item>
				<item>
			<dc:creator>Bozebo</dc:creator>
			<pubDate>Thu, 05 Nov 2009 08:12:59 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/directx-refusing-compile-t100880.html</guid>
			<link>http://www.ozzu.com/programming-forum/directx-refusing-compile-t100880.html</link>
			<title>c++ directX. Refusing to compile</title>
			<description><![CDATA[Hi, I have been following a <span class="postlink">nice directX tutorial</span> for a while. I have been able to get everything to work up until the point it uses the windowsx.h and d3dx9.h header files.<br />(I am using dev c++)<br /><br />Weirdly, it seems to think there are errors in the header files:<br /><p>QUOTE:</p><blockquote style="border:1px solid #000000; background-color:#eeeeee;">&quot;5 C:Dev-Cppincludedxd3dx9.h:46,               from main.cpp In file included from C:/Dev-Cpp/include/dx/d3dx9.h:46,               from main.cpp &quot;<br /><br />&quot;46 C:Dev-Cppincludedxd3d9.h:290,               from C:Dev-Cppincludedxd3dx9.h In file included from C:/Dev-Cpp/include/dx/d3d9.h:290,               from C:/Dev-Cpp/include/dx/d3dx9.h &quot;<br /><br />&quot;51 C:Dev-Cppincludedxd3d9types.h redefinition of struct _D3DVECTOR &quot;<br /></blockquote><br />(there are hundreds of similar errors)<br /><br /><br />Here is my code (though I am certain it is fine):<br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;"><br />// include the basic windows header files and the Direct3D header file<br />#include &lt;windows.h&gt;<br />#include &lt;windowsx.h&gt;<br />#include &lt;d3d9.h&gt;<br />#include &lt;d3dx9.h&gt;<br /><br />// define the screen resolution<br />#define SCREEN_WIDTH 800<br />#define SCREEN_HEIGHT 600<br /><br />// include the Direct3D Library files<br />#pragma comment (lib, &quot;d3d9.lib&quot;)<br />#pragma comment (lib, &quot;d3dx9.lib&quot;)<br /><br />// global declarations<br />LPDIRECT3D9 d3d;    // the pointer to our Direct3D interface<br />LPDIRECT3DDEVICE9 d3ddev;    // the pointer to the device class<br />LPDIRECT3DVERTEXBUFFER9 v_buffer = NULL;    // the pointer to the vertex buffer<br /><br />// function prototypes<br />void initD3D(HWND hWnd);    // sets up and initializes Direct3D<br />void render_frame(void);    // renders a single frame<br />void cleanD3D(void);    // closes Direct3D and releases memory<br />void init_graphics(void);    // 3D declarations<br /><br />struct CUSTOMVERTEX {FLOAT X, Y, Z; DWORD COLOR;};<br />#define CUSTOMFVF (D3DFVF_XYZ | D3DFVF_DIFFUSE)<br /><br />// the WindowProc function prototype<br />LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);<br /><br /><br />// the entry point for any Windows program<br />int WINAPI WinMain(HINSTANCE hInstance,<br />                   HINSTANCE hPrevInstance,<br />                   LPSTR lpCmdLine,<br />                   int nCmdShow)<br />{<br />    HWND hWnd;<br />    WNDCLASSEX wc;<br /><br />    ZeroMemory(&amp;wc, sizeof(WNDCLASSEX));<br /><br />    wc.cbSize = sizeof(WNDCLASSEX);<br />    wc.style = CS_HREDRAW | CS_VREDRAW;<br />    wc.lpfnWndProc = WindowProc;<br />    wc.hInstance = hInstance;<br />    wc.hCursor = LoadCursor(NULL, IDC_ARROW);<br />    wc.lpszClassName = L&quot;WindowClass&quot;;<br /><br />    RegisterClassEx(&amp;wc);<br /><br />    hWnd = CreateWindowEx(NULL, L&quot;WindowClass&quot;, L&quot;Our Direct3D Program&quot;,<br />                          WS_OVERLAPPEDWINDOW, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,<br />                          NULL, NULL, hInstance, NULL);<br /><br />    ShowWindow(hWnd, nCmdShow);<br /><br />    // set up and initialize Direct3D<br />    initD3D(hWnd);<br /><br />    // enter the main loop:<br /><br />    MSG msg;<br /><br />    while(TRUE)<br />    {<br />        while(PeekMessage(&amp;msg, NULL, 0, 0, PM_REMOVE))<br />        {<br />            TranslateMessage(&amp;msg);<br />            DispatchMessage(&amp;msg);<br />        }<br /><br />        if(msg.message == WM_QUIT)<br />            break;<br /><br />        render_frame();<br />    }<br /><br />    // clean up DirectX and COM<br />    cleanD3D();<br /><br />    return msg.wParam;<br />}<br /><br /><br />// this is the main message handler for the program<br />LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)<br />{<br />    switch(message)<br />    {<br />        case WM_DESTROY:<br />            {<br />                PostQuitMessage(0);<br />                return 0;<br />            } break;<br />    }<br /><br />    return DefWindowProc (hWnd, message, wParam, lParam);<br />}<br /><br /><br />// this function initializes and prepares Direct3D for use<br />void initD3D(HWND hWnd)<br />{<br />    d3d = Direct3DCreate9(D3D_SDK_VERSION);<br /><br />    D3DPRESENT_PARAMETERS d3dpp;<br /><br />    ZeroMemory(&amp;d3dpp, sizeof(d3dpp));<br />    d3dpp.Windowed = TRUE;<br />    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;<br />    d3dpp.hDeviceWindow = hWnd;<br />    d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8;<br />    d3dpp.BackBufferWidth = SCREEN_WIDTH;<br />    d3dpp.BackBufferHeight = SCREEN_HEIGHT;<br /><br />    // create a device class using this information and the info from the d3dpp stuct<br />    d3d-&gt;CreateDevice(D3DADAPTER_DEFAULT,<br />                      D3DDEVTYPE_HAL,<br />                      hWnd,<br />                      D3DCREATE_SOFTWARE_VERTEXPROCESSING,<br />                      &amp;d3dpp,<br />                      &amp;d3ddev);<br /><br />    init_graphics();    // call the function to initialize the triangle<br /><br />    d3ddev-&gt;SetRenderState(D3DRS_LIGHTING, FALSE);    // turn off the 3D lighting<br />}<br /><br /><br />// this is the function used to render a single frame<br />void render_frame(void)<br />{<br />    d3ddev-&gt;Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0);<br /><br />    d3ddev-&gt;BeginScene();<br /><br />    // select which vertex format we are using<br />    d3ddev-&gt;SetFVF(CUSTOMFVF);<br /><br />    // SET UP THE PIPELINE<br /><br />    D3DXMATRIX matRotateY;    // a matrix to store the rotation information<br /><br />    static float index = 0.0f; index+=0.05f;    // an ever-increasing float value<br /><br />    // build a matrix to rotate the model based on the increasing float value<br />    D3DXMatrixRotationY(&amp;matRotateY, index);<br /><br />    // tell Direct3D about our matrix<br />    d3ddev-&gt;SetTransform(D3DTS_WORLD, &amp;matRotateY);<br /><br />    D3DXMATRIX matView;    // the view transform matrix<br /><br />    D3DXMatrixLookAtLH(&amp;matView,<br />                       &amp;D3DXVECTOR3 (0.0f, 0.0f, 10.0f),    // the camera position<br />                       &amp;D3DXVECTOR3 (0.0f, 0.0f, 0.0f),    // the look-at position<br />                       &amp;D3DXVECTOR3 (0.0f, 1.0f, 0.0f));    // the up direction<br /><br />    d3ddev-&gt;SetTransform(D3DTS_VIEW, &amp;matView);    // set the view transform to matView<br /><br />    D3DXMATRIX matProjection;     // the projection transform matrix<br /><br />    D3DXMatrixPerspectiveFovLH(&amp;matProjection,<br />                               D3DXToRadian(45),    // the horizontal field of view<br />                               (FLOAT)SCREEN_WIDTH / (FLOAT)SCREEN_HEIGHT, // aspect ratio<br />                               1.0f,    // the near view-plane<br />                               100.0f);    // the far view-plane<br /><br />    d3ddev-&gt;SetTransform(D3DTS_PROJECTION, &amp;matProjection);    // set the projection<br /><br />    // select the vertex buffer to display<br />    d3ddev-&gt;SetStreamSource(0, v_buffer, 0, sizeof(CUSTOMVERTEX));<br /><br />    // copy the vertex buffer to the back buffer<br />    d3ddev-&gt;DrawPrimitive(D3DPT_TRIANGLELIST, 0, 1);<br /><br />    d3ddev-&gt;EndScene();<br /><br />    d3ddev-&gt;Present(NULL, NULL, NULL, NULL);<br />}<br /><br /><br />// this is the function that cleans up Direct3D and COM<br />void cleanD3D(void)<br />{<br />    v_buffer-&gt;Release();    // close and release the vertex buffer<br />    d3ddev-&gt;Release();    // close and release the 3D device<br />    d3d-&gt;Release();    // close and release Direct3D<br />}<br /><br /><br />// this is the function that puts the 3D models into video RAM<br />void init_graphics(void)<br />{<br />    // create the vertices using the CUSTOMVERTEX struct<br />    CUSTOMVERTEX vertices&#91;&#93; =<br />    {<br />        { 3.0f, -3.0f, 0.0f, D3DCOLOR_XRGB(0, 0, 255), },<br />        { 0.0f, 3.0f, 0.0f, D3DCOLOR_XRGB(0, 255, 0), },<br />        { -3.0f, -3.0f, 0.0f, D3DCOLOR_XRGB(255, 0, 0), },<br />    };<br /><br />    // create a vertex buffer interface called v_buffer<br />    d3ddev-&gt;CreateVertexBuffer(3*sizeof(CUSTOMVERTEX),<br />                               0,<br />                               CUSTOMFVF,<br />                               D3DPOOL_MANAGED,<br />                               &amp;v_buffer,<br />                               NULL);<br /><br />    VOID* pVoid;    // a void pointer<br /><br />    // lock v_buffer and load the vertices into it<br />    v_buffer-&gt;Lock(0, 0, (void**)&amp;pVoid, 0);<br />    memcpy(pVoid, vertices, sizeof(vertices));<br />    v_buffer-&gt;Unlock();<br />}<br /><br /></pre><br /><br /><br />Is this a known issue when programming DX with dev c++? I managed to set it up alright originally.]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>joebert</dc:creator>
			<pubDate>Wed, 04 Nov 2009 23:42:24 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-register-shutdown-function-alternative-t100876.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-register-shutdown-function-alternative-t100876.html</link>
			<title>PHP register_shutdown_function alternative</title>
			<description><![CDATA[I hadnt realized until today that PHP actually has de-constructors for objects, which sucks for me, but it also just happens to be the perfect time for me to discover them. Rather than fool around with <span class="postlink">register_shutdown_function</span> and worry about whether something Im not even sure I read a few years ago about some servers having problems with that function is even the way it is.<br /><br />In any event, the __destruct magic method counterpart to __construct is easier to use than register_shutdown_function anyways, if you ask me. The thing that kinda sucks though, is that the use of __destruct requires you to have references to the constructed objects lingering around until the end of the scripts execution.<br /><br />You can use a static array within the class to save these references though.<br /><br />Anywho, heres an example. I use this to store references to cached HTML files that need to be deleted.<br /><br /><p>code:</p><pre style="border:1px solid #000000; background-color:#eeeeee;">&lt;?php<br /><br />class garbage<br />{<br />	protected static $can = array();<br />	public static function collect($mask)<br />	{<br />		array_push(garbage::$can, new garbage($mask));<br />	}<br />	<br />	private $mask;<br />	public function __construct($mask)<br />	{<br />		$this-&gt;mask = $mask;<br />	}<br />	public function __destruct()<br />	{<br />		file_utils::glob_delete($this-&gt;mask);<br />	}<br />}<br /><br />?&gt;</pre>]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 0</description>
		</item>
				<item>
			<dc:creator>planetsap</dc:creator>
			<pubDate>Wed, 04 Nov 2009 06:49:17 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-code-for-list-jobs-from-various-sites-t100867.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-code-for-list-jobs-from-various-sites-t100867.html</link>
			<title>PHP code for list jobs from various sites</title>
			<description><![CDATA[Hi,<br /><br />Is there a easy way to list Jobs from multiple jobs sites, like Monster, Dice etc, and show it on my website. <br /><br />Thank you in advance.]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 1</description>
		</item>
				<item>
			<dc:creator>PolishHurricane</dc:creator>
			<pubDate>Wed, 04 Nov 2009 05:51:55 -0800</pubDate>
			<guid>http://www.ozzu.com/programming-forum/php-each-next-prev-etc-t100865.html</guid>
			<link>http://www.ozzu.com/programming-forum/php-each-next-prev-etc-t100865.html</link>
			<title>[SOLVED] PHP each, next, prev, etc...</title>
			<description><![CDATA[Im trying to re-program a class that someone wrote that has to work with legacy drivers that use while() loops to iterate.  I cant seem to get the last element to return any data after it temporarily goes off of the end of the array.<br /><br />I ended up making an iterator function that looks like this:<br /><br /><p>php:</p><pre style="border:1px solid #000000; background-color:#eeeeee;">&lt;?php<br />public function iterate()<br />{<br /> if(each($this-&gt;data&#91;fruits&#93;) !== FALSE)<br /> {<br /> return TRUE;<br /> }<br /> else<br /> {<br /> reset($this-&gt;data&#91;fruits&#93;);<br /> return FALSE;<br /> }<br />}<br />?&gt;</pre><br /><br />Then to gather the current element so I can use the data in any function within the loop, I wrote a function like this:<br /><p>php:</p><pre style="border:1px solid #000000; background-color:#eeeeee;">&lt;?php<br />public function current_fruit()<br />{<br />$fruit_array = prev($this-&gt;data&#91;fruits&#93;);<br />next($this-&gt;data&#91;fruits&#93;);<br />return $fruit_array;<br />}<br />?&gt;</pre><br /><br />And during each iteration current_fruit() can be called multiple times.  It works, until the set of fruits, I dont get any data.  Now the problem is, the loop properly makes enough iterations, but the last element has no data.  I realize the each() function sends the pointer temporarily off the end of the array on the last iteration, but prev() should re-point it to the last element, right?]]>&lt;br /&gt;&lt;br /&gt;Topic Replies: 2</description>
		</item>
			</channel>
</rss>