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 s
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 tha
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
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] fi
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 /"\
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
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
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.
Ty
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 di
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
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
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
Ma
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, h
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 loop
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 PROTE
Exact code:
".mysql_error()."";
exit;
}
}
mysql_close($connection);
?>
Tyler
- Original Message -
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 10:34 PM
Subject: RE: [PHP] for loop problem?
> paste the complete code in and myself an
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
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
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
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 bl
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 Lon
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 has
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
My word why all the quotes?
".mysql_error()."";
exit;
}
}
mysql_close($connection);
?>
That should give you some better results.
On Monday 12 November 2001 07:32 pm, you wrote:
> Hello everyone,
>
> I have a pretty big list of codes that need to be put into a mysql db. The
> numbers range
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] );
Tyler Longren wrote:
> Why is this happening?
Because you have double quotes in your for-statement.
Here's the way to do it (only relevant part copied)
$value1 = 100;
$value2 = 1223109;
for($i=$value1; $i<=$value2; $i++) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> 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:
So:
(apologies for stuff that doesn't work, I've coded this in
the email and not teste
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 1
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 n
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:
".mysql_error()."";
exit;
}
}
mysql_close($connection);
?>
Everytime I run this from a browser, it ju
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 u
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 woul
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
mig
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
try not setting the domain.
~Chris /"\
\ / September 11, 2001
X We Are All New Yorkers
/ \ rm -rf /bin/laden
On Tue, 13 Nov 2
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 in
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 (inc
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 can
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
Yasuo Ohgaki wrote:
> [EMAIL PROTECTED] wrote:
>> It happens on our system that there will never be any files owned by
>> user A under a directory owned by user B. But even if there were, I think
>> safe mode should disallow this type of filesystem reading.
>
> Under UNIX like systems, /tmp is w
[EMAIL PROTECTED] wrote:
> Hi again,
>
> I believe it should disallow openning a directory in safe mode if the UID
> of the directory does not match the UID of the PHP script.
>
> That is exactly the behavior of fopen() in safe mode.
> Without that behavior, users are permitted to write a PHP
Here's a DTD:
]>
Whether it is of any USE to anyone is debatable..
At 12:41 12/11/2001 -0500, Melih Onvural wrote:
>I know this is a PHP news group, but i've seen some XML questions before and
>I was
>wondering if anyone knew how to apply a DTD, or where to find one. thanks
>for any
>he
I COULD be wrong but wasn't Kurt the guy who posted frequent questions like
this when he was starting off? :)
Jeff
- Original Message -
From: "Kurt Lieber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 5:55 PM
Subject: Re: [PHP] using mail
> Did you RTFM?
>
Source is here:
> http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PRO
Then why didn't you notice that in the additional headers
you can specify the from header?
mail("[EMAIL PROTECTED]", "Whee", "Whee! Mail Body",
"From: Jason Murray <[EMAIL PROTECTED]>\n");
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
>
YES I DID READ THE F...in MANUAL
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 12, 2001 2:56 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] using mail
Did you RTFM?
http://www.php.net/manual/en/function.mail.php
Just create a variable and input it
Did you RTFM?
http://www.php.net/manual/en/function.mail.php
Just create a variable and input it as an extra header.
$from = "from: [EMAIL PROTECTED]\r\n" ;
mail($to,$subject,$message,$from);
On Monday 12 November 2001 02:41 pm, you wrote:
> Hello,
>
> I am using the mail() function right now
I've noticed this same problem on both of my computers, but have not
yet found a solution. I've got Apache, Mysql, and php running on my
personal computer. When I access it via http://localhost any screens
that use a POST will timeout until I ALT-TAB to a non-Netscape window.
Once I ALT-TAB, or
oops, "forst" is meant to be "forth"
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 9:44 AM
To: 'Brandon Orther'; PHP User Group
Subject: RE: [PHP] using mail
the forst param to mail is the extra headers to send
add in "Reply-To: [EMAI
the forst param to mail is the extra headers to send
add in "Reply-To: [EMAIL PROTECTED]\r\n"
and/or "From: [EMAIL PROTECTED]\r\n" ( I think this one's correct )
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 9:41 AM
To: PHP User Group
Hello,
I am using the mail() function right now to send e-mails. Is there a
way I can dynamically change where it says the e-mail is from?
Thanks
Brandon
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.phps
I'm trying to "session_unset()" - it worked I thought.
session_unset("postcard");
unset($postcard);
unset($MyImage);
Go to:
http://www.CollegeSherbrooke.qc.ca/~languesmodernes/course/test_session.php
and "click me".
I
Hi all,
Could someone send me URL for JavaScript help list like this on php3..
..or you could solve my problem ?
---
Here is part of scriptand the problemat the end
-
function checkChoice(whichbox) {
with (whichbox.f
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 it.
--
PHP Ge
It's not bad enough that you're squatting the domain, you have to
spam the list on top of it?
On Mon, 12 Nov 2001 11:37:32 -0800, Mark Segal wrote:
>Dear Sir/Madam,
>
>PHPINTERNATIONAL.COM - $725
>
>- includes 5 year registration (until 2006 worth up to $150*)
>
>I am a domain name broker and ha
well i have a solution to my problem that makes no sense
if i declare
session_start();
on my login.html page which precedes these two pages it works and is now
login.php
this page creates the session and all is well if i create session_start();
on the next page and leave it off my login.php pa
> In setting up a form to allow a user to upload a file,
> upon submission of that form, you can get the actual
> file name that is being uploaded by accessing the
> variable:
>
> $userfile_name
>
> (assuming the form element's name where the user
> specifies the file is "$userfile").
>
> Is th
I have written an html page with jscript and php code, but I have some problems.
The errors are in black letter: why is not correct this code?