[PHP] Session problem

2007-11-21 Thread Mathieu Dumoulin
2) All the sessions in the other sites work marvelously in ISAPI 3) Only maj is affected, i tried copying the code to dev2.palliscience.com, problem doesn't show. 4) I can definitely say my sessions are problematic, i comment out any session_start, and the problem nevers shows Thanks Mathieu

[PHP] Documentation software

2006-06-29 Thread Mathieu Dumoulin
This is not a php specific question but more a programming question. I'd like to know names of software that help in creating documentation like the microsoft style of documentation when you visit the MSDN library. I can also see that often one some sites like the VBCORLIB web site. I'm sure

[PHP] Re: Update site through email

2006-06-29 Thread Mathieu Dumoulin
How i'd do it is not simple, i'm sure there is an easier method but here goes for mine. First you have to setup an inbox that you can read, it can be POP3 or IMAP, as long as your PHP script can read it it's fine. Second, create a script that can actually connect to that inbox and read for

[PHP] Problem with resources and php 5 objects

2006-06-28 Thread Mathieu Dumoulin
I created a php class in charge of doing mysql queries and when this query is called it returns an object of the type myddl_result, this second object is passed the resource of type mysql_result and if i debug the whole thing i seems allright until the __construct is complete, after that, the

[PHP] Question about constructors and destructors

2006-06-28 Thread Mathieu Dumoulin
I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code : === class test { public function __construct(){ echo 'Buildingbr'; } public function __destruct(){

[PHP] Re: Question about constructors and destructors

2006-06-28 Thread Mathieu Dumoulin
engine... Thanks all for your support Math Mathieu Dumoulin wrote: I posted a bit earlier and did some other tests and now i have a VERY simple question... check the following code : === class test { public function __construct(){ echo 'Buildingbr

Re: [PHP] Avoiding user refresh of pages with forms

2006-05-03 Thread Mathieu Dumoulin
something interesting to note: header('location: newpage.php'); After processing your POST request, just send them to a new page and in that page you can display the result of the process (It can require a bit of change in your code) but the result will be that a refresh will refresh the

[PHP] File database, a href= works, but direct url access in address bar doesn't

2006-02-23 Thread Mathieu Dumoulin
I got a really weird and annoying problem: I have a file database that people can access, depending of the file status (pending, active, deleted) i allow access to it from different people. For example, pending is available only to owner and admins, active is avail to everyone and delete is

[PHP] Re: File database, a href= works, but direct url access in addressbar doesn't

2006-02-23 Thread Mathieu Dumoulin
Update update update I tried with mozilla firefox and it worked fine, i just need to find out now what IE does that makes this process fail. If any of you have an idea that could help me solve my problem don't hesitate cause i need to find a solution. -- PHP General

[PHP] Re: auto download

2006-02-23 Thread Mathieu Dumoulin
If your page is already displayed and you want to auto start a link, its not done via PHP, its done via javascript to open a new window towards one of those links. Nothing prevents you from outputting javascript yourself from PHP, give it a try its really fun to build dynamic javascript

[PHP] Performance question

2006-02-01 Thread Mathieu Dumoulin
solution, how do you people see it without dumping everything to memory or by making recursive SQL calls (which will obviously slow everything down i'm pretty sure) Mathieu Dumoulin Programmer analyst in web solutions [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

[PHP] Re: Performance question

2006-02-01 Thread Mathieu Dumoulin
Thx, but that wouldn't work since i can have dual direction nodes and further something i didnt say is that a node may be used infinite number of times in the tree... so it isn't really valid to use joins in that case :( thx anyway Barry wrote: Mathieu Dumoulin wrote: This is more a How

Re: [PHP] Performance question

2006-02-01 Thread Mathieu Dumoulin
think this might interest you: http://www.bluerwhite.org/btree/ then again it may make your ears bleed (because of the Maths :-). Mathieu Dumoulin wrote: This is more a How would you do it than a How can i do it question. Didn't have time to try it, but i want to know how mysql_seek_row acts

Re: [PHP] Hide email addresses from spam bots

2006-02-01 Thread Mathieu Dumoulin
Indeed, the problem is that the HTTP-USER_AGENT is actually set by the software reading the page, a bot could actually say its IE6 and then bypass your protection. The best protection you can do is encoding your addresses in a two way encoding like Base64 wich is plenty enough and using a

Re: [PHP] Performance question

2006-02-01 Thread Mathieu Dumoulin
Miles Thompson wrote: At 12:02 PM 2/1/2006, Mathieu Dumoulin wrote: This is more a How would you do it than a How can i do it question. Didn't have time to try it, but i want to know how mysql_seek_row acts with large result sets. For example im thinking of building a node tree application

[PHP] Sorting in PHP

2005-08-02 Thread Mathieu Dumoulin
Hi, i need to sort data using ksort. Its complex data out from a database (and no i can't sort it using the database sadly). I can change my code to reflect a new way of sorting but only to some extent, im limited. Now from the data i build an array of the things i need to display, using the

[PHP] Re: Sorting in PHP

2005-08-02 Thread Mathieu Dumoulin
Found my problem, i'm runnig php 4.3.11, will update first then i will try again. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loading dynamic extension

2005-07-22 Thread Mathieu Dumoulin
Richard Lynch wrote: On Thu, July 21, 2005 12:17 pm, Mathieu Dumoulin said: 2. Further more, i can't seem to find a way to know from which path or drive my usbkey is operating. There is maybe something i missed somewhere that's why im asking. Anyone ever found something about the CLI current

[PHP] Loading dynamic extension

2005-07-21 Thread Mathieu Dumoulin
is operating. There is maybe something i missed somewhere that's why im asking. Anyone ever found something about the CLI current run path in $_ENV or $_SERVER var? Mathieu Dumoulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sorting with french characters

2005-06-23 Thread Mathieu Dumoulin
I've got a little problem with the ksort and sort functions. When i fill this array's keys or the array's data and i sort it, i can't seem to get a correct sort order concerning accented french characters. For example: Emiss, Erick Morrison, Phillip Tatey, Peter Zachary, Martin Élement,

Re: [PHP] Uploading and verifying word and excel files

2005-06-23 Thread Mathieu Dumoulin
possibly LINUX if there is a version of these with slightly different headers. So i makes your code get heavier each year or so. Mathieu Dumoulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to submit a form that has a file included ?

2005-06-06 Thread Mathieu Dumoulin
Jay Blanchard wrote: [snip] I want to have a form with text fields and a browse field for uploading a file. ... Now, i want here a browse button, so users when clicking on it trigers the os File Open box to choose the file to upload. ... My question is: what is the code i need in the form ?

[PHP] need help on .htaccess

2005-05-05 Thread Mathieu Dumoulin
We have here at work a simple .htaccess that redirects all requests to an index page which works fine so far. I'll show you the code of the .htaccess you can use it if you can't to, it works perfectly fine. AddType application/x-httpd-php .html RewriteEngine on RewriteBase / RewriteRule ^$ -

[PHP] Re: is this the correct syntax

2005-05-05 Thread Mathieu Dumoulin
Ross wrote: Am trying to do an update of a record... Is this the correct syntax.. $query= UPDATE $table_name SET fname='$fname', sname='$sname' WHERE id= $id; R. Technically this is right as long as your variables are giving out the real intented values. For extra knowledge, your $query

[PHP] Re: Linking to the Root Dir - LAMP

2005-05-05 Thread Mathieu Dumoulin
folders. Instead of putting the whole domain name the slash in front of anything will refer to the root of the site while not statically putting the domain name. Mathieu Dumoulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] is this the correct syntax

2005-05-05 Thread Mathieu Dumoulin
Prathaban look carefully, we are here to give acurate info and you are giving mistaken information. The $id thing is wrong, you'll actually create a parse error X| ... Prathaban Mookiah wrote: It should be $id. Note that missing Prathap -- Original Message --- From: Ross [EMAIL

[PHP] Re: PHP mail

2005-05-05 Thread Mathieu Dumoulin
Eustace wrote: I am relatively new to PHP and could use some help. I have a form, which is basically in an email format, from, subject, and message. How do I then send this to an email? I know a bit about the mail function, somebody show me the ropes please! Eustace I'll show you how we do it here

[PHP] Re: Objects in Arrays (without the READ prompt)

2005-05-05 Thread Mathieu Dumoulin
Stuart Nielson wrote: Sorry to everyone about the stupid READ notification on the posting. I completely forgot that it was enabled. This one shouldn't have that problem. I am using PHP version 4.3.4. I'm creating an authorization module that uses a users object, that includes the username,

[PHP] problems setting up php5 on apache2 (WinXP Pro)

2004-09-10 Thread Mathieu Dumoulin
(Don't write to me telling me to use linux, i dont want to, this is my home machine not a production server, thank you, now if you really want to help keep on reading) I got a most recent copy of PHP 5.01 extracted into C:\php and everything seems to be working fine as long as i dont ask to load

[PHP] Dynamic Class Methods

2004-09-07 Thread Mathieu Dumoulin
I'm trying to setup a function from user code inside a defined object or a class definition but it doesnt seem to work. Am i doing it right? Is there something i need to know... is it even possible? I know create_function can be used to create a function and it returns the ident to run the

[PHP] XML Cdata problem

2004-06-30 Thread Mathieu Dumoulin
PHP 4.3.7 on Linux Red Hat 7.3 full patch and updates, Expat expat_1.95.2 Problem: I am reading the XML file below and at path: advantage/route/origin/status/ The CDATA inside the STATUS node cannot be read (Current value 1900), there isnt much information on how to use the EXPAT library on

[PHP] Re: XML Cdata problem

2004-06-30 Thread Mathieu Dumoulin
Forget myt post, its a stupid error from my part because of object references and stuff like that. I'll fix it myself. Mathieu Dumoulin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] PHP 4.3.7 on Linux Red Hat 7.3 full patch and updates, Expat expat_1.95.2 Problem: I am reading

[PHP] Session start problem

2003-07-07 Thread Mathieu Dumoulin
We are using php 4.0.6 here on a dev server and we are getting a weird session_start() problem. After setting up the login on another page, if we register any of our three required varaibles to go on, the session_start() will simply crash and loop endlessly. We have tested everything: - setting

[PHP] Re: Session start problem

2003-07-07 Thread Mathieu Dumoulin
Problem was that the TMP dir was full and we couldn'T write down the session file... Seems this jams the server completly. Be aware that if anything like that happen to you that you have to check fro the TMP files that might be overflooding your partition. Mathieu Dumoulin [EMAIL PROTECTED] wrote

[PHP] Can't seem to be able to do a get request

2003-03-13 Thread Mathieu Dumoulin
top command in shell would show it, but it's not happenning. Now i tried index.php and still nothing! Please help me out Mathieu Dumoulin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Does comments slow down processing a lot

2003-03-12 Thread Mathieu Dumoulin
in a file really lower the parsing, compilation and execution time? Using Zend Optimizer, which is the case right now, would it be better if it did slow down the code? Thank you in advance Mathieu Dumoulin www.groupimage.com Web solution Programmer/Analyst -- PHP General Mailing List (http

[PHP] session id generation

2003-03-12 Thread Mathieu Dumoulin
Hi, i'd like to know how PHP determines what session_id to hand out to users. Is it based on some real value like the browser and the ip address? an incremental number? I want to make sure that it doesnt provide two same session id for the different users at the same time. thanks MAthieu

[PHP] mysql.so

2003-03-12 Thread Mathieu Dumoulin
need to match in Unknown on line 0 PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0 === Please oh please, help me out on this Mathieu Dumoulin

[PHP] Cannot execute php applications. Problems with required library mysql.so

2003-03-12 Thread Mathieu Dumoulin
need to match in Unknown on line 0 PHP Warning: Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0 === Please oh please, help me out on this Mathieu Dumoulin

[PHP] Mailling question

2003-02-28 Thread Mathieu Dumoulin
this problem. Keep in mind that this is one statistic we have to compile: Who received and who didn't receive (Not who looked at email or Not, this is another stats for which we already have the solution) Mathieu Dumoulin Web solution Programmer Analyst -- PHP General Mailing List (http://www.php.net

[PHP] Maximum execution time explanation needed

2003-02-24 Thread Mathieu Dumoulin
it's been 30 seconds. Mathieu Dumoulin Web Solutions Programmer Analyst Code: #! /usr/bin/php ?php /*This file is used each month on the 1st day to compile the whole previous month data for the cars and for the person to which this post pertains to.*/ //Definition define('IN_INDEX', 1); //Connect

[PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Mathieu Dumoulin
Thank you, but it doesn'T explain why i can run the other script for 5 minutes without any set_time_limit i'd like to get a precise explanation on why it's doing it, for the time being i will use set_time_limit for this script. Mathieu Dumoulin Joel Colombo [EMAIL PROTECTED] a écrit dans le

[PHP] Re: Maximum execution time explanation needed

2003-02-24 Thread Mathieu Dumoulin
Could it be because i fopen the php://stdin stream that i can execute my script for 5 minutes? Mathieu Dumoulin Mathieu Dumoulin [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Ok, i got this script i run on my server, this script runs exactly 47 secs or so (45 to 49) each

[PHP] Re: emailing a web-page

2003-02-24 Thread Mathieu Dumoulin
the real web page is attached 3) No super hard coding to get the links from RELATIVE to COMPLETE 4) Easy to do for anyone, even for you, it's simple. Mathieu Dumoulin Neko [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Question : When people send you junk e-mails they often have

[PHP] Re: Reading Text file by line

2003-02-24 Thread Mathieu Dumoulin
of line. Mathieu Dumoulin Anthony [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] I need to read a text file by line, if I open the file and use fgets() then it doesn't pick up the EOL corretly. So I was planning on reading the whole file in with fread() and then breaking

[PHP] read input in console mode

2003-02-06 Thread Mathieu Dumoulin
to continue if the user presses anything else than enter it appears on the screen. and the input ends only when he presses enter. If you are a C/C++ programmer you can compare that to the cin command. I need something to read only one char at a time if needed! thank you Mathieu Dumoulin

Re: [PHP] read input in console mode

2003-02-06 Thread Mathieu Dumoulin
that not read a single character? On Thu, 2003-02-06 at 09:41, Mathieu Dumoulin wrote: Hi there, I found a way to read input from a console mode in linux, very simple open php://stdin to read from the standard input system. THE PROBLEM is i can't just read one character it always waits for the user

[PHP] Re: Stupid question, sorry...

2003-02-06 Thread Mathieu Dumoulin
All single quotes around variables or escape characters are written out man! it's as simple as that. example you have a variable named $hey and you want to output $hey, you can't it's gonna replace the content of that string with the value of $hey. When you put stuff inside ' ' they are not

[PHP] Global variables question

2002-11-10 Thread Mathieu Dumoulin
to do this to simplify development since this project is going to be HUGE. And also it will facilitate debugging as i've been using global at a lot of places and when you forget one, PHP assumes the creation of a dummy variable messing up everything. I'm waiting for an anwser, thank you Mathieu

[PHP] mysql_field_flags() problems

2002-08-01 Thread Mathieu Dumoulin
This is a part of my code for my data interfacer class which takes an SQL RESULT RESOURCE and gets the field from it. Problem is, i can't get the primary key out nor the auto-increment flag out. Before, the same script (or so, it was modified but not that part) was working fine. I tried it on

[PHP] Re: How to check if a field is auto increment

2002-07-26 Thread Mathieu Dumoulin
Oh, and also, i need to know how to get the default value... Btw, i CAN be done, or else, how does phpMyAdmin does it =P InsaneCoder How can i check if a field has auto-increment extra activated on it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Calling a function without variable params

2002-07-26 Thread Mathieu Dumoulin
Ok, here i made a function that can accept an unknown number of params. In fact, it's a data interface for a mysql database, when i call the object's constructor it is in possibility to pass any number of table names from 1 to x. Now i got this other class called a data interfacer which sends a

[PHP] Call func with variable num params (Dont confuse with making func variable params)

2002-07-26 Thread Mathieu Dumoulin
Ok, here i made a function that can accept an unknown number of params. In fact, it's a data interface for a mysql database, when i call the object's constructor it is in possibility to pass any number of table names from 1 to x. Now i got this other class called a data interfacer which sends a

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Mathieu Dumoulin
Easy Your form when pressed the button submit will send the data from the form via post (Which is the best method) to the functions.php with all the functions. What you need to modify now is that all the input type=radio need to be modified to FuncToExec name. When you receive the input of the

Re: [PHP] calling user-defined php functions from a href tag

2002-07-26 Thread Mathieu Dumoulin
to call a server-side php function (unless you tell me some neat trick I don't know about yet). See my struggle now? On Fri, 26 Jul 2002, Mathieu Dumoulin wrote: Date: Fri, 26 Jul 2002 21:46:00 -0400 From: Mathieu Dumoulin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] call

[PHP] How to check if a field is auto increment

2002-07-26 Thread Mathieu Dumoulin
I'm doing a class that actually interfaces with a mysql database, so far i can easily get the type out the values, the names of fields, everything i need is there except one thing.. How can i check if a field has auto-increment extra activated on it? Thanks -- PHP General Mailing List

[PHP] Re: OO Programming - get practical

2002-07-23 Thread Mathieu Dumoulin
If i can suggest... I'm working on a project for the Quebec Junior Major Hockey league and i found out that objects can be quite usefull in a large scale web application like this one. What i am doing is an object that connects to the database and stores pertinent information into it. Also, i

[PHP] PHP OOP list

2002-07-23 Thread Mathieu Dumoulin
Is there a newsgroup list for PHP and OOP? It would be great to split up this large topic and create an OOP specific list. InsaneCoder -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Filename is nothing

2002-07-23 Thread Mathieu Dumoulin
Check to make sure that your FORM tag has: enc-type=multpart-formdata i had SO much trouble finding this out. hope it helps ya InsaneCoder Liam Gibbs [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Basic scenario. There's really nothing else to tell except

Re: [PHP] Credit card checks?

2002-07-23 Thread Mathieu Dumoulin
Visa starts with 45 Mastercard starts with 51 =P InsaneCoder Kristopher Yates [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You should contact Visa International Service Association to determine what constitues a valid credit card number. Just FYI, a valid

[PHP] Object problem

2002-07-23 Thread Mathieu Dumoulin
I just wrote this message in the wrong list so i'll be short... I have two classes: - mysql_connection - data_collection data_collection REQUIRES a mysql_connection object to work. So i decided to pass this object in the constructor for the data_collection, but when i do so it seems it

[PHP] What is a mysql link ressource

2002-07-23 Thread Mathieu Dumoulin
Ok guys i got this problem here: I got a class i made that creates a link ressource for a mysql database. Stores it inside of itself with different login and password and other params. Other functions are also available for usage. When i start this class it connects fine, i can also use it no