Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2007, 10:34 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Would this php cookies embedding method work?

I'm trying to embed CJ affiliate cookies on my site. Is these following codes would work?

Code:
<?
    $name = "Cookiename";
    $value = "http://www.absfde.com/click-54577-477848";
    $time = 10;//expire time (day)

    ob_start();
    setcookie($name ,$value ,time()+($time*24*60*60),"/");
    ob_clean();
?>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Replace method don't work with [ ] / skyler Javascript How-To 1 December 30th, 2006 10:04 AM
CompositeDataBoundControl's Render method not work bmains ASP.NET 2.0 Professional 0 January 12th, 2006 09:22 AM
Insert method doesnot work shoakat Classic ASP Databases 3 November 22nd, 2004 07:46 PM
POST method not working in LINUX Server , but work cnilashis Beginning PHP 2 August 19th, 2003 08:13 AM
php and cookies dazednconfused Beginning PHP 2 July 7th, 2003 07:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.