Forgive me if this has been answered before, but all I was able to find
was a "bogus" bug report on this issue that did not contain any useful
information. When installing php 4.3.10 on a Win2k3 machine I'm getting
the "The specified procedure could not be found." Error from any php
page I attempt
auto_increment is not in the SQL standard, and not everyone uses MySQL. To
be cross-compatible between databases use a Sequence:
http://pear.php.net/manual/en/package.database.db.intro-sequences.php
provides a brief introduction, the PEAR::DB class allows you to use
sequences easily.
Neither auto
I realize that, just didn't want to suggest that /tmp was a good solution
instead of a database. The question is always about security, btw ;)
-Javier
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 09, 2003 5:54 PM
To: Javier Muniz
Cc:
If you can't change your database for some reason, for instance if it's a
legacy system or other large systems rely on that table format, look into
PEAR's Date class, it can probably help you out.
-Javier
-Original Message-
From: David Otton [mailto:[EMAIL PROTECTED]
Sent: Sunday, Novemb
Ack! No no no no no! At least put something this critical in a password
protected database, not a place that could possibly be written to by a
malicious user that gains access to an easily-writable directory like /tmp,
the DoS and security ramifications of having a system like this are huge.
Be exc
ginal Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 08, 2003 11:57 PM
To: Javier Muniz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Beveled text
Javier Muniz wrote:
>Interesting, is this for a website? If so have you tried doing the
>same thing with
Interesting, is this for a website? If so have you tried doing the same
thing with CSS? Using CSS you could make the site load faster and be more
accessible (for instance, you can allow users to choose their own font size,
and make it easier for page readers to handle your page).
-Javier
-O
You'll have to increase the character spacing as well, so that each
character has the same center not just the individual word/phrase. I don't
think this is going to be exactly a bevel effect, but on small enough text
it might appear like one.
-Javier
-Original Message-
From: Nathan Tayl
Agreed, and the flexibility of smarty allows for quite a bit more
functionality for the template developer... Anyone seriously considering
template engines should take a hard look at Smarty.
Just my $0.02.
Oh, and if you don't like top-posting, ignore this msg, as I will
undoubtedly ignore your r
Err, make that session_set_save_handler :)
-Original Message-
From: Javier Muniz [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 18, 2003 4:27 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] SESSION Not behaving II: permission denied(13)
Look at on_session_save_handler in the manual, I
Look at on_session_save_handler in the manual, I believe there is an example
there on how to do this. If not google it, many examples of this exist...
So many that I don't think it's worth spamming this list with my own
examples.
-Javier
-Original Message-
From: [-^-!-%- [mailto:[EMAIL P
Your sql statement is generating an error. You can test for this using
mysql_errno and mysql_error to test for and view the error, respectively.
The likely cause of the SQL error is that you are not putting quotes (')
around your string for the email query, the proper query would look like:
$chk
You need to change timestamp to formatted_ts in your php code.
-Original Message-
From: Dan J. Rychlik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 5:45 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] SQL statement
Thank you for your time on this. I do a
Hi Martin,
When they say at the top of the page before anything else, they mean before
any other output. Just make sure that you don't have any HTML/text before
the header("Location: ...") that's outside of your 's, and that you
don't echo anything before your header call.
-Javier
-Origin
AM
To: Javier Muniz
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP] PHP5 interfaces?
On Tue, 2003-09-23 at 14:01, Javier Muniz wrote:
> What I meant was not the implementation, what I meant was that there
> was no way for the compiler/parser to know whether I was implementing
>
What I meant was not the implementation, what I meant was that there was no
way for the compiler/parser to know whether I was implementing position()
from the Employee interface or the BoardMember interface, the declaration
was ambiguous.
If I implement the function there, then (from what I can te
Wondering if maybe someone famililar with php5 can respond to this. I am
reading about PHP5 and it's interface support, and i have a concern. The
purpose of interfaces is to handle multiple inheritance in a fashion that
resolves a number of conflicts that arise when performing true multiple
inher
~1.ext) format?
any help is appreciated.
Javier Muniz
Granicus, LTD. (www.granicus.com)
Tel: (415) 522-5216
Fax: (415) 522-5215
--
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 PROTECTED]
AIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:59 PM
To: Javier Muniz; '[EMAIL PROTECTED]'
Subject: Re: [PHP] PHP + MySQL problem (strange behavior)
On Thu, 6 Dec 2001 08:32, Javier Muniz wrote:
> Hello,
>
> I'm having trouble determining what's going wrong w
.
Anyone have any clue why this is?
Javier Muniz
Chief Technology Officer
Granicus, LTD.
Tel: (415) 522-5216
Fax: (415) 522-5215
--
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 PROTECTED]
I've written a PHP script that's used internally by an application backend.
It transfers files via FTP from one server to another. This process often
takes in excess of 1hr. My problem is that for some reason, even though
i've set the max_execution_time in the php.ini is set to 10800 (3 hours) t
I do a similar thing on my machines, only instead of having a java daemon
that runs as root I chose to create a database that the php script can
insert user and other information into, then a perl script that is called
from cron that fetches from the database and does the necessary user adds.
Thi
should probably be:
function philtime($time) {
$hours = ($time - ($time % 3600)) / 3600;
$min = (int) (($time % 3600) / 60);
return ("$hours:$min");
}
This way you don't risk rounding up on your first cast to int and being off
by an hour... rounding is ok, however, for mi
Try:
echo $array[$i][course_num] . ' ' . $array[$i][course_title];
-jm
-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Arrays -- How do I insert a pair of data into an array
I am attemptin
-
From: Gustavo Vieira Goncalves Coelho Rios [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 10:55 PM
To: Javier Muniz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] security
Javier Muniz wrote:
>
> Encode them, or set filesystem permissions in such a way (suggest using
> groups)
Encode them, or set filesystem permissions in such a way (suggest using
groups) to allow apache to read files but not other users.
For instance, if your users are all members of the users group, and apache
runs as nobody, then set your files to be owned by the user with the nobody
group (chown us
URLs must be encoded if they contain special characters (and should be
encoded always). See urlencode().
-jm
-Original Message-
From: Tom Harris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Passing values containing a ? and a
We're running 3.23.32, soon upgrading to .33 due to some security problems
with .32 (either tonight or tomorrow), and running the latest release of PHP
4. Naturally, since I work for Granicus, I'm biased... but I think we're
one of the better PHP hosts out there as far as services go. Our primar
An exceptionally easy way to do this would be to pass both $PHP_SELF and
$REQUEST_URI.
Alternatively, you can use explode():
">
Username:
etc
-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Fin
Don't calls to system() live within their own shell and environment? If so
you may need to:
system("cd /destination/dir && tar -xpf /some/path/to/tarfile.tar");
this will also insure that if the cd fails for some reason, tar will not
execute.
-jm
-Original Message-
From: DanO [mailto:
You should use fieldnames in your selects... I'd imagine count(*) would be
slower just as select * is slower.
-jm
-Original Message-
From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 9:46 AM
To: PHP
Subject: RE: [PHP] MySQL COUNT Won't Work
I do lots
Are you using 3.23.33? If so try removing the space between the COUNT and
the open paren. It looks like there may be a bug in the latest release
(seeing this problem on the mysql list for MAX, probably exists for COUNT as
well).
-jm
-Original Message-
From: Jeff Oien [mailto:[EMAIL PRO
Nope, with php the second argument of mysql_query is indeed the connection
identifier.
What happens when you run the query via the mysql client?
-jm
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 9:32 AM
To: '[EMAIL PROTECTED]'; '[EMAIL P
Definately a bit frightening that a virtually static site has an include
that is over 300 lines long :) Maybe just well documented?
-jm
-Original Message-
From: Martin A. Marques [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 12:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PH
Looks like the PHP site is down, parse error on site.inc... just an FYI :)
--
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 PROTECTED]
Actually, if you read the manual entry for fpassthru, it states that the
filehandle will be closed by fpassthru upon reading.
So you're trying to close your filehandle twice... get rid of the
fclose($fp) at the end and you should be fine.
-jm
-Original Message-
From: Christian Reiniger [
In my experience this is caused by an error in your .xsl... not exactly
the most verbose error so I don't know what's actually happening here.
-jm
-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 5:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
The session file is not empty :) the OBJECT portion of the session file
is empty. i.e. cat'ing /tmp/sess_whatever yields:
!OBJECT|
-jm
-Original Message-
From: Javier Muniz [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:57 PM
To: '[EMAIL PROTECTED]'
Subject
I am using the following function to add a serialized object to a
session:
function add_toCart($id,$array) {
session_register("OBJECT");
$c = new Configurator;
$c->readConfig($id);
$OBJECT = serialize($c);
header("Location: Cart.php");
echo "Redirec
Just a side note: A very nice way to do this is using bitwise operators
to store all your access information into one int This is handy for
saving space in databases, and bitwise operations should be incredibly
fast compared to string comparisons.
Cheers,
Javier
-Original Message-
From
This is probably due to the fact that form values don't override session
values... this is a feature, not a bug. (imagine if i could do:
http://www.yourdomain.com/highsecurity.php?user=admin and magically
become admin... very broken security)
-jm
-Original Message-
From: bill [mailto:[E
what's on line 2 of your index.php? You appear to be sending output
before starting your session. Have you tried including wpdbcon.php
before you do anything in your index.php?
-jm
-Original Message-
From: JB [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 6:48 AM
To: Bran
42 matches
Mail list logo