Re: [PHP] Session data lost in Firefox

2012-10-26 Thread John Boy
Looks like it was a corrupted Paypal cookie lurking about on my test
machine. Clearing all Paypal cookies cured the problem.
Hours can be spent looking for needles like this in a very complex haystack
and it turns out to be the simplest solution that's not even related
directly to the programming. Thanks, Andrew for the prompting!
However if this happened on a punter's computer the same would happen - so
is there a way of coding the removal of third party cookies to avoid this
problem?


"Andrew Ballard"  wrote in message 
news:cac1b6rsbydmopeulin0fjmax-vap_uas_1w6e-nr-1shwm+...@mail.gmail.com...
> On Fri, Oct 26, 2012 at 8:49 AM, John Boy 
> wrote:
>
>> Hi
>>
>> I have a wesite where PHP session data is passed page to page then shells
>> out to Paypal for payment then back to my website for completion of
>> transaction and update of mysql file. When using Firefox our session data
>> and POST data from Paypal is lost. This has happend only recently and has
>> worked happily in the past. Works in other browsers too. Anyone heard of
>> same problems?
>>
>> mywebpage -> session data->mywebpage2->session data->paypal page->POST 
>> data
>> + session data->mywebpage3
>>
>> --
>> Johniboy
>>
>
> Just a thought - does this depend on using third party cookies between 
> your
> site and PayPal? If so, do you have them disabled in Firefox?
>
> Andrew
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Session data lost in Firefox

2012-10-26 Thread John Boy
Hi

I have a wesite where PHP session data is passed page to page then shells 
out to Paypal for payment then back to my website for completion of 
transaction and update of mysql file. When using Firefox our session data 
and POST data from Paypal is lost. This has happend only recently and has 
worked happily in the past. Works in other browsers too. Anyone heard of 
same problems?

mywebpage -> session data->mywebpage2->session data->paypal page->POST data 
+ session data->mywebpage3

-- 
Johniboy 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] LOAD INFILE

2009-03-30 Thread John Boy
Hi

I want to upload a .csv file from my local pc to a mysql server. My local 
machine is XP2. I have used the following but the file does not upload. When 
using php MyAdmin it returns the error 'file not found'. Can anyone help?

". mysql_error());
}
// Select the database
$db_select=mysql_select_db($db_database);
if (!$db_select)
{
   die ("Could not select the database:
". mysql_error());
}
// Import new avaiability data from local CSV file
$sql2 = 'LOAD DATA LOCAL INFILE \'C:EXPORT.CSV\' INTO TABLE 
`availability`
 FIELDS TERMINATED BY \';\' ENCLOSED BY \'"\' ESCAPED BY \'\'
 LINES TERMINATED BY \'\\r\\n\'';
// echo $sql2;
mysql_query($sql2);
echo '';
mysql_query($sql0);
printf("Records added: %d\n", mysql_affected_rows());

echo 'UPDATE COMPLETE';

?>


-- 
John
UK 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP friendly web software?

2008-11-25 Thread John Boy
Can anyone recommend a wysiwyg web development software which is php
friendly, i.e. you can design the page in wysiwyg and insert php code into
the html without destroying the screen image preview. I've been using
Frontpage to compose the page then dev-php to insert the php code. This has
worked well but if layout changes need to be made Frontpage displays stuff
all over the place. Just trying MS Expression but this shows blank page when
any php code is present. Any ideas?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php