I've recently been learning about cookies myself, and had the same problem
with vs. 0 (PHP FastEasy Web Development showed the in their book).
I know that setting the expire parameter to 0 is supposed to kill the cookie
when browser is closed, but I can't seem to make that happen. I've
something automatic.
These xls sheets will be updated at random, and I will need the most current
version avalible online.
Any comments would be welcome.
-C-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$var = str_replace(\n, br, $var);
sometimes \r\n , but Im not sure... :)
c
[EMAIL PROTECTED] (Manisha) wrote in news:[EMAIL PROTECTED]:
I am having the text fetched from mySQL database. I converted newline to
br with nl2br function.
I need to detect br and need to put 'dot' in front
hi,
I can make an URL like www.some.com/index.php/value1/value2/ on Linux+Apache
but I can't do it on my win2k+apache 1.3.22 machine.
Why? How could I do it?
(I want to get values with explode ('/',$PATH_INFO) )
Thanx a lot!
c
--
PHP General Mailing List (http://www.php.net
Prior to 4.0.6 it worked fine, however, now when I try:
$result = call_user_func(foo, $bar);
function foo( $bar ) {
$bar .= 'foobar';
return 1;
}
I get this:
Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference,
Hello,
I am trying to process POST data sent from a device. Here is a capture of what is
being sent from the device (with the file data replaced by File Contents):
POST file.php HTTP/1.1
Host: ---.---.---.---
Connection: Keep-Alive
Content-Type: multipart/form-data;
Hi,
I'm trying to insert binary data into a MS SQL Server
database. Text files are added fine, but binary files
with null bytes are not. The field I'm adding the
binary data to is image type. I get an error about
unclosed quotation marks at the null byte, but I've
replaced ' with ''.
I tried
Hi,
I am running PHP 4.3.4 on Windows 2000 server with
Apache 2.0.48. I am using COM objects in some of the
pages. My question is, how do I release them when I'm
done? Right now, I'm unsetting them, but after a few
days I get COM+ Errors in the Event Viewer:
The COM+ Services DLL (comsvcs.dll)
In electronic format that I can have? It is included in the book 'MySQL' by Paul
DuBois ? I have a parse error in my script that I simply cannot find (after many, many
tries).
TIA
Regards
Mike C
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
I have not been able to find an electronic copy of the above script that is in the
book 'MySQL'.
Is anyone prepared to help me out. My, self-typed version contains a parse error that
I cannot find?
Regards
Mike C
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
It was suggested I send this to the list. The 'samp_db.inc' file follows this. The
parse error is:
Parse error: parse error in /edit_member.php on line 11
#edit_member.php
?php
include (/users/mike/documents/include_files/samp_db.inc);
define (initial_page, 0);
define (display_entry, 1);
Hi Janet,
The problem is on this line.
print (INPUT TYPE=\submit\ NAME=\button\ value=\ Submit\\n);
There is a space between the \ and the before Submit.
Yes indeed :-(, how could I miss that
Your wonderful :-) Thank you (and others) so much.
Regards
Mike C
--
--
PHP General
to restrict the size of the file upload to approx 300kb
I found a good example at http://www.weberdev.com but it's a little too cut-down for
me!
Thanks
Mike C
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Is there an easy way to upload a CSV file into a MySQL table? Is there also
a way to export the MySQL file into a CSV file? I would like to make a form
using PHP to do import a CSV file into an existing table. Any advise would
be appreciated.
Ben
--
PHP General Mailing List
Tho, when you think about it, most PHP developers COULD use a dating
service. :)
Seriously tho, this is a good idea. Thanks for the info Jay.
~ Chris
D.O.D
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 12:24 PM
To: [EMAIL PROTECTED];
I know that people have asked about this before, so let me appologize ahead
of time but I need quick help. I have a url which looks like
http://www.domain.com/remove/index.php?id=test. I use the echo function ?
echo $id; ? to show the word test. What I want to do is send this variable
along
to just specify a constant and it will work, but what ever
number i specify, that is the amount of data that is read.
how do i retrieve the content type?
thanks for any help...
mike c
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Ilya V. Lazarev [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi !
Has anyone tried zip_open in PHP 4.0.6 ?
It says me that no such function. I've looked at php src and found
zzip_open(), but this one expect more than 1 arg ( supposedly 2 ).
File/path name
I would say this comes in a close second as the most oft-asked question
on
php-general, with the first, of course, being What's a good text editor
for
PHP?
hehehehe... Thanks
Chrisrtian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hello :c)
im looking at some code i found on the net and
i cant find any info on this... it's used like:
$this-mode = $mode;
I have looked in the online help doc but it did'nt
return anything, any one know??
--
Thanks
Christian Charette
www.charetx2.com
--
PHP General Mailing List (http
I am new to PHP having converted from ASP (don't beat me up, it just took me
a while to see the light)
MY QUESTION: What in PHP acts like the 'server.mappath' function in ASP? It
gives you the ability to determain the root of the web site and use it as a
reference.
MY PROBLEM: I have been able
Does anyone know of a PHP quick reference or documentation system for Emacs?
I have been playing around with the HTML manual, trying to get it to load
into a window based on the current function, but I'm not having much
success. Any help would be greatly appreciated!
Thank you,
Phil.
--
PHP
Hello, I just finished making a PHP contact form for my webite, and I can
run through the whole thing, and get no errors, but it doesnt email me the
form contents.
*Here is th actual form page:*
?php include(../header.php); ?
td bgcolor=#BFC4CBbfont color=#33Contact
Me/font/b/td
Gotta a question whose answer should be really obvious to me but, for
some reason, is just eluding me.
Which encodings can PHP handle for source files? I've been using
iso-8859-1 but what about utf-8?
Thanks,
C Drozdowski
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
I'm trying to build a CLI/CGI binary of PHP5 with MySQLi under Mac OS
X. When I invoke configure, I get the following error message:
checking whether to enable embedded MySQLi support... no
mysql_config not found
configure: error: Please reinstall the mysql distribution
Now, mysql (4.1.22) is
In a setup like you've got with a SimpleXML object, where object
properties aren't necessarily declared in the class definition but are
added on an ad hoc basis, is there any performance hit?
If not, other than the ability to mark properties as private, is there
any other particular advantage to
This might be a dumb question with an obvious answer somewhere, but
I'm wondering if it's possible to build php extensions as shared
objects that plug into the PHP binary much like an apache shared
module plugs into apache.
Is PECL close to this?
Sorry if this is obvious. Searches on the topic
On Thu, May 29, 2008 at 7:11 PM, Chris [EMAIL PROTECTED] wrote:
See http://www.php.net/dl (though a lot of hosts disable this
functionality for security reasons).
Fortunately, I'll have full control of the hosting environment in the
context this matters. :)
dl is definitely interesting, but
Just curious if anyone knows the rough timeline for PHP 5.3.
Also curious if anyone knows whether anon functions/closures or a
shorter JSON-ish array syntax are being considered for inclusion. I
know there were two patches announced in December/January:
I just switched over an app from PHP 4 to PHP 5, and one of the weird
things I'm noticing initially is that some of the html output seems to
be html entitized. For example, a link that was showing up in html
output as:
a href=http://metaphilm.com/philm.php?id=29_0_2_0;Is Tyler Durden
Hobbes?/a
Somehow .. I feel this isn't PHP Related.
On Sat, Aug 2, 2008 at 11:08 AM, Robert Cummings [EMAIL PROTECTED]wrote:
On Sat, 2008-08-02 at 14:01 -0400, Daniel Brown wrote:
On Sat, Aug 2, 2008 at 1:58 PM, Robert Cummings [EMAIL PROTECTED]
wrote:
Sorry, I hired a profession for the chair
is it possible because you can assign $func = foo and call $func() and it
will call foo(), maybe that its creating an endless loop of assigning the
function to itself?
On Sun, Aug 3, 2008 at 11:17 AM, brian [EMAIL PROTECTED] wrote:
Waynn Lue wrote:
I've been running the script below:
?php
Is the a way to have an array, or use __get() to provide different data
if you are echoing a variable, rather than if you are using it in a 'if'
statement?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I recently downgraded from a build of 5.3 to 5.2.6 on OS X, and had a
bit of time figuring out what was going on when make install didn't
seem to actually copy the CLI binary and Apache SO to their target
spots.
Has anyone else seen this problem?
What category would a bug report for this be
On Tue, Aug 19, 2008 at 9:43 AM, Jason Pruim [EMAIL PROTECTED] wrote:
Is there a particular reason you are downgrading?
I'm pretty happy with some of the features in 5.3, but have been asked
to work with a codebase that turned out to have some issues under 5.3
that didn't show up under 5.2.x.
()
[a href='function.gethostbyaddr'function.gethostbyaddr/a]:
Address is not in a.b.c.d form in C:\www\tests\saved\host.php on line 7
Google has not been my friend in this matter...
Any insight?
Thanks,
Glen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On 11/22/2008 02:17 AM, Lars Torben Wilson wrote:
2008/11/21 Glen Carreras[EMAIL PROTECTED]:
On 11/22/2008 12:10 AM, Lars Torben Wilson wrote:
Hi Glen,
Works for me. IPv6 support was added in 2001. You didn't say what
version of PHP you are having this problem with, so it's hard to say
why
Hello
Could I get a recommendation on some good starting PHP books?
Thanks
--
Later Days:)
Michael Clesceri
""Perfection (in design) is achieved not when there is nothing more to add, but rather
when there is nothing more to take away."
Forgive me for asking again
What is CVS?
I am really new to PHP and just want to make sure I am looking at the right list
Thanks for your information in advance
--
Later Days:)
Michael Clesceri
""Perfection (in design) is achieved not when there is nothing more to add, but rather
when there
it
supports read-only access to filepro, but it looks like I'll need the
php_filepro.dll.
I'm running Win2K Pro and Apache
Any help in locating the module would be greatly appreciated.
Kent C.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
I am trying to add 5 business/week days to today's date. Does anyone
know a good way of how to do it?
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've got a problem with quote characters and building XPath query
expressions (PHP 5.0.3). What do I need to do to get them to work? I've
tried various encoding functions but cannot figure it out.
Given this expression, if $id contains one or more double quotes, an
error is thrown.
$query =
. ']';
Variable Assignment:
$name = utf_encode('Home');
Using the expression throws the Invalid Predicate Error.
On 2005-03-16 12:06:24 -0500, [EMAIL PROTECTED] (Jason Barnett) said:
C Drozdowski wrote:
...
$query = '//book/chapter' . '[EMAIL PROTECTED]:id=' . $id . ']';
First of all check the XPath
I have been doing some testing and need confirmation that the following
is correct.
You have a DOMDocument that potentially contains UTF-8 encoded data (it
might not however).
You want to search it via DOMXpath-query() using a value that comes
from a $_POST value.
If the page that posts the
Hey,
I used a single line of code (ver batim) from a pear class in my own
code. I try to always be honest and not steal code but this single line
does exactly what I need. The code is for a NPO website and will never
be sold or anything like that.
How should I give credit for the line of code
There is a pear package that does this: XML_sql2xml.
It's at:
http://pear.php.net/package-info.php?pacid=18
There is more info at:
http://php.chregu.tv/sql2xml/
It's pretty flexible. But not so complicated that you cannot read
through the code to figure out what's going on.
--
PHP General
I'd like to be able to timeout a user if they are inactive for X
minutes. Say, if they walk away from the browser leaving sensivive data
in plain view.
Is there any reason that using the header() function as below wouldn't
be a reliable way to do this (albeit user-unfriendly)? It works for
me
Howdy,
I'd like to access some of the private members of my classes as
read-only properties without resorting to function calls to access
them. (e.g. $testClass-privateMember instead of
$testClass-privateMember(), etc)
Based on my research and testing, using the __get and __set overloading
Hi,
I would appreciate help on the following.
I have been looking up ways to implement a cancel button with php. Basically, I
have a mypictures.php file. There are select statements, grep statements, and
a call to executables. I don't understand why there isn't that much around
about this
making some
huge request then going away for a couple of days.
I don't want to restrict the requests of a user however how can I stop them
from monopolizing the server?
thanks!
Chris W. Parker [EMAIL PROTECTED] wrote:
newbie c
on Tuesday, April 05, 2005 11:03 AM said:
Are these ideas
I need to be able to store UTF-8 characters from a form into a MySQL
table. But I need to support pre-UTF-8 MySQL ( 4.1).
So I'm converting UTF-8 characters into their numeric entities (e.g. ñ
= #241;).
The problem is that if the user enters a character that gets converted
to an entity, the
I'm using Exceptions and variously handling them in try..catch blocks
or defaulting to my set_exception_handler handler.
When I create an Exception I'd like to prepend the class of the
Exception to the message. Can this be done with code or do I have to
hard code the name of the Exception class
I am struggling with the code below. I keep getting the error Couldn't
execute query. Please help me out, let me know where I am going wrong.
?
$db_name = db1;
$table_name = user;
$connection = @mysql_connect(localhost, user, password) or
die(Couldn't connect.);
$db =
9:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Struggling with code
On Thursday 05 December 2002 13:24, Ben C. wrote:
I am struggling with the code below. I keep getting the error Couldn't
execute query. Please help me out, let me know where I am going wrong.
?
$db_name = db1
:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 12:07 AM
To: Ben C.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Struggling with code
please post lines 20 and 21, get rid of all @, the comma after url='$url'
and show your most recent code. Others have posted and given you good
advice, you should
Hugh, I took away the comma from $url and it works.
Everyone, Thanks for your help!
Ben
-Original Message-
From: Ben C. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 05, 2002 12:15 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Struggling with code
I have incorporated most
Does anyone know where I can get a good training course in both PHP and MySQL that
would make me proficient? Or does anyone know of a good tutor? I would prefer it to
be in California or on the west coast. Please provide your comments.
--
PHP General Mailing List (http://www.php.net/)
To
I am using the query below to edit a record. I want to edit the field which has a list
of states in a dropdown box. I want to have the state that is in the selected field
shown as the selected state. How would I do this?
Query
-
?
$sql = SELECT *
FROM
Hi,
I'm new to php (ok new, try 3 days ;), althought, I'm finding it fun, I
'm trying to think of a project to do, to get me more into it.
And after having a discussion with a friend and also setting up several
Mailman mailing lists for people that want to compose HTML mails and
post them as
I tried to use the below but it does not work. Please help!
-Original Message-
From: Michael Sweeney [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 10:29 AM
To: Ben C.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Select value for driopdown box
Assuming that you know which
How do I add a column of numbers generated through a MySQL query without
using the SQL SUM() function? I have tried looking through the different
documentation. I am probably missing something.
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Yes. From there I want to add all the 'a' values together using PHP.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Monday, August 04, 2003 12:40 AM
To: Ben C.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Addin a column of numbers not using MySQL
Do you mean
I tried the code you provided below but it returned 0. Is there another way I can do
it?
From: Jason Wong [EMAIL PROTECTED]
Date: 2003/08/04 Mon AM 04:25:13 EDT
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Addin a column of numbers not using MySQL
On Monday 04 August 2003 15:59, Ben C
I tried doing as you said and it returned 0. Is there another way to add up the
column?
From: Jason Wong [EMAIL PROTECTED]
Date: 2003/08/04 Mon AM 04:25:13 EDT
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Addin a column of numbers not using MySQL
On Monday 04 August 2003 15:59, Ben C
-
What I want to do from here is add up all the 'paid' figures.
From: Jason Wong [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 01:55:40 EDT
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Addin a column of numbers not using MySQL
On Tuesday 05 August 2003 01:21, Ben C. wrote:
I tried
When I echo the select state the id is the first of many ids that need to be added
together. It is still not summing the total value of the records.
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:09:36 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re
C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL
[snip]
while ($row = mysql_fetch_array($result_2)) {
$paid = $row['paid'];
}
CODE End-
What I want to do from here is add up all the 'paid' figures.
[/snip
Unsure. How would I do that?
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:36:15 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL
[snip]
When I echo the select state the id is the first of many ids
When I echo the select state the id is the first of many ids that need to be added
together. It is still not summing the total value of the records.
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:09:36 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re
When I echo the select state the id is the first of many ids that need to be added
together. It is still not summing the total value of the records.
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:09:36 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re
Jay,
It still returns '0'. I think we are missing something. Any other ideas? Anyone
else have any ideas?
Ben
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 03:10:15 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Addin a column of numbers
I want to do now is add up the values 1-5 and get 800.00.
Does this help clarify?
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:57:17 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL
[snip
Jay, No results are returned. It is blank.
From: Jay Blanchard [EMAIL PROTECTED]
Date: 2003/08/04 Mon PM 04:57:17 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: Re: [PHP] Addin a column of numbers not using MySQL
[snip]
Unsure. How would I do that?
[/snip]
Ben I
Yes, I know. However, the while() loop should generate all the invoice in a
list.
-Original Message-
From: Giz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 12:03 AM
To: 'Ben C.'; [EMAIL PROTECTED]
Subject: RE: [PHP] Sum a column of values from a MySQL query
I think you're
I am trying to sum a query of values from a MySQL table. The code I am
using is:
---BEGIN CODE #1--
$sql_2 = SELECT SUM(partpaidamount) as partpaid
FROM $tb_name
WHERE invoiceid = \$invoiceid\
;
$result_2 = @mysql_query($sql_2,$connection) or
I am trying to sum a query of values from a MySQL table. The code I am
using is:
---BEGIN CODE #1--
$sql_2 = SELECT SUM(partpaidamount) as partpaid
FROM $tb_name
WHERE invoiceid = \$invoiceid\
;
$result_2 = @mysql_query($sql_2,$connection) or
I have a quick simple question. I am using PHP 4.2.3 on Linux. I am trying to turn
register_globals from off to on. Is all that I need to do change it from off to on in
the php.ini file? Do you I need to reboot to have the changes go into effect? Sorry
for a simple question but I am new at
Is the change in the php.ini file the only thing that I need to change to turn on
register_globals?
From: Jonatan Pugliese. [EMAIL PROTECTED]
Date: 2003/08/15 Fri PM 01:18:01 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] PHP.ini file and register_globals
never
Is the change in the php.ini file the only thing that I need to change to turn on
register_globals?
From: Jonatan Pugliese. [EMAIL PROTECTED]
Date: 2003/08/15 Fri PM 01:18:01 EDT
To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] PHP.ini file and register_globals
never
I have recently had php installed on my server with sendmail. The server is behind a
firewall and SMTP is open on the firewall. However, when I execute the mail(), it
appears to have sent the mail, but I never receive it. I am not getting any error
messages. Has anyone ever run into this
This is not a PHP question but didn't know where else to ask it. I am
uploading files via SSH Secure File Transfer and am getting the following
error message.
--error message start--
Failed to scan directories. Error 6: C:/Documents and Settings/My
Documents/My Webs/dynamic/1.php: No such file
I am having problems using the following functions; trim(), ucwords(), and
others. Do I have a setting wrong?
Ben
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would also be interested in seeing the code as well. If you could also
e-mail it to me, I would be very appreciative.
Ben
-Original Message-
From: Jason Sheets [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 4:56 PM
To: Wouter van Vliet
Cc: PHP General
Subject: Re: [PHP]
I have tested a lot of the hosting providers and the best I have found is
Valueweb. Lots of bandwidth (500gb), unlimited domain hosting, and managed
ensim control panel. I have been with them a couple months and everything
seems good.
-Original Message-
From: Mike Morton [mailto:[EMAIL
Hi everyone,
I tried to connect to Active Directory (AD) by using php. I heard that it
could use LDAP to achieve it. I have written some code on my machine
(Win2000) and try to connect to AD. It looks like the it could connect,
bind, and even search (I determined base on the line I placed).
this? I
really confuse the login format of this and so does objectClass stuff for
filter. Could you give me an idea? Do you know any web site that talk about
this ? Thank you very much!
Vince
Sven [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi vince,
Vince C wrote:
?php
$ldaphost
I have a java server running to handle xml requests and send back a
response to the sender.
It runs on one port for tcp and another for udp.
I got the udp version working fine, but I am having problems with the
tcp version.
Watching the debug output on the java server, I can see that it is
http://www.php.net/readdir
Original Message
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED],
Subject: RE: [PHP] nlist
Date: Thu, 10 Jul 2003 16:17:30 -0700
Hi all,
Is there a local filesystem-based function comparable to the
ftp-based
'nlist' that lists files in a directory?
Johnny
Hello All,
I just want to survey the list and see what kind of solutions people are using
for the storage and reuse of SQL queries.
Right now I am working on an application that has native SQL queries as well
as custom queries that can be added by developers as they build on the
framework.
Have a look at:
http://www.php.net/addslashes
Quoting Aaron Axelsen [EMAIL PROTECTED]:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I have a php script set up for a user to upload a word document,
which is then coverted to html form, which I would then lke to store
in a database.
I'm trying to update a field which contains a $USD figure. But when I update it as
200,000 it become 200. I need to take out the comma. Is using ereg_replace function
the best way of doing so? What do you think.
Thanks,
Ben
--
PHP General Mailing List (http://www.php.net/)
To
There are a lot of artlicles on this but I need a simple solution. I need
to subtract two dates as follows:
$date = date(Y-m-d);
$date1 = 2003-03-03;
$differencedate = ($date - $date1);
echo $differencedate;
When I do this I get 0. Please help!
Thanks, Justin. It works.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 8:27 PM
To: Ben C.; [EMAIL PROTECTED]
Subject: Re: [PHP] Subtracting two dates
?
$otherDate = 2003-11-15; // -mm-dd format
$otherDateStamp
Is there a way not to round the number but get a whole number? I don't
want to have 1.5 days show as 2 days because it really has not gone into day
2?
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 8:27 PM
To: Ben C.; [EMAIL PROTECTED
I have a subscription service and am trying to not allow the buyer to
proceed purchasing another subscription if one of their subscriptions is
over 29 days past due in their payment. I am trying to query each invoice
and checking to see if it is past due more than 29 days, if it is I want a
How do I easily check to see if a MySQL formatted date is valid such as if a
user enters
2003/02/28 would return true
2003/02/31 would return false
I have check the manual and other resources but can't come up with anything.
What I want to do is have an IF statement which the results would create a
variable. The IF statement is:
IF ($car == BMW AND $model == 530i) echo (Price is 35,000 dollars);
I want the Price is 35,000 dollars to be a variable. Please help with how
to do this.
Thanks,
Ben
--
PHP General
John, It works...thanks
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 8:34 PM
To: 'Ben C.'; [EMAIL PROTECTED]
Subject: RE: [PHP] Creating a variable out of a IF statement
What I want to do is have an IF statement which the results
I want to create a table in PHP with data from a MySQL database table. Can
someone please help with a sample script. I know this is probably easy but
I need quick help. I searched the archives and couldn't find something this
simple.
Please help.
I am not sure if that is what they want. I will try it and get back. Good suggestion.
From: Adam Voigt [EMAIL PROTECTED]
Date: 2002/11/05 Tue PM 12:33:00 EST
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Creating SSL Connection to Accept Credit Cards
Like:
$f =
1 - 100 of 619 matches
Mail list logo