[PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Javier Muniz
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 to

RE: [PHP] Unique ID

2003-11-11 Thread Javier Muniz
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

RE: [PHP] Beveled text

2003-11-09 Thread Javier Muniz
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

RE: [PHP] Beveled text

2003-11-09 Thread Javier Muniz
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 CSS? Using

RE: [PHP] Executing shell commands

2003-11-09 Thread Javier Muniz
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

RE: [PHP] Solutions for 1970 epoch date restriction

2003-11-09 Thread Javier Muniz
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,

RE: [PHP] Executing shell commands

2003-11-09 Thread Javier Muniz
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: Teren

RE: [PHP] BTML 2.0 released!!!

2003-11-08 Thread Javier Muniz
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

RE: [PHP] Beveled text

2003-11-08 Thread Javier Muniz
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

RE: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread Javier Muniz
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

RE: [PHP] SESSION Not behaving II: permission denied(13)

2003-10-18 Thread Javier Muniz
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

RE: [PHP] returning a variable from a class function? plus other probs

2003-10-04 Thread Javier Muniz
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

Re: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
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

RE: [PHP] PHP5 interfaces?

2003-09-23 Thread Javier Muniz
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 position() from

RE: [PHP] Validation: Problems with header(Location) in PHP

2003-09-23 Thread Javier Muniz
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 ?php ?'s, and that you don't echo anything before your header call. -Javier

RE: [PHP] SQL statement

2003-09-23 Thread Javier Muniz
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

[PHP] PHP5 interfaces?

2003-09-22 Thread Javier Muniz
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

[PHP] Issues with fopen long file names?

2001-12-20 Thread Javier Muniz
. 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]

RE: [PHP] PHP + MySQL problem (strange behavior)

2001-12-07 Thread Javier Muniz
: 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 with a MySQL query that I'm doing from PHP. Now before

[PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread Javier Muniz
, when i attempt to do the following update with PHP, it sets it to 0: UPDATE mytable SET starttime=starttime-30 WHERE name = 'myname' but when I run it from the MySQL command line, copy/pasted from the code, it sets the value of starttime to 30 as expected. Anyone have any clue why this is? Javier

[PHP] Problem with timeouts

2001-06-22 Thread Javier Muniz
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)

RE: [PHP] Giving my script the power!

2001-03-29 Thread Javier Muniz
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.

RE: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Javier Muniz
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

RE: [PHP] Passing values containing a ? and a

2001-02-22 Thread Javier Muniz
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

RE: [PHP] security

2001-02-22 Thread Javier Muniz
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

RE: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Javier Muniz
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

RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Javier Muniz
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

RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Javier Muniz
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

RE: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Javier Muniz
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

RE: [PHP] Finding the? in $REQUEST_URI?page=blah

2001-02-16 Thread Javier Muniz
An exceptionally easy way to do this would be to pass both $PHP_SELF and $REQUEST_URI. Alternatively, you can use explode(): ?php $array = explode('?',$REQUEST_URI); ? form method="post" action=?php echo $array[0] ?" Username: input type="text" name="username"r etc/form -Original

[PHP] php site, parse error

2001-02-15 Thread Javier Muniz
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]

RE: [PHP] php site, parse error

2001-02-15 Thread Javier Muniz
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:

RE: [PHP] Passing files to a browser

2001-02-08 Thread Javier Muniz
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

RE: [PHP] XSLT problems....

2001-02-06 Thread Javier Muniz
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] Session problem?

2001-01-19 Thread Javier Muniz
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

RE: [PHP] Session problem? (Correction)

2001-01-19 Thread Javier Muniz
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: [PHP] Session

RE: [PHP] Levels of Access

2001-01-17 Thread Javier Muniz
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-

RE: [PHP] session vars with recursive form

2001-01-12 Thread Javier Muniz
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