Mark wrote:
On Mon, 12 Nov 2001 12:36:07 -0500, Brian C. Doyle wrote:
Hello all,
Does PHP have the ability to control a serial port? I see we can
use the
Printer but that was All I saw.
I don't know about windows but on linux I guess you would just fopen
/dev/ttyS0 and read or write to
I've recently had a problem with sessions, and came up with a problem that
apparently has no solution...
I want to understand why EXACTLY it does't work...
From what I understand about sessions (reading PHP Docs), cookies are
default and URLs holding the session_id are used if the cookies
Your problem probably is including the miec.php from the .shtml
document. Does the .shtml document send any output to the browser before
including your .php script? If so, you're not going to be able to send
any cookies from the .php script. Once any standard output makes it to
the browser
I have a simple question that bugging me..
I have a site which I am designing with users auth, I have decided to use
cookies as I need to store variables after the user leave the site..
Problem I am having is the domain I set it on,
If the user logs into http://www.mysite.com and later logs
try not setting the domain.
~Chris /\
\ / September 11, 2001
X We Are All New Yorkers
/ \ rm -rf /bin/laden
On Tue, 13 Nov
Hello,
I'm curious if there's anything in PHP
like use strict in Perl.
It would save so much of development time!
Regards, Alexei Tenitski
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
I'm doing my senior exit project on database languages online. I'm asking
for help from anyone who can provide any information on the comparison
between the different languages. I'm comparing languages such as PHP, ASP,
ColdFussion, perl and any others that I might not know about that you guys
you can set error_reporting(E_ALL)that will help...
-Original Message-
From: Alex Tenitsky [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 9:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
Hello,
I'm curious if there's anything in PHP
like use strict in Perl.
It
On Tue, 13 Nov 2001 03:14, PACKER, Steffan wrote:
I am trying to log particular information in an access log and I need
it to be used on several pages all in different directories, I would
like the actual log to be stored in a directory called data in the root
directory of my web page. I
Hello everyone,
I have a pretty big list of codes that need to be put into a mysql db. The
numbers range from 100 to 1223109. Here's the PHP I wrote to put these
codes into a database:
?
$connection = mysql_connect(blah,blah,blah);
$db = mysql_select_db(db_to_use, $connection);
$value1 =
Hello,
I have 2 date string like this
$t1 = 2001-11-12 17:30:10;
$t2 = 2001-11-12 17:15:32;
I need to substracts the number of seconds from $t2 from $t1
(because after I have another script thats converts the number of seconds to
minutes, hours or days if necessary)
I tried: (but it does not
try removing the quotes and see if that works
eg
$value1 = 100;
becomes
$value1 = 100;
and
for($i=$value1; $i=$value2; $i++) {
becomes
for($i=$value1; $i=$value2; $i++) {
Martin T
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001
I have 2 date string like this
$t1 = 2001-11-12 17:30:10;
$t2 = 2001-11-12 17:15:32;
I need to substracts the number of seconds from $t2 from $t1
First, convert them to unix time format:
?
Function dateTextToUnix($string)
{
$year = substr($string, 0, 4);
$month =
Is this a direct copy of your code? if so, there's an error on this line
$t1 = mktime( $arr_time1[0], $arr_time1[1], $arr_time1[2], $arr_date1[1],
$arr_date1[1], $arr_date1[0] );
should be:
$t1 = mktime( $arr_time1[0], $arr_time1[1], $arr_time1[2], $arr_date1[1],
$arr_date1[2], $arr_date1[0]
My word why all the quotes?
?
$connection = mysql_connect(blah,blah,blah);
$db = mysql_select_db(db_to_use, $connection);
$value1 = 100;
$value2 = 1223109;
for($i=$value1; $i=$value2; $i++) {
mysql_query(INSERT INTO passcodes (passcode) VALUES ('P$i'));
if (mysql_error() != ) {
print
To everyone that said it had something to do with the quotes:
that has nothing to do with it.
When I first wrote this, It didn't have all the quotes. It did the same
thing. Then, I thought I may need some quotes somewhere, but that obviously
didn't help. Any other suggestions? If I HAVE to,
I have a database with 2 colums in it
-|--|
Place of work| Name |
-|--|
I want to print out a listing of peoples name by the place their work from
a php script
so
Place 1
person a
person b
person c
Place 2
person d
Place 3
person F
person G
This
hmmm... I just tried :
$value1 = 100;
$value2 = 1223109;
for($i = $value1; $i = $value2; $i++)
{
echo $i\n;
}
and it spat out all 223109 numbers (albiet after a VERY long time)
can't see how adding mysql code would affect the loop...
Martin T
-Original Message-
From: Tyler
a control break code it what your after
basically:
$old_val = ;
for (??; ??; ??)
{
$new_val = $place; // however you get the next entry's place
if ($new_val != $old_val)
{
$old_val = $new_val;
echo $new_val;// obviously formatted...
}
echo $name;
}
now fill in the
I have a flash movie that is submitting to a PHP page using loadvariablenum
but after being submitted it opens a new window that displays the print
line that was supposed to go back to flash. does anyone have any ideas??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I removed all of the quotes that could be affecting it. Still, it loops
until I stop it. I let it go all the way up to 350,000 or so. Any other
ideas anyone?
Thank you!
Tyler
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 12,
paste the complete code in and myself and others can run your exact copy
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 11:22 PM
To: Martin Towell; [EMAIL PROTECTED]
Subject: Re: [PHP] for loop problem?
I removed all of the quotes that
Exact code:
?
$connection = mysql_connect(host_here,user_here,pass_here);
$db = mysql_select_db(db_here, $connection);
$value1 = 100;
$value2 = 1223109;
for($i=$value1; $i=$value2; $i++) {
mysql_query(INSERT INTO passcodes (passcode) VALUES ('P$i'));
if (mysql_error() != ) {
print font
Hi all!
Is it possible to parse a MS Word document using PHP in a webserver using
RH Linux?
Any exmaple on it?
Many thanks in advance. :)
Regards
fidodido
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
ran it (without mysql queries) and worked finereal strange.
have you tried the loop without the mysql queries?
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 11:28 PM
To: Jack Dempsey; [EMAIL PROTECTED]
Subject: Re: [PHP] for
I've ran it a few times without the MySQL code in there. Runs just fine
that way for me too. After it's run a few times for me (with the MySQL
code), I start getting duplicate entries of codes in there. For example,
I'll end up with a few 'P100' entries in the 'passcodes' field.
Oh well,
How about changing the logic lightly? try this:
$value1 = 0;
$value2 = 223109;
for($i=$value1; $i=$value2; $i++) {
$tmp = sprintf(1%06d\n, $i);
mysql_query(INSERT INTO passcodes (passcode) VALUES ('P$tmp'));
basically taking away 1,000,000 from the numbers then adding it back on
later
Martin
try .mysite.com
-Jason Garber
At 12:07 PM 11/13/2001 +1100, Chris Kay wrote:
I have a simple question that bugging me..
I have a site which I am designing with users auth, I have decided to use
cookies as I need to store variables after the user leave the site..
Problem I am having is the
Hi Martin,
I just got done doing that, and i got the same thing! :-(
Here's something interesting though. There's an id field that's set to
AUTO_INCREMENT. I did a SELECT * FROM passcodes WHERE passcode='P100'
This gave me this:
id | passcode
---
1
Hi Tyler,
This doesn't sound like a problem with PHP, but MySQL. Can you show your CREATE
TABLE and MySQL version?
John
Hi Martin,
I just got done doing that, and i got the same thing! :-(
Here's something interesting though. There's an id field that's set to
AUTO_INCREMENT. I did a
Hi John,
MySQL Version: MySQL 3.23.44-nt
SQL:
CREATE TABLE passcodes (
id int(11) NOT NULL auto_increment,
passcode varchar(255) NOT NULL default '',
PRIMARY KEY (id),
KEY id (id,passcode)
) TYPE=MyISAM;
I'm beginning to think it's a MySQL problem also because this PHP SHOULD
work.
On Tue, 13 Nov 2001 15:06, [EMAIL PROTECTED] wrote:
Hi all!
Is it possible to parse a MS Word document using PHP in a webserver
using RH Linux?
Any exmaple on it?
Many thanks in advance. :)
Regards
fidodido
You may find there is a utility called catdoc on your system - it makes a
fair
On the Linux server and the NT 2000 server, the following open a socket,
but on our NT 4 server, it hangs. Does anyone have a suggestion on what
may be the problem?
POST http://www.zanzabar.com:80/tdwh/php/testhttp.php HTTP/1.0
Accept-Language: en-us Host: www.zanzabar.com:80 Connection: close
I just ran your code as you pasted earlier, and set up a mysql database
with the table defined below ... and it inserted 223,110 passcodes into
the table.
PHP 4.0.99-3 (Identifies itself as 4.1.0RC1)
MySQL 3.23.43-3
~Chris /\
I'm trying to update from the CVS...and when I try to make I get the
following error..
[root@freedom:~/php4]# make
Making all in Zend
byacc -p zend -v -d ./zend_language_parser.y -o zend_language_parser.c
usage: yacc [-dlrtv] [-b file_prefix] [-o output_filename]
[-p symbol_prefix]
You will find the Legal Info at the bottom
RE: PayPal Account
This is something that I wouldn't normally even look at, except that, I read
an article in the Wall Street Journal about PayPal and x.com.
There have been other articles written
Hi All-
This is probably very simple for most of you.
I have the following statement
if ((ereg([^[:alnum:]],$fn)) || (ereg([^[:alnum:]],$sn))) {
// Do something here
}
What it's doing is checking two variables to make sure they contain only
alphanumeric
characters.
I have a requirement that
Hello--
I am getting the following error message when running a PHP script from a
Telnet session or from Cron: Failed loading
/usr/local/Zend/lib/ZendOptimizer.so: /usr/local/Zend/lib/ZendOptimizer.so:
undefined symbol: zend_get_ini_entry. The problem appears to have started
when my hosting
101 - 138 of 138 matches
Mail list logo