Hmm, weird, mine worked perfectly the first time through when I
installed it, no havingto mess with permissions or anything.
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-08-20 at 12:18, Benji Spencer wrote:
Your path to the interface file must be wrong, in
my php.ini I have it set to /usr
I've heard good things about hostway.com.
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-08-20 at 12:27, db or not db wrote:
They (futurequest) really are impressive, but 39.95/month is a little pricey
for me...if they offered MySQL with the basic plans (with 1-2 db's instead
of 6) I'd go
I always create a database by hand. On the console type:
mysql -u root -p
(It will prompt you for the mysql superuser's password. Then run:
CREATE DATABASE db_name_here;
Then you would use the grant statement accordly to give users permissions
to it.
Adam
On Tue
.
Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks! Silly me, I'm always forgetting about the mirror sites ;)
Adam
On Wed, 21 Aug 2002, DL Neil wrote:
Is it just me having network connectivity problems, or is the PHP website,
http://www.php.net down? I tried connecting to it from a couple of
difference
Just suggestion but why not use md5($password) and then send the result of
that in your GET?
Adam
On Wed, 21 Aug 2002, Mark McCulligh wrote:
I have two server. One running PHP/Linux the other running ASP/2000.
The user logins into the PHP server and session variables
$PSQL_START change the next line to:
su -l postgres -s /bin/sh -c /usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o -i
start /dev/null 21 /dev/null
Adam
On Wed, 21 Aug 2002, Ray Hunter wrote:
Basically,
That is your problem here:
[Wed Aug 21 11:06:56 2002
mysql_query($sql_statement) or die (Couldn't run UPDATE statement);
Adam
On Thu, 22 Aug 2002, Randy Johnson wrote:
I have a function
update_trans();
in a mysql_query() that processes an update, what could i check for to see
if it was successful
] villas booked;
}
and do the same again but change the statement to villa_id = 0
Adam
On Mon, 26 Aug 2002, Ray Healy (Data Net Services) wrote:
Thanks for everyones help yesterday but nI have come up against a problem
(as I am new). I have created my document as detailed
exec() and system()
Adam
On Mon, 26 Aug 2002, Matthew wrote:
I'm new to PHP and want to build a basic page. The one thing I cannot
find any documentation on is the seemingly simplistic question of how to run
a Perl script. I just want to execute a site-tracking
look around for phpmychat
Maybe its on freshmeat.net?
Adam
On Tue, 27 Aug 2002, Andy wrote:
HI there,
I am wondering if a Chat coded in PHP would be sufficiant for a medium sized
site. Maybe someone has a working example online. It would be no problem to
get
PHPOpenChat: http://phpopenchat.sourceforge.net/
Very good.
Adam Voigt
[EMAIL PROTECTED]
On Tue, 27 Aug 2002, Andy wrote:
HI there,
I am wondering if a Chat coded in PHP would be sufficiant for a medium sized
site. Maybe someone has a working example online. It would be no problem
Don't put a semicolon after the foreach.
Adam Voigt
[EMAIL PROTECTED]
On Tue, 2002-08-27 at 11:07, ROBERT MCPEAK wrote:
Why is this code:
?php
$bob=array(1,2,3,5,6);
foreach($bob as $foo
of each table. If you
need the table names do SHOW TABLES; and if you need their structure use
DESCRIBE table_name;
Adam
On Wed, 28 Aug 2002, Trevor Tregoweth wrote:
Hi
I am very new to mysql, so any help please
how to drop tables from a database from the command
help me with this?
IPv6 addresses are just Hex with : characters, so I just need to validate that for the
entire string.
Thanks for your time.
--
Adam Alkins
http://www.rasadam.com
--
Search the archives, this was explained 2-3 days ago how to dynamically
generate a while without creating one on the server.
Adam
On Thu, 29 Aug 2002, John Hegele wrote:
I'm currently building a site for a band and one of the features I'd like to
offer is vCalendar
Hi,
I'm trying to do a simple regexp to validate if a whole string only contains the
numbers 0 to 9, Letters a - f and A - F and the character :
Why isn't ereg([a-zA-Z0-9:],$string) working?
Guidance appreciated.
--
Adam Alkins
http://www.rasadam.com
--
use
$_GET[id]
in the place of $id for each instance. Like if you had $new = $id + 1
change it to $new = $_GET[id] + 1
and such...
Adam
On Wed, 4 Sep 2002, Kelly Meeks wrote:
Hi folks,
I might be late to the game with these questions, but I've just been bit
whats the permissions on /tmp? it should be set to 1777
Adam
On Wed, 4 Sep 2002, ROBERT MCPEAK wrote:
Our box recently went down and after reconfiguring it we're left with a
semi-operation mySQL. One error I'm getting is this:
mysql select region from clip_art
if ($i%3 = 0)
{
echo something;
}
On Wed, 4 Sep 2002, Cirkit Braker wrote:
what would be the best, most efficient way to print something every three
times a loop runs
for ($i=0; $i$num_products; $i++)
{
echo something;
}
this happens every time it runs
Go to www.mysql.com and make sure you are using the latest version of
MySQL.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
Hi
Since i moved from a Sun / Solaris Machine to a Compaq / Linux machine
I'm having weird problems with MySQL crashing while running reports
I haven't had any problems with mysql like you are having. I would
recommand you recompile the source rpm to the binary rpms and then install
them.
Adam
On Thu, 5 Sep 2002, Boaz Yahav wrote:
I'm using 3.23.52-log
-Original Message-
From: Adam Williams
$date = date(U,strtotime(-7 day));
Have a nice day.
Adam Voigt
[EMAIL PROTECTED]
On Fri, 2002-09-06 at 12:37, Mike richardson wrote:
The attached class is a date utility that I created a long time ago.
It parses out SQL dates, does differences, and specific to your needs,
you can use
what commands are you giving it to compile and what errors you getting?
Adam
On Fri, 6 Sep 2002, yoda2005 wrote:
Is there any way to do it? I cant seem to get it to install as a module
nomatter what I do. Right now I have it running as a cgi parser but some
stuff I
echo $sql;
Adam
On Sat, 7 Sep 2002, Chuck PUP Payne wrote:
Hi,
I am having a problem with menu options being pass on to my database. Is
there a way that I can see what is sql statement that is passing on to the
database? Say maybe print $sql or something like
search google for using PHP sessions and you will print the session ID
into the URL.
Adam
On Tue, 10 Sep 2002, YC Nyon wrote:
I been searching for a user authentication codes all night but got no where
with the results.
Therefore, if someone can tell me where to find
Umm, maybe I'm confused, but here's an answer, not
sure if it's right:
The code in the braces will never be executed
because $a will always be ateast $b if not greater
(assuming $c has a value) which means that it couldn't
be greater, however it could be = if $c was 0.
Adam Voigt
[EMAIL
Oh, ok, I was wondering cause I thought the question was
fairly basic, as for where in the actual source code to PHP expressions
are processed I have no idea. I bet they know in the php-dev mailing
list though, you might want to try there.
Adam Voigt
[EMAIL PROTECTED]
On Mon, 2002-09-09 at 12
If you are using mysql, you can use the NOW() function to insert the time
into a date field. It will insert the time that is on the server's clock.
Adam
On Tue, 10 Sep 2002, Christian Ista wrote:
Hello,
When a use insert the row in a table, I'd like to know the date
Most sites log by IP but if its the IP of a firewall, it would only be one
vote from everyone behind the firewall.
Adam
On Thu, 12 Sep 2002, Justin French wrote:
Hi,
I'm looking to implement very basic like it | hate it voting for a product
on a site, but I'd like
I just wanted to chime in here and say that Julie Meloni's books are
awesome. I have PHP Essentials and her Teach yourself PHP in 24 hours
book. I plan to buy her PHP Fast and Easy 2nd edition very soon.
Adam
On Wed, 11 Sep 2002, Miles Thompson wrote:
Julie Meloni
use stripslashes() or turn on magic quotes in php.ini
On Wed, 11 Sep 2002, Rick King wrote:
Apache: 1.3.23
PHP: 4.1.2
Hello PHP Guru's!
I have created a simple web form. When the form is complete and submitted,
the results are emailed to an email account. But I have noticed that the '
Have a php page that runs exec() or system() and does a whois query on the
domain you want and then have it output the text to a page. Very simple
to do, less then 2 minutes of coding.
Adam
On Thu, 12 Sep 2002, yasin inat wrote:
please anyone can help me about
it run cut -d | -f 4 yourfile.txt and then return you the output.
Adam
On Thu, 12 Sep 2002, Chad Winger wrote:
Thanks for the reply :P
I found it actually. Now I have the apache and php running, and am able to
run my aforementioned test script locally. I am still
make a directory called phptest and put a file, index.php in it...never
tried it tho.
On Thu, 12 Sep 2002, LI DONG wrote:
Hello everyone,
It is a question about .php file extension. Is there any way to access PHP4
script in Apache 1.3.x without .php extension? For example, how to use
try with p /p and see if that works.
Adam
On Thu, 12 Sep 2002, Tom Ray wrote:
Yes, but how do you format the information that comes back out of the
whois? I'm doing this:
?
$whois = system(whois [EMAIL PROTECTED]);
print pre$whois/pre;
?
But all the information
try using nl2br() on it before you print it.
Adam
On Thu, 12 Sep 2002, Tom Ray wrote:
Nope still comes up with everything in one big line. I'm running through
different options right now..but I'm tired and my brain is starting to
hurt :)
Adam Williams wrote:
try
you don't. php/apache run as the user nobody for security purposes.
Adam
On Thu, 12 Sep 2002, Breno Cardoso Perucchi wrote:
HI,
I am trying to use a script php with the command:
system(mkdir /home/hosting/test);
but the PERMISSION IS DENIED and I am the root on my
Change it to an INT or a VARCHAR datatype, the mysql timestamp field
uses MySQL's date/time formmating. If you decide to let MySQL use it's
own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix
timestamp from that date field.
Adam Voigt
[EMAIL PROTECTED]
On Wed, 2002-09-18 at 13
/bin/vi
:)
Adam
On Thu, 19 Sep 2002, Gian Michele wrote:
Hi,
does any body knows a cool editor for php that run under redhat 7.x and
where i can find?
tanks -- Gian Michele
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
. I've never seen PHP round a number because it thought it
was a string. =)
Actually, if it's a string, it's more likely to interepret it
as a don't touch me variable. (That makes sense to me anyway).
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-09-19 at 14:19, William wrote:
I am interested
One extra variable to be declared to catch the true (if you do try
and catch it) and one extra line (the return line in the function),
I'd say skip it if you know your never returning anything different.
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-09-19 at 13:17, Jon Haworth wrote:
Hi list
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
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
If you areusing IE you have to pu tin the http:// infront of it, its one
of those quirky IE only things. Don't have to do that in
Mozilla/Netscape.
Adam
On Tue, 24 Sep 2002, Anil Garg wrote:
hi
in my httpd.conf i have added a virtual host as:
VirtualHost
read the install section of the PHP manual at www.php.net and then read
the tutorial.
Adam
On Wed, 25 Sep 2002, Sauron wrote:
Hi all
I am brand new to PHP, I have a friend that develops in it and I'm
interested in learning more about it. I am familiar with VB
Maybe you could somehow setup your SSH tunnel before-hand
(at server start up or something) and use that instead.
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-09-26 at 12:40, John Holmes wrote:
I am connecting to a mysql server on a remote machine, and opened up
port
3306 for this purpose
Is there anyway I could make a PHP script run as the user that owns the
script?
$id = 1;
${sql_ . $id} = hey;
print $sql_1;
Try that
-Original Message-
From: Kyle Moore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable naming
I want to use the value of a variable in a variable name. For instance:
How about this...
$db = name_of_database;
$query = DESCRIBE table_name;
$query = mysql_db_query($db,$query);
while ($row = mysql_fetch_row($query))
{
echo $row[0]br\n;
}
-Original Message-
From: Alex Shi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 12:03 PM
To:
ideas?
PS/ Not really keen on running a cron job to do the same thing when it
would be easier just to stop
the browser from loading.
-Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
for
this, and I'd like
a better solution.
I'd prefer not to go the route of having a link to the certificate, asking
them to save it,
right click it. install it etc.
Cheers.
-Adam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Our company is looking into purchasing an application package that requires
the use of the Informix (IBM) Redback application. We have been told that
Redback objects can be used in php scripts but I was wondering if any of you
have had experiece with it and if you have had any problems or
could see their login and password.
I'm looking for ideas on how to securely transfer users between these two
separate
websites? It is unfortunately not an option to have them login twice.
Regards,
Adam Whitehead
Systems Developer - Computer Support and Maintenance
Ph. (08) 8936 3164
E-mail: [EMAIL
that hyphens (-) be allowed in $fn and $sn as well.
What do I need
to add to the regular expression to allow hyphens?
I know this is a relatively silly question. I plan on buying a book on
regular expressions
today and learning as much as I need to know about building them.
Cheers.
Regards,
Adam
function for sorting the array returned
by
ldap_get_entries() by any desired attribute, that would be a great help
also.
Cheers.
Regards,
Adam Whitehead
Systems Developer - Computer Support and Maintenance
Ph. (08) 8936 3164 ** Mobile (0411) 241 120
E-mail: [EMAIL PROTECTED]
--
PHP General
have sablotron 0.60; iconv is installed
could anyone help me please?
--
Adam Rambousek
email: [EMAIL PROTECTED] ICQ: 47596279 Jabber: [EMAIL PROTECTED]
* Linux is like teepee - no windows, no gates, Apache inside...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
date(Y-m-d) should do the job
There's gotta be an easier way to get create a date
properly formatted for MySQL's standard -MM-DD
DATE field format. Any suggestions,
smacks-upside-the-head, etc. on how to reduce this
would be greatly appreciated.
--
Adam Rambousek
email: [EMAIL
look into the docs, there's possibility to display zeros (but I don't remeber
exact letter)
Thanks for the reply, however, that function call
doesn't zero-substitute (i.e., 07 for 7, 03 for
3, etc.); that's why I've added this:
--
Adam Rambousek
email: [EMAIL PROTECTED] ICQ: 47596279
mysql_query() is universal for any SQL query
so mysql_query(INSERT INTO table () values ()) is what you're looking for
I was looking for the command something like mysql_insert or something, just
found dba_insert() is this it ?!?
--
Adam Rambousek
email: [EMAIL PROTECTED] ICQ: 47596279
Is there any function that will allow me to check to see if a link is valid?
From what I heard, the acronym originally stood for Personal Home Page, but
it kind of changed (unofficially?) to Hypertext Preprocessor.
I could be wrong
-Original Message-
From: Martín Marqués [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 3:08 PM
To: John Meyer; [EMAIL
types (gif, bmp, png, etc) into
a jpeg?
Any help will be very appreciated, thanks.
-Adam Plocher
I'm trying to use the system() function to execute a shell command, but the
shell command that needs to be executed, needs to be executed as a different
user (not the default 'nobody' user). Can somebody show me what I need to
do, to accomplish this.
Thanks
-Adam
that user. Does anybody know how I can do this? I installed
the suexec module for apache, and either it doesn't work the way I need it
to, or I just misconfigured it.
I'm baffled, any information would be greatly appreciated.
Thanks
-Adam
I want to build a personal page that will have functionality to change many
types of image formats into a jpg. Ie, convert gif to jpg, png to jpg, even
bmp to jpg. Assuming this is possible, does anybody have any sample code I
can take a look at?
Thanks much.
Adam Plocher
If ignorance
This should do what you want...
$dir = dir1/dir2/dir3/dir4;
$dir_array = explode(/,$dir);
$full_path = ;
foreach($dir_array as $current_dir) {
$full_path .= /$current_dir;
if (!is_dir($DOCUMENT_ROOT . $full_path)) {
mkdir($DOCUMENT_ROOT./ .$full_path,0700);
}
}
adamw
-
DELETE FROM table_name;
adamw
- Original Message -
From: Wilbert Enserink [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 22, 2001 1:17 PM
Subject: [PHP] SQL statement for clearing a table
Hi all,
anybody knows the mysql statement for clearing the contents of a table and
.
Adam
--
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]
check the HTTP_REFERER to see if
the user came from my own site, but that can be spoofed. I can log and check
the users IP address, but that can't be relied upon.
Is there any reliable way around this? Am I missing something obvious?
Cheers,
adam
--
PHP General Mailing List (http://www.php.net
with HTTP. Maybe a better question is: What is the ideal
model for a PHP4 sessions authentication scheme?
Thanks anyway,
adam
--
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
it's not someone spoofing.
Granted, it's not foolproof, but it'd be pretty hard to spoof, right?
Anyway, I'd be interested in your opinion, and I'd also be interested in
whether you're coming to Dublin for ApacheCon Europe? I hope to meet you
there if you are.
adam
--
PHP General Mailing List
Hat, sorry :).
Anyway, thanks Richard,
adam
--
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]
wrong here, I'm genuinely interested
in your opinion. If you think I'm wrong, tell me, I'd prefer to know. And if
you have a better solution for the problem I'm facing, I'd love to hear about
it. I just have a blank wall in front of me and I can't find my sledge. :)
adam
--
PHP General Mailing
, or would be willing to relocate to the Los Angeles
area (we are located in Glendale).
Thanks a lot,
Adam Powell
--
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
$reqmonth = ${explode(-,$row[5])}[1];
Is there anyway I can get that to work without having to use multiple lines
of code?
e is flaky. =)
On Thu, 8 Feb 2001, Matias Banzas wrote:
Is there any way to do this?? i mean.. test the connection speed of a client
machine???
--
____
Adam Knight [EMAIL PROTECTED]
AIM:
dickmeiss Mon Feb 19 09:06:39 2001 EDT
Modified files:
/php4/ext/yaz php_yaz.c
Log:
Bug fix: number of records in yaz_range wrongly set to zero.
Index: php4/ext/yaz/php_yaz.c
diff -u php4/ext/yaz/php_yaz.c:1.10 php4/ext/yaz/php_yaz.c:1.11
---
dickmeiss Tue Feb 20 03:40:36 2001 EDT
Modified files:
/php4/ext/yaz php_yaz.c
Log:
Yet another bug fix regarding present.
Index: php4/ext/yaz/php_yaz.c
diff -u php4/ext/yaz/php_yaz.c:1.11 php4/ext/yaz/php_yaz.c:1.12
---
Could somebody show me an example of a script that will find out the date of
each upcoming Friday, thanks.
Adam Plocher
--
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
help you can give.
Thank you
Adam
--
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]
isset actually sees if the variable exists, and has been assigned a value
(where if is obviously checking for boolean truthfulness). Thus...
$a = 0;
if (isSet($a))
print "A is set"; //This line will execute
if (isSet($b))
print "B is set"; //This line never will, as B has not been set to
I've got an html form, and I have PHP parse the message variables for
special characters so when I concatenate all off the message variables
together, if a person has put in a ' or other special character, it
won't break it when it used in mail($to, MMH Suggestion, $message,
$headers); below
nevermind, I see I had a mistake in my mysql statement, I should of been:
select DATE_FORMAT(testdate, '%m\-%d\-%Y') as date_column from testtable;
please disregard.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I ran the commands:
CREATE TABLE testtable ( testdate DATETIME);
INSERT INTO testtable (testdate) VALUES (now());
and then I want to select it but format it to show the date only (not
the time, and yes I know I could use DATE instead of DATETIME, but there
may be cases where I need to show
I'm going to be inserting data from a PHP form into a mysql field. The
data could contain special characters like ' \ /, etc. How do I
handle that? just $data = addslashes(htmlspecialchars($data)); before
the insert query? because later on the data will be read back from the
mysql db
Thanks for all the replies everyone. I have a question on
mysql_real_escape_string(). The PHP example page shows:
$query = sprintf(SELECT * FROM users WHERE user='%s' AND password='%s',
mysql_real_escape_string($user),
mysql_real_escape_string($password));
and I
I'm running PHP 5.2.4 and getting the error:
*Warning*: Wrong parameter count for imap_open() in
*/var/www/sites/intra-test/contract/login.php* on line *9
*My code is:
$mbox =
imap_open(\{mail.mdah.state.ms.us/imap/novalidate-cert:143}INBOX\,
\.$_POST[username].\, \.$_POST[password].\); //
I'm getting the following error and I don't see whats wrong with my
line. Any ideas?
*Fatal error*: Function name must be a string in
*/var/www/sites/intra-test/contract/perform.php* on line *57*
and my snippet of code is:
if ( $_POST[perform] == View Contracts )
{
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which stores it in the mysql format of -MM-DD. However, I need the
output of my select statement to show it in MM-DD- format. I can
select
nevermind, figure it out, had to take the ' ' away from
contract.length_start :)
Adam Williams wrote:
I have a field in mysql as shown by describe contract;
| length_start | date| YES | | NULL
||
Which stores it in the mysql format of -MM
In my form, I am parsing all the text inputs through
mysql_real_escape_string() before inserting the data. however, when I
look at the SQL query in PHP, when I type the word blah's to my text box
variable, and then insert it into mysql after being ran through
mysql_real_escape_string(), it
I'm having users enter dates in MM-DD- format. is there a way to
check if what they have entered is invalid (like if they enter 1-15-2008
instead of 01-15-2008) ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, I think I have it:
$dateexplode = explode(-, $_POST[date_entered]);
if (!preg_match(/^(\d{2})$/, $dateexplode[0],$data1) ||
!preg_match(/^(\d{2})$/, $dateexplode[1],$data2) ||
!preg_match(/^(\d{4})$/, $dateexplode[2],$data3))
{
die (you have entered an invalid date);
Andrew Ballard wrote:
Just curious why you won't take 1-15-2008. Once you validate it, you
can always assign it to a variable as either a timestamp or a DateTime
object and then format it however you want when you display it, send
it to a database, or whatever you are doing with the date.
Andrew Ballard wrote:
All the more reason I would turn it into a timestamp or DateTime
object in PHP first. That will prevent trying to insert something like
what I used above. Then I would get rid of the MySQL STR_TO_DATE
function in the $mysqli_insert_sql value just replace it with
something
http://search.mnogo.ru
Jason Pruim wrote:
Hi Everyone! :)
Just a quick question, I've done some googling but haven't been able
to find what I need... I am looking at doing a search function for
someone's website, the website is just static HTML files, and she
doesn't want to redo the entire
into usage within a high usage web
app. =)
Adam
Daniel Brown wrote:
On 6/26/07, Marius Toma [EMAIL PROTECTED] wrote:
I can not believe how stupid I can be sometime.
I was trying to create a file, but a file with the same name already
existed on the server - and I did not have the write
... if you really couldn't write it as dynamic PHP -- you could also
save it in a database.
Edward Vermillion wrote:
On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote:
On Wednesday 27 June 2007 03:53, Daniel Brown wrote:
On 6/26/07, Al Rider [EMAIL PROTECTED] wrote:
I think most
/function.str-replace.php
Adam
kvigor wrote:
Need to remove all spaces from Array Values... And this doesn't work.
This is similar info that's within array values: $someArray[0] = PHP is
awesome;s/b PHPisawesome
This is similar info that's within array values: $someArray[1] = The Toy
Boat
201 - 300 of 1386 matches
Mail list logo