Re: [PHP] missing simple php functionality

2003-02-20 Thread Michael Lemmerling
Actually I believe it was the registers global which I had already changed. I just didnt get to see the results of changing it becuase I did mess that user_name vs. name part up...but at least now I know to remember setting or unsetting registerglobals. Thanks! -ML -- PHP General Mailing

[PHP] Forms and MySql date

2003-02-20 Thread Mike Tuller
I have a form that I want to enter a date into a MySql database. I currently have the column in the database set as Date, and can't seem to get the date I enter into the text field to go into the database using the format yymmdd. I could change the column to varchar, and then it would enter, but

Re: [PHP] Forms and MySql date

2003-02-20 Thread Rick Emery
mysql stores date as -mm-dd that is how the date should be entered into the form If entered in another format, you can reformat it. - Original Message - From: Mike Tuller [EMAIL PROTECTED] To: php mailing list list [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 4:43 PM Subject:

[PHP] Re: Forms and MySql date

2003-02-20 Thread Philip Hallstrom
You could use the TO_DATE function to convert that text string into a date, or reformat it in PHP to -mm-dd which mysql will take automatically (at least I think so) On Thu, 20 Feb 2003, Mike Tuller wrote: I have a form that I want to enter a date into a MySql database. I currently have

Re: [PHP] Rounding

2003-02-20 Thread Steve Keller
At 2/21/2003 05:29 AM, Jason Wong wrote: To round to the nearest 5: Divide by 5 Round to the nearest integer Multiply by 5 Modulus by 5 Subtract the result from the original number. Of course, my way depends on whether you're rounding up or down. -- S. Keller UI Engineer The Health TV

[PHP] Class VS Functions

2003-02-20 Thread Cláudio Franco
Hi. I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of docs showing the possibilities in php coding with Class's but the true is that the reability of the code with Class's i steal can make the same with normal functions. I ask for the ppl, to give me examples (theorics

[PHP] string manipulation

2003-02-20 Thread Gregory Heinrichs
little help please, looking for correct functions to use to search for the last occurrence of a character in a string and truncate everything in front of it including the searched for character. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] string manipulation

2003-02-20 Thread Leif K-Brooks
Try this (untested): print preg_replace('|[^]*$|','$1',$text); Gregory Heinrichs wrote: little help please, looking for correct functions to use to search for the last occurrence of a character in a string and truncate everything in front of it including the searched for character. --

RE: [PHP] string manipulation

2003-02-20 Thread Kelly Protsko
Use strrpos() which will find the last occurrence of something in a string then just use substr() to pull everything from that point on in the string. Kelly -Original Message- From: Gregory Heinrichs [mailto:[EMAIL PROTECTED]] Sent: February 20, 2003 5:13 PM To: [EMAIL PROTECTED]

Re: [PHP] string manipulation

2003-02-20 Thread Joachim Krebs
This is the best method echo substr(strrchr($string, $char), 1); On 21 February 2003 at 00:13:02, Gregory Heinrichs wrote: little help please, looking for correct functions to use to search for the last occurrence of a character in a string and truncate everything in front of it

[PHP] LDAP next prev howto

2003-02-20 Thread Roger Thomas
is it possible to retrieve a bunch of records from an ldap tree and do a next-prev navigation on those records ? example script pls. -- roger __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP

Re: [PHP] Class VS Functions

2003-02-20 Thread Tom Rogers
Hi, Friday, February 21, 2003, 9:41:46 AM, you wrote: CF Hi. CF I'm newbie in php (i'm in php about 1 year +/-), and after i read a lots of CF docs showing the possibilities in php coding with Class's but the true is CF that the reability of the code with Class's i steal can make the same with

RE: [PHP] Re: Cannot add header information

2003-02-20 Thread John W. Holmes
Guys, Guys, why are you harrasing this poor chap? one sure simple way is.. at the begining ? ob_start(); Starts output beffering.. and at the end, ob_end_flush(); ? Throws out all the buffered output to the browser at the other end. now add header info any place before

[PHP] Computer Authorization

2003-02-20 Thread Chris Cook
Hello all, I am looking into an application that only specific computers can access. A login does not work since we only want people to log in from certain computers. IP numbers dont work since they are dynamic. Cookies work temporarily, but are often deleted and are not the most secure route.

Re: [PHP] Computer Authorization

2003-02-20 Thread Ray Hunter
domain name, wins, kerberos, nis, mac-address those might be what you need... if you are using dhcp then you can get the ip information from the dhcp number based on the mac address... but remember that these can be spoofed... On Thu, 2003-02-20 at 17:59, Chris Cook wrote: Hello all, I am

RE: [PHP] simple ereg question

2003-02-20 Thread John W. Holmes
I'd like to verify input data transferred from a form and make sure it is numeric data or null before my program executes. I am using this syntax, which doesn't work: for ($i=1;$i=3;$i++) { if (ereg('[0-9]+','$_POST[gamt_$i]')) { continue; } else { die(Non-numeric

RE: [PHP] Computer Authorization

2003-02-20 Thread John W. Holmes
I am looking into an application that only specific computers can access. A login does not work since we only want people to log in from certain computers. IP numbers dont work since they are dynamic. Cookies work temporarily, but are often deleted and are not the most secure route. Any

RE: [PHP] Smarty and FAI

2003-02-20 Thread John W. Holmes
My provider is free.Fr chmod is disabled Is it possible to use Smarty on my web pages ? You have to chmod one of the Smarty directories so Smarty can write it's cache to it. Maybe this can be disabled, though, I'm not sure. So if you mean you can never chmod a file and smarty requires it,

RE: [PHP] Computer Authorization

2003-02-20 Thread Chris Cook
thanks for the response. I have tried MAC addresses. I get them from the arp table. The only problem is that the arp table is no longer available outside of the local network. Can I get them from else where? Any more suggestions? Thanks, Chris From: Rich Gray [EMAIL PROTECTED] To: Chris

[PHP] RE: Calling a COM object

2003-02-20 Thread YC Nyon
Hi, Is there a tutorial on how to call COM objects in PHP? My PHP runs on Windows. TIA nyon --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003 -- PHP General Mailing List

RE: [PHP] smarty vs. patTemplate vs. includes - newbie q

2003-02-20 Thread John W. Holmes
I'm designing a site with about 100 different pages. I'm debating whether to use a template mechanism such as smarty or patTemplate vs just creating pages and including the body templates based on the url parameters. I realize you get a layer of abstraction using the template mechanisms, but

[PHP] Re: AUTH (.htaccess style)

2003-02-20 Thread Sebastian
Can someone test this code, It prompts to login, but does not accept my username and or password .. I have a feeling its a server configuration problem but i need someone to help me confirm it. Running php version 4.2.3. Apache/1.3.27 - I have tried using $_SERVER['PHP_AUTH_USER'] and

Re: [PHP] Computer Authorization

2003-02-20 Thread Chris Cook
Can I get the any of this information through php or do I need adjust the settings on the server. Doing it through php is preferable... I was also thinking of having an application installed on the client to gather information and send it to my php script. However, I have little idea where to

Re: [PHP] Computer Authorization

2003-02-20 Thread Chris Knipe
You can also maybe look at client side SSL Certificates... - Original Message - From: Chris Cook [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 21, 2003 2:59 AM Subject: [PHP] Computer Authorization Hello all, I am looking into an application that only specific

Re: [PHP] Computer Authorization

2003-02-20 Thread Ernest E Vogelsinger
At 01:59 21.02.2003, Chris Cook said: [snip] I am looking into an application that only specific computers can access. A login does not work since we only want people to log in from certain computers. IP numbers dont work since they are dynamic. Cookies

Re: [PHP] sessions

2003-02-20 Thread Justin French
on 21/02/03 5:34 AM, Joseph Bannon ([EMAIL PROTECTED]) wrote: I'm starting to use sessions for my website and wanted to know some things before I fully commit to use them. 1) How are sessions different from cookies other than where the information is stored? A session is just a method of

[PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
I've been thinking about how to do authentication and user recognition for my site without cookies. I had this idea but I don't really know if its possible at all. If I got the IP address from the request could I use ARP to get the MAC address for that IP? If so I could compare that MAC

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Ray Hunter
Remember that the mac address gets changed by devices on the network... -- Ray On Thu, 2003-02-20 at 20:29, Leo Spalteholz wrote: I've been thinking about how to do authentication and user recognition for my site without cookies. I had this idea but I don't really know if its possible at

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Jason Sheets
MAC addresses are used for on a LAN and not the Internet. Using a MAC address might work for identification on a LAN BUT in most operating systems you can easily change the effective MAC address on the card. It would probably be better to look for some other form of identification like SSL

[PHP] php_mcrypt.dll

2003-02-20 Thread Daniel Guerrier
I'm trying to use the mcrypt function on winXP using php 4.3.1 and IIS 5. First the dll would not load but I got past that by placing the libmcrypt.dll in my system32. Now it loads but when I try to use mcrypt I get Warning: mcrypt_encrypt(): Module initialization failed in

[PHP] Regarding cache problem (fwd)

2003-02-20 Thread J.F.Kishor
Hi all, I am attaching the php file that will display a circle and on top of it, it will show the current time. When its reloaded using the browser's reload option. updated time is displayed. If the url is typed in the address bar and the request is sent, it doesnt display updated

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Chris Cook
I have used MAC address authentication using the arp table and it worked for what I used it for, but it does only work over the local network and spoofing is an issue. Using a cookie in conjuction with a MAC address helps the authentication, but it sounds like SSL is the way to go... Does

Re: [PHP] MAC address user recognition?

2003-02-20 Thread Leo Spalteholz
On February 20, 2003 08:13 pm, Jason Sheets wrote: MAC addresses are used for on a LAN and not the Internet. Using a MAC address might work for identification on a LAN BUT in most operating systems you can easily change the effective MAC address on the card. Good call. I thought there was

Re: [PHP] php_mcrypt.dll

2003-02-20 Thread Bob Irwin
Did you try the php.net website? Because I haven't used it, I can't help you other than doing a quick google search which produces the following link - which contains information on a workaround for a similar problem. Do a find on the page for 'failed'.

Re: [PHP] Forms and MySql date

2003-02-20 Thread Frank Keessen
Hi, You can let the users enter a date as 20-02-2003 into a textfield with the name $userdate Then you can use this function to convert it; $date_array = split(-, $userdate); $mysqldate = $date_array[2].-.$date_array[1].-.$date_array[0]; Store $mysqldate into the database! Regards, Frank

[PHP] mysql_fetch problem

2003-02-20 Thread Alec Solway
I have the following call: SELECT * FROM facility LEFT JOIN fuel USING(facilityID) LEFT JOIN fuelType ON fuel.TypeID=fuelType.ID WHERE facility.facilityID=$facilityID The data is returned properly using mysql_fetch_row(), but mysql_fetch_assoc() and mysql_fetch_object() set the ID of the

[PHP] Database Persistance Layer

2003-02-20 Thread Joe Njeru
Hi All, I have developed some code based on open source DBPL by Shawn Bedard of Jig Technologies. It works fine but is about 10 times slower than my normal Data Classes. My web application will be handling lots of data for a small-medium sized (50 employees) organization. I think the speed

[PHP] Looking for a Junior PHP/mySQL programmer - Sydney.AU

2003-02-20 Thread Skeeve Stevens
Excuse the cross-post... We're looking for a Junior PHP/mySQL programmer in Seven Hills in Sydney.AU The position will be on a fulltime basis. We are a Broadband ISP dealing with Request Broadband and other providers. We are not looking for a super-qualified programmer as we are willing to

<    1   2