Re: [PHP] Persistent database connections in PHP

2003-09-04 Thread murugesan
Just use the same header. and in the next page use ... Murugesan - Original Message - From: "Cesar Aracena" <[EMAIL PROTECTED]> To: "'Shivanischal'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 05, 2003 11:27 AM Subject: RE: [PHP] Persistent database connections i

RE: [PHP] Persistent database connections in PHP

2003-09-04 Thread Cody Phanekham
ooppss forgot this as well... http://au2.php.net/mysql_pconnect > -Original Message- > From: Cody Phanekham > Sent: Friday, 5 September 2003 16:06 > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Persistent database connections in PHP > > > do people even look at the manual? or search the

Re: [PHP] Header()

2003-09-04 Thread Chris Shiflett
--- MiXmAsTr <[EMAIL PROTECTED]> wrote: > How can i do so header opens a new page in a new browser, instead > of opening the page inside the current browser? header() allows you to set HTTP headers in your response to the client. What are you wanting to do exactly? Chris = Become a better W

RE: [PHP] Persistent database connections in PHP

2003-09-04 Thread Cody Phanekham
do people even look at the manual? or search the php.net website? http://au2.php.net/manual/en/ref.mysql.php "Runtime Configuration The behaviour of these functions is affected by settings in php.ini. Here's a short explanation of the configuration directives. mysql.allow_persistent boolean Wh

[PHP] Re: Persistent database connections in PHP

2003-09-04 Thread David Brannlund
http://se.php.net/mysql_pconnect /David "Shivanischal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi friends, > > I wanted help on how to achieve persistent database connections in PHP. The > database i use is MySQL. I would be grateful if u could also guide me to > resources

RE: [PHP] Persistent database connections in PHP

2003-09-04 Thread Cesar Aracena
I haven't heard of persistent connections with MySQL before, and I think is because PHP can't handle it. PHP will connect to the DB every time it has to. Are you really that annoyed for that 0.0003 second that it probably takes your pages to connect to the DB? What I do to manage just ONE connecti

[PHP] Header()

2003-09-04 Thread MiXmAsTr
How can i do so header opens a new page in a new browser, instead of opening the page inside the current browser? -kjetil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Display after a certain date

2003-09-04 Thread John Taylor-Johnston
Anyone have a quick fix for a part of an html page that I do not want to display until after October 1st, and not after October 31st ? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Restart Apache with PHP???

2003-09-04 Thread Anil Kumar K.
Writing something like this as part of a Web application is definitely a bad idea. The requirement is more like that of a remote administration system and Webmin (http://www.webmin.com/) cleanly and safely fits the bill. Webmin can actually do more than just restarting Apache. But it can be co

[PHP] Startup Seeking Expertise in PHP/MYSQL & Open Source : Remote Interns Welcome!

2003-09-04 Thread Lee Shores
We're looking for a few excellent programmers who want to rock out in building out a portal/publisher/record-label/video-distributor using the following applications and technologies from sourceforge.net: phpBB xoops phpnuke geeklog oscommerce postnuke gallery drupal cafelog dmoz RSS/RDF/blogging

[PHP] Persistent database connections in PHP

2003-09-04 Thread Shivanischal
Hi friends, I wanted help on how to achieve persistent database connections in PHP. The database i use is MySQL. I would be grateful if u could also guide me to resources that tell me how to do it. Thanks, -shiva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP] using PHP curl and a client cert

2003-09-04 Thread Scott
Hello, I am trying to post to a ste that requires me to use a client cert. I can get it to work for both windows and unix, but only on the command line. I have tried without success to use the PHP built-in methods for doing this. Here is the command line that works: curl -d "

Re: [PHP] Can Objects be passed to another page?

2003-09-04 Thread Hardik Doshi
Yeah you can pass object using serialize function and later on you can use unserialize function to convert the serialized variable in the original object. --- Radu Manole <[EMAIL PROTECTED]> wrote: > using "serialize" might work > > - Original Message - > From: "Marco Schuler" <[EMAIL PR

Re: [PHP] HTML Template, PHP, Javascript & PATH_INFO

2003-09-04 Thread Richard A. DeVenezia
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Richard A. DeVenezia wrote: > [snip] > > I can do > > - site.com/info/template.html and get two alerts > > - site.com/info/content1.html and see a new text under H1 > > - site.com/info/slick.php/content1.html and get nei

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread ccj
Sorry, via ErrorDocument 404 /error.php in httpd.conf setting. See http://www.php.net/mirroring.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Viraj Kalinga Abayarathna
Thank you Curt for the explanation. Viraj Curt Zirzow wrote: > > * Thus wrote Viraj Kalinga Abayarathna ([EMAIL PROTECTED]): > > > >header("Cache-control: private"); > > > > p.s. > > and also if there is any one wo knows what exactly this header line > > means, > > please post a brief de

Re: [PHP] -f function ???

2003-09-04 Thread Guillermo Scharffenorth
Ok, I get it know. But, can the use of this first parameter be turned on or off using php.ini? According to the developer of the script, it is turned off in my php.ini, but I don't see how it can be turned off and there is no documentation about it. Does this parameter have anything to do with th

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Rx
"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > M, very interesting thread, thanx for starting this. Good comments curt. > > > >>1. (!!!) Absolutely easily generate new sessions with any content for every > >>site on server. > >> > >> > > > > > > > > It's be

Re: [PHP] HTML Template, PHP, Javascript & PATH_INFO

2003-09-04 Thread John W. Holmes
Richard A. DeVenezia wrote: [snip] I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread ccj
Thanks, but it's not the point, I think. Because from aaa.php --> error.php is redirected by Apache. The error.php could not get the POST data via $HTTP_RAW_POST_DATA. If aaa.php send POST data to a existing file , say ccc.php, of course we can get $_POST, $HTTP_RAW_POST_DATA in ccc.php, But if a

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Raditha Dissanayake
M, very interesting thread, thanx for starting this. Good comments curt. 1. (!!!) Absolutely easily generate new sessions with any content for every site on server. It's because of the 'suspect' nature of sessions and cookies that i never place userid,username or password in sessions

[PHP] PEAR

2003-09-04 Thread Richard Baskett
Ok I have loaded the new version of php 4.3.3, but now how in the world do I enable PEAR? I have a couple of scripts that just call a pear php script, but it says it doesn¹t exist.. does this mean that I need to change the include path? How do I include all those pear classes? Thanks! Rick "Too

[PHP] cURL and relative paths

2003-09-04 Thread Colin Kettenacker
I'm coming up against a brick wall on this one. Can one cURL in a web page while automatically resolving all the relative file paths? I've fooled around with regexp to resolve this issue, but it is not a real stable solution. I tried the archives and googled, but there appears to be no solution t

RE: [PHP] Am I dreaming or what :)

2003-09-04 Thread Chris W. Parker
John Taylor-Johnston on Thursday, September 04, 2003 4:57 PM said: > But how do i get $files ? What do you mean "get $files"? This line right here: >> $files = split("\n",`ls *gif`); "get"'s $files. Try print_r($files); and see what happens. Chris. > th

Re: [PHP] Am I dreaming or what :)

2003-09-04 Thread John Taylor-Johnston
But how do i get $files ? thanks :) John Raditha Dissanayake wrote: > this is in fact pretty easy. > this should get you started > > [code] > $files = split("\n",`ls *gif`); > srand((double)microtime()*100); > > $num = rand(0, count($files)); > echo "$num = $files[$num]"; > [

Re: [PHP] Creating Images

2003-09-04 Thread Curt Zirzow
* Thus wrote Jed R. Brubaker ([EMAIL PROTECTED]): > I have been trying to write some image creation scripts, and although I have > a version of PHP that includes image support, I keep getting errors related > to imagecreatefrompng(). Here is the latest error: > > Fatal error: Call to undefined fun

[PHP] Re: Creating Images

2003-09-04 Thread Catalin Trifu
Hi, RTFM: http://de.php.net/manual/en/ref.image.php Cheers, Catalin "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have been trying to write some image creation scripts, and although I have > a version of PHP that includes image support, I keep getting

[PHP] Creating Images

2003-09-04 Thread Jed R. Brubaker
I have been trying to write some image creation scripts, and although I have a version of PHP that includes image support, I keep getting errors related to imagecreatefrompng(). Here is the latest error: Fatal error: Call to undefined function: imagecreatefrompng() in /web/html-docs/psych/jb4920/p

RE: [PHP] Re: cookies under php 4.06

2003-09-04 Thread Jennifer Goodie
> >setcookie("UserName", $HTTP_POST_VARS['UserName'], > time()+(60*10), "/", > > $HTTP_SERVER_VARS['SERVER_NAME']); > >setcookie("Password", $password, time()+(60*10), "/", > > $HTTP_SERVER_VARS['SERVER_NAME']); > >print "login - set cookie"; > > > sorry for kinda answering my own post.

[PHP] Re: cookies under php 4.06

2003-09-04 Thread Comex
> sorry for kinda answering my own post... but anyway... Or you could use header().. http://wp.netscape.com/newsref/std/cookie_spec.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] A bd problem

2003-09-04 Thread Ralph Guzman
First, do not use HTML email for posting questions to the list. Take a look at: $not = $consulta->fetch_row($res); not familiar with your BaseDatos class, but fetch_row will normally return an enumerated array, this means that rather than using $not['Descripcion'] you should be using $not['0'],

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > >>You didnt understand. I change save.session_path to other's site session > >>directory, do session_start(), write every variable what i want, write > >>down > >>session number, go to this site and using this generated session. You > >>cannt > >

Re: [PHP] Front Page User Logout

2003-09-04 Thread Curt Zirzow
* Thus wrote John W. Holmes ([EMAIL PROTECTED]): > John Welty wrote: > > >I'm only accessing the result of the user logging in through > >$GLOBALS["PHP_AUTH_USER"] > > > >I've tried unsetting that but it doesn't change anything. The only thing > >that logs a user out is them closing their browser

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread John W. Holmes
You didnt understand. I change save.session_path to other's site session directory, do session_start(), write every variable what i want, write down session number, go to this site and using this generated session. You cannt prevent this ever! Does enabling safe_mode counter any of these writing

Re: [PHP] Front Page User Logout

2003-09-04 Thread John W. Holmes
John Welty wrote: I'm only accessing the result of the user logging in through $GLOBALS["PHP_AUTH_USER"] I've tried unsetting that but it doesn't change anything. The only thing that logs a user out is them closing their browser and reopening it. I'd like a user to be able to switch usernames by c

Re: [PHP] A bd problem

2003-09-04 Thread John W. Holmes
Carlos Castillo wrote: HI, i have the following problem Im working with sql server 2000 in a windows xp pc, then in the bd i have a table called "noticias" and a text type field, when i insert into the field everything goes rigth, but when i try to get the info of teh field, i can get all the

[PHP] A bd problem

2003-09-04 Thread Carlos Castillo
Title: Mensaje   HI, i have the following problem   Im working with sql server 2000 in a windows xp pc, then in the bd i have a table called "noticias" and a text type field, when i insert into the field everything goes rigth, but when i try to get the info of teh field, i can get all the in

Re: [PHP] Front Page User Logout

2003-09-04 Thread John Welty
I'm only accessing the result of the user logging in through $GLOBALS["PHP_AUTH_USER"] I've tried unsetting that but it doesn't change anything. The only thing that logs a user out is them closing their browser and reopening it. I'd like a user to be able to switch usernames by clicking a link tha

Re: [PHP] multiple select box

2003-09-04 Thread Robert Cummings
Did you remember the [] on the select field's name? Otherwise it will treat data as a scalar and constantly overwrite until the last selected entry is reached. Cheers, Rob. On Thu, 2003-09-04 at 16:39, Steve Goodman wrote: > Hey all, > I'm curious if anyone else has ever come across this problem

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Curt Zirzow
* Thus wrote Rx ([EMAIL PROTECTED]): > > "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > * Thus wrote Rx ([EMAIL PROTECTED]): > > > > You can set the value with > > php_admin_value save_path "/tmp" > > If i set php_admin_value, user STILL can change the value with

Re: [PHP] Q on "inhert" class code

2003-09-04 Thread jsWalter
Evans, thx for your effort. I see what your says, as I noticed the trouble at 3 this morning! This is how I fixed it... $session = &Auth::_importGlobalVariable("session"); $session[$this->_sessionName]['data']['_loginAttempts'] = $this->_loginAttempts; Pretty much the way you indicated.

[PHP] multiple select box

2003-09-04 Thread Steve Goodman
Hey all, I'm curious if anyone else has ever come across this problem: I have a multiple select box named 'chosen'. When it is submitted, only the last option selected appears under $_POST['chosen'], when I print_r($_POST). Any ideas? Thanks in advance, Steve -- PHP General Mailing List (http://

[PHP] RE:[PHP] HTML Template, PHP, Javascript & PATH_INFO

2003-09-04 Thread Chris Sherwood
<-- snip --> I can do - site.com/info/template.html and get two alerts - site.com/info/content1.html and see a new text under H1 - site.com/info/slick.php/content1.html and get neither alert nor new text. - instead I get 4 browser (IE) 'problem alerts', I presume - 1. for not finding js1.js -

[PHP] Use of php_value in .htaccess is not working

2003-09-04 Thread JR
Hello Everyone, I am running Red Hat Enterprise Linux ES release 2.1 (Panama). Originally I was using the Red Hat PHP package. This package was not the most current version so I removed it and compiled PHP 4.3.3. Since doing this I am unable to set things like path using php_value in a .htaccess

[PHP] HTML Template, PHP, Javascript & PATH_INFO

2003-09-04 Thread Richard A. DeVenezia
Help: --- problem My page generated via a template can't find some javascript. setup I am hosted on Apache 1.* I have a folder containing many *.html containing content which I want to be displayed in another style of page. Suppose there is foo/ foo/content1.html ... foo/contentN.html fo

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Rx
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Rx ([EMAIL PROTECTED]): > > Theres absolutely no control over session.save_path parameter in php. By > > setting it to every directory he wants, every user can: > > You can set the value with > php_admin_value

RE: [PHP] Thanks Richard Schwartz

2003-09-04 Thread Chris W. Parker
Curt Zirzow on Thursday, September 04, 2003 10:58 AM said: > You should be more careful at whom your including these replies to :) But public floggings are good every once in a while. :) c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Thanks Richard Schwartz

2003-09-04 Thread Curt Zirzow
You should be more careful at whom your including these replies to :) Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session.save_path is a big security hole!

2003-09-04 Thread Curt Zirzow
* Thus wrote Rx ([EMAIL PROTECTED]): > Theres absolutely no control over session.save_path parameter in php. By > setting it to every directory he wants, every user can: You can set the value with php_admin_value save_path "/tmp" > > 1. (!!!) Absolutely easily generate new sessions with any cont

[PHP] Thanks Richard Schwartz

2003-09-04 Thread Joe Harman
Dude stop being a jerk, I don't treat people this way... Ah, anyhow... It's not me who will judge you Is it? > -Original Message- > From: Richard Schwartz [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 04, 2003 11:28 AM > To: Joe Harman > Subject: Re: Thanks From Joe: ATM Archi

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Tyler Lane
On Thu, 2003-09-04 at 09:33, bob pilly wrote: > Hi all > > Can someone tell me what the correct syntax is to pass > a Session ID via the header redirect is? Im trying: > > header( "Location: page2.php? (SID)?>" ) header( "Location: page2.php?". strip_tags( SID ) ); the problem you are having is

RE: [PHP] Front Page User Logout

2003-09-04 Thread Jay Blanchard
[snip] How can I provide a link which will log the current user out so that they will be prompted again to login. I'm using frontpage authentication on an apache server. I'm using PHP4 to build the pages. [/snip] Are you taking the frontpage variables into PHP? If so you can unset() those variable

RE: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Jay Blanchard
[snip] > FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? [/snip] PHP5 will be using the Zend 2 Engine, and gives a standard way of declaring constructor methods by calling them by the name __construct(). An example from http://www.php.net/zend-engine-2.php

Re: [PHP] -f function ???

2003-09-04 Thread Curt Zirzow
* Thus wrote Guillermo Scharffenorth ([EMAIL PROTECTED]): > Hello, > > I am using a mailing list script which makes use of a function called -f, > according to the developers of the script. The fact is that some > functionality of the script is not working and the developers claim -f is > turned o

Re: [PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Curt Zirzow
* Thus wrote Webmaster ([EMAIL PROTECTED]): > Hi, > > I am just starting to understand how the session handling routines work in > php. > I can pass objects to other scripts. So I can put the language into the > object that the visitor chose at the very first page. > But what if a visitor bookmark

[PHP] Front Page User Logout

2003-09-04 Thread John Welty
How can I provide a link which will log the current user out so that they will be prompted again to login. I'm using frontpage authentication on an apache server. I'm using PHP4 to build the pages. Thanks, --John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread John W. Holmes
Webmaster wrote: Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop(&$page, $array) { for ($i=0; $iassignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do I have to pass

Re: [PHP] syntax error using header and SID

2003-09-04 Thread Chris Hayes
At 18:33 4-9-03, you wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( "Location: page2.php?" ) You are making a row of mistakes that suggest it is a good idea to read a bit on PHP syntax and how variables are passed o

Re: [PHP] syntax error using header and SID

2003-09-04 Thread John W. Holmes
bob pilly wrote: Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( "Location: page2.php?" ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink. header("Location: page2.ph

Re: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Decapode Azur
> FYI ... anything below PHP5 has a pseudo constructor. And how will it be in PHP5 ? > Since you are inheriting the class the 'constructor' for the parent class > should work. If it doesn't (I have not tested it, and neither have > you)then the class extension can contain a 'contstructor' that

[PHP] syntax error using header and SID

2003-09-04 Thread bob pilly
Hi all Can someone tell me what the correct syntax is to pass a Session ID via the header redirect is? Im trying: header( "Location: page2.php?" ) but it isnt working for me and all the docs i can find just deal with tagging it to the end of a hyperlink. Any help would be greatly appreciated!

[PHP] session.save_path is a big security hole!

2003-09-04 Thread Rx
Theres absolutely no control over session.save_path parameter in php. By setting it to every directory he wants, every user can: 1. (!!!) Absolutely easily generate new sessions with any content for every site on server. 2. Delete other users sessions by setting gc to 100 and probably legal files

[PHP] PHP eqivalent of 'smartypants', and other text educating for XHTML, etc

2003-09-04 Thread Justin French
Hi all, Does anyone know of a PHP-oriented tool that achieves some of / all of / more than the things that smartypants (http://daringfireball.net/projects/smartypants/) does? For those too lazy for the link, it does smart/curly quote replacement, and a bunch of other cool ASCII => HTML convers

[PHP] -f function ???

2003-09-04 Thread Guillermo Scharffenorth
Hello, I am using a mailing list script which makes use of a function called -f, according to the developers of the script. The fact is that some functionality of the script is not working and the developers claim -f is turned off in my system. I've looked everywhere trying to find info about this

Re: [PHP] PHP

2003-09-04 Thread Chris Shiflett
--- Jalene Joyner <[EMAIL PROTECTED]> wrote: > I have a user that needs for me to load a version of PHP 4.2.1 or > higher. What I want to know is this available for version 7.3 of > Linux? Yes, although I think you mean to say Red Hat or SuSe or something, as the latest test version of Linux is on

Re: [PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Matt Matijevich
[snip] How can I guarantee that a language is always choosen? I mean how is this done professionally? What do I have to write at the beginning of every page? [/snip] You have a bunch of options. on each page you could add something like this to everypage: if (!isset($_SESSION['language'])){

[PHP] PHP

2003-09-04 Thread Jalene Joyner
I have a server running Redhat 7.3 and PHP version 4.1.2.###. I have a user that needs for me to load a version of PHP 4.2.1 or higher. What I want to know is this available for version 7.3 of Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] mysql Pattern Matching

2003-09-04 Thread Duncan Hill
> From: "Ralph Guzman" <[EMAIL PROTECTED]> > > >> I know this question is best for the mySQL mailing list, but I am unable >> to subscribe to their list at this moment so perhaps somebody here can >> help me out. >> >> I have a table with a field where amenities are listed together using a >> comma

Re: [PHP] mysql Pattern Matching

2003-09-04 Thread CPT John W. Holmes
From: "Ralph Guzman" <[EMAIL PROTECTED]> > I know this question is best for the mySQL mailing list, but I am unable > to subscribe to their list at this moment so perhaps somebody here can > help me out. > > I have a table with a field where amenities are listed together using a > comma delimiter

[PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Webmaster
Hi, I am just starting to understand how the session handling routines work in php. I can pass objects to other scripts. So I can put the language into the object that the visitor chose at the very first page. But what if a visitor bookmarked my homepage and comes back after a few weeks. How can I

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Robert Cummings
I've accidentally had infinite recursion at times. Under Linux if configured, you can get a core dump which can be loaded in GDB to see the stack. I usually know Its infinite recursion when GDB shows a backtrack in the 10s of thousands. Cheers, Rob. On Thu, 2003-09-04 at 06:04, Ronald van Raapho

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Thank you! > putenv("LANG=de_DE"); > putenv("LANGUAGE=de_DE"); // better to be paranoid, works for me ;-) this one did the trick ! > putenv("LC_ALL=de_DE"); > setlocale(LC_ALL, "de_DE", "german"); > > (see some user comments in php manual) i already read the all before posting he

Re: [PHP] Re: gettext i18n

2003-09-04 Thread Christophe Chisogne
Catalin Trifu wrote: Try: putenv("LANG=de_DE") . ''; putenv("LC_ALL=de_DE") . ''; setlocale(LC_ALL, "de_DE", "german") . ''; I would have done this: putenv("LANG=de_DE"); putenv("LANGUAGE=de_DE"); // better to be paranoid, works for me ;-) putenv("LC_ALL=de_DE"); setlocale(LC_ALL, "de_DE", "germ

[PHP] Re: cookies under php 4.06

2003-09-04 Thread Chris Kranz
>setcookie("UserName", $HTTP_POST_VARS['UserName'], time()+(60*10), "/", > $HTTP_SERVER_VARS['SERVER_NAME']); >setcookie("Password", $password, time()+(60*10), "/", > $HTTP_SERVER_VARS['SERVER_NAME']); >print "login - set cookie"; sorry for kinda answering my own post... but anyway..

[PHP] cookies under php 4.06

2003-09-04 Thread Chris Kranz
okay, i know this is stupid, and i'm gonna kick myself when someone points out the obvious... i've just put a site online, and found the server's running an older version of php (4.06). it's virtual hosting, so i have no control over this... also can't tell you what OS it's running, but it is wind

[PHP] Re: gettext i18n

2003-09-04 Thread Desi
Send me your messages.po file, I try it... Gettext is cool, it works very well for me... Desi Catalin Trifu wrote: Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_M

[PHP] Re: gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_MESSAGES/ messages.mo btw! on win32 it works :( Catalin "Desi" <[EMAIL PROTECTED]> wrote in message

[PHP] Re: gettext i18n

2003-09-04 Thread Desi
Hello, Try: putenv("LANG=de_DE") . ''; putenv("LC_ALL=de_DE") . ''; setlocale(LC_ALL, "de_DE", "german") . ''; Desi Catalin Trifu wrote: Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test c

[PHP] Setting register globals in http.conf

2003-09-04 Thread Chris Boget
I'm fairly new to apache so if I say something wrong, that's why. Anyways, I have my virtual host set up in my httpd.conf file as follows: Port 80 DocumentRoot /blah/blah/blah ServerName www.register_globals_must_be_on.com php_value include_path ".:/blah/blah/blah:/blah" php_value register_global

Re: [PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread Jason Sheets
Hi ccj, GET data is passed in the URL, POST data is not so loss of the information would be expected. It sounds like you should use sessions, it is a better way of passing data between pages. Take a look at http://www.php.net/manual/en/ref.session.php Jason ccj wrote: Hi all Based on descr

[PHP] gettext i18n

2003-09-04 Thread Catalin Trifu
Hi, I want to add i18n support for my web site, but it doesn't seem to work. PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test code. As you can see I try all sorts of things. '; echo putenv("LC_ALL=de") . ''; echo setlocale(LC_ALL, "de", "german") . '';

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Jason Sheets
I wouldn't want to see a limit placed on recursion depth, IMHO it is the responsibility of the programmer to limit recursion not the language itself otherwise the language is limiting the programmer. Another possiblity is hitting the execution time limit, sounds like you are using IE with fri

[PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread Webmaster
Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop(&$page, $array) { for ($i=0; $iassignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do I have to pass the object as a

RE: [PHP] Question regarding OOP and interitance

2003-09-04 Thread Jay Blanchard
[snip] I would like to know a constructor function is also inherited to a child class. I mean the child class also needs to have a constructor function but it must have the same name as the class name. How does that work? [/snip] FYI ... anything below PHP5 has a pseudo constructor. Since you are

[PHP] Question regarding OOP and interitance

2003-09-04 Thread Webmaster
Good day, I would like to know a constructor function is also inherited to a child class. I mean the child class also needs to have a constructor function but it must have the same name as the class name. How does that work? Thank you very much. BW -- PHP General Mailing List (http://www.php.

php-general Digest 4 Sep 2003 13:20:42 -0000 Issue 2277

2003-09-04 Thread php-general-digest-help
php-general Digest 4 Sep 2003 13:20:42 - Issue 2277 Topics (messages 161606 through 161645): Session_start() corrupt HTML output with IE 161606 by: hecchan 161615 by: Viraj Kalinga Abayarathna 161621 by: Curt Zirzow 161623 by: Curt Zirzow 161632 by: Ch

[PHP] Question about Error Redirect (URL ShortCuts)

2003-09-04 Thread ccj
Hi all Based on descriptions in /urlhowto.php -- Get it on your site, I tried to redirect GET/POST data to a third page, say, aaa.php ---> error.php ---> bbb.php aaa.php: error.php: Everything goes right with GET method, but POST goes wrong in error.php: The $H

Re: [PHP] is there a php version with curl already integrated?

2003-09-04 Thread murugesan
Refer http://in2.php.net/curl -murugesan - Original Message - From: "Chris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 04, 2003 5:02 PM Subject: [PHP] is there a php version with curl already integrated? > hello, > > i must admit, i'm quite a nub when it come

[PHP] is there a php version with curl already integrated?

2003-09-04 Thread Chris
hello, i must admit, i'm quite a nub when it comes to compiling php myself, so i'm wondering if there is any version of php with curl already bein part of it? i'm running xp with apache 1.3. cheers, chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] mysql Pattern Matching

2003-09-04 Thread electroteque
i'm doin this offlist -Original Message- From: Ralph Guzman [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 10:23 PM To: PHP General Mailing List Subject: [PHP] mysql Pattern Matching I know this question is best for the mySQL mailing list, but I am unable to subscribe to th

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Andrew Brampton
I was just testing PHP with this code: 860) exit(); echo $varible . ''; flush(); blah($varible + 1); } blah(1); ?> This would show 1 to 860, however if I tried any number greater than 860, ie 861 then the page would give the "This page cannot be displayed" page like you we

[PHP] mysql Pattern Matching

2003-09-04 Thread Ralph Guzman
I know this question is best for the mySQL mailing list, but I am unable to subscribe to their list at this moment so perhaps somebody here can help me out. I have a table with a field where amenities are listed together using a comma delimiter like: pool,spa,fitness-center To search this table I

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Marco Schuler
Hi Am Don, 2003-09-04 um 12.40 schrieb Ronald van Raaphorst: > I normally program in clarion (www.softvelocity.com) and an infinite > recursive call will cause a heap overflow... > > As I only got a "This page cannot be displayed" page, an error must have > occurred, but it's not displayed... A

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Ronald van Raaphorst
I normally program in clarion (www.softvelocity.com) and an infinite recursive call will cause a heap overflow... As I only got a "This page cannot be displayed" page, an error must have occurred, but it's not displayed... At first I thought I had lost contact with the site, but then, after a lot

Re: [PHP] suggestion: recursive calls

2003-09-04 Thread Marek Kilimajer
I don't think it is even possible, if the recursive calls don't seem infinite to inteligent human being, how should a stupid computer program find out. Ronald van Raaphorst wrote: Hi all, Not a real bug, but a suggestion: It would be nice if inifite recursive calls would somehow give an error.

[PHP] Re: how to include() N lines?

2003-09-04 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > hello! > > i need to include() only a given amount of lines (the first 10 for example) > instead of a whole file. > > does someone know how this has to be done? > > > thanks a lot for your effort, > best regards include and friends on

[PHP] suggestion: recursive calls

2003-09-04 Thread Ronald van Raaphorst
Hi all, Not a real bug, but a suggestion: It would be nice if inifite recursive calls would somehow give an error. I spend quite some time to find the error in my php script. Ronald -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Too Advanced? Re: Cookies & Hidden Image

2003-09-04 Thread Marek Kilimajer
I don't accept third party cookies. Maybe your browser is set up so it does not too. Check the privacy & security settings. Nicole wrote: The cookie is being accessed by the same domain it was generated by. The problem is, the script is being pulled up via a hidden image (which resides on a diffe

Re: [PHP] Q on "inhert" class code

2003-09-04 Thread Evan Nemerson
It looks like you're trying to access a variable of a class, not an instance of that class. try something more like $authObj = new Auth; $session = &Auth::_importGlobalVariable("session"); $session[$authObj->_sessionName]['registered'] = true; I'm pretty sure php4 doesn't allow access to variabl

Re: [PHP] Session_start() corrupt HTML output with IE

2003-09-04 Thread Christophe Chisogne
hecchan wrote: Using IE 6 (XP) i can't see the source generated for PHP even the page works properly (It doesn't happend with Mozilla or Opera). The "View source" in IE 5 and 6 is buggy : it doesnt work as soon as "there are too many files in the Temp Internetfiles folder". sic. Solution is of cou

  1   2   >