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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
>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
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
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
>
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
;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.
>
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
>
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
//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
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
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
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.
_____
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
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
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
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 -
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
.
_
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
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
$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
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.
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
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
.
_
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:
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
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
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
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
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
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
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
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
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
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,
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
[
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
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
70 matches
Mail list logo