You assume mysql.
Other SQL databases allow multiple statements.
> -Original Message-
> From: Rick Emery [mailto:remery@;emeryloftus.com]
> Sent: Friday, October 25, 2002 4:59 PM
> To: Chris Boget; [EMAIL PROTECTED]; Monty
> Subject: Re: [PHP] extract($_POST)
>
> Lets say you have a stat
True. That's why I said:
> > then you can check whether the value
> > is_numeric() or something.
I think this narrows down what you're checking. So, if you send me "any
value" my script would just reject it. Besides, this is just a hint--there
are many ways to validate. Of course, you know that..
Yes, true. My mistake.
Someone else also mentioned subqueries. Those could be a problem if your
database supports it, too.
---John Holmes...
> -Original Message-
> From: Rick Emery [mailto:remery@;emeryloftus.com]
> Sent: Friday, October 25, 2002 6:30 PM
> To: [EMAIL PROTECTED]
> Subje
I'm storing somewhere over 100,000 separate articles on my site, using
ht://dig to index them. They're organized as //MM/nn. No performance
problems to speak of on a pretty popular non-commercial site (2-3
pageviews/sec, 24x7) whether they just browse through the directories or or
use ht://
Any way to plug an entire HTML file into a variable?
I looked into file_get_contents() but that was CVS format only.
I need to take a simple HTML file and pass it as a string variable to a mail function.
Any help?
Thanks crew.
- NorthBayShane
--
PHP General Mailing List (http://www.php.net/)
T
Thanks for the tips, but they all checked out in the end. After
reporting it as a bug, it turns out it *is* a bug with 4.2.3 (whether
it's only with Win2000, I'm not sure), but has been fixed in CVS. Now
I can rest a little easier... =)
-f
--
Derek Fong
Web Application Developer
subtitle d
Look them up in the manual!
http://php.net/mkdir
on 26/10/02 3:23 AM, Stephen ([EMAIL PROTECTED]) wrote:
> Thanks, but what are the parameters to make the dir?
>
>
>> - Original Message -
>> From: "John W. Holmes" <[EMAIL PROTECTED]>
>> To: "'Stephen'" <[EMAIL PROTECTED]>; "'P
Try this:
implode ('', file ($filename));
On Fri, 2002-10-25 at 19:26, Shane wrote:
> Any way to plug an entire HTML file into a variable?
>
> I looked into file_get_contents() but that was CVS format only.
>
> I need to take a simple HTML file and pass it as a string variable to a mail
>funct
IMHO it depends on the O/S and filesystem. For example, there's an fs
for Linux called Reiser FS that uses semibalanced binary trees to speed
up file organization, so that even with high file counts you shouldn't
experience major delays. Some other filesystems have hard limits on the
number of file
on 26/10/02 4:24 AM, danny ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I have a website with lots of stories (each story is about 20 pages long).
> The list of stories is in a MySQL database.
> I've read somewhere that pdf files can be embeded on a webpage.
Not to my knowledge. Results will vary from
striptags() has the ability to preserve chosen tags. Check the manual out.
php.net/striptags
Justin
on 26/10/02 6:28 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> I have a problem, I need to filter HTML from data but want to preserve the
> tags in it, is there any function that allows
I'm pulling email addresses from a database, then emailing them a newsletter email.
Right now, I'm calling the mail() function each time to send an email and that's
slooow. How could I make it so all the emails are put into a BCC field then emailed
all at once instead of multiple times?
Thanks,
instead of your while() loop calling mail() each time, use it to build a
comma separated list of recipients, then pipe them into a Bcc (so as to not
publicise everyone's email address), and send one email with all people in
the Bcc list.
UNTESTED code:
Good luck -- like I said, untested code, s
Dear PHP community,
I thought that some of you would be interested to know about Spyce.
Simply stated, Spyce aspires to be the PHP of the Python community. Rather
than embedding a Perl-like language, Spyce embeds Python. It is also
modular in its design, and readily extensible. Moreover, due to t
Hello,
"Shane" <[EMAIL PROTECTED]> wrote:
> Any way to plug an entire HTML file into a variable?
>
> I looked into file_get_contents() but that was CVS format only.
>
True. But you can make your own. Something like this: --->
function file_get_contents($filename) {
$fp = @fopen($filename,
There is another way to do this also...
ob_start();
readfile($file);
$var = ob_get_contents();
ob_end_clean();
If you want to parse the file before inputting it into the variable,
instead of using readfile() use something like:
eval("require(\"".$file."\");");
There is another way to do this...
ob_start();
readfile($file);
$var = ob_get_contents();
ob_end_clean();
If you want to parse the file as PHP before inputting it into the
variable, instead of using readfile() use this:
eval("require(\"".$file."\");");
Hello,
Just wondering...
"danny" <[EMAIL PROTECTED] wrote:
> I want my visitor to use the navigation system of my website.
> (and don't want them to leave my website while reading the
> pdf documents).
Why do you have to turn your text/documents into pdf's in the first place?
> I Don't like my
Any tips on trouble shooting this problem?
Warning: php_network_getaddresses: getaddrinfo failed: Name or
service not known in /xxx/xxx/xxx/xxx/new_user.php on line 121
Could not establish FTP connection.
This is the code the error refers to:
# set up basic connec
Ok, found problem, script ok, but a $_POST['...']; needed to be added to
the secure script as it was taking the pass from a form.
- Victor | www.argilent.com
-Original Message-
From: victor [mailto:victor@;argilent.com]
Sent: Saturday, October 26, 2002 12:34 AM
To: [EMAIL PROTECTED]
Su
Never mind, problem NOT solved, I made an error in an earlier script and
that error interrupted this one so I thought it cleared, but alas, it
did not, so help still needed, if available, thanks.
- Victor | www.argilent.com
-Original Message-
From: vic [mailto:siliconhype@;yahoo.ca]
Se
Can you ftp to the site from the box that the script is running on (via
command line or GUI client)?
vic wrote:
Never mind, problem NOT solved, I made an error in an earlier script and
that error interrupted this one so I thought it cleared, but alas, it
did not, so help still needed, if availabl
Could this be the problem?
>From the pho.net documentation on ftp_connect():
"
I think what some other posts were trying to say which may need
clarification is that in PHP 4.2.3, ftp_connect("myhost.com") was
failing most of the time, except it would work like every few minutes.
The fix is that
Yes, if the machine can't get to the site, then php won't be able too.
vic wrote:
Could this be the problem?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So I tried this and I still get the setup id error. And to
answer your question I have to get SSL going but there is too much work
for that tonight, and my server doesn't allow telneting without SSL (and
good for them).
# set up basic connection
$hostip = gethostbyn
By: "...ll get the setup id error. And to answ..." I meant "... stupid
...".
- Victor | www.argilent.com
-Original Message-
From: vic [mailto:siliconhype@;yahoo.ca]
Sent: Saturday, October 26, 2002 1:36 AM
To: 'vic'; 'John Nichel'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] ftp_problem -
101 - 126 of 126 matches
Mail list logo