activity within the PHP
developer community.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 8/2/07 11:45 AM, Tijnema wrote:
> On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote:
>> So, what are we doing wrong with chmod() that is causing us to get the
>> wrong results? Keep in mind that we are running the PHP script as the
>> same user who owns the directory.
&
On 8/2/07 10:57 AM, Daniel Brown wrote:
> On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote:
>> PHP (doesn't work):
>> chmod('/path/to/dir', 02775);
>>
>> We've tested the PHP code on files, and it works, but it doesn't work on
>> dire
On 8/2/07 10:57 AM, Daniel Brown wrote:
> On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote:
>> PHP (doesn't work):
>> chmod('/path/to/dir', 02775);
>>
>> We've tested the PHP code on files, and it works, but it doesn't work on
>> dire
On 8/2/07 10:57 AM, Daniel Brown wrote:
> On 8/2/07, Ben Ramsey <[EMAIL PROTECTED]> wrote:
>> PHP (doesn't work):
>> chmod('/path/to/dir', 02775);
>>
>> We've tested the PHP code on files, and it works, but it doesn't work on
>> dire
27;/path/to/dir', 02775);
We've tested the PHP code on files, and it works, but it doesn't work on
directories.
Our current umask is 0002. We're using PHP 5.2.2 on Linux
2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 i686 i386
GNU/Linux.
--
Ben Ra
olor in my browser! What craziness! ;-)
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/www.php.net/simplexml_load_file to load XML from a URL.
Do I get the $35 anyway for the consultation? ;-)
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
was perfect for the job.
I can offer a few MBs for everyone that wants to get learning PHP.
megabytes?
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and line. Why else does PHP have a CLI?
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to include a file one directory
above it.
Ben Ramsey wrote:
On 10/4/06 8:32 PM, Deckard wrote:
Hi,
I have this line of code:
include_once('../config.inc.php');
I'm 100% sure that the file config.inc.php is a directory up.
config.inc.php is in /var/www/html
and the file tha
#x27;);
If config.inc.php is the correct file you want to include and you're
trying to include config.inc, then it obviously can't find it because it
doesn't exist. :-)
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ars in the file the string \n
How can i make the line break ?
Use double quotation marks instead of single quotation marks:
"\n"
See here for why:
http://us3.php.net/manual/en/language.types.string.php#language.types.string.syntax.double
--
Ben Ramsey
http://benramsey.com/
--
PHP
good thing is that you at least know it comes
from an HTTP request, so you know not to trust anything from it.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
COOKIE because you can't tell the scope of
the data.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) always filter (validate) the input.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2)
always check that the input received is input expected (filter the input).
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
background so that i can process user input while not interrupting the
protocol.
Have you looked at pcntl_fork()?
http://www.php.net/pcntl-fork
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
db->setFetchMode(DB_FETCHMODE_ASSOC);
$data =& $db->getAll($sSQL);
memcache_set($MEMCACHE_STR, MD5($sSQL), $data, 0, 10);
Now, your result set is stored properly on the memcache server.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;s suggestion of
using an output array that is named according to where the data is
going, so $url, $sql, $html, etc. But, with that in mind, it wouldn't be
too hard to use $_OCLEAN['url'], $_OCLEAN['sql'], and $_OCLEAN['html']
as arrays within the $_OCLEAN arr
he purpose of
the clean array altogether. The point is that the developer should be
able to trust the data in $clean.
If PHP had a taint mode and didn't have register_globals, then we'd be
making some progress.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
In the meantime, check out PEAR::Mail, which includes Mail_RFC822 that
can be used to validate e-mail addresses. Also, if your PHP is compiled
--with-imap, then you can use imap_rfc822_parse_adrlist() to validate
e-mail addresses.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing
ur needs. Then, it ensures that data
sent to the database in the SQL statement is always escaped so that it
doesn't try to do something it shouldn't.
This, of course, assumes you're using MySQL, but there are other
escaping functions for other databases. Just look in the PHP manual.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11/9/05 2:15 PM, Stewart Priest wrote:
Comment out the mysql_query() line and just echo $add_to_db. Then take
the echoed line and try to run it against the database. Does it still
work, then?
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To
Try here for your "proof":
http://public.yahoo.com/~radwin/talks/php-at-yahoo-zend2005.pdf
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t means, and if this is a route you want to
take, I would suggest looking at PEAR::HTTP_Request, since it provides
an easy to use API for this. I, however, don't think you'll need to do
this (at least it doesn't sound like something that's necessary given
what I know about you
g the order and
pass the order number through the query string (since it's probably not
very sensitive).
Does this answer your question?
And, yeah, denying used order numbers would be a good idea.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11/9/05 10:03 AM, Paul Williams wrote:
So would it be acceptable if I used curly braces on all variables
(whether superglobals or not) in a here document?
Yes.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
have also done it this way:
$_SERVER[PHP_SELF]
EOF;
?>
Personally, I put curly braces around all interpolated variables because
it makes it easier for me to read and see the variables, but this is
really up to user preference.
--
Ben Ramsey
http://benramsey.com/
--
PHP General
On 11/9/05 9:45 AM, Paul Williams wrote:
$_SERVER['PHP_SELF']
EOF;
?>
Try it with curly braces:
{$_SERVER['PHP_SELF']}
EOF;
?>
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
), it won't allow others
to use it to log in because it will have already expired.
This alleviates the exposure issues I was discussing.
Hope this helps.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11/8/05 11:52 PM, Ben Ramsey wrote:
I know this is off-topic for this thread, but just as I see isset()
misused (as in this case), I often see empty() misused. For example,
when using empty(), the following all return TRUE:
On second thought, "misused" is the wrong wo
en you need to consider why you're even
getting a NULL value? You should filter your variables before you use
them--even variables coming from $_SERVER.
Remember, $_SERVER variables can be overwritten:
$_SERVER['SERVER_NAME'] = 'Howdy Doody';
echo $_SERVER['SERVE
I imagine.
So, I say all that to say this: I just don't think it's a good practice
to share sessions across two different domains. If you must share
profile information, then (in my opinion) require authentication and a
separate session on the second domain. Otherwise, use a subdomain t
.
You can also use curly braces:
"From: {$_POST["from"]}\r\n"
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ET that floats all over the 'net.
:-)
Indeed, neither are secure, but GET increases the risk of exposure.
[Hi Ben!]
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ase. Thus, users can
log into each individual host and access the same profile. So, you'll
need to authenticate the user when they visit a new host. This may be a
decrease in usability, but it's an increase in security.
For more information about sessions, read the manual:
ht
://wvware.sourceforge.net/
Word2x: http://word2x.sourceforge.net/
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The following message is from a co-worker. I'm passing it along as a
favor. Any help would be greatly appreciated since we're both somewhat
stuck with no clue how to proceed with this.
Thanks,
Ben Ramsey
I'm having a major problem with my PHP scripts getting stuck on one of
Please always reply to the list so that others can benefit from the
exchange. As it happens, I'm not exactly very knowledgeable about
character sets, so someone on the list may be able to offer more help
with regard to the problem you're experiencing.
-Ben
areguera wrote:
On 8/
not htmlentities().
as previously said in this thread, the problem is on quoting and maybe
on converting the values to entities, to prevent some quote break the
sql structure.
You don't need to convert the values to HTML entities when saving to a
database. That's not going
will point you to
George Schlossnagle's _Advanced PHP Programming_ book. Take a look at
pages 564 through 568. He talks about writing a custom session handler in C.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
then executed at a later time.
When you execute it, you are executing the compiled code that the
machine natively understands.
PHP, on the otherhand, is not compiled and has to be interpreted by the
PHP engine each time it is run. This is, naturally, going to make it
slower tha
o a database, you should never have to use
the stripslashes() function. Using stripslashes() will remove slashes
that were intended to be in the output. Hint: turn off magic_quotes_gpc.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ler()
http://www.php.net/set_error_handler
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
w can I tell if the date is older than 1 year
ago (or should I think of 365 days)?
`updated` date NOT NULL default '1999-12-12'
I've looked at: http://ca3.php.net/manual/en/function.getdate.php
Thanks,
John
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (
ourceforge.net/
As for reading the text from a PDF, maybe there's some sort of OCR
library for PHP out there, but I don't know about it. It'd be a great
thing to see, though.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t. We don't want to promote illegal activities on
this mailing list. :-)
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$order = "ASC"
break;
}
mysql_query(" SELECT * FROM data ORDER BY id $order ");
The rest of it looks fine to me.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Nichel wrote:
b) Paths in the MS world are with the backslash (\) and not the forward
slash (/)
Windows NT onward (XP, 2003, etc.) should understand both the forward
slash and the backslash in a file path.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http
should be:
chmod("files/".$this->File_Name, 0777);
See here for more info: http://us2.php.net/chmod
Like I said, I'm not sure whether this is the cause of the problem, but
give it a shot and see what happens. :-)
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List
Ahmed Abdel-Aliem wrote:
On Apr 11, 2005 8:28 PM, Ben Ramsey <[EMAIL PROTECTED]> wrote:
Ahmed Abdel-Aliem wrote:
i have a problem with deleting files, i use windows XP and installed
on it apache server & PHP 5.1
i use unlink($file) to delete files but it doesn't work while it w
"full" or "modify"
permissions to the Web directory.
In general, permission settings under Windows suck.
--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lready has the
extension you're looking for. If it's a library you created and you want
to use it as a PHP extension, take a look at the PHP manual,
particularly the section on creating extensions:
http://www.php.net/manual/en/zend.creating.php
--
Ben Ramsey
http://benramsey.com/
--
DuSTiN KRySaK wrote:
Can anyone refer me to anything that will work with PHP? Just need it
for a blog type application.
FCKEditor works well, has a PHP version, and is cross-browser:
http://www.fckeditor.net/
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List
et/package/Mail> can do all this for you.
Take a look at the documentation here:
<http://pear.php.net/manual/en/package.mail.mail.intro.php>.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
sthru>. Take a look at that manual page and read
the first note about leaving the program running in the background.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
;re using the standard installation of PHP on FC3, then it won't
have pcntl enabled with --enable-pcntl because it's not enabled by
default. You will have to recompiled PHP with this feature.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List (
_backtrace():
http://www.php.net/debug-backtrace
Harry Fuecks has an excellent post on how to use debug_backtrace() here:
http://www.sitepoint.com/blog-post-view.php?id=157007
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
rcmp(substr($url, -1), '/') == 0) {
// it ends with a '/'; strip it off
$url = substr($url, 0, -1);
}
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.or
Gadi Cohen wrote:
So if I have: include("/path/to/backend.php");
Is there a way from inside of backend.php to return "/path/to" ?
Check out the filesystem functions in the PHP manual. You're probably
particularly interested in pathinfo()
http://www.php.net/pathinfo
--
which can
do the validation for you: <http://pear.php.net/package/HTML_QuickForm>
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's prem
ve been running PHP using --with-apxs2 and Apache 2 in production
environments without problems.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeas
answer your question, just use the str_pad() function:
http://www.php.net/str_pad
Looks like this:
$a = 1;
echo str_pad($a+1, 2, "0", STR_PAD_LEFT);
This will output "02" as desired.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
-
p.net/mysql>
I would suggest you read up on how variables get processed, as well.
<http://www.php.net/variables>
$message .= "The entry $i was entered
";
$i++;
}
else
{ $i++; }
}
But I get THIS error in the log:
[12-Nov-2004 14:59:19] PHP Parse error: parse error, unexpec
will not become visible until the next loading
of a page that the cookie should be visible for."
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast
Stuart Felenstein wrote:
--- Ben Ramsey <[EMAIL PROTECTED]> wrote:
I'm not exactly sure what the SQL statement you have
above is supposed
to do, but you could just do something like this:
$curdate = date('Y-m-d H:i:s');
$sql = "SELECT * FROM records WHERE '$curd
he SQL statement you have above is supposed
to do, but you could just do something like this:
$curdate = date('Y-m-d H:i:s');
$sql = "SELECT * FROM records WHERE '$curdate' <= PostStart;";
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
This/
http://www.htdig.org/
I've used the Zoom search engine by Wrensoft
<http://www.wrensoft.com/zoom/> with PHP on a Windows system, and it
worked well. Also, I've never used it, but I've heard that mnoGoSearch
works, well, too.
--
Ben Ramsey
Zend Certifie
mehow turn these strings into coordinates
so I can draw them using PHP's polygon function.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
--
drs array, you're missing a comma separating Cc from Subject.
That's probably causing the problem. It should be:
$hdrs = array(
"From" => "[EMAIL PROTECTED]",
"Cc" => "[EMAIL PROTECTED]",
"Subject" => &q
be
wrong, since I've never used it. <http://mcrypt.sourceforge.net/>
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
Frantzcy Paisible wrote:
I'm looking for some information, rearging mcrypt.
Now, I've been through the normal channels, I've been going in in cercles.
even a simple "Look this way" would help.
Look this way: <http://www.php.net/mcrypt>
:-)
--
Ben Rams
/mysql_real_escape_string
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List
ing to make sense of it. View the source of the page and grab it from
there, please. :-)
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP c
Ben Ramsey wrote:
Victor C. wrote:
$OrderObject =$this->orders[$OrderID=>$value];
This line is confusing. $OrderID=>$value is either a typo or is just
plain wrong. It looks like what it's meant to say is:
$OrderObject = $this->orders[$OrderID];
But this will just set $Ord
to $value, so you should just use:
$OrderObject = $value;
Try that and see if it works.
--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's
itknr/Spreadsheet-ParseExcel-0.2603/ParseExcel.pm
You could also just use the MySQL database and have a PHP script that
outputs the contents of your report to a CSV (comma-separated value)
file with an extension of .csv. Excel will automatically open these
files without problem.
--
Ben Ramsey
d be the problem.
and also
class Dog
{
function __construct()
{
}
}
the construct or descontruction are not working?
Are you using PHP 5? If you're still on PHP 4, then that's the problem.
--
Regards,
Ben Ramsey
http://benramsey.com
--
javascript, etc. There're plenty of
resources on it.
--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP G
tp://www.php.net/introduction> and
follow the subsequent pages to read more about PHP and what it can do.
It'll also take you through a tutorial that's fairly helpful.
--
Regards,
Ben Ramsey
http://benramsey.com
---
.
It's by Adam Trachtenberg and entitled "Talking to eBay with PHP & SOAP."
Unfortunately, it's not available on-line, but you may be able to find a
copy in a bookstore or order it from the PHP Magazine Web site.
<http://www.php-mag.net/itr/ausgaben/psecom,id,229,nodeid,1
ically the "Location" header:
<http://www.php.net/header>
--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
ll. (The dependencies are listed on the package download page.)
It's a bit of a pain to do all that, but if you can't use the PEAR
installer, it's a way around it. :-)
--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP
Dan Joseph wrote:
Does PHP 4 support SOAP, or does something have to be added to it??
Check out these functions, which are listed as "experimental":
<http://www.php.net/soap>
Or this PEAR package, which is still in "beta" stage:
<http://pear.php.net/package/SOAP
d to do both.
I don't understand this response. ;-)
How is Javascript the /only way/ to do a /server-side/ trap? Javascript
is for the client side (unless you're coding in ASP and choose to use
JScript instead of VBScript).
--
Regards,
Ben Ra
cking. That way, it gives your legitimate
users a more user-friendly approach, while still ensuring from the
server-side that no one's going to spoof your form.
--
Regards,
Ben Ramsey
http://benramsey.com
---
Atlanta PHP - http://www.atlp
y sure of the logic behind your code, so I can't really
comment on what you're trying to do, but, assuming you're trying to only
count the unique values picked on the form, you'll want to do something
like this:
$l_industry = array_unique($_REQUEST['LurkerIndustry']
d off so $QUERY_STRING won't work. DO NOT
turn on register_globals. Instead, use $_SERVER['QUERY_STRING'] as a
replacement for $QUERY_STRING.
Read here for more info: <http://www.php.net/variables.predefined>
--
Regards,
Ben R
e worms are everywhere.
So, let's go fishing!
--
Regards,
Ben Ramsey
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
uations and
force the browser to prompt the user to download the file with the
correct filename you specify.
--
Regards,
Ben Ramsey
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to work on Mac and PC.
thx in advance
Adil..
What's wrong with:
This isn't even PHP.
Because the OP is asking for how to have it prompt the user where to
save a (assumingly downloaded) file--not how to choose a file to upload.
--
Regards,
Ben Ramsey
http://benramsey.com
--
PHP Gener
r
Specifically, read the part about the Content-Disposition header.
--
Regards,
Ben Ramsey
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mention that you may want to consider using
PEAR::HTML_QuickForm as a way to rapidly develop forms that also
provides form validation.
http://pear.php.net/package/HTML_QuickForm
--
Regards,
Ben Ramsey
http://benramsey.com
---
http://www.phpcommunity.org
se fill out question field.";
display_form();
}//end of if
}//end of func
function insert_to_question()
{
display_form();
while(empty($HTTP_POST_VARS['question']))
test_var();
}//end of insert_to_question func
insert_to_question();
?>
--
Regards,
Ben Ramse
]
Does anyone have a script that can be used to call linux's locate
command
and display the results in a browser?
I don't think it would be that hard and will make an effort today...
[/snip]
exec("locate foo");
--
Regards,
Ben Ramsey
http://benramsey.com
Have you taken a look at the passthru() function?
http://www.php.net/passthru
Boot wrote:
Does anyone have a script that can be used to call linux's locate command
and display the results in a browser?
I don't think it would be that hard and will make an effort today...
--
Regards,
Ben R
again with the -mssql switch but it still doesn't seem
to be therethe -mssql isn't on the info page...I don't have a
clue...
http://mwvre.ht-tech.net/info.php
On Wed, 01 Sep 2004 15:08:41 -0400, Ben Ramsey <[EMAIL PROTECTED]> wrote:
Like I and others have said, you
Just do it like this:
';
?>
Josh Close wrote:
How do I get an xml tag to work with a php script?
php is trying to parse that.
-Josh
--
Regards,
Ben Ramsey
http://benramsey.com
---
http://www.phpcommunity.org/
Open Source, Open Community
V
x27;Submit' and
$POST['SubmitForm'] is empty.
Why's that?
Check to make sure you're using $_POST['SubmitForm'] and not
$POST['SubmitForm'].
--
Regards,
Ben Ramsey
http://benramsey.com
---
http://www.ph
1 - 100 of 289 matches
Mail list logo