Re: [PHP] Check a string does not contain invalid characters

2007-03-21 Thread Jim Lucas
John Comerford wrote: Hi Folks, I am new to php. I want to accept a character string which I will use as a unique user id. I want to check the string to ensure the user has not typed characters that I consider to be invalid as part of a user id. I was thinking of doing something along the

Re: [PHP] Re: Random Unique ID

2007-03-21 Thread Robert Cummings
On Thu, 2007-03-22 at 08:14 +0400, Rabih Tayyem wrote: > Actually I told you that the possibility of collision is small because I > wanted to be scientific > Scientifically, I can say this posibilty goes to 0... Only as the length of the ID approaches infinity :B Cheers, Rob. -- .---

[PHP] Question before upgrading to 5

2007-03-21 Thread Jake McHenry
Hi everyone, I just got done going through all my configure options for php5, and finally configure finished successfully... I didn't install it yet, have a question. Can I have both 4 and 5 installed temporarily until I'm sure all my scripts work ok? They should, I've been careful, but I want to

[PHP] Check a string does not contain invalid characters

2007-03-21 Thread John Comerford
Hi Folks, I am new to php. I want to accept a character string which I will use as a unique user id. I want to check the string to ensure the user has not typed characters that I consider to be invalid as part of a user id. I was thinking of doing something along the lines of: if (strpbrk

Re: [PHP] Re: Random Unique ID

2007-03-21 Thread Rabih Tayyem
Actually I told you that the possibility of collision is small because I wanted to be scientific Scientifically, I can say this posibilty goes to 0... It is a random ID (not a totally random but based on the current timestamp) generated not only once but twice based on two different time s

Re: [PHP] Passing variables

2007-03-21 Thread Jeff
Thank you Chris! "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jeff wrote: >> I want to thank you all for clearing me up on setting the >> register_globals to ON issue!! I have refrained from doing so and my code >> is running great with the $_GET. >> >> I am having NO t

Re: [PHP] Passing variables

2007-03-21 Thread Chris
Jeff wrote: I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my "single" variable to the next page using.. echo "Edit"; as when the next page tha

[PHP] Passing variables

2007-03-21 Thread Jeff
I want to thank you all for clearing me up on setting the register_globals to ON issue!! I have refrained from doing so and my code is running great with the $_GET. I am having NO trouble passing my "single" variable to the next page using.. echo "Edit"; as when the next page that load actuall

[PHP] Re: Random Unique ID

2007-03-21 Thread Myron Turner
Mark wrote: [EMAIL PROTECTED] wrote: Hello, I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions for a newbie as to the right

Re: [PHP] close session when browser is closed

2007-03-21 Thread Travis Doherty
Alain Roger wrote: > Hi Brad, > > yes this is one possibility, but since i use https, i should not be > afraid > by storing data in $_SESSION variables. Just a note that while SSL may help to protect the session id from being packet sniffed you should still be concerned about storing sensitive d

Re: [PHP] close session when browser is closed

2007-03-21 Thread Travis Doherty
Alain Roger wrote: > Hi, > > I would like to know what is the best solution for my problem. > > When a user is connected to a https page and a session is open, if user > close his browser, the session ID is still active in the browser > "history". > It means that next time when user will start his

Re: [PHP] Re: _Construct question

2007-03-21 Thread Chris
Erik Jones wrote: That's not true, running with v. 5.2.1: Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can only use __construct in PHP5. He meant that __construct() doesn't work in php4. It's only available in php5. php5

Re: [PHP] Re: _Construct question

2007-03-21 Thread Erik Jones
That's not true, running with v. 5.2.1: Outputs: works On Mar 21, 2007, at 8:06 AM, itoctopus wrote: They're basically the same thing, however, you can only use __construct in PHP5. -- itoctopus - http://www.itoctopus.com "John Comerford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Re: Random Unique ID

2007-03-21 Thread Mark
[EMAIL PROTECTED] wrote: > Hello, > > I want to add a random unique ID to a Mysql table. Collisions > are unlikely but possible so to handle those cases I'd like to > regenerate the random ID until there is no collision and only > then add my row. Any suggestions for a newbie as to the right >

Re: [PHP] Sessions timing out, php5

2007-03-21 Thread Travis Doherty
Paul Nowosielski wrote: >Dear all, > >I'm having an issue where sessions timeout after inactivity. > >I have session.cache_expire set to 1440. > >But some users have reported sessions timing out after a couple hours. > > > Are you storing sessions in /tmp? Possible that your OS has a cron job r

Re: [PHP] References challenge with PHP4

2007-03-21 Thread Robert Cummings
On Wed, 2007-03-21 at 18:09 -0300, Martin Alterisio wrote: > > Actually, is not a bug, is expected behaviour and documented in the manual > > http://php.net/static > > See the last section, named "references with global and static variables" > > static and global are implemented internally as re

Re: [PHP] Re: Random Unique ID

2007-03-21 Thread Robert Cummings
On Wed, 2007-03-21 at 16:40 -0600, [EMAIL PROTECTED] wrote: > Jim Moseby writes: > > >> However, altho I know that by making the random number big enough > >> the likelyhood of collisions can be made vanishingly small, I was > >> actually concerned with eliminating the possibility of collisions >

[PHP] Re: Random Unique ID

2007-03-21 Thread ccspencer
Jim Moseby writes: However, altho I know that by making the random number big enough the likelyhood of collisions can be made vanishingly small, I was actually concerned with eliminating the possibility of collisions altogether by checking to see if the number had been used before. I just do

[PHP] Re: _Construct question

2007-03-21 Thread itoctopus
They're basically the same thing, however, you can only use __construct in PHP5. -- itoctopus - http://www.itoctopus.com "John Comerford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Folks, > > I am still pretty new to PHP and I have a question regarding classes and > using _co

[PHP] Re: newbie question

2007-03-21 Thread itoctopus
Means you're passing the variable as reference. This means that any change in the variable inside your function will affect the variable outside your function, in other terms: if you have function myfunc(&$var){ $var = 5; } $a = 6; myfunc($a); will result in having $a=5 after the function a

[PHP] Sessions timing out, php5

2007-03-21 Thread Paul Nowosielski
Dear all, I'm having an issue where sessions timeout after inactivity. I have session.cache_expire set to 1440. But some users have reported sessions timing out after a couple hours. Is there another php.ini setting I need to address?? Thank you, -- Paul Nowosielski Webmaster -- PHP Gener

Re: [PHP] Re: Random Unique ID

2007-03-21 Thread Stut
[EMAIL PROTECTED] wrote: Stut writes: [EMAIL PROTECTED] wrote: I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions for a newb

Re: [PHP] Message threading (was Job Opportunity)

2007-03-21 Thread Stut
Warren Vail wrote: While Jim does have a point and is limited by the threading algorithm of this list manager, someone can successfully argue that "this standard" has it's drawbacks. It is somewhat intuitive to pick up a message all pre addressed and reply to all, especially when your intention

Re: [PHP] References challenge with PHP4

2007-03-21 Thread Martin Alterisio
2007/3/20, Jochem Maas <[EMAIL PROTECTED]>: Robert Cummings wrote: > On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: >> ok, I tried it in a whole number of variations - >> no joy. >> >> you should use php5 if you want this kind of reference >> stuff - in php5 it just works, php 4 will give

RE: [PHP] Re: Random Unique ID

2007-03-21 Thread Jim Moseby
> Rabih Tayyem writes: > > > PS: I don't take credit for the code as it is a modified version of > > a code I found long time back (this same code is running on one of > > my applications for months without any problem).. > > Thanks. I'll find use for that! > > However, altho I know that by

[PHP] Re: Random Unique ID

2007-03-21 Thread ccspencer
Rabih Tayyem writes: PS: I don't take credit for the code as it is a modified version of a code I found long time back (this same code is running on one of my applications for months without any problem).. Thanks. I'll find use for that! However, altho I know that by making the random num

[PHP] Re: Random Unique ID

2007-03-21 Thread ccspencer
Stut writes: [EMAIL PROTECTED] wrote: I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions for a newbie as to the right way to

RE: [PHP] Job Opportunity

2007-03-21 Thread Warren Vail
While Jim does have a point and is limited by the threading algorithm of this list manager, someone can successfully argue that "this standard" has it's drawbacks. It is somewhat intuitive to pick up a message all pre addressed and reply to all, especially when your intention is to send a message

Re: [PHP] Job Opportunity

2007-03-21 Thread Stut
Warren Vail wrote: Too bad we have to constrain our messages to fit the threading algorithm of your list server. Another case of where man becomes servant to the machine? 8-) Jim has a point. Hi-jacking a thread by hitting reply to all and changing the subject line messes with the *standard*

RE: [PHP] Job Opportunity

2007-03-21 Thread Warren Vail
Too bad we have to constrain our messages to fit the threading algorithm of your list server. Another case of where man becomes servant to the machine? 8-) Warren Vail -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 21, 2007 11:57 AM To: Chris Ditty C

Re: [PHP] Job Opportunity

2007-03-21 Thread Jim Lucas
Sorry, replied to the wrong post... well, I hate to correct you, but I think you need to be checking those headers. here is a snapshot of my threaded view http://www.cmsws.com/images/threads.jpg With the re-written subject line, it didn't add Re: to it, but it was a reply to another thread

RE: [PHP] Job Opportunity

2007-03-21 Thread Efrain Sarmiento
Chris and Rob and all the rest who new I had nothing but good intentions thanks :) Jim..I will start my new thread now... I am simply networking and offering a paying gig So thanks guys/gals :) _ Efrain Sarmiento Technical Recruiter MISI company p: 212.35

Re: [PHP] Job Opportunity

2007-03-21 Thread Chris Ditty
Hate to be a PITA, but going back 2 years, I only see Efrain posting 3 times. Each time he created a new thread. On 3/21/07, Jim Lucas <[EMAIL PROTECTED]> wrote: you have done this a few different times over the past few weeks, it is really annoying!!! for that matter, it is annoying for anybo

[PHP] Trans id

2007-03-21 Thread Luciano Tolomei
I have a big problem with trans id. i have to use it on a particolar site cause a security restriction of a group of users. So i have to: use only trans id and to disable cookies. php correctly work on get variables but when it add the input hidden in the form it does not work on submit and p

Re: [PHP] Job Opportunity

2007-03-21 Thread Jim Lucas
you have done this a few different times over the past few weeks, it is really annoying!!! for that matter, it is annoying for anybody to hi-jack a thread and start something new with it. Just start your own/new thread... PLEASE Efrain Sarmiento wrote: I need people Willing to pay ref

Re: [PHP] Job Opportunity

2007-03-21 Thread Jim Lucas
Quit hi-jacking posts. create your own!!! Efrain Sarmiento wrote: I need people Willing to pay referral fees... LAMP Developer (Linux, Apache, MySQL, and PHP/Perl or Python): Dealing with website-content management, security. For a prestigious online New York newspaper. NYC, 6+ months

[PHP] Job Opportunity

2007-03-21 Thread Efrain Sarmiento
I need people Willing to pay referral fees... LAMP Developer (Linux, Apache, MySQL, and PHP/Perl or Python): Dealing with website-content management, security. For a prestigious online New York newspaper. NYC, 6+ months on going $65/hr (negotiable). _ Ef

Re: [PHP] close session when browser is closed

2007-03-21 Thread Alain Roger
Hi Brad, yes this is one possibility, but since i use https, i should not be afraid by storing data in $_SESSION variables. So i see that solution as a heavy one. Is there another possibility ? thanks, Al. On 3/21/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Alain Roger wrote: > Hi, > > I wo

Re: [PHP] close session when browser is closed

2007-03-21 Thread Brad Bonkoski
Alain Roger wrote: Hi, I would like to know what is the best solution for my problem. When a user is connected to a https page and a session is open, if user close his browser, the session ID is still active in the browser "history". It means that next time when user will start his browser, th

Re: [PHP] Random Unique ID

2007-03-21 Thread Rabih Tayyem
function GenerateID () { $len = 3; $base='ABCDEFGHKLMNOPQRSTWXYZ'; $max=strlen($base)-1; $activatecode=''; mt_srand((double)microtime()*100); while (strlen($activatecode)<$len+1)$activatecode.=$base{mt_rand(0,$max)}; $len = 7; $base='1234567890'; $max=strlen($base)-1; mt_srand((double)microti

Re: [PHP] Re: Keep the PHP list ON TOPIC!

2007-03-21 Thread Robert Cummings
On Wed, 2007-03-21 at 12:35 -0500, Myron Turner wrote: > Jochem Maas wrote: > > I would have made a similar comment - but I have soap stuck between my > > teeth atm :-P > > > Just use a little of that saliva that you've been wasting on spitballs. ;-) I always preferred soap as a kid over a bel

Re: [PHP] Re: Keep the PHP list ON TOPIC!

2007-03-21 Thread Myron Turner
Jochem Maas wrote: I would have made a similar comment - but I have soap stuck between my teeth atm :-P Just use a little of that saliva that you've been wasting on spitballs. ;-) -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/X

[PHP] close session when browser is closed

2007-03-21 Thread Alain Roger
Hi, I would like to know what is the best solution for my problem. When a user is connected to a https page and a session is open, if user close his browser, the session ID is still active in the browser "history". It means that next time when user will start his browser, the browser will re-use

Re: [PHP] Random Unique ID

2007-03-21 Thread Stut
[EMAIL PROTECTED] wrote: I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions for a newbie as to the right way to go about doing

[PHP] Random Unique ID

2007-03-21 Thread ccspencer
Hello, I want to add a random unique ID to a Mysql table. Collisions are unlikely but possible so to handle those cases I'd like to regenerate the random ID until there is no collision and only then add my row. Any suggestions for a newbie as to the right way to go about doing this? Best,

Re: [PHP] Re: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Jochem Maas
Robert Cummings wrote: > On Wed, 2007-03-21 at 10:47 -0500, Myron Turner wrote: >> Jonathan Kahan wrote: >> >> I've been following this thread on and off, because I found the >> unnecessarily hostile tone of the initial response so off-putting. But >> while this rather small infraction of OT cod

Re: [PHP] MYSQLyog

2007-03-21 Thread Stut
Richard Lynch wrote: On Tue, March 20, 2007 3:24 pm, Jochem Maas wrote: Stut wrote: Jochem Maas wrote: Stut wrote: Jonathan Kahan wrote: ... The wildcard for the hostname is not * it's %. -Stut your being friendly today Stut, wassup with that ;-) New job. Too happy. anything we can do t

Re: [PHP] Flash animation without install Flash!

2007-03-21 Thread Mikey
Helder Lopes wrote: Hi people, Because the problems with virus in internet the people dont install activex controls. My question is: How to put a flash in the website without asking the person to install activex control?? /Helder Lopes Flash is such a ubiquitous form of media these days tha

Re: [PHP] Re: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Robert Cummings
On Wed, 2007-03-21 at 10:47 -0500, Myron Turner wrote: > Jonathan Kahan wrote: > > I've been following this thread on and off, because I found the > unnecessarily hostile tone of the initial response so off-putting. But > while this rather small infraction of OT code, which can in fact be > def

Re: [PHP] IP to City detection

2007-03-21 Thread Satyam
It is very hard to get to the level of city. It is the way the networks are built. I live in a minor town. My provider has a node in this city, but it gathers all the traffic of the whole area (my town and neighboring towns) and sends it through an internal link to their major regional center.

Re: [PHP] Re: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Myron Turner
Jonathan Kahan wrote: Understood. I will think harder next time before posting. - Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: "'Jochem Maas'" <[EMAIL PROTECTED]>; "Jonathan Kahan" <[EMAIL PROTECTED]> Cc: "Stut" <[EMAIL PROTECTED]>; Sent: Wednesday, March 21, 2007 9

Re: [PHP] Flash animation without install Flash!

2007-03-21 Thread Tijnema !
On 3/21/07, Helder Lopes <[EMAIL PROTECTED]> wrote: Hi people, Because the problems with virus in internet the people dont install activex controls. My question is: How to put a flash in the website without asking the person to install activex control?? /Helder Lopes It is not possible to us

[PHP] Re: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Jonathan Kahan
Understood. I will think harder next time before posting. - Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: "'Jochem Maas'" <[EMAIL PROTECTED]>; "Jonathan Kahan" <[EMAIL PROTECTED]> Cc: "Stut" <[EMAIL PROTECTED]>; Sent: Wednesday, March 21, 2007 9:17 AM Subject: Keep th

Re: [PHP] Re: Getting last record ID created from DB

2007-03-21 Thread Robert Cummings
On Wed, 2007-03-21 at 10:37 -0400, Mark wrote: > Richard Lynch wrote: > > > On Tue, March 20, 2007 8:00 pm, Mark wrote: > > > > I'd agree with you, except now you've pulled the rug out and inserted > > a 3rd party connection pool. > > That's not "pulling the rug out," that is a legitimate possib

Re: [PHP] Re: Getting last record ID created from DB

2007-03-21 Thread Mark
Richard Lynch wrote: > On Mon, March 19, 2007 10:58 pm, markw@mohawksoft.com wrote: >>> markw@mohawksoft.com wrote: > markw@mohawksoft.com wrote: >>> On Sat, 2007-03-17 at 12:19 -0400, Mark wrote: >>> Check the documentation - currval returns the last one *for that >>> session* - it does n

Re: [PHP] Re: [GENERAL] phpPgAdmin - prior version available?

2007-03-21 Thread Tijnema !
On 3/21/07, Robert Treat <[EMAIL PROTECTED]> wrote: On Sunday 18 March 2007 12:41, Bob Hartung wrote: > Hi all, >I have been struggling with phpPgAdmin 4.1 - login failures. There > does not yet seem to be a fix. Where can I find a prior version for FC6 > - rpm, tar.gz etc. > Can you be a

Re: [PHP] Re: Getting last record ID created from DB

2007-03-21 Thread Mark
Richard Lynch wrote: > On Tue, March 20, 2007 8:00 pm, Mark wrote: > > I'd agree with you, except now you've pulled the rug out and inserted > a 3rd party connection pool. That's not "pulling the rug out," that is a legitimate possibility. > > Well, duh, if you're dumb enough to think you can

Re: [PHP] PHP DOM saveHTML outputs entities

2007-03-21 Thread Eli
Hi Nicholas, Nicholas Yim wrote: > how save() method The save() method, or actually saveXML() method dumps the DOM in XML format and not HTML format, and browsers do not know how to handle it correctly. -thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: [GENERAL] phpPgAdmin - prior version available?

2007-03-21 Thread Robert Treat
On Sunday 18 March 2007 12:41, Bob Hartung wrote: > Hi all, >I have been struggling with phpPgAdmin 4.1 - login failures. There > does not yet seem to be a fix. Where can I find a prior version for FC6 > - rpm, tar.gz etc. > Can you be a bit more specific on the problem you're seeing? --

[PHP] sourceforge garage sale shopping carts?

2007-03-21 Thread jtjohnston
Are there any shopping carts at Sourceforge that you would recommend? Or other Open Source script? I don't mean to be cheap, just find a fast solution for a friend. Something simple, a simple garage sale with a few options and categories. I created the shopping cart for www.compcanlit.ca, and woul

RE: [PHP] IP to City detection

2007-03-21 Thread Jim Moseby
PHP] IP to City detection > > > There's a MaxMind's GeoLite City service for that. It's free. > > http://www.maxmind.com/app/geolitecity > That is probably a better alternative than the one I sent, which relies on data from api.hostip.info. JM -- PHP General Mailing List (http://www.php.ne

RE: [PHP] IP to City detection

2007-03-21 Thread Hidayet Dogan
There's a MaxMind's GeoLite City service for that. It's free. http://www.maxmind.com/app/geolitecity On Wed, 21 Mar 2007, Jim Moseby wrote: Hi people, Is there a way to detect the city of a person based on the IP address? I mean something like ip2nation http://www.ip2nation.com/ but for citie

RE: [PHP] IP to City detection

2007-03-21 Thread Jim Moseby
> Hi people, > > Is there a way to detect the city of a person based on the IP > address? I > mean something like ip2nation http://www.ip2nation.com/ but for cities > so I can use it in my PHP web application. > > Thanks for any help you can give me, > > -William > I have one that 'sort of'

[PHP] IP to City detection

2007-03-21 Thread William Lovaton
Hi people, Is there a way to detect the city of a person based on the IP address? I mean something like ip2nation http://www.ip2nation.com/ but for cities so I can use it in my PHP web application. Thanks for any help you can give me, -William -- PHP General Mailing List (http://www.php.net/)

[PHP] Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Jim Moseby
> > Jonathan Kahan wrote: > > I will look at Jim's suggestion. I tried the % and it still failed. > > FYI-I have seen posts here much less related to PHP than my > own without > > such responses. > > so that make's your totally offtopic question okay then does? > I suppose you condone murder al

RE: [PHP] read only texbox to html with php

2007-03-21 Thread Edward Kay
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta: > I have a readonly textbox that gets mailed as a newsletter. The text is a > standard covering letter. The problem is when I try and convert it to html > it doesn't work It is inserted into a variable via a form textarea > $mail_text.

Re: [PHP] read only texbox to html with php

2007-03-21 Thread Shafiq Rehman
Please elaborate the question -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/21/07, Ross <[EMAIL PROTECTED]> wrote: I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn'

Re: [PHP] Name Capitalization

2007-03-21 Thread Shafiq Rehman
Hi, Some problems are universal and we cannot fix them in computer science. I think it's better to educate/guide your visitors about such names that they write in correct capitalization Regards -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/21/07, Tijnema ! <[EMAIL PROTECTED

Re: [PHP] read only texbox to html with php

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 11.51-kor Ross ezt írta: > I have a readonly textbox that gets mailed as a newsletter. The text is a > standard covering letter. The problem is when I try and convert it to html > it doesn't work It is inserted into a variable via a form textarea > $mail_text.

[PHP] read only texbox to html with php

2007-03-21 Thread Ross
I have a readonly textbox that gets mailed as a newsletter. The text is a standard covering letter. The problem is when I try and convert it to html it doesn't work It is inserted into a variable via a form textarea $mail_text. "available on the web site http://www.myurl.org";>http://www.

Re: [PHP] PHP DOM saveHTML outputs entities

2007-03-21 Thread Nicholas Yim
Hello Eli, Best regards, === At 2007-03-21, 15:13:29 you wrote: === >Hi, > >I'm loading a utf-8 xml file into PHP5 DOM, and then use saveHTML() how save() method >method. The result output always convert characters to html enti

Re: [PHP] Flash animation without install Flash!

2007-03-21 Thread Shafiq Rehman
Impossible with flash... You can add GIF for tiny animations. -- Shafiq Rehman (ZCE) http://phpgurru.com | http://shafiq.pk On 3/21/07, Helder Lopes <[EMAIL PROTECTED]> wrote: Hi people, Because the problems with virus in internet the people dont install activex controls. My question is: How

[PHP] trouble with function openssl_csr_new()

2007-03-21 Thread Albert Kopka
Hi ... I want to generate certificate for smardcard login (MS Win-XP) and for do that the subject of certificate should contain same key (in key:value of $dn) multiple times for example ... cert generated by ca suplied with W-2003 server for smartcard login contains: Subject: DC = local,

Re: [PHP] Flash animation without install Flash!

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 09.58-kor Helder Lopes ezt írta: > Hi people, > > Because the problems with virus in internet the people dont install activex > controls. > My question is: > > How to put a flash in the website without asking the person to install > activex control?? I think ther

RE: [PHP] Problem with MySQL

2007-03-21 Thread Németh Zoltán
2007. 03. 21, szerda keltezéssel 00.04-kor Richard Lynch ezt írta: > On Tue, March 20, 2007 11:08 am, Ford, Mike wrote: > >> what do you want with that '@' here? > >> that operator can be used to suppress error messages when calling > >> functions but not when using a variable > > This is most def

[PHP] Flash animation without install Flash!

2007-03-21 Thread Helder Lopes
Hi people, Because the problems with virus in internet the people dont install activex controls. My question is: How to put a flash in the website without asking the person to install activex control?? /Helder Lopes

Re: [PHP] Re: PHP DOM saveHTML outputs entities

2007-03-21 Thread Eli
Tijnema ! wrote: Did you set the UTF8 format in the html_entity_decode function? so your code would become: loadXML("שלום"); $output = $dom->saveHTML(); header("Content-Type: text/html; charset=UTF-8"); echo html_entity_decode($output,ENT_QUOTES,"UTF-8"); ?> Yes. This works... thanks! :-) But

Re: [PHP] Out source files

2007-03-21 Thread Manuel Vacelet
2007/3/21, Richard Lynch <[EMAIL PROTECTED]>: On Tue, March 20, 2007 4:37 am, Manuel Vacelet wrote: > 2007/3/20, Richard Lynch <[EMAIL PROTECTED]>: >> One common pattern in PHP is to not put the file in the web tree at >> all, and write a PHP script with 'readfile' (or fopen/fread/echo >> loop >>

Re: [PHP] image digit to check password

2007-03-21 Thread Dave Goodchild
Om On 3/20/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Tijnema ! wrote: > On 3/20/07, Dave Goodchild <[EMAIL PROTECTED]> wrote: >> Have a look at this: > > Have a look at nothing :) I believe this Dave's way of pointing people to the Great Void :-) >> -- >> PHP General Mailing List (http://www

Re: [PHP] Sockets problem

2007-03-21 Thread Adrian Gheorghe
Thanks for the answer. In the meantime I've managed to solve the problem be removing the pcntl_wait call. Actually I think this is a bug, because as I understand things pcntl_wait shouldn't block the main process, but I don't have experience with either sockets or Unix process, so I might be wrong

[PHP] Re: Reuse PHP functions in a third-party application

2007-03-21 Thread Mikey
Robert Enyedi wrote: I'm not very familiar with the internal architecture of the Zend PHP engine nor with the PHP module mechanism, but can you reuse compiled PHP modules in other applications? Is there a way of calling the functions of a compiled module from a third party C application? Th

Re: [PHP] Reuse PHP functions in a third-party application

2007-03-21 Thread Robert Enyedi
Richard, Thanks for the info. Under these circumstances I suppose that the CGI calling mode is the best suited. On the other hand this option might raise some performance penalty. I wonder if better performance could be achieved if I would use a socket based call interface to my module runni

Re: [PHP] Re: PHP DOM saveHTML outputs entities

2007-03-21 Thread Tijnema !
On 3/21/07, Eli <[EMAIL PROTECTED]> wrote: > What about html_entity_decode? > http://www.php.net/html_entity_decode No. It doesn't help in this case. DOMDocument->saveHTML() method converts any non-ascii characters into entities. For example, if the dom document has the text node value of:

Re: [PHP] _Construct question

2007-03-21 Thread Tijnema !
On 3/21/07, Chris <[EMAIL PROTECTED]> wrote: John Comerford wrote: > Hi Folks, > > I am still pretty new to PHP and I have a question regarding classes and > using _construct. Up until now I have been creating my classes as follows: > > class test1 { > var $name; > function test1($pName) { > $

[PHP] Re: PHP DOM saveHTML outputs entities

2007-03-21 Thread Eli
What about html_entity_decode? http://www.php.net/html_entity_decode No. It doesn't help in this case. DOMDocument->saveHTML() method converts any non-ascii characters into entities. For example, if the dom document has the text node value of: שלום It converts the string to entities:

Re: [PHP] Name Capitalization

2007-03-21 Thread Tijnema !
On 3/21/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, March 20, 2007 8:41 am, Tijnema ! wrote: > What's against just capitalizing the first letter? > > Of course there exists a lot of different combinations where a capital > letter should be, but if names are coming in like MCDONALD or > m