php-general Digest 4 Apr 2009 22:29:54 -0000 Issue 6049

Topics (messages 291060 through 291075):

Re: Weird problem with T_gettext()
        291060 by: Michelle Konzack

Re: rft file problems
        291061 by: tedd

suhosin and sessions
        291062 by: Michael A. Peters
        291069 by: Michael A. Peters

I'm new
        291063 by: ®0L¥
        291065 by: abdulazeez alugo
        291067 by: 9el
        291068 by: Ernie Kemp
        291071 by: 9el
        291075 by: Andrés Robinet

PHP/MySQL ISP recommendation that lets one edit ft_min_word_len variable?
        291064 by: Rob Gould
        291066 by: Michael A. Peters
        291070 by: Richard Heyes

Submitting URLs in IE
        291072 by: Skip Evans

Re: ms-word reading from PHP on linux O.S
        291073 by: 9el

AJAX with POST
        291074 by: Skip Evans

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
Am 2009-04-04 10:13:52, schrieb Per Jessen:
> Michelle Konzack wrote:
> 
> > Now selecting "de" as prefered language is  working,  but  if  I 
> > select "de_DE" in  Firefox,  the  second  term  "About Us"  is 
> > something like "Über Uns" insteed "Über Uns" because the Website is
> > UTF-8. 
> 
> Indeed.  I'll venture a guess and say it's because your dictionary file
> is bad or not actually UTF8.

Weird, since my whole system is UTF-8 and if I try to einter  iso-8859-1
charachters it complys that there is a error. Even xgettext tell me this

I have checkd it already with "iconv"

It seems the problem is if my "msgid" have strings like ü which are
not correctly converted to UTF-8 if I use "de_DE" since in  "de"  it  is
working.

Unfortunately the upstream of "php-gettext" is not responding to my mail

> > This is realy weird, since the MO file  is  the  same  for  both 
> > locale versions.
> 
> Ah. Very weird, yes.  Are you doing a setlocale() anywhere? 

The only setlocale() I have found in the whole system is in

    /usr/share/php/php-gettext/gettext.inc

which a part of the php-gettext package.

> Fallback to what?  I only have 'de' in my browser language preferences,
> and your site came up fine in German.

If someone have in the browser only "de-de" and I have NO locale "de_DE"
but "de", php-gettext does not fallback to "de".

Normaly under Linux you can have 

    /usr/share/locale/de_DE.UTF-8
    /usr/share/locale/de...@euro

    /usr/share/locale/de_DE
    /usr/share/locale/de

So if your system is "de_DE.UTF-8" and there is no UTF-8 locale, gettext
try "de_DE" and if that fais it try "de".  Unfortunately this  does  not
work with "php-gettext".  For me it is a bug.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber [email protected]           67100 Strasbourg/France
IRC #Debian (irc.icq.com)                     Tel. DE: +49 177 9351947
ICQ #328449886                                Tel. FR: +33  6  61925193

Attachment: signature.pgp
Description: Digital signature


--- End Message ---
--- Begin Message ---
At 6:06 PM -0400 4/3/09, Paul M Foster wrote:
On Fri, Apr 03, 2009 at 01:18:08PM -0400, tedd wrote:

 Hi gang:

 I'm trying to provide an ".rft" file via a link on one of my sites, like
 so:

 > <a href="MT_Exam.rft">Mid Term</a>

-snip-

Are you sure you don't mean ".rtf", as in Rich Text Format? If
misspelled that way, it could explain the problem.


Paul:

Bingo -- that was the problem. Sometimes we're tripped up by the simplest problems. I just couldn't see the difference between rft and rtf in my editor.

Considering it was the first time I was working with rtf files, I over-thought it might have been a php init issue.

Thanks,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
suhosin forum is currently down so I can't ask there.

I'm using https for login but the rest of the site is not https

www.domain.com is regular
secure.domain.com is https

I set the session cookie this way:

ini_set("session.cookie_domain",".domain.com");

Works beautifully w/o suhosin - the login can happen on secure server and then set the necessary session bits for the insecure server to know user is authenticated.

First issue was session data encryption, which is suppose to be transparent but doesn't appear to be if set in one domain and read in other. It looks configurable but since it is my server w/o no other users and I'm using database for sessions, I tries just turning it off via

ini_set('suhosin.session.encrypt','0');

in my include that starts the session.

However, that didn't solve the problem. So I also added

ini_set('suhosin.cookie.encrypt','0');

but still no joy - session data set in one domain is wiped as soon as the cookie is sent to another domain.

I'd really rather not remove the suhosin module, how can tell suhosin to just leave my sessions the smurf alone?
--- End Message ---
--- Begin Message ---
Michael A. Peters wrote:
suhosin forum is currently down so I can't ask there.

I'm using https for login but the rest of the site is not https

www.domain.com is regular
secure.domain.com is https

I set the session cookie this way:

ini_set("session.cookie_domain",".domain.com");

Works beautifully w/o suhosin - the login can happen on secure server and then set the necessary session bits for the insecure server to know user is authenticated.

First issue was session data encryption, which is suppose to be transparent but doesn't appear to be if set in one domain and read in other. It looks configurable but since it is my server w/o no other users and I'm using database for sessions, I tries just turning it off via

ini_set('suhosin.session.encrypt','0');

in my include that starts the session.

However, that didn't solve the problem. So I also added

ini_set('suhosin.cookie.encrypt','0');

but still no joy - session data set in one domain is wiped as soon as the cookie is sent to another domain.

I'd really rather not remove the suhosin module, how can tell suhosin to just leave my sessions the smurf alone?


OK - I seemed to have solved it.
The first issue - suhosin doesn't allow you to ini_set in a script - that actually makes sense.

The real issue in my case was not different domains but different document roots. Probably for shared server reasons, by default suhosin uses the document root as part of its session encryption.

suhosin.session.cryptdocroot = Off

in the php.ini fixed the issue - and lets me keep the suhosin transparent encryption (which has some session hijacking protection, so is a good thing to have).
--- End Message ---
--- Begin Message ---
Hello people, Is my first time that I try to do a web page with PHP and I
don't  have Idea how I can do, but I read something tutorial and I can see
that is not difficult, I hope that I can do, what I need to work ??? with
PHP and MYSQL ??? Where I can to get this software because I go to
www.mysql.com and I download mysql for win 32 MSI and I install in my pc but
I can't see nothing !!! only MYSQL 5.1 --> (mysql command line client)
(mysql manual) and (mysql server instance config wizard) and How I can work
with mysql ?? and I download the php for www.php.net and only install me in
my all programs PHP 5 and inside I just only see License and PHP.ini

O download and installer APACHE 2.11

1st- download APACHE and install it
2nd- download mysql and install it
3rd- donwload PHP and install it

It is correct this way ?? I read a tutorial with this ways, but when I
create a name.php page and put inside of apache server program
files-->apache-->htdocs if I try to open with firefox, it shows me the
source inside the page, and wioth internet explorer don't open me, it only
show me a blank page,

Anybody can help me please ?? I want to do web page and I have no idea.

Sorry for my english, I started to study this languaje too. lol.

-- 
salu2 ®0L¥

--- End Message ---
--- Begin Message ---
 

> Date: Sat, 4 Apr 2009 07:13:22 -0800
> From: [email protected]
> To: [email protected]
> Subject: [PHP] I'm new
> 
> Hello people, Is my first time that I try to do a web page with PHP and I
> don't have Idea how I can do, but I read something tutorial and I can see
> that is not difficult, I hope that I can do, what I need to work ??? with
> PHP and MYSQL ??? Where I can to get this software because I go to
> www.mysql.com and I download mysql for win 32 MSI and I install in my pc but
> I can't see nothing !!! only MYSQL 5.1 --> (mysql command line client)
> (mysql manual) and (mysql server instance config wizard) and How I can work
> with mysql ?? and I download the php for www.php.net and only install me in
> my all programs PHP 5 and inside I just only see License and PHP.ini
> 
> O download and installer APACHE 2.11
> 
> 1st- download APACHE and install it
> 2nd- download mysql and install it
> 3rd- donwload PHP and install it
> 
> It is correct this way ?? I read a tutorial with this ways, but when I
> create a name.php page and put inside of apache server program
> files-->apache-->htdocs if I try to open with firefox, it shows me the
> source inside the page, and wioth internet explorer don't open me, it only
> show me a blank page,
> 
> Anybody can help me please ?? I want to do web page and I have no idea.
> 
> Sorry for my english, I started to study this languaje too. lol.
> 

 

Hi Roly,

You're definitely welcome to this mailing list full of incredibly intelligent 
people I never knew existed. However, I advice that you still read through the 
tutorials you have because I think you have not installed apache properly.

Ciao.

Alugo AbdulAzeez

With Love from Nigeria

www.frangeovic.com

 


_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/

--- End Message ---
--- Begin Message ---
>> Hello people, Is my first time that I try to do a web page with PHP and I
>> don't have Idea how I can do, but I read something tutorial and I can see
>> that is not difficult, I hope that I can do, what I need to work ??? with
>> PHP and MYSQL ??? Where I can to get this software because I go to
>> www.mysql.com and I download mysql for win 32 MSI and I install in my pc but
>> I can't see nothing !!! only MYSQL 5.1 --> (mysql command line client)
>> (mysql manual) and (mysql server instance config wizard) and How I can work
>> with mysql ?? and I download the php for www.php.net and only install me in
>> my all programs PHP 5 and inside I just only see License and PHP.ini
>>
>> O download and installer APACHE 2.11
>>
>> 1st- download APACHE and install it
>> 2nd- download mysql and install it
>> 3rd- donwload PHP and install it
>>
>> It is correct this way ?? I read a tutorial with this ways, but when I
>> create a name.php page and put inside of apache server program
>> files-->apache-->htdocs if I try to open with firefox, it shows me the
>> source inside the page, and wioth internet explorer don't open me, it only
>> show me a blank page,
>>
>> Anybody can help me please ?? I want to do web page and I have no idea.

Download a full suite of PHP+MySQL+Apache and other tools bundled
together from www.apachefriends.de

watch the marvelous video tutorials from  www.nettuts.com

--- End Message ---
--- Begin Message ---
Good day,

I suggest going to an all in one package such as
"http://www.wampserver.com/";.
.../Ernie

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of 9el
Sent: April-04-09 11:35 AM
To: abdulazeez alugo
Cc: [email protected]; [email protected]
Subject: Re: [PHP] I'm new

>> Hello people, Is my first time that I try to do a web page with PHP and I
>> don't have Idea how I can do, but I read something tutorial and I can see
>> that is not difficult, I hope that I can do, what I need to work ??? with
>> PHP and MYSQL ??? Where I can to get this software because I go to
>> www.mysql.com and I download mysql for win 32 MSI and I install in my pc
but
>> I can't see nothing !!! only MYSQL 5.1 --> (mysql command line client)
>> (mysql manual) and (mysql server instance config wizard) and How I can
work
>> with mysql ?? and I download the php for www.php.net and only install me
in
>> my all programs PHP 5 and inside I just only see License and PHP.ini
>>
>> O download and installer APACHE 2.11
>>
>> 1st- download APACHE and install it
>> 2nd- download mysql and install it
>> 3rd- donwload PHP and install it
>>
>> It is correct this way ?? I read a tutorial with this ways, but when I
>> create a name.php page and put inside of apache server program
>> files-->apache-->htdocs if I try to open with firefox, it shows me the
>> source inside the page, and wioth internet explorer don't open me, it
only
>> show me a blank page,
>>
>> Anybody can help me please ?? I want to do web page and I have no idea.

Download a full suite of PHP+MySQL+Apache and other tools bundled
together from www.apachefriends.de

watch the marvelous video tutorials from  www.nettuts.com

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


No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.285 / Virus Database: 270.11.41/2040 - Release Date: 04/03/09
17:54:00


--- End Message ---
--- Begin Message ---
<snip>
 Hi Roly,

 As previously advised, the best you can do to get started is to
install a bundle
 http://www.apachefriends.org/en/xampp-windows.html

 If you are a native Spanish speaker (I'm guessing, because of your "salu2")
 check the PHP-MySQL tutorials here http://www.illasaron.com/, you can find
 single lessons or full courses on the left sidebar here
 http://www.illasaron.com/html/ and a supporting forum here
 http://www.illasaron.com/phpBB2/viewforum.php?f=24. You'll need to register for
 accessing the direct downloads, registering is free (there are also .torrent
 downloads for the illasaron courses at thepiratebay.org)

 Regards,

 Rob

</snip>

Rob, please keep the mail to the list. It came to me individually
only! where as I didn't ask for the solution :)\

Well, yes  ApacheFriend's XAMPP is one of the best suites ever with
lots of things in there.

And www.nettuts.com just last month released really nice tutorials for
beginners on PHP so thats really recommended if anyone wants to start
learning PHP + MySQL

Regards

Lenin
www.twitter.com/nine_L

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of 9el
> Sent: Sábado, 04 de Abril de 2009 12:52 p.m.
> To: Andrés Robinet; [email protected]
> Subject: Re: [PHP] I'm new
> 
> <snip>
>  Hi Roly,
> 
>  As previously advised, the best you can do to get started is to
> install a bundle
>  http://www.apachefriends.org/en/xampp-windows.html
> 
>  If you are a native Spanish speaker (I'm guessing, because of your
> "salu2")
>  check the PHP-MySQL tutorials here http://www.illasaron.com/, you can find
>  single lessons or full courses on the left sidebar here
>  http://www.illasaron.com/html/ and a supporting forum here
>  http://www.illasaron.com/phpBB2/viewforum.php?f=24. You'll need to
> register for
>  accessing the direct downloads, registering is free (there are also
> .torrent
>  downloads for the illasaron courses at thepiratebay.org)
> 
>  Regards,
> 
>  Rob
> 
> </snip>
> 
> Rob, please keep the mail to the list. It came to me individually
> only! where as I didn't ask for the solution :)\
> 
> Well, yes  ApacheFriend's XAMPP is one of the best suites ever with
> lots of things in there.
> 
> And www.nettuts.com just last month released really nice tutorials for
> beginners on PHP so thats really recommended if anyone wants to start
> learning PHP + MySQL
> 
> Regards
> 
> Lenin
> www.twitter.com/nine_L

Ooops! I forgot the "reply to all" trick ;)

I pointed out illasaron.com because it's Spanish and there's a Spanish community
around. I thought Roly is a Spanish speaker, because "salu2" is a short for
"saludos" (=greetings/regards) and he said he's also learning English.

Illasaron PHP+MySQL course starts from basic HTML all the way up to session
handling, OOP, XML Processing in PHP, building a shopping cart and creating a
small CMS. You can download single "lessons" (there are about 50 I think) or the
whole DVD as an ISO. I have nothing against nettuts.com, It's just that I prefer
facing one challenge at a time rather than three at once (learning English,
installing apache+php+mysql, learning PHP). By the time I started with English
PHP courses I could understand written and oral English already, and by the time
I learnt to install and set up a WAMP or LAMP suite from scratch, I already knew
enough PHP to do more than "hello world".

It's just that he can learn English by reading eBooks and listening to the BBC
(http://www.bbc.co.uk/worldservice/meta/tx/nb/live/www15.asx). He can learn to
manually install and set up a full Apache+PHP+MySQL suite later. One challenge
at a time avoids frustration, that's just my experience and point of view.

Regards,

Rob
 
Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 |
TEL 954-607-4296 | FAX 954-337-2695 | 
Email: [email protected]  | MSN Chat: [email protected]  |  SKYPE: bestplace |
Web: bestplace.biz  | Web: seo-diy.com


--- End Message ---
--- Begin Message ---
Can anyone here recommend an ISP that will let me have a dedicated
server (not shared), and also allow me to adjust the ft_min_word_len
mySQL parameter?  I was originally thinking Dreamhost PS, but I
recently found out that they do not allow changes to mySQL
environmental variables.  I really need to adjust ft_min_word_len so
that I can do rapid text searches on words less than 4 chars.

--- End Message ---
--- Begin Message ---
Rob Gould wrote:
Can anyone here recommend an ISP that will let me have a dedicated
server (not shared), and also allow me to adjust the ft_min_word_len
mySQL parameter?  I was originally thinking Dreamhost PS, but I
recently found out that they do not allow changes to mySQL
environmental variables.  I really need to adjust ft_min_word_len so
that I can do rapid text searches on words less than 4 chars.


http://www.linode.com/

You get root on your very own xen vm running the Linux distro of your choice (you can even upload an image if they don't have your favorite) - starting at I think around $20 a month for one IP.

You can set it up however you want.

--- End Message ---
--- Begin Message ---
Hi,

> Can anyone here recommend an ISP that will let me have a dedicated
> server (not shared), and also allow me to adjust the ft_min_word_len
> mySQL parameter?  I was originally thinking Dreamhost PS, but I
> recently found out that they do not allow changes to mySQL
> environmental variables.  I really need to adjust ft_min_word_len so
> that I can do rapid text searches on words less than 4 chars.

Dan the man on this very mailing list. Or Rackspace.

-- 
Richard Heyes

HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.net (Updated March 28th)

--- End Message ---
--- Begin Message ---
Hey all,

I have an application that uses AJAX to submit a page created in the FCKeditor. It builds a URL and then submits that to the server with a JavaScript call like this:

req.open('GET', url, false);

In Firefox it works great for just about any size page you could want, but IE just stops on even medium size pages.

Is this some kind of limitation in IE that can be increased with a registry setting or something?

Any suggestions would be helpful, as I am a bit perplexed.

Would using POST rather than get to submit the URL to the server handle more data?

--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---
--- Begin Message ---
On Tue, Feb 24, 2009 at 1:38 PM, Per Jessen <[email protected]> wrote:

> Srinivasa Rao D wrote:
>
> > Hi all,
> >       * How better, i can  read ms-word doc files  from PHP on LINUX
> >       OS*.
> [snip]
> >
> >   *Is there are any other softwares that can fetch text from MS-WORD
> >   file?.*
>

Word documents reading using COM in PHP have a look
http://drewd.com/2007/01/25/reading-from-a-word-document-with-com-in-php

Lenin
www.twitter.com/nine_L

--- End Message ---
--- Begin Message ---
Hey all,

At the risk of being told this is a PHP and not a JS list, but also knowing the discussions on this list, to the benefit of all I believe, very wildly, I'm posting this JS code snippet for some advice.

As I posted earlier, my AJAX app that uses a GET to post to the server (and get a response), fails on IE with larger data, so I thought I'd take a shot at writing a POST function, but so far I can get it to get the data back, but the problem is by the time the data has come back the function has already returned null back to the calling function. What I need this function to do is wait for the data to come back and then send it back to caller. Here's the function. Any advice would be greatly appreciated. (The code to get the appropriate object per browser has been omitted.)

http.open("POST", url, true);

//Send the proper header information along with the request
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", url.length);
http.setRequestHeader("Connection", "close");

http.send(url);

http.onreadystatechange = function() {//Call a function when the state changes.
if(http.readyState == 4 && http.status == 200) {
        alert('['+http.responseText+']');
        return (http.responseText);
        }
}
--
====================================
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

--- End Message ---

Reply via email to