[PHP] Dates < then 1970

2003-11-03 Thread Mark McCulligh
What function(s) would you use if you want to take someone's birth day and format it on display. I have always used strtotime, then strftime but it doesn't work if someone was born in 1939. strtotime returns -1. What function would you use to take the input string "1939/11/23" and get the timesta

[PHP] configuring the php.ini file

2003-09-18 Thread Mark McCulligh
I have PHP on both a window and Linux box. If I wanted to enable Sybase from the php.ini for windows I would uncomment the "extension=php_sybase_ct.dll" line. But in Linux you don't use the dll but the so files. But inside of my extensions folder on the Linux box there is nothing. For were are al

[PHP] Japanese on a page

2003-09-12 Thread Mark McCulligh
This is not really a PHP question but I know this list knows their stuff. I am trying to create both an English and Japanese version of a site. The English done and I have the Japanese translation in a word doc. Can someone point me in the right direction on how I do this. I know it has something

[PHP] Re: PHP configure error

2003-09-10 Thread Mark McCulligh
My mysql user home directory is set to: /var/lib/mysql which was were the data was for the rpm version of mysql. When I installed the source version of mysql wouldn't this be change to something like: /usr/local/mysql/current/data/ What do other people have there mysql user home directory linked t

Re: [PHP] PHP configure error

2003-09-10 Thread Mark McCulligh
MySQL in located in /usr/local/mysql/current/ This is what is in my lib folder: [EMAIL PROTECTED] current]# cd lib [EMAIL PROTECTED] lib]# l -rw-r--r--1 root mysql 10806 Jul 18 11:34 libdbug.a -rw-r--r--1 root mysql 879270 Oct 24 2001 libmygcc.a -rw-r--r--1 root

[PHP] PHP configure error

2003-09-10 Thread Mark McCulligh
Hi again, I once had MySQL 4.0.14 installed using rpm version, but now have removed it and installed MySQL 4.0.14 from the source file. When I run the make command the link --with-mysql=/usr/local/mysql/ I get this errors: ext/mysql/php_mysql.lo: In function `zif_mysql_create_db': /usr/local/src/

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Mark McCulligh
he socket file and have always had > great success with it even for mysql 4.0 > > -- > BigDog > > > On Tue, 2003-09-09 at 12:59, Mark McCulligh wrote: > > Thanks, > > > > If you just use --with-mysql it will use PHP's built-in mysql client lib > > 3.23

Re: [PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Mark McCulligh
Thanks, If you just use --with-mysql it will use PHP's built-in mysql client lib 3.23.49, but I have MySQL 4.0.14 installed. Won't this make a difference. I want to make sure PHP is compiled this the right libraries for MySQL. Mark. "Ray Hunter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP] Installing PHP with MySQL RPM version

2003-09-09 Thread Mark McCulligh
I am trying to ./configure PHP 4.3.3 on a system that already has MySQL 4.0.14 on it. In the configure line --with-mysql=/path/to/mysql were is the path for RPM versions of MySQL. I have search the computer but it looks like the mysql files are all over the place. Database files are in /var/lib/m

[PHP] Re: Excel Parser

2003-07-10 Thread Mark McCulligh
There is a PEAR package called Spreadsheet_Excel_Writer, that is non-COM. It works great, only one problem. The max string length is 255 characters. For it you are not export any fields greater then 255 it works great. There is also an other excel class on www.phpclasses.org. Called php2excel I t

Re: [PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-04 Thread Mark McCulligh
I know that no software is without bugs, it is the first thing you learn in Computer Engineering. What I really meant was I don't update the date after a new version comes out. I wait until I don't see any more major bug reports. Until I feel the new version is stable enough. Thus that is why I am

[PHP] Re: Red Hat 9, Apache 2, and PHP

2003-07-03 Thread Mark McCulligh
I am also building a new server. I am going with RedHat 8, but only installing the Classic server from the CDs. Then installing/configuring Apache/PHP/MySQL/SSL manually. I like the rpm install programs but I like to be able to add modules in the future and I find it easier the configure it all by

[PHP] PHP to Excel Export

2003-07-03 Thread Mark McCulligh
Hi Group, I am working on an app the creates an Excel file. Right now I am using the PEAR package Spreadsheet_Excel_Writer. It works great but I have one problem. I have a field greater then 255 to export and the PEAR package truncates anything over 255. Has anyone used or know of a Excel class

[PHP] converting between timezone

2003-07-02 Thread Mark McCulligh
Does anyone know of a function or class that can convert timeszones including daylight saving time (DST). You pass it the date/time and the current timezone and the new timezone and it returns the new date/time. I need it to work on a windows platform too. Thanks, Mark. -- PHP General Mailing

[PHP] Timezone functions?

2003-06-30 Thread Mark McCulligh
I am working on a project that I have to convert the date/time to different timezone include daylight saving time (DST). This project will be on a Windows server for a lot of the functions I have found on PHP.net don't work right. I am storing all the dates on the database in GMT time, thus I tak

Re: [PHP] Re: Sybase and PHP

2003-06-26 Thread Mark McCulligh
AIL PROTECTED]> To: "Mark McCulligh" <[EMAIL PROTECTED]> Sent: Thursday, June 26, 2003 1:13 PM Subject: Re: [PHP] Re: Sybase and PHP > I'm trying to use a sybase client to connect to a sybase database (which > is running on windoze) from a Linux box running PHP 4

[PHP] Re: Sybase and PHP

2003-06-26 Thread Mark McCulligh
What Sybase are you using Sybase ASE (Adaptive Server Enterprise) or Sybase Anywhere. Is your PHP server on Windows or Linux. What you will need is the Sybase client first off. PHP links to the sql.ini files (in windows). Then you will need to edit your php.ini and uncomment the Sybase extension

[PHP] Re: Install PHP on windows using PHP installler

2003-06-26 Thread Mark McCulligh
>From my understanding you can get PHP with CGI to do persistant connection if you install fastcgi. Link about PHP and FastCGI: http://php.weblogs.com/fastcgi_with_php_and_iis Mark. "Php Dot Net" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > depend on which web server : > > for

[PHP] Install PHP on windows using PHP installler

2003-06-26 Thread Mark McCulligh
I am building a Windows 2000/PHP production server. I have only ever used LINUX for production and windows for developer machines. Is it better to install PHP using the PHP installer or using the Zip file version? Should you install PHP as CGI or ISAPI? I am looking for the pros and cons, someone

Re: [PHP] clearing cache

2003-06-20 Thread Mark McCulligh
wsers cache after it is displayed. Thanks, Mark. "Jeff Harris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jun 20, 2003, "Mark McCulligh" claimed that: > > |I am building a two page search feature. The user fills out page one, that >

[PHP] clearing cache

2003-06-20 Thread Mark McCulligh
I am building a two page search feature. The user fills out page one, that takes them to page two. Then from page two they get the results page from the search. If the user hits the back button in their browser I want them to go back to page one, NOT page two. Is the some way I can make page two

Re: [PHP] Good PHP Books

2003-06-16 Thread Mark McCulligh
;s Programming PHP by Rasmus Lerdorf and Kevin Tatroe (O'Reilly). > It's the only one I have, and have been satisified with it. I was > already a year or so into php when I got it, and use it mainly as a > reference, so I don't know how good it is for beginners. > >

Re: [PHP] Good PHP Books

2003-06-16 Thread Mark McCulligh
reference > book instead of having to go out and buy one or two more books after the > course than having a book that covers everything from the beginning - > even if the course doesn't cover every chapter. > > Just my $.02 > > -Mike > > -Original Message- &g

[PHP] Good PHP Books

2003-06-16 Thread Mark McCulligh
Hi Other PHP Users, I have been asked to teach an introduction course on PHP/MySQL at my local College. I am looking for a good beginner book for the course. Like most people I learned PHP from php.net and online tutorials. But I need a book for the course. I am looking for a book that is not to

Re: [PHP] Array Question

2003-04-01 Thread Mark McCulligh
sage news:[EMAIL PROTECTED] look into things like JOIN and SORT BY in MySQL, they're quicker and more efficient than PHP for doing DB stuff (so i'm told) took me awhile to get my head around JOIN, but once you've got it, you'll never be without it ;) "Mark McCulligh" &l

Re: [PHP] Array Question

2003-04-01 Thread Mark McCulligh
I can't link the two tables at all. I need to loop through one displaying its information, then loop through the other table displaying its information. For if I have 5 records in table A and 6 records in table B, I get 11 records total. Each table only has 4-5 fields and they exist in both table

[PHP] Array Question

2003-04-01 Thread Mark McCulligh
I have two tables that I want to display together as if they were one table and order them by a common date field. Because I am using MySQL I can't use the usually way I would do this. Create a store procedure or view. I was thinking of creating two separate queries in PHP then loading the data i

[PHP] Re: HTML Mail problem

2003-02-15 Thread Mark McCulligh
Hi Manuel Lemos, I downloaded your mail class and ran the test_html_mail_message.php page. It worked! Like you said I am probably getting one of the mail() function bugs or something. Very interesting that I can send external fine but not internal. Does the pear mail use the normal PHP mail() fun

[PHP] Re: HTML Mail problem

2003-02-14 Thread Mark McCulligh
d including some of the header info. Any idea of how this happened. Mark. "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > On 02/14/2003 01:56 PM, Mark McCulligh wrote: > > If I send a HTML email u

[PHP] HTML Mail problem

2003-02-14 Thread Mark McCulligh
If I send a HTML email using either mail() or pear mail to an email account of someone who is on my email server it does not get delivered right. But if I send a HTML email to an external email address it is fine. It also works fine with plain text email, only if you send a HTML format email. I h

Re: [PHP] Including images with mail() or pear mail

2003-02-06 Thread Mark McCulligh
I don't like using images in emails too, but what the customer wants they get. Mark. "Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 06 February 2003 19:12, Mark McCulligh wrote: > > I h

[PHP] Including images with mail() or pear mail

2003-02-06 Thread Mark McCulligh
I have a little app that sends email, All images I link back to the site Example: http://www.site.com/images/pic1.gif";> I know that with the normal mail() and pear mail function you can attach the image with the email. My question is what is better. Linking the image back to the site is very eas

Re: [PHP] tracking bulk email

2003-02-03 Thread Mark McCulligh
I am doing something similar to what you are doing. Sending out a newsletter of about 1500 every month. I have one table that holds every people. I also have a campaign table. Every month I create a new newsletter campaign. The campaign holds things like name of campaign, date sent and location o

[PHP] Re: Script to export MySQL structure & data

2003-01-31 Thread Mark McCulligh
When you do a sql select command, an option is to have the result exported to a file. Example: SELECT name, addr, phone INTO OUTFILE '/tmp/result.txt' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINE TERMINATED BY '\n' FROM customer There are other export options that you can

Re: [PHP] PHP - mysql_info question

2003-01-31 Thread Mark McCulligh
Does "Nope" mean to both my questions. Does MySQL create a log file of warnings? and can PHP call it? I figure even if MySQL as a log file, PHP can't call it, because the PHP function mysql_info was only add in 4.3.0 Mark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Re: Reporting tools for PHP?

2003-01-30 Thread Mark McCulligh
You can now buy Crystal Reports that runs on non-windows platforms. Crystal Reports 9 advance has mult-platform version. But is not cheap, $1,900 US. (also only 3-thread, unlimited threaded reports cost 25,000 US per CPU) Are you looking to put reports online, for users can run and view report thr

[PHP] PHP - mysql_info question

2003-01-30 Thread Mark McCulligh
I have written a PHP function that uses the MySQL command: LOAD DATA INFILE ... The command returns the result in mysql_info() Records: 42 Deleted: 0 Skipped: 0 Warnings: 5 My question is how do you find out what the 5 warnings are. Does MySQL put them in a log file somewhere and is there a way t

Re: [PHP] pop-up problem

2003-01-20 Thread Mark McCulligh
D]> To: "Mark McCulligh" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, January 20, 2003 7:07 PM Subject: Re: [PHP] pop-up problem > on 1/20/03 4:47 PM, Mark McCulligh at [EMAIL PROTECTED] wrote: > > > What does IE do? > > Hi Mark, > > IE, as f

Re: [PHP] pop-up problem

2003-01-20 Thread Mark McCulligh
th their build. > > Chris Shiflett wrote: > > --- Mark McCulligh <[EMAIL PROTECTED]> wrote: > > > >>I wish people won't miss use features for people start > >>blocking them. I am using the window.open the way it > >>was meant for. I

Re: [PHP] pop-up problem

2003-01-20 Thread Mark McCulligh
I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner. Mark. > --- Mark McCulligh <[EMAIL PROTECTED]> wrote: >

[PHP] pop-up problem

2003-01-20 Thread Mark McCulligh
I was wondering if anyone knows of a way to create a pop-up using PHP or other language to do the same thing as JavaScript window.open method. I have an app that uses the JavaScript popup but now with those popup stopper it will not always work. For I am looking for another way of creating popups

Re: [PHP] PHP + MySQL looping question

2002-12-12 Thread Mark McCulligh
//Reset result array $result = mysql_query($sql); } -- _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] "Craig Thomas" <[EMAIL PROTECTED]> wrote in mess

[PHP] PHP + MySQL looping question

2002-12-12 Thread Mark McCulligh
I was wondering if there is a easy way to loop through the same SQL results many times. I have a for loop that loops 3 time. Each time I want to loop through the SQL result printing. The end result is printing the SQL results 3 times in a order. The problem is I have to reset the SQL result arra

[PHP] Re: setting javascript variables on url

2002-09-06 Thread Mark McCulligh
ter "=" Then use the method: substr( ) to get the "bar" out of the string. Mark. _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] - Original Messag

Re: [PHP] Web based FTP client

2002-09-06 Thread Mark McCulligh
I create a page that lets the user browse their own computer and the FTP Server using a combo of JavaScript, PHP and HTML frames. I still don't know how to ftp right from the client side browser without using the tag "file" and upload, not ftp. Mark. _____

[PHP] Web based FTP client

2002-09-06 Thread Mark McCulligh
nyone know of a good web FTP program in exists or point me in the right direction on how to build one.. Thanks, Mark. _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] -- PHP General Mai

[PHP] PHP 4.2.2 install problem

2002-09-03 Thread Mark McCulligh
I am new to Linux and is trying to install PHP/MySQL/SSL. I used the instruction found on this link: http://www.brtnet.org/linux/lampssl.htm Everything seemed to install OK; on the last step, open httpd.conf and uncomment the lines: AddType application/x-httdp-php .php AddType application/x-htt

Re: [PHP] Re: Passing variables between servers

2002-08-21 Thread Mark McCulligh
x27;t exist and will have to just use the longer one. Thanks for your input, Mark. _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] - Original Message - From: "Ja

[PHP] Re: Passing variables between servers

2002-08-21 Thread Mark McCulligh
them. They think a web site can use a cookie to break into their computer. They also disable JavaScript a lot too. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] - Original Message -

Re: [PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
I have read this arcticle too, and yes it will work for PHP to ASP but I have never came across a ASP version like this function to send the information from ASP to PHP. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation

Re: [PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] - Original Message - From: "Adam Williams" <[EMAIL PROTECTED]> To: "Mark McCulligh" <[EMAIL PROT

[PHP] Passing variables between servers

2002-08-21 Thread Mark McCulligh
the POST method, but not the other way. Any ideas would be a GREAT help. Mark. _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Re: Credit card checks?

2002-07-23 Thread Mark McCulligh
$digit -= 9; > $total += $digit; > } > > return ($total % 10 == 0); > } > > -Original Message- > From: Mark McCulligh [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 10:47 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Credit card c

[PHP] Re: Credit card checks?

2002-07-23 Thread Mark McCulligh
You could use an algorithms called mod10. Both Visa, MasterCard and I think most other credit cards use the mod10 algorithm. A credit card must pass a mod10 test to be a valid number(Like a Regular Expression test). It won't tell you if the number exist, but it will tell you if it could exist.

[PHP] Search Page question

2002-07-16 Thread Mark McCulligh
was going to use my last option but if I have a 1000+ records loading each time the performance may be slow. Thanks, Mark. -- _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] -- PHP General

[PHP] Solaris 8 + php 4.2.1 setup problem

2002-07-15 Thread Mark McCulligh
operations [Thu Jul 11 13:13:11 2002] [notice] Accept mutex: fcntl (Default: fcntl) [Thu Jul 11 13:13:11 2002] [alert] Child 20902 returned a Fatal error... Any ideas of what to try next. Thanks, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes

Re: [PHP] Re: Development Tools

2002-07-10 Thread Mark McCulligh
. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> Newsgroups: php.general To: "PHP-general" <[EMAIL PROTECTED]> Sent:

Re: [PHP] Re: Development Tools

2002-07-10 Thread Mark McCulligh
een HomeSite and Dreamweaver or not. They might have taken the best from both and made one, Don't Know? -- _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] "Ma

[PHP] Re: reports and reporting options?

2002-07-10 Thread Mark McCulligh
rote it for has only had two crashes in the last year, both do the Windows Server not Crystal. Crystal has some big bugs, but I have not found any other Reporting program that comes close. Mark. _____ Mark McCulligh, Application Developer / Analyst Syke

Re: [PHP] Development Tools

2002-07-10 Thread Mark McCulligh
mming editors, I like PFE too. Didn't know it was unsupported now(see Jay Blanchard comment above) -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] "Martin Cl

Re: [PHP] Development Tools

2002-07-10 Thread Mark McCulligh
macromedia's site on how. I have never did let, but read about it in a book on Ultrradev once. Thanks for you input, Mark. _____ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL

[PHP] Development Tools

2002-07-10 Thread Mark McCulligh
integrated documentation and debugging tools. Thanks, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Geting PHP Version

2002-07-10 Thread Mark McCulligh
You a use the command mysql_get_server_info(). Example: prints: - MySQL server version: 4.0.1-alpha Also see link below for more details: http://www.php.net/manual/en/function.mysql-get-server-info.php _ Mark McCulligh, Application Developer / Analyst

[PHP] Re: getting the IP address off a visitor

2002-07-08 Thread Mark McCulligh
tenv( 'HTTP_CLIENT_IP' ); } else { $realip = getenv( 'REMOTE_ADDR' ); } } return $realip; } _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMA

Re: [PHP] Re: Stored Procedures

2002-07-05 Thread Mark McCulligh
Sorry, didn't think they did. Does someone have an example, I have never seen one. -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [EMAIL PROTECTED] "B I G D O G" &l

[PHP] Re: Stored Procedures

2002-07-05 Thread Mark McCulligh
I think postgres doesn't support store procedure / triggers. Just like MySQL doesn't. Mark. -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROTECTED] "David Busby" <[EMA

Re: [PHP] Ensim with PHP and MySQL

2002-06-24 Thread Mark McCulligh
t > >its flexible. > > > >If I want to upgrade my PHP, MySQL or Apache on it. It doesn't look like it > >is that easy. > > > >In short I just want to know if anyone out there is using Ensim and if so, > >do you like it. > > > >Thanks,

[PHP] Ensim with PHP and MySQL

2002-06-24 Thread Mark McCulligh
look like it is that easy. In short I just want to know if anyone out there is using Ensim and if so, do you like it. Thanks, Mark. -- _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com (888)225-6824 ex. 3262 [

Re: [PHP] global variables inside of a function

2002-06-21 Thread Mark McCulligh
I tried using $_SERVER['PHP_SELF'] and $HTTP_SERVER_VARS['PHP_SELF'] but got the same error. I found the answer on www.php.net. function blah() { global $PHP_SELF; echo $PHP_SELF; } Thanks for your help, Mark. -- > > On Friday, June 21, 2002, at 09:23

[PHP] global variables inside of a function

2002-06-21 Thread Mark McCulligh
ction, I know this would work, but I would have to many variables to pass. Example: function functionname() { echo $PHP_SELF; } Thanks, Mark. _ Mark McCulligh, Application Developer / Analyst Sykes Canada Corporation www.SykesCanada.com [EMAIL PROT