Re: [PHP] sessions and trans-sid problem/question

2002-11-23 Thread Jean-Christian Imbeault
Ernest E Vogelsinger wrote: > if ($_COOKIE[$_SESSION['cookie_name']] == $_SESSION['cookie_token']) { Ok, please forgive my ignorance, but in PHP isn't $_COOKIES the same as $_SESSION?. I thought it was if the user had cookies turned off (and even if the user had cookies turned on come to t

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Jean-Christian Imbeault
Michael Sims wrote: I 'm not where I can test this right now, but if a session is older than session.gc_maxlifetime, isn't it invalid anyway? I.E. if I bookmark a page on your site and then come back 3 hours later passing an old SID, shouldn't that session have expired on the server by that time

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Jean-Christian Imbeault
Michael Sims wrote: Then I suppose it's just an added feature of the session handler I am using. Maybe the OP should give it a shot, as I use it and I definitely don't have a problem with expired sessions I'll think about writing my own session handler as it can be quite useful. However I nee

[PHP] Re: Creating mySql search feature.....

2002-11-24 Thread Jean-Christian Imbeault
Cookra wrote: Any help would be ideal Some code would be nice. Youdidn't post any code so we have no idea what your problem might be ... do you get an error message, or no results, or the wrong results? We don't even what what SQL query you are using ... Jc -- PHP General Mailing List

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Jean-Christian Imbeault
Ernest E Vogelsinger wrote: No, that's a misunderstanding. Session var's are never passed to and from the client, only the session _name_ is passed, either via a cookie (PHPSESSIONID) or via trans-sid href encoding. Thanks for clearing that up! I hadn't realized that only the session name was

Re: [PHP] sessions and trans-sid problem/question

2002-11-24 Thread Jean-Christian Imbeault
Justin French wrote: What sort of stuff are you storing in the session that your are worried about with too many writes? Oh, this site is just your regular, run-of-the-mill, amazon.com copy. For each open session I store up to 20 variables. It's not a lot, but each access to a script means a

[PHP] Re: Huffman encoding

2002-11-24 Thread Jean-Christian Imbeault
Hatem Ben wrote: I'm looking to implement the huffman encoding in PHP, but i would like to ask if it isn't already done ? (why reinventing the wheel) You have highjacked someone else's thread. Not very nice of you Please repost and start your own message thread ... highjacked threads rar

[PHP] Cybercash/Verisign and PHP possible?

2002-12-12 Thread Jean-Christian Imbeault
My company wants to set up online credit card functionality and we are thinking of going with a company called Veritrans (I believe they are the japanese branch or cybercash for Verisign in Japan). However they do not support PHP. They only offer kits for Perl and Java. Unfortunately for me the

[PHP] Re: Count lines from php files

2002-12-12 Thread Jean-Christian Imbeault
Antti wrote: How can I count how many code lines I have written? I have many php files in one directory. I'm using linux.Do you know any non-php way to count the lines. from a directory one level above where all your files lie do this: (assuming all you files are in a directory called php) #l

[PHP] Re: Cybercash/Verisign and PHP possible?

2002-12-12 Thread Jean-Christian Imbeault
Matty Rozen wrote: by using the 'curl' module, you can use any calls needed to any type of scripts. you can use curl to "talk" with the cgi. Ok, I'll look into CURL. If I understand their system, it is meant to be called from a form so CURL might be applicable. > let me know if you need more

[PHP] Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
On my web site there are some areas that I want to make accessible only after a user has logged in (for example when placing an order, etc ...) I have been able to achieve this however I have the following problem: 1- user logs in 2- user goes to restricted area 3- user views pages, orders an it

[PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
Tularis wrote: I adives to make sure the browser doesn't cache it *at all*. This can be done using (one, or more) of the following headers: // HTTP 1.1 compliant: header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP 1.0

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
Justin French wrote: I know it sounds simple, but try to analyse what other big sites are doing in this situation: That's exactly what I did, but I don't understand *how* they do it hence my question. I surfed some of the big sites and saw that they do not break when a user hits the back but

Re: [PHP] Re: Securing areas of a web site with PHP

2003-01-01 Thread Jean-Christian Imbeault
Jason Wong wrote: The cache-control directives are only supposed to be followed if the page was to be _explicitly_ reloaded or refreshed. The BACK button (as specified in the standards rfc something or another) is NOT supposed to reload or refresh a page -- it is supposed to redisplay the

[PHP] Re: undefined constant?

2003-01-06 Thread Jean-Christian Imbeault
Markus JäNtti wrote: You forgot the double quotes ... Should be: if($_GET["test"] ... Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: populate a list menu

2003-01-06 Thread Jean-Christian Imbeault
Bruce Levick wrote: I am looking to populate a list menu with the current date and then the 30days after that current date. Is there a small snippet of code that achieves this?? Hvae a look at date(), mktime() in the manual. Here something that should help you get started, it is untested. fun

Re: [PHP] populate a list menu

2003-01-06 Thread Jean-Christian Imbeault
Bruce Levick wrote: That's sweet. Can you just satisfy my curiosity and explain the 86400?? I am thinking this might be minutes?? It the number of seconds in a day. But that solution doesn't take into account Daylight Savings Time. The one I posted does, I think ... Jc -- PHP General Mailin

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

2003-01-07 Thread Jean-Christian Imbeault
How can I detect if my PHP script is about to time-out? I would like to be able to detect a time-out and display a page with an appropriate error message "i.e. the server is busy now, please try again later". Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

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

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: Set up output buffering on your page then if the page times out the buffer should be sent to the browser and that is loaded with your message. Ok. Is there another solution? The reason I ask is that in order to use your solution I would need to redesign my pages (qui

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

2003-01-07 Thread Jean-Christian Imbeault
Greg Beaver wrote: http://www.php.net/manual/en/features.connection-handling.php Nice! So if I understand correctly I need to: 1- register a shutdown function 2- have this function check if it was called b/c of a conection_timeout() 3- And if so have the function print out my timeout error me

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

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: Issue... as I said before the register shutdown won't work because: - output from the shutdown is not visible nor do you have access to some variables You are right. From the manual: http://www.php.net/manual/en/function.register-shutdown-function.php " The registere

[PHP] Re: ~E_NOTICE, why not ?

2003-01-07 Thread Jean-Christian Imbeault
Pupeno wrote: $oer = error_reporting(E_ALL & ~E_NOTICE); $tpl->display("index.html"); error_reporting($oer); but it still reports notices, any idea ? Should be error_reporting (E_ALL ^ E_NOTICE); See: http://www.php.net/manual/en/function.error-reporting.php Jc -- PHP General Mailing List

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

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: There is one last option ... register an output buffer as I suggested before suggested but this time do the reverse and you don't have to rewrite your scripts: Ok I think I understand what you are proposing. I just have one question about your example code. Where does

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

2003-01-07 Thread Jean-Christian Imbeault
Timothy Hitchens ) wrote: No you can't.. the issue with this is that you need to have error reporting turned on.. so you will need to have more error collecting or removing. [..] This isn't the best for a production env but this is the best I can see considering you don't want to rewrite!! Ou

[PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
I am trying to use a command line program in Linux using this form: $result = `/path/prog $arg`; But this doesn't work as the program is expecting and EOF that never comes. If I use the program on the command line when I am finished entering all the data I need to hit return and then CTRL-D to

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Marek Kilimajer wrote: $result = `echo | /path/prog $arg`; should work That didn' work ... don't know why. Isn't there a way to say echo "EOF"? There must be a way to specify the ascii or hex value for EOF in an echo statement no? Jc -- PHP General Mailing List (http://www.php.net/) To u

[PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
I also tried tried with popen with no success. $fp = popen('/usr/src/bsfmdk/CCCallServer 2>&1', 'r'); fwrite($fp, $query); $result = fread($fp, 8096); echo "result is "; echo "$result "; I get back and empty result string ... Any more hints? Jc -- PHP General Mailing List (http://www.php.net/

Re: [PHP] EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Marek Kilimajer wrote: What prog is it anyway. It is a credit card processing program. It is interactive. You can it, type values in hit return, then ctrl-D and it spits out a status code. If I put all the values in a file I can get the prog to work by doing: #./prog < filename It does not

[PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
I'm at wits end ... I've tried everything from system(), shell_exec(), bacticks, popen() and still no go ... I even tried writing the data to file first and then doing a system("./prog 2>&1 < ./datafile") and that didn't work either. I know that it shoudl work b/c if from the command line I iss

[PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Ok, found the problem. The external program I was trying to run is only happy is it is called from the same directory as the one it resides in. I guess it needs to access files in it's directory and by calling from php somehow it gets confused as to where to files are. Thanks to everyone for th

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

2003-01-08 Thread Jean-Christian Imbeault
Tamas Arpad wrote: That's not right now. The manual is outdated. See this bug report http://bugs.php.net/bug.php?id=15209. This behavior was changed from 4.06 to 4.1. In newer versions of php the registered functions will run before the connection is closed so ouptput can be done from there as

Re: [PHP] Re: EOF: how to generate one in a string

2003-01-08 Thread Jean-Christian Imbeault
Matt Vos wrote: What is the ASCII value of an EOF? Find that and use For the benefit of those reading this in the future the value is 4, so use chr(4); Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-08 Thread Jean-Christian Imbeault
Robert Fisher wrote: If you are willing to do a rewrite, then have your main script start a fork, or child process. According to Arpi (see below) I can use register_shutdown(), as the docs are wrong and it *will* send output to the browser *before* the connection is closed. Jc >Tamas Arpad

[PHP] Re: How to strip extra characters off of a string

2003-01-08 Thread Jean-Christian Imbeault
[EMAIL PROTECTED] wrote: I need to be able to just extract the number that is right Under blocks in this example it is the number 57070. This was generated by the quota -g groupname command. Disk quotas for group site53 (gid 165): Filesystem blocks quota limit grace files quota

[PHP] Re: problem with location???

2003-01-08 Thread Jean-Christian Imbeault
Ysrael guzmán wrote: This is correct?
location.href="page.php?&cliente=$cli";
You have one small mistake here:

[PHP] Re: Databases vs. File Access

2003-01-08 Thread Jean-Christian Imbeault
Erich Kolb wrote: I am going to be dealing with a ton of data shortly and my goal is to make it accessible via the web. I am curious about the performance differences between using a database or leaving the data in the individual files they originated in. Can anyone offer any recommendations?

[PHP] proc_open() problems

2003-01-09 Thread Jean-Christian Imbeault
I've written a script that uses proc_open() to call and external program and capture it's output. My script works fine as long as I call/use it in the directory where it resides. But if I try to include() it in a script that resides in another folder proc_open() return an exit value of 255. I c

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

2003-01-09 Thread Jean-Christian Imbeault
I'm passing a var into a function which is a 16 digit number, but when I try to print it out I get 1.111E+15 instead of the expected 11. Why? How can I change this behaviour? Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[PHP] Re: output of calling grep lr

2003-01-09 Thread Jean-Christian Imbeault
If this is for output to a web browser you can use nl2br to changed all the line-breaks to 's ... Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-01-09 Thread Jean-Christian Imbeault
- Edwin wrote: I guess it's because the number is converted automatically to an exponential notation if it goes over a certain number of digits--makes it easier to read... I figured as much. But why? I found a solution by changing the precision of floats in the php.ini file. But I still find

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

[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] 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: 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 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] 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] 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] 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] 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: 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

[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

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: 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

[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

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

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

[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] 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

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
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
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
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

[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

[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] 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] 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] 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] 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] 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: 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

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]

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
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: 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

[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

[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] 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: [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] 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-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] 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: 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] 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

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

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

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

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

[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: 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 (Bdo it in PHP. If you are new to OO and start with PHP you will do (Byourself a grat disfavour. OO programming in PHP is still not ready. If (Byou try and program in OO in PHP you have to learn all of it's (Bshortcomings

[PHP] Re: caching question

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

[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: Apache 2.x and PHP

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

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

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

[PHP] Re: Apache 2.x and PHP

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

[PHP] Re: FTP Synching

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

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] 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

[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

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] 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

  1   2   3   >