[PHP] Exception handling

2001-02-15 Thread Alain Fontaine
Hello, Is it impolite to ask about when approximately PHP will support Exception handling ? :) 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: [

RE: [PHP] ereg_replace

2001-02-15 Thread Brian V Bonini
Ok, but I thought the start and end chars were ^ $ i.e., ^is$ or is this not what you mean by bounderies? -confused... ;-) > -Original Message- > From: Robin Vickery [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 15, 2001 11:06 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP]

Re: [PHP] Is there a MOD function in PHP

2001-02-15 Thread Randall Perry
on 2/15/01 12:01 PM, Mukul Sabharwal at [EMAIL PROTECTED] wrote: > > $remainder = 10 % 5; > > --- Randall Perry <[EMAIL PROTECTED]> wrote: > Couldn't > find one in the manual under arithmetic Thanks -- Randy Perry sysTame Mac Consulting/Sales -- PHP General Mailing List (http://www.php.

Re: [PHP] Reindexing Arrays

2001-02-15 Thread Philip Olson
Try this : a [2] => c $bar = array('a','b','c'); $piece = array_splice ($bar, 1 ,1); print_r($piece); // [0] => b print_r($bar);// [0] => a [1] => c ?> http://www.php.net/manual/en/function.array-slice.php http://www.php.net/manual/en/function.unset.ph

[PHP] How to inverse the date sorting

2001-02-15 Thread Malouin Design Graphique
Hello, Anybody here would know, how I could inverse the date sorting or ordering? This script below gives me for example: 2001-01-01 2001-01-15 2001-01-31 and so on... when I wish it would gives me: 2001-01-31 2001-01-15 2001-01-01 and so on... - $ro

[PHP-CVS] cvs: CVSROOT / cvsusers

2001-02-15 Thread Thies C. Arntzen
thies Thu Feb 15 08:56:49 2001 EDT Modified files: /CVSROOTcvsusers Log: by request Index: CVSROOT/cvsusers diff -u CVSROOT/cvsusers:1.214 CVSROOT/cvsusers:1.215 --- CVSROOT/cvsusers:1.214 Mon Feb 12 04:05:12 2001 +++ CVSROOT/cvsusersThu Feb 1

Re: [PHP] How to inverse the date sorting

2001-02-15 Thread Joe Sheble (Wizaerd)
add a DESC to your order by clause... fairly simple SQL syntax, could be picked up from a myriad of SQL references and manuals $sql = "select * from table_name WHERE TO_DAYS(NOW()) - TO_DAYS(date) <= 21 order by date DESC"; At 12:14 PM 2/15/01 -0500, Malouin Design Graphique wrote: >Hello, >

[PHP] javascript in PHP statements

2001-02-15 Thread Matt Davis
I am new to php and I am wondering if it is possible to use a javascript variable in a php statement for example: // create sql statement $sql = "select * from main where businesstype = "consultancy" and top.upper.villagename = != "0";"; Is it possible to make this work if "top.

[PHP] freeTDS installation

2001-02-15 Thread Scott Fletcher
Hi! I read the instruction and am not sure on whether to proceed or not. The instruction mentioned that you install/compile the FreeTDS first then compile PHP 2nd. So, does this mean I have to compile Apache as well? Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Help with session

2001-02-15 Thread Karl J. Stubsjoen
I have 2 functions on my page, RegisterUser, IsValidUser. RegisterUser looks in the querystring to see if you've passed a certain key & value. If you have it populates a session variable called "ValidUser" with a 1. All that IsValidUser does, is check to see if the session variable "ValidUser" i

Re: [PHP] How to inverse the date sorting [IT WORKS! - THANKS!]

2001-02-15 Thread Malouin Design Graphique
Just as simple as that?! Thank you guys: Fang; Andrew and Joe. Much appreciated. Hope to be able to give a hand myself someday to newbies like me ;-) Won't have to ask this question again. Promessed! Mes salutations, Yves At 12:26 -0500 15/02/2001, Fang Li wrote: >add DESC after order by 'da

Re: [PHP] ereg_replace

2001-02-15 Thread Robin Vickery
> "VB" == "Brian V Bonini" <[EMAIL PROTECTED]> writes: > Ok, but I thought the start and end chars were ^ $ i.e., ^is$ or is > this not what you mean by bounderies? No, not really. \b matches the start or end of a word. You can see it clearly if you do this: print preg_replace( '/\b/'

Re: [PHP] Array question

2001-02-15 Thread Chris
Ok, But can't the array still be refered to with a number? So in myarray["something"] is the 50th element in the array, wouldn't: myarray[49] = myarray["something"] ? > On Thursday 15 February 2001 01:40, Chris wrote: > > > How do I get the index,number of an array if reffering to an array

Re: [PHP] File_exists function question.

2001-02-15 Thread Ben Peter
Gerry, could you give us a bit more code, esp. the while or for loop that surrounds the code you have quoted? Cheers, Ben Gerry wrote: > > Hello everyone: > > I'm trying to build a table with the last row being a check function for > an image, where it checks if the item image exists in the

[PHP] Re: recommended PHP/MySQL host

2001-02-15 Thread Angela
Our company, IBC, hosts websites. We currently have PHP4 and MySQL 3.23 on all our servers. I would suggest contacting Charone at [EMAIL PROTECTED] or call us at (937)277-2000. The prices on our website aren't very accurate. Often our prices are much cheaper than what you will find there. A

[PHP] Count columns in array

2001-02-15 Thread Fabian Fabela
Hello, I have the array $array[x][y]; if I want to know the x I use count($array); Now, How can I count the y?? Thank you. Fabian Fabela [EMAIL PROTECTED] www.vacagorda.com

RE: [PHP] Count columns in array

2001-02-15 Thread James Atkinson
> Hello, > > I have the array $array[x][y]; > > if I want to know the x I use count($array); > > Now, How can I count the y?? for($x = 0; $x <= count($array); $x++) { echo "Number of elements at $x: " . count($array[$x]) . ""; } Thats assumeing that y is an array... - James -- PHP Gener

Re: [PHP] Count columns in array

2001-02-15 Thread Mukul Sabharwal
Hi, Well it depends, on which elements /2nd/ dimension you wanna see! here's some code: $myarr[0][0] = "sdkjsjks"; $myarr[1][0] = "dsjkdkjsd"; $myarr[1][1] = "hsjdsh"; $myarr[1][2] = "dsjkdsjkdkjsdkjs"; echo sizeof($myarr); // would print 2, element 0 and 1. echo sizeof($myarr[0]); would print

[PHP] Best Remote Php/Mysql host

2001-02-15 Thread kaab kaoutar
Hi! Can u point me to an excellent php/mysql provider ? with whom i can communicate by distance ! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.

Re: [PHP] Count columns in array

2001-02-15 Thread Philip Olson
Try this : $a: ' . sizeof($a);// 2 print ' $a[0] : ' . sizeof($a[0]); // 3 print ' $a[1] : ' . sizeof($a[1]); // 1 ?> Regards, Philip Olson http://www.cornado.com/ On Thu, 15 Feb 2001, Fabian Fabela wrote: > Hello, > > I have the array $array[x][y]; > > if I want to know

Re: [PHP] Session Questions...

2001-02-15 Thread Martin A. Marques
El Jue 15 Feb 2001 12:32, escribiste: > I was reading through the documentation on sessions at > http://www.php.net/manual/en/html/ref.session.html > > I have a few questions.. > > 1) How do I explicitly close a session, so that any subsequent attempts to > use pages would require a new session st

[PHP] Where is Regex List of Operators?

2001-02-15 Thread Ted Goranson
Hello-- I'm faced with writing some rather difficult regex's, and would like to be pointed to a comprehensive list of POSIX regex operators. I have been unable to find these in the on-line docs, nor the three PHP books I bought. I purchased "Mastering Regular Expressions," which is very helpf

[PHP] MS SQL and Date Fields

2001-02-15 Thread James Crowley
Hi, I have a problem (!). I am using an MS SQL db, which returns a date field. How can I format this using the date() function? ie how can I convert the date to a Unix timestamp? I know you can use the mktime() function, but in which case, how can I get the day/month/year etc from the ms s

[PHP] case sensitivity checking?

2001-02-15 Thread James, Yz
Hi Guys, Just a quick question. If I have a user database, with joe_bloggs as a user, what would I need to do to make sure that his login details matched the case sensitivity in a MySQL database? Say if he logged in as JOE_BLOGGS, could I return an error? I'm guessing this is going to turn int

[PHP] $HTTP_POST_VARS

2001-02-15 Thread Augusto Cesar Castoldi
reset($HTTP_POST_VARS); while (list($key, $val) = each($HTTP_POST_VARS)) { //print "$key - $val"; if (substr($key,0,3) == "alt" or substr($key,0,3) == "exc") Somebody can explain or indicate any site about this ($HTTP_POST_VARS)? It is used to do menu in php. If the name of the butt

[PHP] Editor with line counter for WIN95

2001-02-15 Thread Info
Notepad, Wordpad and MS Word are my available choices. Word interpret my PHP so how to inhibit that? so I can get a line count and get closer to my many newbie errors ..OR.. I need a recommendation of an inexpensive editor. I am reading digest so please CC or direct mailto:[EMAIL PROTECTED]

Re: [PHP] Where is Regex List of Operators?

2001-02-15 Thread Christopher Ostmo
Ted Goranson pressed the little lettered thingies in this order... > Hello-- > > I'm faced with writing some rather difficult regex's, and would like > to be pointed to a comprehensive list of POSIX regex operators. > > I have been unable to find these in the on-line docs, nor the three > PHP

RE: [PHP] Search Engines and PHP

2001-02-15 Thread Mark Maggelet
On Tue, 23 Jan 2001 13:33:00 +0100, Sander Pilon ([EMAIL PROTECTED]) wrote: >> >> >If you want to be totally searchengine-safe, do not use variables >>on the >> >url, do not rely on cookies and do not rely on POST variables >> for the pages >> >you want to have the searchengine spider. >> >> How t

Re: [PHP] case sensitivity checking?

2001-02-15 Thread Mark Maggelet
On Thu, 15 Feb 2001 19:41:04 -, James, Yz ([EMAIL PROTECTED]) wrote: >Hi Guys, > >Just a quick question. If I have a user database, with joe_bloggs >as a >user, what would I need to do to make sure that his login details >matched >the case sensitivity in a MySQL database? Say if he logged in

Re: [PHP] File_exists function question.

2001-02-15 Thread Gerry
Hello again: Ben Peter wrote: > > Gerry, > > could you give us a bit more code, esp. the while or for loop that > surrounds the code you have quoted? > > Cheers, > Ben Sorry for the confusion, and yes I did mispelled camera in english. Here is more of my sloppy code. I might have an extra }.

Re: [PHP] case sensitivity checking?

2001-02-15 Thread James, Yz
> make the login field BINARY. Thanks! ;) James. -- 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] unstable execution of mysql_db_query($db, $myQuery)

2001-02-15 Thread Martin A. Marques
El Jue 15 Feb 2001 13:32, escribiste: > I am using MySQL 3.22.32 and PHP 4.01PL2, but it seems that > mysql_db_query($db, $myQuery) is not quite stable, actually, in my code, it > is like > > mysql_db_query($db, $myQuery) or die "Something wrong during query"); > > 1 out of 15 (the same query), it

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

2001-02-15 Thread Dallas Kropka
if you want to "securely" remove an element of an array $objects = array('first','second','third','fourth','fifth','sixth','seventteen'); function remove_element($array, $left_id, $right_id) // Remove Element // left_id is element position(counts from 1) // right_id array position (counts f

php-general Digest 15 Feb 2001 21:10:31 -0000 Issue 514

2001-02-15 Thread php-general-digest-help
php-general Digest 15 Feb 2001 21:10:31 - Issue 514 Topics (messages 39858 through 39980): Re: Undocumented Socket functions? 39858 by: Rick Hodger 39859 by: Rog Re: CSETI Announcement - Urgent Disclosure Project Update 39860 by: James Moore Concatenate a variable.

[PHP-CVS] cvs: php4 /ext/standard filestat.c

2001-02-15 Thread Egon Schmid
eschmid Thu Feb 15 12:33:09 2001 EDT Modified files: /php4/ext/standard filestat.c Log: Small typo. Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.52 php4/ext/standard/filestat.c:1.53 --- php4/ext/standard/filestat.c:1.52 Sun Jan

Re: [PHP] Debugger, Debugger and Debugger

2001-02-15 Thread Toby Butzon
I've read that several times... so does that mean now the only debugger for PHP4 is the Zend one? --toby Chris Lee wrote: > > You must be viewing old documentation. > > http://php.net/manual/en/debugger.php > > clearly states that debugger, ie debugger_on() support is in php3 only, not > in p

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Jason Brooke
> However, there's no necessity to have the cgi version if you already have > the modular version. All that is needed is to call the appropriate script > using a tool such as 'wget'. This can be done manually or from cron as > appropriate. > > Billy No there's not - I think that goes without sa

Re: [PHP] case sensitivity checking?

2001-02-15 Thread Martin A. Marques
El Jue 15 Feb 2001 16:41, James, Yz escribió: > > Oh, another thing. Anyone know of any tools like PHP MyAdmin for > PostGresSQL ? phpPgAdmin? http://www.greatbridge.org/project/phppgadmin/projdisplay.php Saludos... ;-) -- System Administration: It's a dirty job, but someone told I had to d

Re: [PHP] javascript in PHP statement

2001-02-15 Thread Michael Hall
> I am new to php and I am wondering if it is possible to use a javascript > variable in a php statement for example: > > // create sql statement > > $sql = "select * from main where businesstype = "consultancy" and > top.upper.villagename = != "0";"; As far as I know, no. Unless

[PHP] run safe_mysqld from php code *urgent*

2001-02-15 Thread Student Center
hey guys, in order to restart my mysql server i'd like to run safe_mysqld from my php file. i have this: `./usr/local/mysql/bin/safe_mysqld` however when we check the list of processes, safe_mysqld isnt there. what am i doing wrong? btw, we've tried taking out the period (.) and running exec

[PHP] regex

2001-02-15 Thread Jerry Lake
is there a way I can make a regex to add a comma to the beginning of every line of a comma delimited file ? Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -- PHP General Mailing List (http://www.

[PHP] Code Optimizer

2001-02-15 Thread Joe Sheble aka Wizaerd
Is there anything that evaluates PHP code and checks for optimization? Not like the Zend Optimizer, but one that checks for things such as variables that were defined but never used, repeated variables, unnecessary statements or constructs? Basically a code cleaner such as C, C++, Java, etc

[PHP] ob_gzhandler and shtml files

2001-02-15 Thread Maciek Uhlig
Could anybody interested comment the following statement: Apache doesn't correctly serve .shtml files if ob_gzhandler is enabled (the output is distorted then). Not related, perhaps? This is my experience, though. The newest Apache, the newest PHP. Just want to hear something before I file a bu

[PHP] Getting LDAPS to work

2001-02-15 Thread John Hallam
I have got php 4.0.4p1 configured with openssl 0.9.6 and ldap and I'm trying to get an ldap_connect to work over ldaps as described in the ldap_connect documentation. I have no problem connecting using ldap_connect(hostname) format but I do have a problem with the URL format. This is what I am do

[PHP] Using PHP from the command line

2001-02-15 Thread Diego Fulgueira
Hi!! I was wondering if anyone knows how to pass parameters to PHP.EXE when invoked from the command line (DOS prompt). I know this shouldn't differ too much from the Linux version, so anyone who has scheduled scripts to run using CRON should have an idea, i guess. In particular, I don't know ho

RE: [PHP] javascript in PHP statement

2001-02-15 Thread DanO
note that javascript and PHP CANNOT interact natively on the same page...one is client side and one is server side. you can pass variables between the two in an HTTP request, however. page1.php: function makeSqlQuery(businesstype,village) { var sqlQuery; sqlQuery = "SELECT * FROM MAIN

Re: [PHP] Using PHP from the command line

2001-02-15 Thread Joe Stump
use $argv and $argc just like C/C++ :O) --Joe On Thu, Feb 15, 2001 at 03:50:54PM -0600, Diego Fulgueira wrote: > Hi!! I was wondering if anyone knows how to pass parameters to PHP.EXE when > invoked from the command line (DOS prompt). > > I know this shouldn't differ too much from the Linux ver

[PHP] PHP and cookies and/or headers

2001-02-15 Thread Jeremy Gillies
Greetings, Is anyone REALLY familiar with PHP and cookies and/or headers-- I have a tough nut to crack and it involves three URLs. Here is the situation, and I really want to avoid using our DB if I can. I have a main URL that everyone will probably hit - splash page. www.mainurl.com >From the

Re: [PHP] php site, parse error

2001-02-15 Thread Martin A. Marques
El Jue 15 Feb 2001 17:41, escribiste: > Looks like the PHP site is down, parse error on site.inc... just an FYI :) Ohhh, I'd love to get me hands on some of the code these great guys do. :-) Saludos... :-) -- System Administration: It's a dirty job, but someone told I had to do it. --

[PHP] Win32 extensions --- complete confusion

2001-02-15 Thread Michael Hall
I'm trying to add PHP's MS SQL functionality to my Windows NT server. My problem appears to be the extension_dir entry in the PHP.ini. I've tried every conceivable way to enter it (the files are actually in C:\PHP\extensions), using absolute and relative paths, forward slashes, backslashes, and

Re: [PHP] Generate XML files

2001-02-15 Thread [EMAIL PROTECTED]
echo "\n\n"; Reformat as you want, I just didn't want to write multiple "echo" lines. =P Or.. -Szii - Original Message - From: Paulo Jan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 15, 2001 4:05 AM Subject: [PHP] Generate XML files > Hi all: > > A ques

[PHP] Passing variables to a scripting engine... (like php)

2001-02-15 Thread Diego Fulgueira
Ok. I already posted a question asking how to pass parameters to php.exe when running it directly from the command prompt. However, i've noticed the matter is a bit more complex than i had thought. I will reformulate my question: How the h--- does any Web Server passes information like the URL be

Re: [PHP] Using PHP from the command line

2001-02-15 Thread Joe Stump
Yeah - like I said php foo.php -url http://www.mydomain.com/myfile.php in foo.php echo $argc;// should be 3 echo $argv[0]; // will be the filename echo $argv[1]; // will be -url echo $argv[2]; // will be the url --Joe On Thu, Feb 15, 2001 at 04:47:48PM -0600, Diego Fulgueira wrote:

RE: [PHP] Passing variables to a scripting engine... (like php)

2001-02-15 Thread Jon Snell
It is sent as text to stdin. -Original Message- From: Diego Fulgueira [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 4:45 PM To: Php-General Subject: [PHP] Passing variables to a scripting engine... (like php) Ok. I already posted a question asking how to pass parameters t

RE: [PHP] run safe_mysqld from php code *urgent*

2001-02-15 Thread Jon Snell
This is an issue with user permissions. You *could* create a world executable suid script that did executed the command. PHP would then call that. This is dangerous though, and I'd avoid it. -Original Message- From: Student Center [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15,

[PHP] RE: [PHP-WIN] Bug in mktime-function ?

2001-02-15 Thread Ignatius Teo
RE: [PHP-WIN] Bug in mktime-function ?This is the output I get running 4.0.4pl1 or 3.0.17 on Win98/Apache Using 3/9/1935 Unix timestamp for this date is -1 Warning: unexpected error in date() in c:\inetpub\wwwdev\staffroot\myscu\date.php on line 13 Reconverting... What platform r u

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Joseph H Blythe
Thanks all, This gives me a good start, I think I will just get cron to do it at a certain time of day, the only problem is trying to tell which sessions have expired as the database is not going to know this. Regards Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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: [PH

Re: [PHP] php site, parse error

2001-02-15 Thread Philip Olson
> > Looks like the PHP site is down, parse error on site.inc... just an FYI :) > > Ohhh, I'd love to get me hands on some of the code these great guys do. :-) You can, for example (re: above) see : http://php.net/source.php?page_url=/include/site.inc It's *all* public and available, see :

RE: [PHP] Passing variables to a scripting engine... (like php)

2001-02-15 Thread Diego Fulgueira
...But a scripting engine can process A LOT of information (think about how much information can be sent with a HTML form in posted variables). Apache and IIS do not call PHP.EXE sending all posted variables inside command line arguments... So, how do THEY do it??? Thanks a lot for the patience..

[PHP] Oracle + Classes strangeness...

2001-02-15 Thread James Atkinson
(Note, this is a long email..sorry, lots of code) Ok, I'm baffled. I'm building a DB abstration class and I've run into something very strang when creating the Oracle abstraction file. If I use the following code all works well: $conn = OCINLogon("user", "password", "SDB"); $stmt = OCIParse("SE

[PHP] Run MySQL with COM?

2001-02-15 Thread Jeff Oien
I have a music database for my wife. She's on a client computer and I have Apache, MySQL, PHP and her database on my computer, the server. I always have Apache running but not MySQL. Can I have a PHP script that would run MySQL using COM? I haven't looked into COM yet so any resources would be gr

Re: [PHP] PHP and cookies and/or headers

2001-02-15 Thread Chris Lee
Ive done this, our secure server is on a differnt IP/domain name, of course I still need cookies though. All I have todo to set the SessionID ona different domainname is pass the PHPSESSID in the url to the new host, and voila I have access to the same SessionID and other session vars. give it

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread eschmid+sic
On Fri, Feb 16, 2001 at 12:04:01AM +, Steven Hirschorn wrote: > I've checked this in the PHP documentation and done a scan of the > archive to try to work out where I am going wrong but have failed. I > know I could fix this problem by using substrings and processing them, > but PHP has a

Re: [PHP] ob_gzhandler and shtml files

2001-02-15 Thread Chris Lee
could accually be a browser issue. I know you can not compress an image and send it accross, even with the proper headers, no broswer seems to decompress it. try running a sniffer on the connection, make sure the proper headers are being sent, cut and paste the sniffers output, see if you can deco

[PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Steven Hirschorn
I've checked this in the PHP documentation and done a scan of the archive to try to work out where I am going wrong but have failed. I know I could fix this problem by using substrings and processing them, but PHP has a simpler function which should work. Shouldn't it? In my database a record

[PHP] the best so far

2001-02-15 Thread Christian Dechery
this is the best I got so far, for treating any sql syntax errors as normal ERROrs and halting the parsing to report it. like: SQL Syntax Error: '$query'\n"; $msg.="[".mysql_errno()."]" ".mysql_error()."at $errline"; die($msg); } ?> anyone has a 'less

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread Steven Hirschorn
On Fri, 16 Feb 2001 at 01:08:58, [EMAIL PROTECTED] writes >You haven't read the PHP Manual carefully: > >http://php.net/mktime >http://php.net/date Thanks for the speedy reply! I've tried using: date("l, jS F Y",$lastmodified) with the same effect - 20010213173654 becomes Monday, 18th January 20

Re: [PHP] Win32 extensions --- complete confusion

2001-02-15 Thread Phillip Bow
Prior to PHP 4.04 there were two dll's(php_mssql65.dll, and php_mssql7.dll I believe), but as of 4.04 there is only one which is php_mssql.dll. If you are using 4.04 then I assume thats your problem. Otherwise I would suspect you are trying to set the path where the extension declarations are ra

Re: [PHP] Editor with line counter for WIN95

2001-02-15 Thread David Robley
On Fri, 16 Feb 2001 06:15, Info wrote: > Notepad, Wordpad and MS Word are my available choices. > > Word interpret my PHP so how to inhibit that? > > so I can get a line count and get closer to my many newbie errors > ..OR.. > I need a recommendation of an inexpensive editor. > > I am reading dige

Re: [PHP] Problems reformatting Unix timestamp with strftime

2001-02-15 Thread eschmid+sic
On Fri, Feb 16, 2001 at 12:32:47AM +, Steven Hirschorn wrote: > On Fri, 16 Feb 2001 at 01:08:58, [EMAIL PROTECTED] writes > >You haven't read the PHP Manual carefully: > > > >http://php.net/mktime > >http://php.net/date > > Thanks for the speedy reply! I've tried using: > date("l, jS F Y",$la

RE: [PHP] Editor with line counter for WIN95

2001-02-15 Thread Jeff Oien
> This comes up so often it ought to be a FAQ - if you look on the links > page of your favourite mirror or www.php.net/links.php you'll find a link > called Editor List to a page with info about lots of editors for all > sorts of OSes. > > -- > David Robley| WEBMASTER

Re: [PHP] Forms

2001-02-15 Thread Meir kriheli
Hi, You can also try Manuel Lemos's form class, which can handle all this and many more. Check: http://phpclasses.upperdesign.com/browse.html/package/1 >From the class description: Class that generates HTML forms supporting: - XHTML compliant output. - Keyboard navigation support: * Attachmen

[PHP] checking to see if value is a integer from a form text field

2001-02-15 Thread Joseph H Blythe
hey, I have a strange problem, when a user inputs the quantity into a text input field in a cart, I want to be able to test to see if the value is a integer if it isn't then default it to 1 if ( !is_int($Qty) ) { $Qty = 1; } Looks ok, should work in theory, but it doesn't if I use this test,

RE: [PHP] checking to see if value is a integer from a form text field

2001-02-15 Thread Jason Murray
> I have a strange problem, when a user inputs the quantity > into a text input field in a cart, I want to be able to test > to see if the value is a integer if it isn't then default it to 1 > > if ( !is_int($Qty) ) { > $Qty = 1; > } Off the top of my head (and thus probably hideously wrong),

Re: [PHP] cgi execution w/php failing

2001-02-15 Thread Richard Lynch
> I've read through the archives and still must be missing something. I > need to execute a cgi script from php. This seems fairly trivial, but I > can't get it to work. > > the cgi script is clean -- executes from the command line without issue > and is 755 > from php the follwing is used: > > >

Re: [PHP] building binary data structures

2001-02-15 Thread Richard Lynch
> Having written loads of stuff in PHP, I find myself having for the first > time to generate binary data in memory - I actually need to build a native > file for a drawing program in memory. The data consists mainly of lists of > 32bit little endian integers - some signed and some unsigned. I've

Re: [PHP] checkbocks, arrays and more

2001-02-15 Thread Richard Lynch
> coke machine > vending machine > atm > dinner > public phone You probably have an "asset_id" field on each of those. > and someone is inserting a gas station there... and it has two dinners and > 3 public phones, so he would check the checkboxes referring to these and > add a little comment to

Re: [PHP] jpeg parsing

2001-02-15 Thread Richard Lynch
>Hello. I'll keep short. Does any of you guys out there know why "imagecreatefromjpeg" >cannot open remote files ? I have php-4.0.4pl1-Win32 with default gd lib. All other gd-things >work fine, and I DO have the access rights to the file. > >"thank you for your cooperation" :) It probably

Re: [PHP] A way to duplicate data across databases

2001-02-15 Thread Richard Lynch
> I'm making a script that generates test sites usíng dummy data stored in one > MySql database ("uwebsitebase") > > Now, using php-scripting, I'm copying these data to a demo-database > ("uwebdemo"). The structure is the same - the same tables with the same > fields. Only difference will be that

Re: [PHP] Building php4.0.4pl1 with mysql 3.23.32

2001-02-15 Thread Richard Lynch
> ./configure' '--with-apache=/root/Apachetoolbox/apache_1.3.17' > '--enable-gd-imgstrttf' '--with-mysql' '--with-mysql' '--with-pgsql' > '--with-ldap' Check your config.log files to see if you are using PHP's builtin MySQL support, or if it found your MySQL installation. If it is using the buil

Re: [PHP] Problems installing PHP 4.0.4pl1 on RedHat 6.2

2001-02-15 Thread Richard Lynch
> but when I run make... it says that there is nothing to do Do a make clean, and rm config.cache and try again. make clean tells it to start over, and recompile all that stuff it thinks it already compiled right the first time... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help

Re: [PHP] help: column into array?

2001-02-15 Thread Richard Lynch
> how can I reference a result set by array index numbers??? > id_field field > | > 1 first > 1 second > 1 third > 2 fourth > 2 fifth > > how can I do something like this: > > $array=mysql_db_query($database, $sql, $link_id); > >

Re: [PHP] COM vs ???

2001-02-15 Thread Richard Lynch
> I would like make some componnent on linux wich I can use on php. Like I > create a COM object on Windows and use it with a asp pages and reuse it in a > vb application without code duplicate, I would like install PHP on a > linux and not on a Windows. Things you need to search for and read

Re: [PHP] Fatal Error!

2001-02-15 Thread Richard Lynch
> Fatal error: input in flex scanner failed in /var/www/html/gcdb/lang on > line 1 > require("lang/".$config_row["Language"]); Try changing your 'require' to 'include'. I'm not real clear on the details, but if you are trying to suck in a variable-based filename, you might as well use '

Re: [PHP] Apache/mod_rewrite for User Tracking

2001-02-15 Thread Richard Lynch
> I'm not sure how off-topic this may be, but I'll carry on anyway... 'Sokay, I'll force it back on-topic :-) > sent back to the page. Before now, I have cookies and IP address for user > tracking. If someone could accept a cookie (I used a self-referring script to Use PHP4's builtin session su

Re: [PHP] ssl

2001-02-15 Thread Richard Lynch
> is there anything we should be aware of > if we like that our php/mysql pages > are working with an ssl-server ? Nothing especially related to PHP, really, except what you would do anyway: Don't be having a bunch of files laying around that you don't know what they are or what they do or etc.

Re: [PHP] Newbie dummy questions..... error messages

2001-02-15 Thread Richard Lynch
> I get the following on one of my pages, > > Warning: Use of undefined constant month - assumed 'month' in > > This site ran error free before, only after adding "Phorum" > > if ($brand == 'nut') { > > if (isset($brand)) { > if ($brand == 'nut') { > $item = "Chris King 2nut Headset"; > }

Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Richard Lynch
> can someone explain me how to use LOCK TABLES to subtitute transactions? > > I don't seem to get how this is possible... and I really need this... I > have a script that updates 4 tables at a time, and I have to be sure all of > them are updated, or NONE... I can only see this possible using > c

Re: [PHP] sorting a csv text file in PHP

2001-02-15 Thread Richard Lynch
> Hi list, > I have a csv text file that looks like this: > > Mike,1,Monday 12th of February 2001 02:14:09 PM > Bob,3,Monday 12th of February 2001 02:14:17 PM > Marry,2,Monday 12th of February 2001 02:16:38 PM > > I'm trying to get it to sort by the 2nd value (number > descending and to show only

Re: [PHP] session_register()

2001-02-15 Thread Richard Lynch
> session_start(); > session_register('email'); > $session = session_id(); > $userid = '$user'; > $sql = "SELECT * > FROM users > WHERE user='$user' and pass='$pass'"; > if ($num == 1) { > include "quote2.php"; > } Unless quote2.php sets $email, you've never set it to anything. You'v

Re: [PHP] Setting Enviromental variables

2001-02-15 Thread Richard Lynch
> I know that by using the header you can bring up a standard user > authenication dialog box, that sets the EVs: > $PHP_AUTH_USER > $PHP_AUTH_PW > > But is it possible to use a custom form to set these variables manually for > site wide useage? No. The browser sends those variables on each page

Re: [PHP] empty form field => pgsql NULL gracefully how?

2001-02-15 Thread Richard Lynch
> INSERT INTO testtab2 > VALUES ( upper('$symbol'), '$two_liner', '$href', > '$full_desc', '$submitter_name', > '$submitter_email', CURRENT_TIMESTAMP ) > > I hate to muck them up with a bunch of tests for empty vars, which then > need to be replac

Re: [PHP] Short tags - proper name?

2001-02-15 Thread Richard Lynch
> I was just wondering if there's a "proper" name for what I've been > calling the "short equals tag" ( there's actually a name for it or (if not) if somebody has a more > descriptive name for it. I call it the "Stop ASP-ers whining about how great <%= is so I can get back to work" tag. Guess i

Re: [PHP] Still can't talk to the Oracle

2001-02-15 Thread Richard Lynch
- Original Message - From: Kristofer Widholm <[EMAIL PROTECTED]> Newsgroups: php.general Sent: Tuesday, February 13, 2001 5:29 PM Subject: [PHP] Still can't talk to the Oracle > I'm setting up a back end production system for a television show, > and have been given space on a developmen

Re: [PHP] ezmlm response (fwd)

2001-02-15 Thread Richard Lynch
> return ($va1, $var2); echo $val1, "|", $var2; Site A will get back whatever B *echos* out. You may need some other delimiter than "|", depending on your data. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Vo

Re: [PHP] mail not sending to multiple address

2001-02-15 Thread Richard Lynch
Try changing all your \n to \r\n. RFC is \r\n. Un*x mail programs are smart enough to take \n Microsoft mail programs are not that smart. Put in the space after Cc: and before your email. The space is *required* by some (all?) emailers? -- Visit the Zend Store at http://www.zend.com/store/ Wa

Re: [PHP] charactersets

2001-02-15 Thread Richard Lynch
You'll need to use some way to convert é to &eaccentgrave; or whatever the HTML Character entity is for that. And it probably won't work at all inside of a menu or a button, which relies on the underlying OS, which probably only accepts ASCII. -- Visit the Zend Store at http://www.zend.com/store

Re: [PHP] download prompt not woking on macintosh

2001-02-15 Thread Richard Lynch
In addition to every header you can find, use: http://yoursite.com/download.php/foo.jpg?download=foo.jpg Yes, that extra foo.jpg looks real goofy in there. PHP will ignore it. Your web-server will ignore it. Only really badly broken software products (IE) will say, "Hey, let's *ignore* all those

<    1   2   3   >