RE: [PHP] OnUNload Scripts

2001-10-23 Thread Jason G.
It may be possible to do something of the following: I know that on rollovers, Javascript can preload the images needed to rollover to... Hmm... Maybe you could have javascript load an image during the unload event with the image's src pointing to a php script... -Jason Garber At 04:51 PM

[PHP] Check mail user

2001-10-23 Thread Rosen
Hi, can someone give me script for syntax check of username for mail server ? Thanks, Rosen -- 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 PROTECT

Re: [PHP] INPUT tag with default value

2001-10-23 Thread Silvia Mahiques
Dear Philip, Thank you very much, I have lost long time proving different alternatives that it's better not to implement. I prefer a safe code. Thanks again!. Cheers Silvia Mahiques "Philip Olson" <[EMAIL PROTECTED]> escribió en el mensaje Pine.BSF.4.10.10

Re: [PHP] redirecting the browser

2001-10-23 Thread Valentin V. Petruchek
Use this: - Original Message - From: "Ozgur Demirtas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 9:47 AM Subject: [PHP] redirecting the browser > Hi all, > > I have a PHP script and at one point of the script I am trying to redirect > my browser to a c

Re: [PHP] redirecting the browser

2001-10-23 Thread Mak
Hi, you can use Javascript as follows: document.location.href='somepage.php';"); //continue yr code... ?> Hope it helps. - Mak - Original Message - From: "Ozgur Demirtas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 24, 2001 2:47 PM Subject: [PHP] redirecting

[PHP] redirecting the browser

2001-10-23 Thread Ozgur Demirtas
Hi all, I have a PHP script and at one point of the script I am trying to redirect my browser to a certaion page. I can't seem to find an easy way of doing this. header() call is so much of a problem. There is no such function like redirect("...") as in ASP? PS: I am using PHP version 3.09 as an

[PHP] Enabling php in only certain hosts and directories

2001-10-23 Thread Joseph Blythe
Hello all, I am just configuring up a new web server, and I want to be able to run php only in the web servers main document root and in specified virtual hosts, I have a fair understanding on how to go about this, but would really like some feedback before I get to far into it. Basically the onl

RE: [PHP] OnUNload Scripts

2001-10-23 Thread Martin Towell
>From what I can tell, the only way you can execute a PHP script is to have the browser request it. This means using the same window that the document is being "unloaded" in, or opening a new window. You could open a new window, give focus to the current window, and in the new window, have it clo

[PHP] OnUNload Scripts

2001-10-23 Thread Impex Holidays Maldives / Hasan
Hi everyone, I can use javascripts onunload to run PHP file with a new window. Is there anyway i can run PHP script file on ONUNLOAD with out opening a new window ( in the back ground). Any one's help will be greatly appreciated. Best regards, Hasan -- PHP General Mailing List (http://www.

[PHP] Package mechanism

2001-10-23 Thread Douw Steyn
Hi all, I have a need for a package mechanism like that provided by TCL. We write a lot of code in reusable libraries and often encounter the situation in which an application uses a particular library but requires at least version X or greater. The require(), require_once(), etc. functionality

RE: [PHP] mail() question

2001-10-23 Thread Niklas Lampén
Well, not sure if this is a solution for you but I've done it with something like this: If ($Page == "Form") { // Form itself with hidden field Page=Mailer } else if($Page == "Mailer") { // Send the mail header("Location: youraddress?Page=Form"); }; Hope this helps. Ni

[PHP] Re: Help converting ASP->PHP

2001-10-23 Thread Garth Dahlstrom
> > datCurrent, intCurrentMonthDays and intWorkDays are local > This didn't totaly help. This line I can't figure out: > intCurrentMonthDays= Day[DateAdd["d",-1, DateAdd["m",1, datCurrent]]]; > > Basically it gets the number of days in the current month, How to do > in PHP? Mr.Baseball, have a

RE: [PHP] MSSQL 7.0 and PHP

2001-10-23 Thread Nick Richardson
my understanding (and i could be totally wrong) is varchar only accepts values up to 255 (so does char). To get larger than that you have to use 'text' (i.e. create table ( text not null..); -Original Message- From: Franco Breciano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 2

RE: [PHP] PHP/Apache/Windows 2000 - Does not send mail

2001-10-23 Thread Nick Richardson
You need to make sure you have a few things configured on you SMTP Virtual server. Start IISAdmin and right click on 'Default SMTP Virtual Server' then choose properties. Ok, from here, things might not match perfectly because i'm running Windows XP (no i didn't pirate it, i work for microsoft).

[PHP] PHP/Apache/Windows 2000 - Does not send mail

2001-10-23 Thread Yuval Zukerman
Hi there, I installed PHP 4.0.6 on a Windows 2000 machine running Apache 1.3.22. I followed all the instructions for installation - added the php.ini file to the C:\winnt directory, added php to httpd.conf. I tried both the module and the CGI versions and the following problem still persisted:

Re: [PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-23 Thread Mark
On Wed, 24 Oct 2001 11:18:04 +1000, James Cave wrote: > >> I gave it a try >> NN4.7 and 6.1 both ignored the 'display: inline' css in my test > >There was actually an error in the HTML I posted, try this: > >1. form tag outside of >cell >2. form tag outside of >cell >3. form tag outside of >cell >

[PHP] Php and Emacs21

2001-10-23 Thread Mark
Hi, Now that emacs has tty color support, I'm trying to get it to do php syntax highlighting through a windows telnet/ssh client like securecrt or teraterm but I haven't gotten it yet. Has anyone got this working? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

[PHP] MSSQL 7.0 and PHP

2001-10-23 Thread Franco Breciano
I'm using php to retrieve a Query from a SQLServer 7.0 database. My code is this one: $base = mssql_select_db($db,$conexion); $sql="SELECT MarcasSolicitante FROM Marcas"; $result = mssql_query($sql,$conexion); while ($myrow = mssql_fetch_array($result)) { $mensaje= $myrow["MarcasSolici

Re: [PHP] aaaaaaaaaaaaaaa

2001-10-23 Thread Richard S. Crawford
This is probably the most challenging question I've ever seen come across this list. Can we get back to you on this one, Franco? At 07:52 PM 10/23/2001, Franco Breciano wrote: >a > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >F

[PHP] aaaaaaaaaaaaaaa

2001-10-23 Thread Franco Breciano
a -- 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]

[PHP] a

2001-10-23 Thread Franco Breciano
a -- 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 usage(s)

2001-10-23 Thread Brian White
At 17:16 23/10/2001 -0500, Wandrer wrote: >> C/ Use a development environment made from PHP like Zope, >> Midgard, et. al. > >Use Textpad as my development environment. Ditto. Very nice. >> D/ Can share with us a new direction in PHP that will keep it >> compet

Re: [PHP] PHP Openlink/Progress Problems

2001-10-23 Thread David Robley
On Tue, 23 Oct 2001 16:35, Grant Walters wrote: > I'm going nuts trying to work out how to handle errors from data > statement with single quotes. PHP 4.0.6 appears to be mangling > something somewhere. > All statements work with the Openlink odbctest program > Any help appreciated > > $conn = o

[PHP] how many data can a session hold?

2001-10-23 Thread Christian Dechery
I want to know how many data can a session hold? The number of bytes... and if possible the max size of an - let's say - array of ints. I need this to know how many IDs I can hold in the session... _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://ww

[PHP] GD: need better solution...

2001-10-23 Thread Christian Dechery
I have a page that calls a image creating script lots of times... this script takes two parameters... the type of graph to be created and an array with data to fill the graph to be created... now I'm doing it like this: "> and it generates an output something like this: it works just fine.

Re: [PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-23 Thread James Cave
> I gave it a try > NN4.7 and 6.1 both ignored the 'display: inline' css in my test There was actually an error in the HTML I posted, try this: 1. form tag outside of cell 2. form tag outside of cell 3. form tag outside of cell 4. form tag outside of row 5. form tag outside of row 6. form tag o

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 10:02, brendan wrote: > Uni runs solaris/unix > faculty runs iis > world of political pain and anguish.. > > view source brings up a blank screen .. > ta > brendan > OK - bit of straw grasping; you do have URL-fopen-wrappers enabled; try assigning the result of the include to

Re: [PHP] In Toronto Next week

2001-10-23 Thread Christian Dechery
At 15:47 23/10/01 -0700, Rasmus Lerdorf wrote: >I have a couple of free days in Toronto Monday and Tuesday next week. >Anybody able to gather enough of a crowd of interested bodies for a PHP >tutorial? I'd say at least 10 for it to be worth my effort. > >-Rasmus how about Rio, Brazil?? :)) __

Re: [PHP] include() problem.

2001-10-23 Thread brendan
Uni runs solaris/unix faculty runs iis world of political pain and anguish.. view source brings up a blank screen .. ta brendan David Robley wrote: > On Wed, 24 Oct 2001 08:03, brendan wrote: > >>Hi, >> I have an issue with including a file accross my web server from a >>separate

Re: [PHP] mail() question

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 07:03, [EMAIL PROTECTED] wrote: > Hi all, I've got a question that I'm sure can be answered, but I'm a > little stuck right now... > > I've set up yelvington's excellent annotate script, and it works > beautifully. My next step was to try to add an auto email function to > noti

Re: [PHP] include() problem.

2001-10-23 Thread David Robley
On Wed, 24 Oct 2001 08:03, brendan wrote: > Hi, > I have an issue with including a file accross my web server from a > separate site on that server served on another port. > > - explanation > > my php website runs off IIS port :80 (unfortunately IIS is employers > decision not mine )

Re: [PHP] Apache "Request" Ids?

2001-10-23 Thread Brian White
Neat! Unfortunately it looks like it designed simply to be able to generate unique ids - this isnt much use to me unless I have a way to query whether the request that generated the id is still active. Doesn't matter. At 09:11 23/10/2001 -0700, Christopher William Wesley wrote: >On Tue, 23 O

[PHP] PHP and Image Magick for FreeBSD

2001-10-23 Thread Max
Hello, Looking for statically linked pre compiled ImageMagic binaries (convert, mogrify, ect.) to run from the cgi, with PHP exec on FreeBSD. thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-23 Thread Mark
On Wed, 24 Oct 2001 09:14:07 +1000, James Cave wrote: > >> if your form is inside a table .. hide the tags > >In my experience, this just "moves" the closing whitespace to the >end of >the table (just like if you insert text incorrectly between a >and a >). > >The previous post I've made using t

Re: [PHP] Newbie in Need of Help!

2001-10-23 Thread Mike Eheler
The best way to do this is not to call them pick1, pick2, etc.. but call them all pick[]. Here's an example: St. Louis Washington St. Louis Washington Then in your PHP code you can do it like this: $value) { echo $value.''; } ?> or, if you prefer more traditi

RE: [PHP] anyone have...

2001-10-23 Thread Jason Murray
Try: ereg_replace("[^a-zA-Z]", "", $string) Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -Original Message- > From: Jack Dempsey [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 24, 2001 9:02 AM > To: Jay Paulson; [EMAIL PROTECTED

Re: [PHP] POST and & trouble.

2001-10-23 Thread Alex Marín Fica \(Desarrollo\)
Try using urlencode function to make it "usable" on url, so char symbols like & or / or . (dot) will be returned by this funtion like a % with the hex ascii code near by... I hope this helps... - en español... transandino compañero phpero Intenta codificando para url, empleando la función ur

[PHP] Newbie in Need of Help!

2001-10-23 Thread JMack
Greetings. I have been playing around with PHP this week, programming a football pool. I have hit a small snag that I would like some assistance with, if anyone knows the answer -- it's probably very simple, but my Intro to PHP book does not tell me how to do it. I have an HTML form in a PHP pa

RE: [PHP] anyone have...

2001-10-23 Thread Jack Dempsey
would need to check, but: preg_replace("/[^a-zA-z]/",'',$data) should about do it... jack -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 6:50 PM To: [EMAIL PROTECTED] Subject: [PHP] anyone have... anyone have a function that strips out

RE: [PHP] In Toronto Next week

2001-10-23 Thread Mark Saunders
Sounds tempting. Are ultra newbies welcome -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] In Toronto Next week I have a couple of free days in Toronto Monday and Tuesday next week. Anybo

[PHP] Sao Paulo, Brazil

2001-10-23 Thread Alex Piaz
Hi Rasmus, I could not resist...How about to be here in São Paulo. I read that you lived in Brazil , is this true??? Regards Alex Piaz Webmaster Global Map Internet Marketing http://www.globalmap.com "Be cool or be cast out" RC1

Re: [PHP] Portland, Oregon

2001-10-23 Thread Richard Baskett
Argh! Well farfinugen! My f word for the day... Well i expect to see more announcements the next time someone is in my area :) Although it will change to San Diego soon so keep me informed! Rick > >> So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP >> class, tutorial, a

[PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-23 Thread James Cave
> if your form is inside a table .. hide the tags In my experience, this just "moves" the closing whitespace to the end of the table (just like if you insert text incorrectly between a and a ). The previous post I've made using the "display: inline;" style is in fact W3C compliant. -- PHP G

RE: [PHP] Portland, Oregon

2001-10-23 Thread Rasmus Lerdorf
Was there 3 months ago... ;) On Tue, 23 Oct 2001, Jack Dempsey wrote: > ok, how about DC ? :-) > > -Original Message- > From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 23, 2001 6:54 PM > To: Richard Baskett > Cc: PHP General > Subject: Re: [PHP] Portland, Oreg

RE: [PHP] Portland, Oregon

2001-10-23 Thread Jack Dempsey
ok, how about DC ? :-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 6:54 PM To: Richard Baskett Cc: PHP General Subject: Re: [PHP] Portland, Oregon > So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP > class, tut

Re: [PHP] Portland, Oregon

2001-10-23 Thread Rasmus Lerdorf
> So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP > class, tutorial, anything in this area.. and I would love to attend one :) I was there 2 months ago. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

[PHP] Portland, Oregon

2001-10-23 Thread Richard Baskett
So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP class, tutorial, anything in this area.. and I would love to attend one :) Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] phpODBCadmin?

2001-10-23 Thread andrew
Hi, Does anyone know of any active projects to port phpMyadmin to odbc, or anything similar? cheers, andrew -- 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-mai

[PHP] In Toronto Next week

2001-10-23 Thread Rasmus Lerdorf
I have a couple of free days in Toronto Monday and Tuesday next week. Anybody able to gather enough of a crowd of interested bodies for a PHP tutorial? I'd say at least 10 for it to be worth my effort. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] anyone have...

2001-10-23 Thread Rasmus Lerdorf
$new = preg_replace('/[^a-zA-Z]/','',$old); On Tue, 23 Oct 2001, Jay Paulson wrote: > anyone have a function that strips out all the characters in a string that > are no a-z or A-Z? > > thanks... > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTEC

[PHP] anyone have...

2001-10-23 Thread Jay Paulson
anyone have a function that strips out all the characters in a string that are no a-z or A-Z? thanks... -- 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: [EM

[PHP] include() problem.

2001-10-23 Thread brendan
Hi, I have an issue with including a file accross my web server from a separate site on that server served on another port. - explanation my php website runs off IIS port :80 (unfortunately IIS is employers decision not mine ) - I have a web spider running off port : both w

[PHP] Re: PHP usage(s)

2001-10-23 Thread Jason Wood
PHP is getting HUGE!! look at the stats on http://www.php.net/usage.php Speaks for itself... A) I dont use any templates... i reuse my own code sometimes, but i mostly do it all by hand. B) I dont even know what FastTemplates is, hehe =P C) ?? D) haha, keep it competitive? It's pretty much

Re: [PHP] PHP usage(s)

2001-10-23 Thread Wandrer
At 03:00 PM 10/23/01 -0700, you wrote: >Anyone noticed more or less PHP usage in customers/providers? More. Vastly more. >How many of you, who write in PHP; > A/ Use templates at all. Definately use templates. > B/ Use Fast templates or an equivilent. Code just about everythin

[PHP] Unix MailboFormat Archives

2001-10-23 Thread Kevin Diffily
Hello All, I just joined the list and would love to get hold of the archives in Unix Mailbox Format. Does anyone know of a source? Would anyone be willing to upload theirs onto my server via ftp? Thanks, -- Kevin Diffily InterNetWorkingSolutions Enterprise Class Solutions for All Enterprises  

[PHP] Kerberos, usoft.NET, and online storage

2001-10-23 Thread Dennis Gearon
Anyone remember when Windows 2000, or the latest IIS from redmond killed a lot of the Kerboros exchanges between TLD servers? They were testing their 'Passport' infrastructure, and bastardizing a standard the 'same old way'. I'd like to store my bookmarks on my personal web site and be able to up

[PHP] PHP usage(s)

2001-10-23 Thread Dennis Gearon
I love PHP/Apache/Linux/(and all its all the new apps, YEAH)/etc. But my provider now advertised, "ASP NOW available!" I really don't plan on helping [EMAIL PROTECTED] However, I had a question for all of you here, or should I say several? Anyone noticed more or less PHP usage in customers/prov

[PHP] mail() question

2001-10-23 Thread Jeff Kryvicky @ Collider
Hi all, I've got a question that I'm sure can be answered, but I'm a little stuck right now... I've set up yelvington's excellent annotate script, and it works beautifully. My next step was to try to add an auto email function to notify me when someone has posted a comment, and send me the ent

Re: [PHP] PHP on PWS

2001-10-23 Thread Vincent Stoessel
the first url uses the http protocal and will be proccessed by your web server (PWS) the second url is a path to a local file and will be returned to you by the native file system , thus php/PWS is never invoked. This is how it is supposed to work. juliet wrote: > I use PWS on a Win 95; to be ab

[PHP] Detect mySql Install

2001-10-23 Thread Chris
Is there a way to detect, using PHP, if mySql is installed on a server? Can a version # be determined also? I know this can be done using phpinfo, but I don't want to use that approach. Thanks, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Ashley M. Kirchner
Kurt Lieber wrote: > Regarding shell access being a "security risk", ssh is far, far more secure > than FTP can ever hope to be. This is why there's FTP over SSH, or sftp. -- W | I haven't lost my mind; it's backed up on tape somewhere. +---

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Kurt Lieber
On Tuesday 23 October 2001 12:29, Chris Lee wrote: > I use proftpd, I can setup a chroot for the user that logs in, chroot them > to their vhosts dir, move the mysql passwd file out of that dir. now anyone > that ftp's in can not read the passwd. as for telnet (shell) access, its > rare a user nee

[PHP] Re: HTML SELECT Lists -- ??? -- SOLVED.

2001-10-23 Thread Jason Caldwell
I wrote some code that will grab the selected items and place them at the top of the list, then list below that all unselected items -- it actually works pretty well and is (of course) browser independent. If anyone is curious on how this is done -- I've put some sample code below as an example:

Re: [PHP] language question

2001-10-23 Thread dempsejn
david, the syntax needs a single variable there...not a list, or multiple vars...plus, if you look at http://php.net/list, you'll see it returns void, and foreach($table as void) doesn't make much sense... jack - Original Message - From: David Otton <[EMAIL PROTECTED]> Date: Tuesday,

[PHP] POST and & trouble.

2001-10-23 Thread German Pablo Gentile
I´m using post to send a variable between pages. I have a variable value like that 'Jeff&Company', so i have in the header : loginok.php?client_id=14&client_name=Jeff&Company Loginok page take the value at client_name as Jeff. Truncate the real value. How in can fix that? Thanks in advance. G

[PHP] PEAR installation location?

2001-10-23 Thread Scott Singleton
I need to upgrade the PEAR files for my PHP installation. Currently PHP is compiled as a Dynamic Shared Object (DSO) for Apache. I've found three copies of the PEAR.PHP file on my system /usr/share/php/PEAR.php /usr/lib/php/PEAR.php /usr/local/lib/php/PEAR.php how can I tell which one is bein

Re: [PHP] language question

2001-10-23 Thread David Otton
On Mon, 22 Oct 2001 16:47:56 +0200, you wrote: >On Monday 22 October 2001 14:28, David Otton wrote: >> why does this work: >> >> foreach ($table as $row) >> list ($a, $b) = $row; >> >> but this doesn't? >> >> foreach ($table as list ($a, $b)); > >because the correct syntax

[PHP] Re[2]: [PHP-DB] Re: PHP and MySQL queries...

2001-10-23 Thread WebDev
Hello Jason, your resource name from the query is '$result' not '$results' change '$results' to '$result' on both lines. /Merle Tuesday, October 23, 2001, 5:07:37 PM, you wrote: J> Ok I made the changes and now I am getting these 2 errors... J> Warning: 0 is not a MySQL result index in search

RE: [PHP] How to protect MySQL password

2001-10-23 Thread Nathan Cassano
One solution is to depend upon your defaults in "/usr/local/lib/php.ini" . Then just call mysql_connect() with no arguments or just call mysql_db_query with out the connection parameter and PHP will connect for you. If you are connecting to different MySQL servers this solution is not appropriate

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Chris Lee
I use proftpd, I can setup a chroot for the user that logs in, chroot them to their vhosts dir, move the mysql passwd file out of that dir. now anyone that ftp's in can not read the passwd. as for telnet (shell) access, its rare a user needs that anyhow, if you feel your customers do need that, we

[PHP] Complete Dealer locator and e-directory application in PHP

2001-10-23 Thread Ziad
Just wanted to announce that we released version 2 of our Xtreme Locator (dealer and e-directory) coded with PHP and using mySQL. You can demo it at http://www.iqservices.com/xlocator.html Dan Hensen IQservices.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] Matching strings in a flat/text file?

2001-10-23 Thread Mark
On Mon, 22 Oct 2001 22:09:56 -0700, Nick Richardson wrote: >Hey everyone, > >Anyone out there know how i could do this: > >I have a client who is an import car tuner. They would like to >feature the >cars they work on in their website. Instead of creating a new .html >or .php >file for every car

Re: [PHP] stop time out

2001-10-23 Thread Gary
OK, is there a limit on set_time_limit? The host of the site has a limit of 30 mails a second to stop spamming. so I need set_time_out of 60 seconds, that will give me 90 seconds to send all the mail. Gary Tim Zickus wrote: > On Tue, 2001-10-23 at 15:34, Gary wrote: > >>On sending a large nu

Re: [PHP] GD Gif or PNG

2001-10-23 Thread Rasmus Lerdorf
http://www.php.net/manual/en/function.imagetypes.php On Tue, 23 Oct 2001, Chris wrote: > Before creating a graphic, I would like to detect what type of graphic > files are supported. For example if GD is enabled and GIF Support is > available I'll create an GIF image. I know phpinfo() will tell

Re: [PHP] PHP with XML

2001-10-23 Thread Tim
On Tue, 2001-10-23 at 15:17, Vinicius Tavares wrote: > > What I have to do to make the PHP4 run the DOM XML??? http://www.php.net/manual/en/ref.domxml.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: [PHP] stop time out

2001-10-23 Thread Tim Zickus
On Tue, 2001-10-23 at 15:34, Gary wrote: > On sending a large number of newsletters out, how would you stop php > from timing out if you do not have access to the .ini file? http://www.php.net/manual/en/function.set-time-limit.php -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Kurt Lieber
On Tuesday 23 October 2001 11:20, Matt Williams wrote: > Move it outside the document root > > or put a .htaccess file inside the dir to deny access. This will still > allow system access but will prevent other fopen. Either solution still allows anyone with shell access to the machine to read y

[PHP] is there a commandline php.exe interpreter?

2001-10-23 Thread John A. Grant
I've installed ActivePerl, which gives me a way to run .pl files, i.e. : c:\> perl someprogram.pl Does the Win32 php installation give me a command-line interpreter like that? Here's why I'm asking. I have a set of pages that I want to convert to php, but I will also need to drop those pages

Re: [PHP] How to protect MySQL password

2001-10-23 Thread Kurt Lieber
On Tuesday 23 October 2001 11:13, Andy wrote: > Problem is, that I cannot see any solution to protect the value of $sDBpsw. > Of course I wont set the value of $sDBpsw in the same PHP script. I do > that including a file pa/pa.php (protected area) but this file also has to > have read access to a

[PHP] stop time out

2001-10-23 Thread Gary
On sending a large number of newsletters out, how would you stop php from timing out if you do not have access to the .ini file? TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact t

RE: [PHP] How to protect MySQL password

2001-10-23 Thread Matt Williams
Move it outside the document root or put a .htaccess file inside the dir to deny access. This will still allow system access but will prevent other fopen. M: > In a PHP application using MySQL i have to connect the database using > > $iDBhandle = mysql_connect( $sDBhost, $sDBuser, $sDBpsw );

[PHP] GD Gif or PNG

2001-10-23 Thread Chris
Before creating a graphic, I would like to detect what type of graphic files are supported. For example if GD is enabled and GIF Support is available I'll create an GIF image. I know phpinfo() will tell me this but I don't want to burden the user with this check. Any Suggestions? Chris -- P

[PHP] PHP with XML

2001-10-23 Thread Vinicius Tavares
What I have to do to make the PHP4 run the DOM XML??? thanks Vinicius -- 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]

[PHP] How to protect MySQL password

2001-10-23 Thread Andy
Hi friends In a PHP application using MySQL i have to connect the database using $iDBhandle = mysql_connect( $sDBhost, $sDBuser, $sDBpsw ); Problem is, that I cannot see any solution to protect the value of $sDBpsw. Of course I wont set the value of $sDBpsw in the same PHP script. I do that i

Re: [PHP] web base mail client???

2001-10-23 Thread Kurt Lieber
I would say this comes in a close second as the "most oft-asked question on php-general", with the first, of course, being "What's a good text editor for PHP?" So, couple of suggestions: 1. Search the archives. You'll find a ton of information there. 2. Check out squirrelmail.org --kurt O

[PHP] problem pattern matching a url with question mark

2001-10-23 Thread sgibbs
I found the following code currently used on our website to match a url expression. Unfortunately, when I added a question mark, the webpage that contained the url with the question mark just "hung" and would not load into my browser at all. Currently, the url links only up to the question mark.

[PHP] PHP and MySQL queries

2001-10-23 Thread Jason
As of yet I have tried all sorts for date formating for the search field to work. I.E. 2001-10-23, 10/23/2001, 10/%/2001, 10%, %10%, etc. The date field in the database is stored as 10/23/2001 and yet when a user enters the date and clicks the search button it does not display the results. I am

[PHP] HTML SELECT Lists -- ???

2001-10-23 Thread Jason Caldwell
I have a (multiple selection) select list on my web page -- My pages are setup with Save & Go Back buttons (through sessions) -- in IE when I select multiple items (or any item) then go forward to the next page, then go back -- the items are still selected, but the select list starts at the top --

Re: [PHP] INPUT tag with default value

2001-10-23 Thread Richard S. Crawford
It is possible to utilize a VALUE attribute with a FILE type input field. Even the specs at Blooberry list "value" as an attribute of the input type=file field. I double-checked at w3c.org to make sure, though, and found the information repeated there. I even checked my O'Reilly book on XHT

[PHP] web base mail client???

2001-10-23 Thread Christian
Hello :c) Any one know a good prebuild php web base mail client that runs on win and linux server??? (not using any DB) Thanks Chrisrtian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] INPUT tag with default value

2001-10-23 Thread Philip Olson
This is not possible. Default values cannot be set with type=file as if it were it would be quite a security risk.A little more information on the capability of this html form element: http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm And a related RFC : http://www.faqs.or

Re: [PHP] mktime() problem

2001-10-23 Thread DL Neil
So do I: echo "Mkt: " . mktime(0,0,0,1,1,1970); echo "GMT: " . gmmktime(0,0,0,1,1,1970); produces Mkt: 0 GMT: -3600 BTW I'm running PHP under WinNT4.0 mktime -- Get UNIX timestamp for a date (http://www.php.net/manual/en/function.mktime.php) Returns the Unix timestamp corresp

[PHP] INPUT tag with default value

2001-10-23 Thread Silvia Mahiques
Hi, I can't print a default value in a INPUT tag with TYPE=file. INPUT tag has value attribute, but it not apear in window box. . How can I print a default value? Thanks, Silvia Mahiques

Re: [PHP] Apache "Request" Ids?

2001-10-23 Thread Christopher William Wesley
On Tue, 23 Oct 2001, Brian White wrote: > process ID belongs to Apache. What I was wondering was there any kind > of ID that was attached to a particular CGI request that I could > access and use? Yes. Use the Apache module, mod_unique_id, and then in your environment, $UNIQUE_ID will be availa

Re: [PHP] Re: require & include

2001-10-23 Thread Philip Olson
Both require() and include() are identical in every way except upon failure, require will shout a Fatal Error while include provides a Warning. Fatal warnings don't allow the code to continue, Warnings don't have such an affect. The current include/require docs reflect the status of pre 4.0.2

RE: [PHP] Singleton

2001-10-23 Thread Victor Hugo Oliveira
This would be very good to access a Singleton with one user, but how would it be done for all users to acess the same object. Is it possible to hold and open file pointer in this object ? Thanks, Victor -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: terça-feira,

[PHP] Re: Help converting ASP->PHP

2001-10-23 Thread MrBaseball34
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > function begin_month($timestamp) > { > $a = getdate($timestamp); > return mktime(0, 0, 0, $a["mon"], 1, $a["year"]); > } > > function end_month($timestamp) > { > $a = getdate($timestamp); > return mktime(0, 0, 0, $a["mon"] + 1, 0

Re: [PHP] Singleton

2001-10-23 Thread Andrey Hristov
Use sessions (like session_start() ) -- Andrey Hristov Web Developer Icygen Corporation BUILDING SOLUTIONS http://www.icygen.com On Tuesday 23 October 2001 11:55 am, you wrote: > I'd like to to make a Singleton object in PHP4. > I'm trying to use a static variable in a function to do that

[PHP] Singleton

2001-10-23 Thread Victor Hugo Oliveira
I'd like to to make a Singleton object in PHP4. I'm trying to use a static variable in a function to do that. Every time I use the reload in the Browser client, the file doesn't seem to keep the information (I kind of expected that). I could think only 2 ways to do t

[PHP] Update Query - Urgent -- Succeeded!

2001-10-23 Thread Srinivasan Ranganathan
Hi all Thanks for all the help. told u my mistake was stupid! looks like mysql dosent like ';' at the end of the query! who would've guessed that! thanks all (for being so patient) Srinivasan Ranganathan *NEW* Connect to Yahoo! Mess

  1   2   >