ress a key 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!
tha
);
$command = fread($f,1);
fclose($f);
Would 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 r
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 es
HP says
it's been 30 seconds.
Mathieu Dumoulin
Web Solutions Programmer Analyst
Code:
#! /usr/bin/php
connect();
//Get the current date
//$curDate = date("Y-m-d");
$curDate = "2003-03-01";
//Get the previous month's complete date
$cur_expl = explode("-&quo
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
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 e
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
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
>
could fix 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
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
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
MA
ese options 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
o 80% each for like 40 seconds and
my "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
ese options 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
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 v
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" &l
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 ha
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
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
> e
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
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 create
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 pr
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, visi
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 c
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 c
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
need to be modified to "FuncToExec" name.
When you receive the input of the form, you just
7;t work, because it's client side, and can't be used 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 20
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 (http:
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
seve
g.
I'm waiting for an anwser,
thank you
Mathieu Dumoulin
Programmer / Analayst in web solutions
Groupimage Comunications
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 functio
(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
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 ^$ - [QS
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 sho
in the directory structure?
Thanks for your advice
Just put a / in front of your 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
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"
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
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, userty
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
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
ferent
content
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 sh
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
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 'Building';
}
public function __destruct(){
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 'Bui
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 t
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 a
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 no
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 Mail
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 applica
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 resu
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 ?
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, Marc-
nt headers for PC, MAC and even 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
w 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 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
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
C
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 n
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
tively fast without taking too much memory.
This is my 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
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 m
)
Jochem Maas wrote:
I 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 tim
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 litt
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 thinkin
62 matches
Mail list logo