Re: [PHP] Variable name declarations?

2001-07-13 Thread Rasmus Lerdorf
Does anyone else have any thoughts on this? error_reporting = E_ALL in your php.ini file and PHP will warn you whenever you use an unitialized variable. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Web application?

2001-07-13 Thread Yves Gauvreau
Hi, The question is this: Say I have a large main script that handles most of the request if not all, I wonder what are the effect of this approach on performance in a situation where we have a fair number of concurrent users? Situation: Server: P4 1300, Linux (RH 7.1), Apache, MOD_PHP,

Re: [PHP] Web application?

2001-07-13 Thread Rasmus Lerdorf
Should be fine. Chances are your bottleneck will be your database, not PHP. -Rasmus On Fri, 13 Jul 2001, Yves Gauvreau wrote: Hi, The question is this: Say I have a large main script that handles most of the request if not all, I wonder what are the effect of this approach on performance

Re: [PHP] Web application?

2001-07-13 Thread infoz
I do this on several large high-traffic sites, as part of a content-management system, and it works fine. If you also use a script cache product (Zend Cache or APC) and a cacheing template engine (cough, cough) together in this kind of environment, you should see excellent results, with the

[PHP] Error Message with sessoin variables.

2001-07-13 Thread Johnny Nguyen
I place ? session_start(); ? at the top of my page and get this Warning: open(/tmp\sess_4821f31846678b2eda49a625b76ca14c, O_RDWR) failed: m (2) in w:\apache\loginform.php on line 1 Can somebody help? Do I need to make any changes to php.ini to get sessions working? Regards, Johnny -- PHP

[PHP] Using an image as a reset button on a PHP script

2001-07-13 Thread Brandon Orther
Hello, I am making a script at the moment and want to use images instead of the usual buttons. Does anyone know how I can use the image as a reset button? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED]

Re: [PHP] Web application?

2001-07-13 Thread Yves Gauvreau
Is that to say that mySQL is not a good choice in this situation? If you would be so kind. Why would mySQL be the bottleneck and why PHP would not? Regards. Yves Rasmus Lerdorf wrote: Should be fine. Chances are your bottleneck will be your database, not PHP. -Rasmus On Fri, 13

Re: [PHP] Web application?

2001-07-13 Thread Chris Lambert - WhiteCrown Networks
Should be fine, but if your main script is HUGE, say, 1MB (hey, it's possible, if all HTML was inline :-) then you should consider breaking it up to seperate files and include()'ing them. Require() is just as bad as having them inline, in terms of memory usage, but include() replaces them only if

Re: [PHP] Web application?

2001-07-13 Thread Yves Gauvreau
Is that to say that mySQL is not a good choice in this situation? If you would be so kind. Why would mySQL be the bottleneck and why PHP would not? Regards. Yves Rasmus Lerdorf wrote: Should be fine. Chances are your bottleneck will be your database, not PHP. -Rasmus On Fri, 13

Re: [PHP] Web application?

2001-07-13 Thread Chris Lambert - WhiteCrown Networks
It all depends on your application, the use it receives, your server hardware (mainly RAM), and your MySQL/PHP configurations. For 90% of web applications, and 90% of the loads they receive, any confiuguration of MySQL would be fine. But describe your scenario and we should be able to let you

Re: [PHP] Using an image as a reset button on a PHP script

2001-07-13 Thread Aaron Bennett
Aside from doing 2 tricky... well... tricks. You can't.. Standard HTML (to my knowledge) does not support the ability to have a reset button be set to an image. only those large gray Cadillac sized hideous buttons. Now, with that said.. there are 2 ways you can do it. ;-) Client Side - If you

Re: [PHP] Using an image as a reset button on a PHP script

2001-07-13 Thread Jason Bell
A quick search on the web found that you have to output some javascript to handle that take a look at http://www.idocs.com/tags/forms/index_famsupp_142.html (Caveat: I only found the information by going to google and searching on html image reset button I have not studied it, or tried it.)

Re: [PHP] Web application?

2001-07-13 Thread Rasmus Lerdorf
Nothing wrong with MySQL. My comment was not specific to any particular database. It was just a general comment that any database-backed web site will have the database as the bottleneck and any little optimizations you try to do at the scripting level is not going to matter much in the grander

Re: [PHP] Using an image as a reset button on a PHP script

2001-07-13 Thread Mark Maggelet
On Fri, 13 Jul 2001 14:46:41 -0700, Brandon Orther ([EMAIL PROTECTED]) wrote: Hello, I am making a script at the moment and want to use images instead of the usual buttons. Does anyone know how I can use the image as a reset button? Thank you,

[PHP] Strange Bizzare Problem

2001-07-13 Thread Somazx Interesting
I'm running into this really odd, seemingly illogical problem: Background: This is an on-line course made up of lots of pages, some have forms, some don't. The pages which have forms all submit to single php script (called submit.php) which processes the submitted form, placing the

[PHP] File Paths in PHP.ini on Win2000 w/ Apache

2001-07-13 Thread Johnny Nguyen
I've got the following lines in my php.ini in my C:\WinNT dir. ; ; Paths and Directories ; ; include_path= ; UNIX: /path1:/path2 Windows: \path1;\path2 doc_root= ; the root of the php

[PHP] Passwords and SSH port forwarding (was: Alternative to phpMyAdmin)

2001-07-13 Thread Egan
On Fri, 13 Jul 2001 12:28:37 -0400, Matthew Loff [EMAIL PROTECTED] wrote: Does mysql-front encrypt the password before it travels the net? It does support the compressed client/server protocol, which would make it harder to intercept-- but encryption is not an option yet on the client. I

Re: [PHP] Passwords and SSH port forwarding (was: Alternative to phpMyAdmin)

2001-07-13 Thread Hank Marquardt
Works just fine ... as does postgres -- ssh -N -2 -f -C -c blowfish -L3306:yourdatabase.server.here:3306 [EMAIL PROTECTED] or the other usual tricks work too ... like going through a firewall (fyi ... clear text on the *other* side of the firewall): ssh -N -2 -f -C -c blowfish

RE: [PHP] Passwords and SSH port forwarding (was: Alternative to phpMyAdmin)

2001-07-13 Thread Matthew Loff
Excellent tip, Hank! I didn't know SSH tunneling was that easy, I haven't had the necessity to use SSH at all yet. -Original Message- From: Hank Marquardt [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 6:42 PM To: Egan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Passwords and

[PHP] Adding to an array within while loop

2001-07-13 Thread Mike Gifford
Hello, I'm trying to get around a database problem that I'm having in which multiple authors are producing (almost - the authors are listed as different) duplicate returns within a bibliography. What I've done is query the database and produce a list of duplicates using something like this

[PHP] Re: Using an image as a reset button on a PHP script

2001-07-13 Thread Inércia Sensorial
From the html 4.1 manual (only saying this cause I don't know if it will work on agents that only support previous html versions)... BUTTON name=reset type=resetResetIMG src=/icons/oops.gif alt=oops/BUTTON -- Julio Nobrega. You're asking me will my love grow, I don't know. Brandon Orther

Re: [PHP] Error Message with sessoin variables.

2001-07-13 Thread Inércia Sensorial
Windows plataform? I was getting this error and solved by creating a dir named 'tmp', so create: c:\tmp That's where the session files will be stored... I think it's configurable in php.ini. -- Julio Nobrega. You're asking me will my love grow, I don't know. Johnny Nguyen [EMAIL

Re: [PHP] Piping Mime String to Metamail Fails

2001-07-13 Thread Jeff Hill
Don Read wrote: On 13-Jul-01 Jeff Hill wrote: Don Read wrote: On 13-Jul-01 Jeff Hill wrote: I've tried everything I can to pipe a string with mime content to metamail, but it fails in every variation of: exec(echo $mime_string | /usr/bin/metamail -d -q -r -w -x -y , $met_res)

RE: [PHP] Best Choice

2001-07-13 Thread MRossland
I'm not sure of any open source projects that match what you're asking for, but I still recommend PHP. I get the impression that you are new to programming. If so, I do recommend PHP. At least in my case, PHP came easier than Perl or Python, probably because PHP is primarily designed for use on

Re: [PHP] Piping Mime String to Metamail Fails

2001-07-13 Thread Hank Marquardt
www.php.net/popen ? ... or am I missing something? On Fri, Jul 13, 2001 at 07:52:51PM -0400, Jeff Hill wrote: Don Read wrote: On 13-Jul-01 Jeff Hill wrote: Don Read wrote: On 13-Jul-01 Jeff Hill wrote: I've tried everything I can to pipe a string with mime content to metamail,

[PHP] Confirmation Requester

2001-07-13 Thread Dave Freeman
Hi All I'm really not sure if this is php or, perhaps, javascript. I have a php application in development. On one page I have a list of information extracted from a mysql database. I have links beside each line to edit or delete that informaiton (which calls a php function to carry out

Re: [PHP] encryption methods?

2001-07-13 Thread Christopher Ostmo
Butler, Shaun pressed the little lettered thingies in this order... check out the crypt() function http://www.php.net/manual/en/function.crypt.php if you don't care about decrypting the password this works fine. --Shaun Umm... You've misunderstood something. The reason why you

RE: [PHP] Error Message with sessoin variables [solved]

2001-07-13 Thread Johnny Nguyen
Thanks. c:\temp took care of it. now if i can only get the extensions to work. -Original Message- From: Inércia Sensorial [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 4:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Error Message with sessoin variables. Windows plataform?

[PHP] Re: Confirmation Requester

2001-07-13 Thread Inércia Sensorial
Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That would be elegant :-)). -- Julio Nobrega. You're asking me will my love grow, I don't know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] Web application?

2001-07-13 Thread Inércia Sensorial
I am sorry, maybe going a little off-message here, but what would do you mean by eliminate 'table-scans'? -- Julio Nobrega. You're asking me will my love grow, I don't know. Christopher Ostmo [EMAIL PROTECTED] wrote in message news:3B4F343A.18504.2376C59B@localhost... As Rasmus stated

[PHP] copying files to dynamic directory

2001-07-13 Thread Vincent Chew
Is it possible to copy a file to a dynamically created directory? Does anyone know how to put text onto multiple images with only one input? I want to generate images for javascript rollovers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Paths for Extensions Solved

2001-07-13 Thread Johnny Nguyen
I either needed to add c:\php\dlls to my path or i had to copy libsasl.dll into c:\winnt\system32 in order for my extensions to work. My extension dir looked like this: ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\extensions\ now gd and ldap show up when

Re: [PHP] Re: Confirmation Requester

2001-07-13 Thread Dave Freeman
On 13 Jul 01, at 21:47, Inércia Sensorial wrote: Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That would be elegant :-)). Yep, that's what I'm planning on - got any references on actually doing it? I'm still learning about this sort of stuff and it really helps to see

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-13 Thread hassan el forkani
there should not be any problem if your web server is configured to parse .inc extentions as PHP, in wich case, even if the file is called separately, the server will strip php tags and send normal html output. regards At 00:11 10/07/01, Noah Spitzer-Williams wrote: Hey guys, I come

Re: [PHP] Re: Confirmation Requester

2001-07-13 Thread Nick Winfield
On Sat, 14 Jul 2001, Dave Freeman wrote: On 13 Jul 01, at 21:47, Inércia Sensorial wrote: Maybe a pop-up or a CSS/javascript box with a 'true delete' link (That would be elegant :-)). Yep, that's what I'm planning on - got any references on actually doing it? I'm still learning

Re: [PHP] how to hide dbconnect file if its in published directo

2001-07-13 Thread Don Read
On 14-Jul-01 hassan el forkani wrote: there should not be any problem if your web server is configured to parse .inc extentions as PHP, in wich case, even if the file is called separately, the server will strip php tags and send normal html output. Enough already. Whom should we flog

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-13 Thread Rasmus Lerdorf
there should not be any problem if your web server is configured to parse .inc extentions as PHP, in wich case, even if the file is called separately, the server will strip php tags and send normal html output. Once again, don't do this. If you write your .inc files assuming they are going

Re: [PHP] Piping Mime String to Metamail Fails

2001-07-13 Thread Don Read
On 13-Jul-01 Jeff Hill wrote: Don Read wrote: On 13-Jul-01 Jeff Hill wrote: Don Read wrote: On 13-Jul-01 Jeff Hill wrote: I've tried everything I can to pipe a string with mime content to metamail, but it fails in every variation of: exec(echo $mime_string | /usr/bin/metamail

Re: [PHP] Strange Bizzare Problem

2001-07-13 Thread rm
Is it possible that your database is ot updating immediately but on a delayed basis..some databases can be set to update on a delayed or immediate basis. If the update varaiables are derived from the database then these will not be updated as well and the redirect will go thru, unless you put in

Re: [PHP] how to hide dbconnect file if its in published directo

2001-07-13 Thread Chris Anderson
how can you hate foo.inc? - Original Message - From: Don Read [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 13, 2001 10:39 PM Subject: Re: [PHP] how to hide dbconnect file if its in published directo On 14-Jul-01 hassan el forkani wrote: there should not be any problem

RE: [PHP] Printable Report Generator

2001-07-13 Thread John Monfort
Ain't no such critter as a page break in html, but you can let the browser help out. True. But, there is one in XML. You can use XML to insert PRINTABLE page breaks in your documents. That is, you can specify where a page ends, and a new one begins, when the web doc is sent to the printer.

Re: [PHP] how to hide dbconnect file if its in published directo

2001-07-13 Thread Rasmus Lerdorf
On 14-Jul-01 hassan el forkani wrote: there should not be any problem if your web server is configured to parse .inc extentions as PHP, in wich case, even if the file is called separately, the server will strip php tags and send normal html output. Enough already. Whom should we flog

<    1   2