Re: [PHP] PHP bug tracker, it is freely available

2004-08-15 Thread Jean-Christian Imbeault
Christian Stocker wrote: http://cvs.php.net/php-bugs-web/ Thanks! Now, is there any installation documentation? ;) Can't seem to find any under php-bugs-web. Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP bug tracker, it is freely available

2004-08-13 Thread Jean-Christian Imbeault
I absolutely love the PHP bug tracker and was wondering if it freely available software or software internal to php.net only? I've looked around but can't find a link to it anywhere. -- Jean-Christian Imbeault Assistant Manager Technology Department __

[PHP] SID set or unset?

2003-09-09 Thread Jean-Christian IMbeault
tried the following but get an error: Parse error: parse error, expecting `T_VARIABLE' or `'$'' Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Foring a file download *and* page reload

2003-09-01 Thread Jean-Christian IMbeault
Sorry if the solution is obvious but I can't understand what you mean by using a refresh header. Where and when should I use the header? Can you give a short example? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Foring a file download *and* page reload

2003-08-29 Thread Jean-Christian IMbeault
//HTML code goes here print "\n"; print "---Boundary-12399\r\n"; print "Content-Type: application/octet-stream\r\n"; print "Content-Disposition: attachment; filename=foo.tar.gz\r\n\r\n"; readfile("./foo.tar.gz"); print "---Boundary-12399--\r\n";

[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
site" and hence blocking the session cookie from being set ... argh. One more reason to hate frames :) Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
A little update, seems I was wrong about the session cookie being set when the page is first access. The first time the page is accessed no session cookie or /tmp file is generated. I think this may be because the site that is loading my content in a frame is also generating a cookie. Is that a pr

[PHP] Sessions and frames

2003-08-27 Thread Jean-Christian IMbeault
across pages. Why is my first session not kept? I'm a bit confused. Could it have anything to do with the fact that the site that is using my content is also setting a cookie? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Looping through a list - Newbie question

2003-08-27 Thread Jean-Christian IMbeault
explode() and then foreach are your friends :) explode() using the comma as your separator and then traverse the array using foreach. Jean-Christian Imbeault James Johnson wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Frames: how to get the url of the top frame?

2003-08-27 Thread Jean-Christian IMbeault
n the url, i.e., http://bigsite.com/index.html?submit=actionName The problem is that cannot find a way to access the URL form inside the frame. All the $_SERVER vars are relative to my frame. Is there a way for me to access the top (parent?) frame's URL? Thanks, Jean-Christian Imbeau

Re: [PHP] Re: error when using $this

2003-08-21 Thread Jean-Christian IMbeault
quot; either. PHP does not allow values to be assigned to variables outside of functions. So if you have any assignments in the var declaration section put those at the top of your constructor. Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Stopping Output

2003-08-21 Thread Jean-Christian IMbeault
Oliver wrote: > I'm in the process of making a forum in PHP, and am wondering if there is a > way to just stop sending stuff the the client(like if they're banned). What about exit or die? Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-19 Thread Jean-Christian IMbeault
page, the I generate the data file, cause a save-as dialog to open, and then reload the current page (file list) so that I can present the user with a list of buttons (data files he can generate) again (with the button he clicked no longer in the list). Do-able? Jean-Christian Imbeault -- P

Re: [PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-19 Thread Jean-Christian IMbeault
reload itself so that it can remove the file that has just been downloaded from it's list. Is that possible? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to open a save-as dialog and then redirect after donwload?

2003-08-18 Thread Jean-Christian IMbeault
emove the downloaded file from the list displayed to the user. How can I accomplish this? All suggestions welcomed! Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace question

2003-08-17 Thread Jean-Christian IMbeault
xt file. I want preg_replace to replace all occurrences in the text file of the regexp: "#http://www.mydomain.com. How can I get preg_replace to ignore instances of http://www.mydomain.com when it is doing it's global search and replace? Thanks, Jean-Christian Imbeault -- PHP Gener

[PHP] preg_replace question

2003-08-16 Thread Jean-Christian IMbeault
as to, for example, www.mydomain.com. How can I achieve this with a regexp? I'm not very good at 'negative' regexp ... Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4.3.3RC download mirror sites?

2003-08-14 Thread Jean-Christian IMbeault
n trying to connect to downloads.php.net" Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to use array_map() with a class callback function?

2003-08-14 Thread Jean-Christian Imbeault
Peter James wrote: > array_map(array('Maker', 'sGetNameId'), array("1") ) > > Have a look at the callback type, here: > http://www.php.net/manual/en/language.pseudo-types.php Thanks! That did it. Now if only PHP could treat class functions first-class citizens instead of having making us jump t

[PHP] how to use array_map() with a class callback function?

2003-08-14 Thread Jean-Christian IMbeault
he first argument, 'Maker::sGetNameId', should be either NULL or a valid callback Is it possible to use class functions as callback functions? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OO function overloading?

2003-08-14 Thread Jean-Christian IMbeault
", $b = "") {} But that is such an ugly hack ... Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 4.3.3RC download mirror sites?

2003-08-14 Thread Jean-Christian IMbeault
I am trying to download php-4.3.3RC2 from the PHP site but my connection keeps timing out even before the download starts. I'm guessing the main server is too busy? Does anyone know of any mirror sites? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net

Re: [PHP] OO function overloading?

2003-08-06 Thread Jean-Christian IMbeault
Greg Beaver wrote: > This statement isn't entirely correct, overloading is possible with the > overload extension. True. Nice work. But still a hack in my mind :) (though a *very* clean hack). Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] Re: FTP Synching

2003-07-22 Thread Jean-Christian IMbeault
Jwulff wrote: > How would I download any new files on a remote machine to my local one (in a > specific folder) via ftp? And how does this relate to PHP? I can't see a PHP question in there ... if there is one please make it clear :) Jean-Christian Imbeault --

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Jean-Christian IMbeault
Ivo Fokkema wrote: > > May I add this little note from the PHP installation txt file : > > > ATTENTION: Apache 2 Users > >At this time, support for Apache 2 is experimental. It's >highly recommended y

Re: [PHP] CLI php: how to use different php.ini file

2003-07-22 Thread Jean-Christian IMbeault
Jacob Vennervald Madsen wrote: > > php -c Thanks! I hate to say it but this was actually in the manual :( I just didn't know where to look ... http://php.net/manual/en/features.commandline.php Jean-Christian Imbeault -- PHP General Mailing List (

[PHP] Re: Apache 2.x and PHP

2003-07-22 Thread Jean-Christian IMbeault
Miguel Angelo wrote: > > Is PHP capable of running on Apache 2.x and if so what version ? > And is it stable ? PHP will run on Apache 2 but ... #1 Apache 2 is multi-threaded whereas PHP is not. You need to turn Apache 2's multi-threading off. #2 Turning Apache 2

[PHP] CLI php: how to use different php.ini file

2003-07-22 Thread Jean-Christian IMbeault
me to either use a different php.ini file for my CLI PHP calls or to tell PHP *not* to auto-prepend the file? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: caching question

2003-07-19 Thread Jean-Christian IMbeault
Found somewhat of an answer here http://www.mnot.net/cache_docs/: "By default, objects processed by PHP are not assigned validators, and are therefore uncacheable" Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Re: classes v. functions

2003-07-19 Thread Jean-Christian IMbeault
I am sure someone will call this heresy, but if you really want OO don't do it in PHP. If you are new to OO and start with PHP you will do yourself a grat disfavour. OO programming in PHP is still not ready. If you try and program in OO in PHP you have to learn all of it's shortcomings

[PHP] caching question

2003-07-19 Thread Jean-Christian IMbeault
max-age=0 What does this variable mean and where was it set? Any and all help appreciated! Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: stupidity check: (to disable transparent session id)

2003-07-02 Thread Jean-Christian IMbeault
Jason K Larson wrote: > I'm almost perfectly certain this *should* work ... can anybody shed > some light on why it doesn't? > > $retval1 = ini_set ('session.use_trans_sid',false); Just a quick guess but isn't that one of the settings you *can't* change on the fly since it h

Re: [PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jean-Christian IMbeault
Jason Wong wrote: > > Find out where your mysql.sock is and edit php.ini to match. Good idea. The problem was that the installation instructions for MySQL for vague and confusing. I started trying to install from rpm and that didn't work. I then installed from the binary

[PHP] mysql_connect(): '/tmp/mysql.sock' error

2003-06-26 Thread Jean-Christian IMbeault
up and running and I can connect fine using the command line client. Do I need some special configuration? Any advice appriciated! Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: client side cache

2003-06-23 Thread Jean-Christian IMbeault
Aljosa Mohorovic wrote: > i have problems with client side cache, how can i disable it? > i use this, but it still caches pages. What are your problems exactly and what is the client? Remember that the client might not be honouring your caching headers and if that is the case

Re: [PHP] How to find if a string is an integer?

2003-06-11 Thread Jean-Christian IMbeault
Dvdmandt wrote: It's not that killing... :p preg_match("#^-?[0-9]+$#",$_POST["var_int"]); Not *that's* a mouthful ... I was also thinking about that === operator.. And this: if(((string)((int)$_POST["var_int"]))==$_POST["var_int"]) Cute. Might actually work too! Wonder if there would be any differ

Re: [PHP] How to find if a string is an integer?

2003-06-11 Thread Jean-Christian IMbeault
Felipe Desiderati wrote: try this: if (ereg("^[0-9]+$", $_POST["var_int")) echo "is int"; That's not the best regexp. It doesn' take into account negative integers and isn't there a [[:numeric:]] or something like regexp that would work better. I'm looking for the simplest method and the on

[PHP] How to find if a string is an integer?

2003-06-11 Thread Jean-Christian IMbeault
to come up with is: if (is_numeric($var) && is_int((int)$var)) But I ma hoping there is something simpler ... Any ideas? thansk, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs. jsp, advice please

2003-06-10 Thread Jean-Christian Imbeault
offer an opinion on this? Is persistence with jsp that much easier compared to PHP? And if true persistence is possible is it all it's cracked up to be? I've often dreamed of being able to have true persistence but if I had it maybe I wouldn't find it all that useful once I'd

[PHP] Re: HTML and PHP

2003-06-10 Thread Jean-Christian Imbeault
And so on ... Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: if ($xxxxx) { function not working?

2003-06-10 Thread Jean-Christian Imbeault
Please post the whole code. If I understand what you are attempting to say you are probable just missing braces in the right place or php start -end tags. Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Printing Issue

2003-06-09 Thread Jean-Christian Imbeault
of knowing what font the browser is using to display the data, hence you cannot know how many lines you can print. PHP cannot help you in this case. I might be wrong but I doubt it. Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] PHP vs. jsp, advice please

2003-06-09 Thread Jean-Christian Imbeault
g out more and maybe even switching. I just hope that if I do decide that struts are worth the switch the learning curve isn't too steep. Or the installation curve also since I'm the lone sysadmin too ... Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.ph

[PHP] Re: fetch then put record?

2003-06-09 Thread Jean-Christian Imbeault
asses in that are not part of your form data. Oh, and there will be a trailing "," you need to trim off ... Just a quick idea. -- Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: working with sessions

2003-06-09 Thread Jean-Christian Imbeault
of course would be to use a database instead of a text file though :) Jean-Christian Imbeault Matt Palermo wrote: > I am doing this, because I am making a text file with a list of all > existing sessions. Then another page checks to see if all of these are > still active and exist, and

[PHP] Re: working with sessions

2003-06-09 Thread Jean-Christian Imbeault
want to do this? Maybe we can offer a better way of achieving what you are *really* trying to do :) Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fetch then put record?

2003-06-09 Thread Jean-Christian Imbeault
Steve B. wrote: Hello, In ASP you can set records fields then call a dbupdate function. There is no such function in PHP. It appears mysql only supports update with the UPDATE query? Huh ... MySQL is a database. It understands SQL. dbupdate() is an ASP function ... don't blame MySQL if it doesn't

[PHP] PHP vs. jsp, advice please

2003-06-09 Thread Jean-Christian Imbeault
used PHP so they can't really compare the two. Can anyone give personal opinion of a comparison of the two? Are they two completely different beast hence totally for totally different purposes? Or are they two languages that are mostly used for the same things? Thanks, Jean-Christian Imbe

[PHP] Re: Linux question with mysql

2003-06-08 Thread Jean-Christian Imbeault
d to add a path like you would in windows (Enviroment Paths)? Furthermore this is a PHP list ... for MySQL support you would be much better off posting to a MySQL list no? ;) Unless of course there *was* something related to PHP in your question that I somehow missed? Jean-Christian Imbeault -- P

Re: [PHP] Re: use print

2003-06-08 Thread Jean-Christian Imbeault
. Did I understand you question correctly? Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newman Isn't trying very hard

2003-06-08 Thread Jean-Christian Imbeault
Philip J. Newman wrote: Is there a way of changing only the 1st letter of a string to caps and the rest to lower? eg: foo bar to Foo Bar Newman, search the PHP documentation before posting will you? What you want is the function called ucwords() http://jp.php.net/manual/en/function.

[PHP] Re: use print

2003-06-07 Thread Jean-Christian Imbeault
nt to do? Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [Newman] How to pass an image through PHP.

2003-06-07 Thread Jean-Christian Imbeault
Philip J. Newman wrote: I would like to know where i should be looking to pass an image through PHP Could you elaborate on what you mean by "pass an image through PHP"? I'm not quite sure what you mean. What exactly do you want to do? Jean-Christian Imbeault -- PHP General Mai

[PHP] output_handler in php.ini: how to use custom function

2003-05-30 Thread Jean-Christian Imbeault
to it, before being sent out to the browser. Since I will be doing this on all my pages I don't want to hard-code a call to ob_start() on each and every page. I am hoping I can do this with a setting in the php.ini file. Any suggestions? thanks, Jean-Christian Imbeault -- PHP General Ma

Re: [PHP] http->https->http redirection causes browser to show alertdialog

2003-03-13 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: Why don't you just leave them in https? Is this a performance issue? Performance and also the fact that (if I remember correctly) session variables are not passed from http to https nor vice versa. And more importantly any relative links in page will turn to https links

Re: [PHP] http->https->http redirection causes browser to show alertdialog

2003-03-13 Thread Jean-Christian Imbeault
Cpt John W. Holmes wrote: You'll have to output a message on the HTTPS page, like "Thank you, click here to continue", otherwise there's no way around the message. It's a client side issue, other browsers may or may not do it. Yuck. I see that Hotmail does something similar, You login though HTTPS

[PHP] http->https->http redirection causes browser to show alert dialog

2003-03-13 Thread Jean-Christian Imbeault
I have a login page with a form where users enter there login and password. The form's action is "https://mysite.com/login.php";. login.php authenticates the user and if the authentication is successful it ends with a: header("Location: http://mysite.com/welcome.html?a=b&c=etc...";); The problem I

[PHP] Re: registration

2003-03-05 Thread Jean-Christian Imbeault
Diksha Neel wrote: $connection=mysql_connect("localhost","root","")or die("Could not connect"); print "Connected successfully"; mysql_select_db("bdoi_change")or die("could not select database"); echo " $login " The line above you give you an error ... echo" Login ID * "; ?> There'

[PHP] Security Q (persistent in-memory var possib;e?)

2003-03-05 Thread Jean-Christian Imbeault
superglobal for PHP (and then I delete the source code)? Any suggestions are welcomed! Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-I18N] addslashes(): Is it multi-byte safe?

2003-03-02 Thread Jean-Christian Imbeault
Moriyoshi Koizumi wrote: You can avoid this issue by configuring a PHP build with --enable-zend-multibyte option and set mbstring.script_encoding to SJIS. Or better yet, make sure that all pages are in EUC-JP and use that for internal encoding too, right :) And also translate all user input to

[PHP] Re: [PHP-I18N] addslashes(): Is it multi-byte safe?

2003-03-01 Thread Jean-Christian Imbeault
From an email. Reposting to to list for thos who might have the same question later on :) Moriyoshi Koizumi wrote: > > Oops, I should have said mbstring.encoding_translation=on actually :) Ok. Turning that on. >>In which case I am safe :) But then again anyone who would want to try >>an SQL inje

[PHP] Re: [PHP-I18N] addslashes(): Is it multi-byte safe?

2003-03-01 Thread Jean-Christian Imbeault
Moriyoshi Koizumi wrote: Partially yes. Strings encoded in GB2312(CP936), big5, Shift_JIS are known to be clobbered by addslashes(). Sh*t ... and I just added a whole bunch of addslashes() to my code to prevent SQL attacks. And of course my web pages are for Japanese ... and most of them will b

[PHP] addslashes(): Is it multi-byte safe?

2003-03-01 Thread Jean-Christian Imbeault
Is addslashes() multi-byte safe? I will bu sing it to escape multi-byte input and wouldn't want it to mangle anything... Thanks, Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] BBS software in PHP?

2003-02-19 Thread Jean-Christian Imbeault
Can anyone recommend a simple (and free) BBS module/software written in PHP. preferably something that writes to a DB and preferably PoserSQL. I would like to add some bulletin board functionality to my web pages but don't feel like reinventing the wheel :) Jc -- PHP General Mailing List (htt

[PHP] Re: Need To Find A php Person

2003-02-07 Thread Jean-Christian Imbeault
I might be able to help you with support/customization of your application depending on what kind of PHP application it is. I have a great deal of experience programming with PHP and developing large application. Could you let me know what kind of application you have? Jc Michael McGlaughlin

[PHP] Re: mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
I fixed my problem. For archive purposes (as of PHP 4.3.0), to install mcrypt support you only need to install libmcrypt. No need for mcrypt, or mhash ... forget anything else you might read. The installation problem I had was indeed a bug in PHP which I am happy to say is fixed in the latest

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Tom Rogers wrote: Looks that way :) I also have that in /usr/src and in php as --with-mhash=/usr/src/mhash-0.8.17 Still no go. Did you compile into php 4.3.0? I finally got libmcrypt, mhash and mcrypt to make and install, but can't get PHP to work with --with-mcrypt OR --with-mcrypt=/usr/loc

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Jason Sheets wrote: You need only libmcrypt, mcrypt is a command line program that is intended to replace the Unix crypt program. To build the mcrypt binary you need mhash and libmcrypt, for PHP unless you want mhash you need only libmcrypt. Ok, so to build mcrypt support into PHP I only need

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Tom Rogers wrote: I did it this way untar libmcrypt and mcrypt into /usr/src then in libmcrypt ./configure --prefix=/usr (could be /usr/local if you want make make install ldconfig cd ../mcrypt-2.6.3 Up to here fine. ./configure --prefix=/usr configure: error: "You need at least libmhash 0.

Re: [PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Adam Voigt wrote: Download MCRYPT SRC. tar -zxf mcrypt.tar.gz cd mcrypt ./configure --prefix=/usr/local/mcrypt From the commands you give you imply that libmcrypt is not needed. Are you sure? The configure command you give does not work. Here's the complete error: [root@host110 mcrypt-2.6.3]

[PHP] Re: Execute at a defined time

2003-02-05 Thread Jean-Christian Imbeault
Do a "man crontab" to get info. Or Google for turotials on how to use cron. Also make sure that PHP is available from the command line. Do a simple test, on the command line type: php --version If you get version iformation as output the PHP is installed for command line useage and will work

[PHP] mcrypt installation problems

2003-02-05 Thread Jean-Christian Imbeault
Can anyone point to information on how to install mcrypt support for PHP. I tried the PHP mcrypt pages but they are quite lacking in details. I downloaded libmcrypt and got that installed fine. I also downloaded mcrypt (do I really need it?) but that wouldn't configure. It complains that: chec

[PHP] Re: Last error: how to get?

2003-01-29 Thread Jean-Christian Imbeault
Found it, if track_errors is set then the last error is in $php_errormsg. However be careful as the variable is initially not set and doing a if ($php_errormsg != "") will resultin an error. Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] Re: Accessing $php_errmsg give an error ...

2003-01-29 Thread Jean-Christian Imbeault
My mistake, spelling sold be php_error,sg. Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessing $php_errmsg give an error ...

2003-01-29 Thread Jean-Christian Imbeault
I am trying to access the last error message using the superglobal $php_errmsg. But trying to acess that var gives a "not defined" error ... Running this script gives me: ini_set("track_errors", true); error_reporting (E_ALL); $a = $php_errmsg; die; ?> Notice: Undefined variable: php_errmsg i

[PHP] Last error: how to get?

2003-01-29 Thread Jean-Christian Imbeault
Is there a simple way for me to programmatically know if an error has occurred during my script? (besides from writing a custom error handler?) I want to be able to know at the end of my script if any errors where thrown and then show a simple message. I know that if the error is fatal my scrip

[PHP] Installation problem

2003-01-26 Thread Jean-Christian Imbeault
I've installed PHP and Apache countless times but it seems I have forgotten something somehow because I can't for the life of me get apache to install PHP as a static module. Argh ...! I'm trying to get PHP 4.3.0, Apache 1.3.27, openssl-0.9.7, mod_ssl-2.8.12-1.3.27 all working together but to n

[PHP] Re: query caching & caching in general

2003-01-23 Thread Jean-Christian Imbeault
Justin French wrote: anyone got any links to decent tutorials on sql caching, and caching in general? A few questions: At what level do you want the caching? Are you talking about stored procedures? Do you mean storing functions in the DB? (some DB's, like PostgreSQL can compile functions onc

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Rasmus Lerdorf wrote: No, you didn't understand correctly. I specifically said the thread safety issues were in 3rd party libraries and not in PHP. Sorry, I thought by 3rd party libraries you meant libraries that PHP is dependent upon. Do you mean libraries used by PHP or Apache. And if thes

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Rasmus Lerdorf wrote: Because the server doesn't work very well yet. There are issues in the filter api and you can't really uses a threaded mpm as many of the 3rd-party libraries that are commonly linked into PHP are simply not threadsafe. Thank you! That's the kind of answer I was looking

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Yasin Inat wrote: it depends on you & your aim Ok, to put it more simply, Are there cases where something would work in Apache 1.3.27 + PHP that would break in Apache2 + PHP?? A simple yes or no will suffice. If the answer is no, I am curious as to why not ... Thanks, Jc -- PH

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Henry wrote: what issues for example? I do know I can successful install php in module with apache2.0.43 without error messages, also execution was successful can you tell me what issues did you see? A successful install means nothing. My question is basically, does Apache2 work with PHP 100% o

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Henry wrote: Apache2 now work with php in aspx (PHP is as a module) Really!? I was sure there were still some issues ... Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
I don't want to start a flame-war here, just asking for specifics on a question I have :) I know that PHP and Apache 2 (on Linux anyway) have some problems working together. I was just wondering, for my own education, why is that? Is it a problem in Apache 2 or in PHP? (Not that I want to lay b

Re: [PHP] php.ini: how to load different ini file depending on host?

2003-01-19 Thread Jean-Christian Imbeault
Thanks to everyone for the suggestions. I finally got what I wanted by doing it a directive in the httpd.conf file. Thanks again! Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini: how to load different ini file depending on host?

2003-01-19 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: Inside each of the Virtual Host defs you can put most of the php_flag etc settings just like: Oops .. I forgot to mention that these two website do *not* have different IP addresses. Actually these are two testing website on my local LAN. What I have is to have a di

[PHP] php.ini: how to load different ini file depending on host?

2003-01-19 Thread Jean-Christian Imbeault
On my web server (Apache) I have two sites and I would like each site to use a different php.ini. What is the correct way for me to have each site use it's own php.ini file? I figure it's a setting in the apache conf file but I can't figure out which ... Thanks, Jc -- PHP General Mailing Li

[PHP] Re: Advanced Search

2003-01-14 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: I don't want to have to write 50 different ifelse statements unless I have to. You can add all the boolean fileds in the query and not worry about doing if's to check them, the DB will automatically find the fields that match for boolean fields (just make sure to i

Re: [PHP] Trapping PHP errors

2003-01-14 Thread Jean-Christian Imbeault
Michael Sims wrote: My site has a custom error handler (implemented via set_error_handler) which sends a nicely formatted email including all of the error details, a variable dump, the contents of the output buffer before the error occured, and the contents of a call to debug_backtrace, in additi

[PHP] Re: upgrading from 4.0.6 to 4.3.0

2003-01-14 Thread Jean-Christian Imbeault
Gamin wrote: I have currently working a Red Hat 7.2 system that installs PHP 4.0.6 from the CD and it works fine. I want to upgrade to ver 4.3.0 what would be the simplest way to do this without breaking any of the old modules etc. I wont mind making changes to my scripts in case of changes

[PHP] Re: version switch problem

2003-01-10 Thread Jean-Christian Imbeault
You high jacked someone else's thread, probably because you hit the "reply-to" button and just changed the subject line instead of posting a "new" message. Try posting again, creating a new message this time. You'll start your own thread and will definitely get more answers ... Jc Christian S

Re: [PHP] calculate the traffic size with php(like the apache

2003-01-10 Thread Jean-Christian Imbeault
I'm not sure what you are trying to do exactly (i haven't been following this thread) but if you want to analyze apache web logs try analog. It can do everything and is *blazzingly* fast. I use on log file that are 10 Gb or greater ... http://www.analog.cx Jc -- PHP General Mailing List (htt

[PHP] Re: PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jean-Christian Imbeault
To all who replied to my initial question ... I actually did *not* have problems with transactions in the way I first implemented my abstraction layer. In the case of PHP "If a second call is made to pg_connect() with the same connection_string, no new connection will be established, but instea

Re: [PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jean-Christian Imbeault
Jason Sheets wrote: Manual Excerpt: " If a second call is made to pg_connect() with the same connection_string, no new connection will be established, but instead, the connection resource of the already opened connection will be returned. You can have multiple connections to the same database if

[PHP] PostgreSQL/PHP: transactions: how-to abstract out?

2003-01-09 Thread Jean-Christian Imbeault
Hi. I thought I had abstracted out the SQL querying part of my code out, just to find out today that it doesn't work when it comes to transactions. I had come up with this code: function sql_query($sql) { $conn = pg_connect("dbname=JC user=postgres"); $res = pg_exec($conn, $sql); if (!$re

Re: [PHP] how to make server response to emails

2003-01-09 Thread Jean-Christian Imbeault
See Kok Boon wrote: Sorry, I am abit dumb. Where is the archive that you refer to in your email? The PHP archives. Go to the PHP web site and follow the links to the mailing lists page. There you will find links to the archives. Jc -- PHP General Mailing List (http://www.php.net/) To unsubs

[PHP] Re: money

2003-01-09 Thread Jean-Christian Imbeault
Wilbert Enserink wrote: I wanrt to display amounts like "2 products a ? 6,25 = ? 12,50" Whatever I try I can't get the comma there (it's showing a point "." and it doesn't display the second number behind the comma i.e. "12.5" Show us some code and maybe we can help. If you don't give any code

Re: [PHP] How to detect a PHP script time-out?

2003-01-09 Thread Jean-Christian Imbeault
Tamas Arpad wrote: There was a discussion about this topic on the dev list, and because of many reasons the current functionality of register_shutdown_function() will remain the same in future releases too. Joseph Tate is working on a new function (apache_register_shutdown_function) to make it

[PHP] Re: how to make server response to emails

2003-01-09 Thread Jean-Christian Imbeault
I'm not sure how it's done exactly but I think the basic concept is to have a daemon running, or have your program run by cron, and have the program collect it's mail. On Linux I think you can get your mail simply by fetching and parsing the file /var/spool/mail/"username", where username is th

Re: [PHP] string prints out as number (E+10...), why?

2003-01-09 Thread Jean-Christian Imbeault
- Edwin wrote: [...] As you can see, PHP didn't "touch" the string version... True. My var is being passed in as a POST var so maybe that has something to do with it ... Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >