php-general Digest 12 Aug 2013 11:36:06 -0000 Issue 8330

2013-08-12 Thread php-general-digest-help

php-general Digest 12 Aug 2013 11:36:06 - Issue 8330

Topics (messages 321837 through 321840):

[PHP-GENERAL] gibberish output when using the loadHTMLFile() function.
321837 by: atar

gibberish output when using the loadHTMLFile() function.
321838 by: atar
321840 by: Maciek Sokolewicz

sessions working? not working?
321839 by: Clifford Shuker

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---

Hi there!!

When I'm trying to load an external html document with the loadHTMLFile()
function and then I use the saveHTML() function to output its content,
some text in the external html document which is written in hebrew is
displayed in a gibberish format. is anyone here has an idea how to solve
this problem?

NOTE: the document itself is encoded in utf-8 character set.

Thanks in advance!!

atar.
---End Message---
---BeginMessage---

Hi there!!

When I'm trying to load an external html document with the loadHTMLFile()  
function and then I use the saveHTML() function to output its content,  
some text in the external html document which is written in hebrew is  
displayed in a gibberish format. is anyone here has an idea how to solve  
this problem?


NOTE: the document itself is encoded in utf-8 character set.

Thanks in advance!!

atar.
---End Message---
---BeginMessage---

On 12-8-2013 2:54, atar wrote:

Hi there!!

When I'm trying to load an external html document with the
loadHTMLFile() function and then I use the saveHTML() function to output
its content, some text in the external html document which is written in
hebrew is displayed in a gibberish format. is anyone here has an idea
how to solve this problem?

NOTE: the document itself is encoded in utf-8 character set.

Thanks in advance!!

atar.


First of all, stop triple-posting to each list. Choose one address, and 
stick to it.


As for your question; the character set needs to be announced as well as 
set. So to display in UTF-8, you need to:

1. make sure the document is actually encoded using the UTF-8 charset
2. make sure the browser recieves an HTTP header which tells it the 
content is in UTF-8: header('Content-type: text/html; charset=utf-8')
3. make sure the document itself states its encoding is UTF-8 (usually 
done using a meta http-equiv=Content-Type content=text/html; 
charset=utf8/


If your output conforms to all three of these, it will work. It probably 
does not conform to it however.

- Tul
- Tul
---End Message---
---BeginMessage---
Hi List,

 

Hi have the following (below) session code at the top of each page..  The
'print_r' (development feature only) confirms that on one particular page I
do log out as the session var = (). but, on testing that page via the URL I
still get to see the page and all its contents - session var() -..  the page
has the following  'session_start, DOCTYPE Info then htmlheadcontaining
meta info  title/headbodycontaining style/tables/content//body/html
// end of page.  I have copied the same page without the html content (i.e.
a blank page) and I get to fully log out.. when this page is tested in the
URL my warning comes up 'you need to login to see this page' which is what I
want but, I've tried numerous avenues to reconcile my problem to no avail..
I'm a novice so any help would be appreciated..   

 

?php

session_start();

error_reporting (E_ALL ^ E_NOTICE);

$userid = $_SESSION['userid'];

$username = $_SESSION['username'];

print_r($_SESSION);

?

---End Message---


php-general Digest 13 Aug 2013 04:38:44 -0000 Issue 8331

2013-08-12 Thread php-general-digest-help

php-general Digest 13 Aug 2013 04:38:44 - Issue 8331

Topics (messages 321841 through 321842):

Re: sessions working? not working?
321841 by: Tedd Sperling

How to upstream code changes to php community
321842 by: Shahina Rabbani

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
On Aug 12, 2013, at 4:27 AM, Clifford Shuker clifford.shu...@ntlworld.com 
wrote:
 Hi have the following (below) session code at the top of each page..  The
 'print_r' (development feature only) confirms that on one particular page I
 do log out as the session var = (). but, on testing that page via the URL I
 still get to see the page and all its contents - session var() -..  the page
 has the following  'session_start, DOCTYPE Info then htmlheadcontaining
 meta info  title/headbodycontaining style/tables/content//body/html
 // end of page.  I have copied the same page without the html content (i.e.
 a blank page) and I get to fully log out.. when this page is tested in the
 URL my warning comes up 'you need to login to see this page' which is what I
 want but, I've tried numerous avenues to reconcile my problem to no avail..
 I'm a novice so any help would be appreciated..   
 
 
 
 ?php
 
 session_start();
 
 error_reporting (E_ALL ^ E_NOTICE);
 
 $userid = $_SESSION['userid'];
 
 $username = $_SESSION['username'];
 
 print_r($_SESSION);
 
 ?
 

Ok, but when are you populating the SESSION's? Such as:

$_SESSION['userid'] = $userid;

Also, have a look at this:

http://sperling.com/php/authorization/log-on.php

It might help.

tedd

___
tedd sperling
tedd.sperl...@gmail.com



---End Message---
---BeginMessage---
Hi,

I have done some modifications to the php source code and i tested it with
php bench and I observed  some improvement.

I wanted to upstream these code changes to PHP community.
I searched the wed but i didnt find proper guide to upstream the code to
php.

Please help me by  providing the information how to upstream my code
changes to php  source code community.


Thanks,
Shahina Rabbani
---End Message---


[PHP] sessions working? not working?

2013-08-12 Thread Clifford Shuker
Hi List,

 

Hi have the following (below) session code at the top of each page..  The
'print_r' (development feature only) confirms that on one particular page I
do log out as the session var = (). but, on testing that page via the URL I
still get to see the page and all its contents - session var() -..  the page
has the following  'session_start, DOCTYPE Info then htmlheadcontaining
meta info  title/headbodycontaining style/tables/content//body/html
// end of page.  I have copied the same page without the html content (i.e.
a blank page) and I get to fully log out.. when this page is tested in the
URL my warning comes up 'you need to login to see this page' which is what I
want but, I've tried numerous avenues to reconcile my problem to no avail..
I'm a novice so any help would be appreciated..   

 

?php

session_start();

error_reporting (E_ALL ^ E_NOTICE);

$userid = $_SESSION['userid'];

$username = $_SESSION['username'];

print_r($_SESSION);

?



[PHP] Re: gibberish output when using the loadHTMLFile() function.

2013-08-12 Thread Maciek Sokolewicz

On 12-8-2013 2:54, atar wrote:

Hi there!!

When I'm trying to load an external html document with the
loadHTMLFile() function and then I use the saveHTML() function to output
its content, some text in the external html document which is written in
hebrew is displayed in a gibberish format. is anyone here has an idea
how to solve this problem?

NOTE: the document itself is encoded in utf-8 character set.

Thanks in advance!!

atar.


First of all, stop triple-posting to each list. Choose one address, and 
stick to it.


As for your question; the character set needs to be announced as well as 
set. So to display in UTF-8, you need to:

1. make sure the document is actually encoded using the UTF-8 charset
2. make sure the browser recieves an HTTP header which tells it the 
content is in UTF-8: header('Content-type: text/html; charset=utf-8')
3. make sure the document itself states its encoding is UTF-8 (usually 
done using a meta http-equiv=Content-Type content=text/html; 
charset=utf8/


If your output conforms to all three of these, it will work. It probably 
does not conform to it however.

- Tul
- Tul

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



Re: [PHP] sessions working? not working?

2013-08-12 Thread Tedd Sperling
On Aug 12, 2013, at 4:27 AM, Clifford Shuker clifford.shu...@ntlworld.com 
wrote:
 Hi have the following (below) session code at the top of each page..  The
 'print_r' (development feature only) confirms that on one particular page I
 do log out as the session var = (). but, on testing that page via the URL I
 still get to see the page and all its contents - session var() -..  the page
 has the following  'session_start, DOCTYPE Info then htmlheadcontaining
 meta info  title/headbodycontaining style/tables/content//body/html
 // end of page.  I have copied the same page without the html content (i.e.
 a blank page) and I get to fully log out.. when this page is tested in the
 URL my warning comes up 'you need to login to see this page' which is what I
 want but, I've tried numerous avenues to reconcile my problem to no avail..
 I'm a novice so any help would be appreciated..   
 
 
 
 ?php
 
 session_start();
 
 error_reporting (E_ALL ^ E_NOTICE);
 
 $userid = $_SESSION['userid'];
 
 $username = $_SESSION['username'];
 
 print_r($_SESSION);
 
 ?
 

Ok, but when are you populating the SESSION's? Such as:

$_SESSION['userid'] = $userid;

Also, have a look at this:

http://sperling.com/php/authorization/log-on.php

It might help.

tedd

___
tedd sperling
tedd.sperl...@gmail.com




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



[PHP] How to upstream code changes to php community

2013-08-12 Thread Shahina Rabbani
Hi,

I have done some modifications to the php source code and i tested it with
php bench and I observed  some improvement.

I wanted to upstream these code changes to PHP community.
I searched the wed but i didnt find proper guide to upstream the code to
php.

Please help me by  providing the information how to upstream my code
changes to php  source code community.


Thanks,
Shahina Rabbani


[PHP] Re: How to upstream code changes to php community

2013-08-12 Thread David Robley
Shahina Rabbani wrote:

 Hi,
 
 I have done some modifications to the php source code and i tested it with
 php bench and I observed  some improvement.
 
 I wanted to upstream these code changes to PHP community.
 I searched the wed but i didnt find proper guide to upstream the code to
 php.
 
 Please help me by  providing the information how to upstream my code
 changes to php  source code community.
 
 
 Thanks,
 Shahina Rabbani

Start with https://github.com/php/php-
src/blob/master/README.SUBMITTING_PATCH which is linked from the Community 
menu item on the PHP home page.

-- 
Cheers
David Robley

Enter any 11-digit prime number to continue...


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