Can anyone suggest a strategy for importing data from MySQL to Access (it
sucks I know, but I have to do it for my work). I was thinking of using a
text-delimited file as an intermediate, but I am not quite sure on the
logistics.
--
PHP General Mailing List (http://www.php.net/)
To
Christian Calloway wrote:
Can anyone suggest a strategy for importing data from MySQL to Access
(it sucks I know, but I have to do it for my work). I was thinking of
using a text-delimited file as an intermediate, but I am not quite
sure on the logistics.
You can use the Mysql-ODBC driver,
how about
http://www.php.net/manual/en/language.oop.php
To be honest I can't remember what made classes
first click for me but feel free to ask if there's
anything there that you don't get.
Classes and OOP seem self evident when you've been
using them for a while but I seem to remember that
then keep this info in a config file off root and
use a data abstraction class to connect.
Tim
www.chessish.com
-Original Message-
From: Oliver Witt [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 19:15
To: [EMAIL PROTECTED]; Stephan Seidt
Subject: Re: PHP source code
Martin,
MT If you're using serialised variables, I'd suggest serialising a
MTfew simple ones and see what the output looks like so that you can
MTsee when things are going amiss.
An interesting suggestion. I have a set and forget data api which
handles all these transformations in the
Hi all,
Forgive me for making this off topic question here, but since I need to install PHP
under Linux tonight and came across this problem, I guess some one from here can help
me.
I need my Red Hat 7.2 to read the contents of all my FAT32 partitions in order to
transfer the PHP packages.
Hi all,
I'm having a problem with sessions. I use PHP version 4.2.2.
The project I'm working on, only uses the global variables, $_GET, $_POST
and $_SESSION.
When I store something in the $_SESSION variable, everything goes well. I
can print the contents of this array with print_r, and every
I've looked through the docs but can't find what I want.
Is there a function that will let me load a jpg image, change the
saturation level and save the changed image as a new jpg?
Jc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does anybody know of a class or a solution to converting an HTML page to a
text only page via PHP, but leaving in href links in and a certain degree of
formatting.
Cheers,
Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
Can anyone suggest a strategy for importing data from MySQL to Access (it
sucks I know, but I have to do it for my work). I was thinking of using a
text-delimited file as an intermediate, but I am not quite sure on the
logistics.
William wrote:
1) Payroll apps require large tax libraries (federal, every state and
locality).
Split them into more files (diffrent states etc.) and include_once them
when they are needed,
and perhaps mysql can take part of the job.
4)Loosely Typed Variables.
I fear it might be to
Try to remove all strings starting with and ending with . Be sure
not to remove A href ... /A's. Also you need to format line
endings via \n or BR.
it might seem a little bit hard, but any other solution won't work
rather than this.
Tim Haynes wrote:
Does anybody know of a class or a
Feel free to use strip_tags()
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Tim Haynes [EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
Does anybody know of a class or a solution to converting an HTML page to a
text only
The Content-Type header changes, when uploading, you can get it from
$HTTP_POST_FILES['userfile']['type'], also set the filename using
header(Content-Disposition: attachment; filename='. $filename );
Christian Ista wrote:
You'll need to prompt the download by sending the appropriate
Hi,
Can someone point me to the documentation to make the same search system
as php.net like www.php.net/lala that will search on the manual.
Thanks.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
--
PHP General Mailing List
I found it at http://www.php.net/urlhowto.php
Thanks anyway.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
[EMAIL PROTECTED] a écrit dans le message de news:
[EMAIL PROTECTED]
Hi,
Can someone point me to the documentation to make the
If you look at the tutorial no. 5 on www.fpdf.org, all you need is to
change LoadData function, example:
function LoadData($condition)
{
$res=mysql_query(SELECT * FROM table WHERE 1 AND ($condition));
while($data[]=mysql_fetch_row($res) ) { }
return $data;
}
Chuck Payne wrote:
Hi,
php-general Digest 20 Sep 2002 11:06:53 - Issue 1596
Topics (messages 116944 through 116992):
Re: pass var through URL String
116944 by: Gary
Re: PHP Execution Timer
116945 by: Beau Hartshorne
Re: Stripping specific tags
116946 by: John Holmes
116965 by:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey,
I think what you're after is 'Options MultiViews' in your apache
config.don't know about v2 though.
http://httpd.apache.org/docs/mod/core.html#options
HTH!
~Pauly
On Thursday 19 September 2002 01:21 pm, Stefan wrote:
Hello,
I have a new
Hi,
I want to learn if anyone tried to use both of javasccript and php together
?Because when I tried to use them like this:
form name=sign method=POST action=sign_up_.php
onSubmit=checkemail(email.value);return false
and when I click submit.. javascript is working but it is not going to the
Hi,
form name=sign method=POST action=sign_up_.php
onSubmit=checkemail(email.value);return false
and when I click submit.. javascript is working but
it is not going to the sign_up_ page ..
It's because of the return false: that means after running the checkemail
function, cancel the
Hi Meltem,
Since you place return false in the onSubmit code, you cannot submit the
form to the next page. What you need to do is that check if the email field
is empty, if yes return false; if not return true.
- Original Message -
From: Meltem Demirkus [EMAIL PROTECTED]
To:
I have two fields of type date in a MySQL table called training:
start_date
end_date
I can format the date using a select, for example
SELECT
DATE_FORMAT(start_date, '%M %d, %Y') as start_date,
DATE_FORMAT(end_date, '%M %d, %Y') as end_date
FROM training
__
Post your free ad now! http://personals.yahoo.ca
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
but I also want to check @ and . characters.. ...checking only if the email
field is empty or not is not what I want
meltem
- Original Message -
From: Ferhat Can [EMAIL PROTECTED]
To: Meltem Demirkus [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, September 20, 2002 2:49 PM
This little code snippet is from a login system that
I've made, which takes unconfirmed user-info out of a
mysql table, and places it into a confirmed table
(Uses email confirmation). Now, this has really got
me baffled, because it seemed to be working fine
yesterday. Can anyone please tell me
by the way If I remove return false .. script is checking the correctness
but just after it is going to the page sign_up_ page .php ..I just want
it to go to the page when the email is correct ..
Is it possible to manage ?
meltem
- Original Message -
From: Jon Haworth [EMAIL PROTECTED]
Thank you.
TR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
by the way If I remove return false .. script is
checking the correctness but just after it is going
to the page sign_up_ page .php ..I just want
it to go to the page when the email is correct ..
Is it possible to manage ?
Yes. You need to have the return true or return false in
-Original Message-
From: Meltem Demirkus [mailto:[EMAIL PROTECTED]]
Sent: 20 September 2002 13:03
by the way If I remove return false .. script is checking
the correctness
but just after it is going to the page sign_up_ page .php
..I just want
it to go to the page when the
Monique,
By default Debian does not come come with a recent JVM, due
to the non-free-ness of Sun's license.
So first thing is to see if you have any Java installed at
all... When you type `java` at a shell it should give you
an error about missing parameters... if you get the following:
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 18:18
What are peoples' thoughts on one should always return a value from a
function, even if it's always going to be true?
Unprintable!!
There's no point in returning a value if there's no
Please can somebody help my, why i get this errormessage:
Warning: getimagesize: Unable to open '../images/2002/11/jpg/' for reading. in
C:\Webverzeichnis\docs\living_sports\living_sports\lsadmin\includes\image.handling.inc.php
on line 852
While the echo $name says winter.jpg f.x.:
echo
I'm running a program using popen(), and I need to know when there's data to
be read from this program. feof() will never return true, even with no data
to be read. Is there any function that can set a timeout on a file descriptor
returned by popen()? Or a function like feof(), but to check
I found out, that always when my script ist executed,
one $HTTP_REQUEST_FILE is empty.
so the scripts writes the pics where I want it and
tries to convert one none existing file.
But why?
Sascha
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] scribbled;
Hi,
Can someone point me to the documentation to make the same search
system as php.net like www.php.net/lala that will search on the
manual.
http://www.php.net/urlhowto.php
--
PHP General Mailing List (http://www.php.net/)
I have two fields of type date in a MySQL table called training:
start_date
end_date
I can format the date using a select, for example
SELECT
DATE_FORMAT(start_date, '%M %d, %Y') as start_date,
DATE_FORMAT(end_date, '%M %d, %Y') as end_date
FROM training
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] scribbled;
I found it at http://www.php.net/urlhowto.php
Thanks anyway.
Crap I just sent this to the list, I need a better email client that
sorts by thread and not just subject :/
--
PHP General Mailing List (http://www.php.net/)
To
You have session_start() on the second page, too, right??
-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 5:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Sessions
Hi all,
I'm having a problem with sessions. I use PHP version 4.2.2.
The
tim tom mailto:[EMAIL PROTECTED] scribbled;
Dear Marek,
Where do find that? I am no C programmer.
--
tim
--- Marek Kilimajer [EMAIL PROTECTED] wrote:
It's a shell script, and your shell drops root privileges. Use a
shell that doesn't or use a C-wraper.
Make yourfile.c and put this
Michael Geier schrieb:
PHP Source code is only available on the server, and will never be shown to
the client (unless you create a tool to allow them to see the source;
see show_source() );
And you can always put your authentication data (username/passwords) in an
external include() file
John Holmes wrote:
You have session_start() on the second page, too, right??
Yes...the session_start() statement is in a global include file, which is
included in all files which require it
Grtz Erwin
-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Friday,
I've had the same problem, and I resolved it by using html tags instead of
headers, and the problem was resolved. there are some issues I still
haven't been able to work out though (I want it to use cookies instead of
SID's).
John Holmes [EMAIL PROTECTED] wrote in message
!!!WARNING - WARNING - WARNING - WARNING - WARNING!!!
This will mean ANYONE can run this program AS ROOT. Read up on SUID.
!!!WARNING - WARNING - WARNING - WARNING - WARNING!!!
Make yourfile.c and put this in:
main(argc,argv)
int argc;
char **argv;
{
execv(/your/program/here, argv);
There's a perfect example in the manual:
http://www.php.net/manual/en/function.preg-replace.php
HTH
Justin
on 20/09/02 9:16 PM, SiTA WebMaster - VST ([EMAIL PROTECTED]) wrote:
Try to remove all strings starting with and ending with . Be sure
not to remove A href ... /A's. Also you need to
All,
I have a page that displays results of a database search. The page contains
a select dropdown box from which the user can pick different options
including the ability to download an Excel or CSV file of the displayed
results. Once the user selects an option from the dropdown, a Javascript
strip_tags() is the easiest way to remove HTML tags. If he wants to replace
them, then he can use ereg_replace or preg_replace().
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
Justin French [EMAIL PROTECTED] a écrit dans le message de news:
I'm building a new server and would like to use:
php4
apache 2.xxx
mod_ssl
MySQL
mod_perl
Is there any major hurdle?
Thanks
Pierre B. Samson
CAMBAR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yeah, apache 2.0 and php don't like each other.
Adam
On Fri, 20 Sep 2002, pierre.samson wrote:
I'm building a new server and would like to use:
php4
apache 2.xxx
mod_ssl
MySQL
mod_perl
Is there any major hurdle?
Thanks
Pierre B. Samson
CAMBAR
--
PHP
Any particular reason... future plans or is apache2 is not worthy?
Adam Williams [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yeah, apache 2.0 and php don't like each other.
Adam
On Fri, 20 Sep 2002, pierre.samson wrote:
I'm building a new server and
The PHP coders are still working to have full compatability with apache
2.0. I know for example posting one variable in a form messes up, but
posting 2 or more variables works fine. There is a entry n the bug
database about this, so hopefully it will be fixed soon.
Adam
Howdy all!
I've built a page in Dreamweaver MX that uses PHP for scripting. I
can get
data out of my mysql database but I need to be able to search for
wildcards.
currently it only matches 100% exact queries.
Below is the code that is at the beggining of the PHP page.
---
The admin users will need to run long processes that take about
5-15 minutes each. They cannot timeout and they must be done
throughout the day
while general users are working in the application as well. Is
there a big problem with this? What steps should I take to ensure
these
Apache 2 isn't officially supported yet. If you get the latest version of
both then you shouldn't hit to many hurdles but you should know that you'll
get no official support and it isn't recommended for production
environments.
If you need Apache2 then you'll know why - if you don't know what
Beau Hartshorne wrote:
The admin users will need to run long processes that take about
5-15 minutes each. They cannot timeout and they must be done
throughout the day
while general users are working in the application as well. Is
there a big problem with this? What steps
Adam Williams [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
e.ms.us...
Yeah, apache 2.0 and php don't like each other.
Adam
On Fri, 20 Sep 2002, pierre.samson wrote:
I'm building a new server and would like to use:
php4
apache 2.xxx
mod_ssl
MySQL
mod_perl
Is there
Danny Shepherd mailto:[EMAIL PROTECTED] scribbled;
Mod_ssl is part of the standard Apache2 distro now.
Ah, then it IS hidden ;)
-jesse
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
wildcard in SQL is %, so your query looks like:
$query_search1 = SELECT * FROM secureworks WHERE $varSort_search1 LIKE
'%$varText_search1%';
[EMAIL PROTECTED] wrote:
Howdy all!
I've built a page in Dreamweaver MX that uses PHP for scripting. I
can get
data out of my mysql database but I
Well, I'm in no hurry, so I'll try to make it work.
It just seemed to me that with ssl and mpm's incorporated it worth the
upgrade.
I was not sure if there was a held back on the use of apache2...
Pierre
Danny Shepherd [EMAIL PROTECTED] wrote in message
Hi Fellas!
I'm a little bit confused as to why does this not work right! It had to do
with the odbc_fetch_row() function. When there is two or more rows, the
odbc_fetch_row() return a True. When there's no row, the odbc_fetch_row()
return a False. What so odd about it is when there is one
Oliver,
I think I see your question. You are wanting to know if people can see
*your* PHP code (it sounded like you were asking if you could read PHP's
source code, which is why people responded like they did).
I think another poster mentioned this, but the safest thing to do with
your
Hello!
I'm fairly new to PHP and absolutely new to this mailing list.
I subscribed and I'm writing because I observed some strange behavior with
array_merge_recursive(). I'm using PHP version 4.1.2. Please look at the
following code:
$a = array('k' = array('a1'));
$b = array('k' =
Worked fine for me..
?phpecho pre;print_r($r);echo /pre;?---Array
(
[k] = Array
(
[0] = a1
[1] = b1
)
)
---Access the merged array with with $r['k']; with values at
$r['k'][0] and $r['k'][1]. Is this not what you wanted?
-Kevin
-
Hello Kevin,
Yes, and that's the good part. The bad part is that $a is affected (try
print_r($a)). I don't think it should be.
Michiel
At 12:41 PM 9/20/2002, Kevin Stone wrote:
Worked fine for me..
?phpecho pre;print_r($r);echo /pre;?---Array
(
[k] = Array
(
I don't know if this is possible, but in VB (I'd like to find something
similar in php) I would open a record set, and then filter / unfilter it for
similar issues (in a loop). I'm assuming you could use a similar approach
somehow in php.
Robert Cummings [EMAIL PROTECTED] wrote in message
Jeff Bluemel wrote:
I don't know if this is possible, but in VB (I'd like to find something
similar in php) I would open a record set, and then filter / unfilter it for
similar issues (in a loop). I'm assuming you could use a similar approach
somehow in php.
Sounds like a DB issue. Select
I don't know if this is possible, but in VB (I'd like to find
something
similar in php) I would open a record set, and then filter / unfilter
it
for
similar issues (in a loop). I'm assuming you could use a similar
approach
somehow in php.
Seems like a waste of resources. Why not do the
I'm working with the socket_* function (--enable-sockets) and have been
seeing some wierd issues. I'm guessing it has to do with
socket_recvfrom/sendto etc not being binary safe. This is 4.2.3 on
FreeBSD 4.6.2.
My question is: what functions, specifically socket_* functions, are
binary safe?
Hi!
I got this problem getting my uploaded pictures listed in a table 3 by 3.
The script below works fine and make a nice listing vetically...
Now, how the heck do I script so that I get 3 pictures in a row, in separat
colums and adding a new row so next 3 pictures get the same formatting?
I
can anyone tell me where my false conf. in php.ini ?
when i change the page it makes a new session ... instead of the
first one ...
cannot remember the first session data ...
here is my infophp:
Session Support enabled
Directive Local Value Master
I had the problem a few days ago.
Here's some software that makes it easy as clicking a button -
http://www.convert-in.com/sql2acc.htm
Be warned though, it's only free to copy table structure. It requires
registration to copy data.
Christian Calloway [EMAIL PROTECTED] wrote in message
[EMAIL
Hi everyone,
I'm using php 4.2.3 and putting the code that prevents caching. But this
works in php4.1 but in 4.2.3 doesn't. I don't know if this is because I must
change some directive in php.ini or if is someone that we can't change in
php 4.2.3.
Thanks in advance
Rapha
--
PHP General
I am posting this message to the php.general newsgroup because I used
php to construct the dynamic portion of our site and because I value
the opinions of many people who frequently post here. I hope that
this will not be viewed as off-topic --if it is, I will take it
elsewhere.
At affero we
Don't assume either way, especially since sockets are currently experimental.
If you're worried it isn't binary safe, you could base64_encode() and
base64_decode everything... Extra bandwidth, but at least it will work.
On Friday 20 September 2002 10:10, Hans Zaunere wrote:
I'm working with
Each evening I distribute a newsletter to approx 500 subscribers, and I
want to stamp each copy I send with the name, email address and subscriber
number of the recipient. I've not done any programmatic PDF manipulation,
but could this be done using PDFlib? I receive the newsletter as a PDF
I'm having problems with headers being sent out that cause generated images
to become garbled, Does anypone have any ideas on how to stop certain
headers, such as Connection, Keep-Alive and Transfer-Encoding from going out
to the browser, or filtering them out of the output?
Im running apache
Hello,
I am wondering how it would be possible to generate an html response
email via a PHP script. I have tried and all that has happened is the
html source code appears in the message body as plain text. I believe
this is happening because the email needs an additional header
stating the
Mike Dunlop mailto:[EMAIL PROTECTED] scribbled;
Hello,
I am wondering how it would be possible to generate an html response
email via a PHP script. I have tried and all that has happened is the
html source code appears in the message body as plain text. I believe
this is happening
Try this class:
http://phpclasses.websapp.com/browse.html/package/9.html
Regards,
Daniel Kushner
_
Need hosting? http://thehostingcompany.us
-Original Message-
From: Mike Dunlop [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002
Hrmm...
Well the base64_* bit would work for the payload, but I'm working with
raw sockets (ICMP at the moment) and of course the header needs to be
really binary.
Are the socket_*() planned on being binary safe in the near future?
Anyone do traceroute/ping in PHP yet?
Hans
--- Evan
Thanks.
That's fine, it's either $55 for this or a couple of hundred to pay someone
to do it manually.
Go figure ;-)
Cheers,
Liam
- Original Message -
From: M1tch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 3:51 AM
Subject: [PHP] Re: MySQL Access
I
$header .= MIME-Version: 1.0\r\n;
$header .= Content-Type: text/html; charset=iso-8859-1\r\n;
$header .= From: $sender_email\r\n;
mail($rcpt_email, $subject, $msg, $header);
This works it is what I use.
-Original Message-
From: Mike Dunlop [mailto:[EMAIL PROTECTED]]
Sent: Friday,
Hello, I am trying to find a string in another string with mysql. Normally,
this would work.
select 'foo' REGEXP ('foo');
And that would simply return 1, since it found it. But, my strings are more
complicated than that.
One good random example is something like this..Ya i know, its wierd but
Even though I have no record in my MySQL DB with that has 005 in the ID
field, the following statement always reverts to Record Found, or True, no
matter what ID I use. What's wrong? I'm using PHP 4.2.2. Has something
changed that makes this work differently? Thanks.
$query = SELECT id
Not that familiar with MySQL's flavor of RegEx (and the documentation seems
to be extremely bad ... or at least I can't seem to find any with casually
searching) but have you tried escaping the RegEx special characters? eg
REGEXP ('ok\/2.0 \(hah 3\.0; BAM oh 5\.1; \.hi CLR 1\.0\.4725\)');
Could be wrong, but the fact that $result isn't empty doesn't mean there
are rows... it would be better to say:
if ( !empty($result) ) {
echo VALID QUERY;
} else {
echo INVALID QUERY;
}
Although you should probably check $result against TRUE and FALSE instead.
If you want to know how
At 11:35 AM 9/20/02 -0400, pierre.samson wrote:
Well, I'm in no hurry, so I'll try to make it work.
It just seemed to me that with ssl and mpm's incorporated it worth the
upgrade.
From today's Apache week newsletter:
the Apache 2.0 interface is still undergoing steady change,
Don't expect
you should use mysql_num_rows() to check for records returned instead of
using mysql_query().
this is because if $query is a valid $sql statement, mysql_query() will
always return a resource link. which evaluates to true.
so this will work for you:
if (mysql_num_rows($result))
echo record
I have java 1.4 installed, and I've put it in /usr/local/sun-j2sdk1.4.1
-- that's why I use the ini_set() method. I've compiled and run apps
using this java installation, so I'm pretty sure all is kosher there.
I sincerely believe that the problem lies in my php installation, not in
my java
what he really needs is to completely remove script.../script, plus
many many other examples.
completely removing everything outside the body would be another option,
perhaps saving the contents of title.../title
since a script might also occur inside the body, this would not really work
I sincerely believe that the problem lies in my php installation, not in
my java installation, which is why I'm asking whether the debian php4
package in the testing distribution, which is more specifically
PHP/4.1.2 according to X-Powered-By in phpinfo(), has java support
compiled in,
If *I* were publishing data for others to USE in their own web sites (often
called a web service), I'd make the data available in one of a few ways:
- raw text -- let them format it as they see fit
- CSV a simple CSV file can hold a wealth of information, and it is easy for
the receiver to
Hi,,
my server is located in the US and i live in Sweden, so when i try to run
the following command i get a 8hour diffrence,, anyone got any idea of how
to solve this?
date(Y-m-j)
regards
Patrick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Saturday, September 21, 2002, 12:30:48 PM, you wrote:
P Hi,,
P my server is located in the US and i live in Sweden, so when i try to run
P the following command i get a 8hour diffrence,, anyone got any idea of how
P to solve this?
P date(Y-m-j)
P regards
P Patrick
A quick fix that
Mike,
Here is how I send an HTML e-mail. Say I have a contact form with the values $name,
$email, and $message. The form submits to say. process.php.
?
// process.php
$message = stripslashes(nl2br($message));
$date = Date(F d, Y h:i a);
$body =
pfont color='#99' face='Arial,
You have to add (or subtract) 28800 seconds to/from current time and use this
as the 2nd input to date.
echo date(Y-m-j, strtotime(now) + 28800);
Sascha
Hi,,
my server is located in the US and i live in Sweden, so when i try to run
the following command i get a 8hour diffrence,, anyone
A few months ago, I wrote a bit of code to stripslash()
PATH_TRANSLATED on a w2k box, because,
php was reporting it with double slashes like C:\\winnt\\some_dir
Today I noticed that the code is broken because PATH_TRANSLATED is now
reported with one slash like C:\winnt\some_dir
Does anyone
Gerard,
The most likely reason is a php.ini configuration called magic_quotes.
When enabled, PHP will automatically add slashes to single and double
quotes, as well as slashes themselves (to escape them). This is helpful
in some environments to help protect against attacks that can be used to
still looking for some solutions on this - anybody else have any
suggestions?
Jeff Bluemel [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
OK guys...
here's my question - I'm using 4.2.3 and apache 1.3.26, and I've got
sessions setup. however, it seems to be
You've already posted this, and you never answered the questions that
were asked. Thus, your question is every bit as unclear as the previous
time.
Perhaps if you put forth a little effort, we might also.
Just a helpful suggestion,
Chris
Jeff Bluemel wrote:
still looking for some solutions
1 - 100 of 103 matches
Mail list logo