Re: [PHP] mysql_pconnect to remote system

2001-10-23 Thread Andrey Hristov
The setting of the your user in Mysql is maybe to connecto only from localhost (their machine) if you want to connect from anywhere else you receive an error. Maybe this is your case. Decide : 1)post your error message here for better solution (use mysql_error) or 2)contact your ISP if your thi

[PHP] NEXT Page and BACK Page

2001-10-23 Thread Tshering Norbu
Dear list, I would like to query only the last 50 records/rows (order by ID desc) in the following script file which uses MySQL, and I want to have NEXT page for the 50 rows earlier than last 50 queried and go on. I think I can use JavaScript for BACK page to go back. Could you pl add for me the s

Re: [PHP] NEXT Page and BACK Page

2001-10-23 Thread Rasmus Lerdorf
Use a LIMIT clause. See http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#SELECT -Rasmus On Tue, 23 Oct 2001, Tshering Norbu wrote: > Dear list, > I would like to query only the last 50 records/rows (order by ID desc) in > the following script file which uses MySQL, and

Re: [PHP] format date

2001-10-23 Thread Caleb Carvalho
Thanks, I am inserting into table values('$product','$title,'$date') the date field gets added by default, like time stamp, when i view the contents added to database i see date field showing ex: display.php $product, $title, $date mango

[PHP] Again: [PHP] NEXT Page and BACK Page

2001-10-23 Thread Josep Raurell
> Use a LIMIT clause. See > http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#SEL ECT > > -Rasmus And for a db that not have limit (like ibm db2) Josep. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: [PHP] format date

2001-10-23 Thread Andrey Hristov
I don't know if this will help but there's from_unixtime() function in mysql. use values($some,$another,from_unixtime(". time()."),.." On Tuesday 23 October 2001 03:52 am, you wrote: > Thanks, > > I am inserting into table > values('$product','$title,'$date') > > the date field gets add

[PHP] Re: Again: [PHP] NEXT Page and BACK Page

2001-10-23 Thread Rasmus Lerdorf
> > Use a LIMIT clause. See > > > http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#SEL > ECT > > > > -Rasmus > > And for a db that not have limit (like ibm db2) Use a cursor or rowcount, if you have that. -Rasmus -- PHP General Mailing List (http://www.php.ne

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

2001-10-23 Thread anders nawroth
Why not use RegEx? I'm doing a similar search with RegEx. Makes the code much shorter. Anders Nawroth www.nawroth.com - Ursprungligt meddelande - Från: "Jack Dempsey" <[EMAIL PROTECTED]> Till: <[EMAIL PROTECTED]>; "Nick Richardson" <[EMAIL PROTECTED]> Skickat: den 23 oktober 2001 07:2

Re: [PHP] Re: syntax for checking if string contains something

2001-10-23 Thread liljim
Hey, > if (isset($submit)){ > if (!empty($qty)) > { echo "Please enter the quantity for your quotation enquiry.";} > > > When nothing was filled in for $qty the if condition did not prompt me to > enter a quantity. This is wrong: if (!empty($qty)) { echo "Please enter

[PHP] HTML email

2001-10-23 Thread Benny
Please help me. I have problem with html email. I send email to 3 email address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] The email client for yahoo & eudoramail is their web. And for the last destination, the email client is ms outlook. The html email for yahoo & eudoramail

[PHP] 샘플도받고제주도무료여행등다양한써비스

2001-10-23 Thread 신태수
MBC ¹«ºù À×±Û¸®½¬

[PHP] Webserver response lockup

2001-10-23 Thread Viktor Kollarik
Hi all, I'm using Apache 1.3.22 with PHP 4.0.6 running on linux with kernel 2.4.12. Some PHP pages very often get my server into the state show below: This an example from my server-status 8-9 12249 0/0/0 W 0.00 2451 1196595285 0.0 0.00 0.00 212.55.224.66 shadow.ana.sk POST /admi

Re: [PHP] preg_match_all...grrrr!!!

2001-10-23 Thread Christian Reiniger
On Tuesday 23 October 2001 02:47, PHPGalaxy.com wrote: > My matching pattern looks like this: > $engreg = > '/psPhoneEntry.py?firstname=(.*?)&lastname=(.*?)&street=(.*?)&city=(.*? >)&state=(.*?)&zip=(.*?)&phone=(.*?)\">/i'; > > Note the "/" at the beginning, and "/i" at the end. those have always

Re: [PHP] Error POP3 Class

2001-10-23 Thread Andrew Brampton
I had the exact same problem with another class that used Sockets like this one does... Apparently Sockets do NOT work correctly/or at all on Windows, So when it gets to $line.=fgets($this->connection,100); it is trying to read from a socket, and it will not work (and produce the error u see)

[PHP] Update Query - Urgent

2001-10-23 Thread Srinivasan Ranganathan
Hi I have a php script generate a sql update statement. when i query the database, the update dosent happen. but when i echo the sql string and copy and paste it in my mysql client window, the update happens like it should! what am i missing/doing wrong here? Thanks in advance Srinivasan Rangan

Re: [PHP] Update Query - Urgent

2001-10-23 Thread Valentin V. Petruchek
Send your codes to mailing list. If they are not very secret :) - Original Message - From: "Srinivasan Ranganathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 23, 2001 3:21 PM Subject: [PHP] Update Query - Urgent > Hi > > I have a php script generate a sql update

RE: [PHP] Update Query - Urgent

2001-10-23 Thread Niklas Lampén
How about some code to see? Niklas -Original Message- From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] Sent: 23. lokakuuta 2001 15:22 To: [EMAIL PROTECTED] Subject: [PHP] Update Query - Urgent Hi I have a php script generate a sql update statement. when i query the database,

[PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Hi All, This is my first post to this list so forgive me if this has been covered a million times before I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime(0,0,0,1,1,1970); is 3600. Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write this we are

[PHP] The code peopel wanted -- its probably a silly newbie mistake

2001-10-23 Thread Srinivasan Ranganathan
Hi I have probably done a stupid mistake. So, bare with me and help please! This here is the code (actually a 2-in-1). when in admin mode, it updates the table and also lets admin delete user, and when in user mode, it just lets the user change his/her info (is it sensible to combine these 2, i

[PHP] The code peopel wanted -- its probably a silly newbie mistake

2001-10-23 Thread Srinivasan Ranganathan
Hi I have probably done a stupid mistake. So, bare with me and help please! This here is the code (actually a 2-in-1). when in admin mode, it updates the table and also lets admin delete user, and when in user mode, it just lets the user change his/her info (is it sensible to combine these 2, i

[PHP] The code peopel wanted -- its probably a silly newbie mistake

2001-10-23 Thread Srinivasan Ranganathan
Hi I have probably done a stupid mistake. So, bare with me and help please! This here is the code (actually a 2-in-1). when in admin mode, it updates the table and also lets admin delete user, and when in user mode, it just lets the user change his/her info (is it sensible to combine these 2, i

[PHP] The code peopel wanted -- its probably a silly newbie mistake

2001-10-23 Thread Srinivasan Ranganathan
Hi I have probably done a stupid mistake. So, bare with me and help please! This here is the code (actually a 2-in-1). when in admin mode, it updates the table and also lets admin delete user, and when in user mode, it just lets the user change his/her info (is it sensible to combine these 2, i

[PHP] The code peopel wanted -- its probably a silly newbie mistake

2001-10-23 Thread Srinivasan Ranganathan
Hi I have probably done a stupid mistake. So, bare with me and help please! This here is the code (actually a 2-in-1). when in admin mode, it updates the table and also lets admin delete user, and when in user mode, it just lets the user change his/her info (is it sensible to combine these 2, i

[PHP] The code peopel wanted -- its probably a silly newbie mistake

2001-10-23 Thread Srinivasan Ranganathan
Hi I have probably done a stupid mistake. So, bare with me and help please! This here is the code (actually a 2-in-1). when in admin mode, it updates the table and also lets admin delete user, and when in user mode, it just lets the user change his/her info (is it sensible to combine these 2, i

[PHP] Re: mktime() problem

2001-10-23 Thread liljim
Hi James, > I'm running 4.0.6 on a Solaris 8 box. The output given by > > echo mktime(0,0,0,1,1,1970); > > is 3600. > > Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write > this we are in daylight savings (GMT+1). Would this make a difference? (I > have already tried I u

Re: [PHP] mktime() problem

2001-10-23 Thread DL Neil
> I'm running 4.0.6 on a Solaris 8 box. The output given by > echo mktime(0,0,0,1,1,1970); > is 3600. > > Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write > this we are in daylight savings (GMT+1). Would this make a difference? (I > have already tried > echo mktime(0,0,

RE: [PHP] Re: mktime() problem

2001-10-23 Thread james . fairbairn
Hi James, Yes, you're right; I got -3600. But shouldn't the time returned reflect the timezone we would be in on that date, rather than the one we are in now? Thanks for your help. James -Original Message- From: liljim [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:53 To: [EMAIL P

RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Thanks, I'll use gmmktime() from now on! James -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 13:54 To: Fairbairn,J,James,IVLH4 C; php-general Subject: Re: [PHP] mktime() problem > I'm running 4.0.6 on a Solaris 8 box. The output given by > echo mktim

RE: [PHP] mktime() problem

2001-10-23 Thread james . fairbairn
Oh dear, I still get -3600 when I do echo gmmktime(0,0,0,1,1,1970); Why? James -Original Message- From: Fairbairn,J,James,IVLH4 C Sent: 23 October 2001 13:57 To: [EMAIL PROTECTED] Subject: RE: [PHP] mktime() problem Thanks, I'll use gmmktime() from now on! James -Original Mess

RE: [PHP] Update Query - Urgent

2001-10-23 Thread Nicolas Guilhot
Do you login to the database with a write access or a read only account ?? -Message d'origine- De : Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] Envoyé : mardi 23 octobre 2001 14:22 À : [EMAIL PROTECTED] Objet : [PHP] Update Query - Urgent Hi I have a php script generate a sql upd

[PHP] c++ help

2001-10-23 Thread nicolas costes
Hello, this is out of topic but I need some URLs of good C/C++ tutorials/exemples sites ... I really think some of you are former C programmers :) If it is , well, I'm lokking for a good manner to get the IPs of my machine, particularly the one used to get on the internet !!! (something like " # i

[PHP] Update Query - Urgent -- Yes, Full Rights!

2001-10-23 Thread Srinivasan Ranganathan
Hi Yes, I do have full rights! *NEW* Connect to Yahoo! Messenger through your mobile phone *NEW* Visit http://in.mobile.yahoo.com/smsmgr_signin.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

Re: [PHP] Update Query - Urgent

2001-10-23 Thread Valentin V. Petruchek
What if use mysql_select_db()? - Original Message - From: "Srinivasan Ranganathan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 23, 2001 4:22 PM Subject: [PHP] Update Query - Urgent -- Yes, Full Rights! > Hi > > Yes, I do have full rights! > > > > __

RE: [PHP] Update Query - Urgent

2001-10-23 Thread Mark Roedel
> -Original Message- > From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 23, 2001 7:22 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Update Query - Urgent > > > I have a php script generate a sql update statement. > when i query the database, the update does

Re: [PHP] Update Query - Urgent

2001-10-23 Thread Mak
What does the error message say? What sort of error is it? - ycmak - Original Message - From: "Mark Roedel" <[EMAIL PROTECTED]> To: "Srinivasan Ranganathan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, October 23, 2001 9:35 PM Subject: RE: [PHP] Update Query - Urgent > -O

Re: [PHP] Update Query - Urgent

2001-10-23 Thread Beeman
Does the form you are using to update use checkboxes?? what kind of values are being passed? "Mak" <[EMAIL PROTECTED]> wrote in message 008001c15bc8$3c73e6a0$7e8f9cca@athlon700delta">news:008001c15bc8$3c73e6a0$7e8f9cca@athlon700delta... > What does the error message say? What sort of error is it?

[PHP] running scripts onunload

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 help will be greatly appreciated. Best regards, Hasan -- PHP General Mailing List (http://www.php

[PHP] Re: c++ help

2001-10-23 Thread Mike Frazer
You're better off using Perl or something else for this if possible. Learning a new language for one thing is like taking three years of Spanish to order a taco and some refried beans. Besides, C/C++ aren't the easiest languages to learn and get good at quick. Mike Frazer "Nicolas Costes" <[E

[PHP] Re: Root Certificate

2001-10-23 Thread Mike Frazer
I believe it's an automatic thing, just like when the secure cert is expired it will tell you that, although the site is secure, its cert is dead. Mike "Adam Whitehead" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All- > > I recently went to a website w

RE: [PHP] format date

2001-10-23 Thread Mark Roedel
> -Original Message- > From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 23, 2001 2:53 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] format date > > > I am inserting into table > values('$product','$title,'$date') > > the date field gets adde

[PHP] Update Query - Urgent -- Yes, Full Rights!

2001-10-23 Thread Srinivasan Ranganathan
Hi when i use, mysql_error() i get a call to undefined function error. same with mysql_errno(). and all data is simply text no checkboxes, nothing! Help! *NEW* Connect to Yahoo! Messenger through your mobile phone *NEW* Vi

FW: [PHP] format date

2001-10-23 Thread Mark Roedel
> -Original Message- > From: Caleb Carvalho [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 23, 2001 2:53 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] format date > > > I am inserting into table > values('$product','$title,'$date') > > the date field gets adde

Re: [PHP] Re: require & include

2001-10-23 Thread Steve Cayford
So both include() and require() *are* subject to conditional statements in the code? Guess I missed that. Thanks. -Steve On Tuesday, October 23, 2001, at 01:00 AM, Rasmus Lerdorf wrote: > That's outdated. The only difference today is that if a file can't be > included/required for some reas

[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

[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

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] 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 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,

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] 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

[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] 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

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

[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 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] 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 --

[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] 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.

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] 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

[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] 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

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] 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 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] 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: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

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] 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] 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] 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] 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

[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] 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

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

[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] 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] 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

[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

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] 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] 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

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. +---

[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] 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] 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

[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] 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] 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  

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] 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

[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] 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

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] 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

[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] 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]

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

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
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

  1   2   >