Production Server -> Apache 1.3.x
Apache2 is not even to be considered.
Apache2 and PHP are not "bedfellows" yet.
David Russell wrote:
Hi all,
I am setting up a new production server. Assuming that I do not need
register globals, what does everyone suggest for setting it up:
Linux machine
Apa
Whats the difference between require_once and include_once?
I been running into a problem, perhaps someone can help.
I require_once in a Pear database extension. Inside that pear database
extension
is a require_once("pear.php") and a require_once("db.php")
This file, Thomas Voxs' DbPage.php file
Hi all,
I am setting up a new production server. Assuming that I do not need
register globals, what does everyone suggest for setting it up:
Linux machine
Apache
PHP 4.2.3
My real question is whether I should install with Apache 1.3.27 or
Apache 2.0.43 This implies 3 questions:
1. Does PHP 4.2.
On Fri, 01 Nov 2002 12:45:45 +1000, [EMAIL PROTECTED] (Justin
French) wrote in <[EMAIL PROTECTED]>:
¦ Looks to me like you've named your directory:
¦ /phpadsnew/
¦
¦ And looks to me like it's look for:
¦ /phpAdsNew/
¦
¦ Perhaps try that simple change and see what happens?
Oh god, I wish that w
Hi
I'm wondering if something like this will be possible.
I am correct in thinking that POST and GET data are sent as plain text?
And, that being plain text, they should probably be highly compactable
by zip utils?
The reason I'm thinking this route is that I have a couple of forms for
some clien
Hi All,
Does anyone know if there is a good php development environment around, you
know something that will hold a list of functions/classes so you don't have
to scroll through thousands of line of code looking for a few lines of
spurious code...and all the other goodies that come with that sort o
On Friday 01 November 2002 14:14, Ben C. wrote:
> 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.
googl
To all crazy users of PHP-GTK,
Version 0.5.2 has been released (after a half a year hiatus). This
release has some bug fixes and also some minor feature enhancements,
mostly in the graphics area.
Download the releaes from;
http://gtk.php.net/download.php
Version 0.5.2 "Bass does a body
http://www.php.net/manual/en/ref.mysql.php
It doesn't get any simpler than that.
Ben C. wrote:
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 c
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 don't think that eregi or ereg consider "\s" as whitespace-
Instead, use " " or "\040"-
- Original Message -
From: "Peter J. Schoenster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 4:44 PM
Subject: [PHP] why does eregi match for whitespace when there is n
Here is the example:
Why does the above return true? There is no whitespace in the string.
What am I missing?
Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Tried it. It works but crops everything after the first "," in the
number
> if you enter a number with commas. Works great if you don't enter any
> commas.
How many integers can you name that have commas in them??? In other
words, you have a string, so PHP converts it to an integer to pass to
n
Hello,
On 10/27/2002 02:24 PM, Noah Spitzer-Williams wrote:
Hey guys,
My service sends out emails every few days to members who wish to have
stats sent to them. The problem is once an email becomes inactive, I the
webmaster gets a failure email sent to me. This is starting to add up and I
ca
Hello,
On 10/31/2002 06:28 PM, Leif K-Brooks wrote:
I'm looking for a good class to manage forms. It doesn't need to do
anything with the form itself, I'm looking for something that does form
validation on the processing side. I've looked on phpclasses, but
everything I found was either inse
Hello,
On 10/31/2002 05:58 PM, Pushpinder Singh Garcha wrote:
I am new in the php development world. I have made a simple mail
application using the phph mail() function.
I needed to use an attachment facility ith the mailing program...so I
have tried to use this solution called phpmailer()
fro
what about str_replace(",", "", $str) before you pass the value to
number_format()?
-Original Message-
From: [EMAIL PROTECTED] [mailto:ed@;home.homes2see.com]
Sent: Friday, November 01, 2002 9:37 AM
To: Jay Blanchard
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] number_format question
Tried
I have it. You can download it from my website here:
http://www.siia.net/piracy/
idiot.
> -Original Message-
> From: jianking [mailto:liaus@;10mail.net]
> Sent: Thursday, October 31, 2002 7:00 AM
>
>
> Who can tell me where I can get the cracked Zend Encoder 3.0 ?
--
PHP General Mai
Tried it. It works but crops everything after the first "," in the number
if you enter a number with commas. Works great if you don't enter any
commas.
What I need to be able to do:
IN OUT
123456789 > 123,456,789
123456789.00 > 123,456,789
123,456,789.00 > 123,456,789
> I am trying to allow the user to upload pictures. What is the best
way to
> rename them? If I use the rename function, I have to upload the
pictures
> to
> the same place as the script and then move it. ALso, if I am not sure
of
> the extension, how can I simply rename it? Can I do multiple f
You need to come up with a completely different method of doing this.
Your site, if using this method, is horribly unsecure. How are you
checking $page to make sure it's something that should be included??
---John Holmes...
> -Original Message-
> From: Paul Ottar Tornes [mailto:critical@;
Monty, maybe you can try using a database and PHP together to organize these
photos. A suggestion would be to store only the path to the photos in a
MySQL database, for example, and store the actual photos in the file system.
If you would like to have these photos in a specific order then just crea
Manuel Lemos wrote...
>>> I'd say RTF is a format you're going to be able to come to grips with
>>> quicker than .doc -- just take a look at the source of a word doc -- it's
>>> pretty obscure!!!
>>
>> And proprietary, and soon to be obsolete. But Office 11 files will be XML
>> files.
>
> RTF i
Hi
Looks to me like you've named your directory:
/phpadsnew/
And looks to me like it's look for:
/phpAdsNew/
Perhaps try that simple change and see what happens?
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 29 Oct 2002 09:35:27 -0500 (EST), [EMAIL PROTECTED]
(Joel Boonstra) wrote in
<[EMAIL PROTECTED]>:
¦ You might try using software like phpAdsNew:
¦
¦ http://www.phpadsnew.com/
¦
¦ It has a fantastic admin interface for you and for the advertiser, it
¦ supports Flash banners, as well as
Hi, I need to write a script that re-organizes the order of photos that
appear in an online photo gallery. I'm not sure if I can do this completely
with PHP or if I need to incorporate Javascript as well, but, I was hoping
someone here might have or know of a site that has some sample scripts that
Hi, is there an easy way to get the lanman and md4 hash of a string in PHP?
I know there's a md5() function, but can't find anything else. Thanks!!
-Greg
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I know this is completely off topic but why not take a break from all your PHP work
for a minute? Could some of you please come to a chat I have running as a halloween
party. Very few people are showing up. It's here: http://www.melchior.us/chat
Thanks!
Thanks,
Stephen Craton
http://ww
this is how it is done:
include ($_SERVER['DOCUMENT_ROOT'].'/../sensitivedata.inc.php');
explanation:
suppose i have a file:
www.mydomain.com/file.php
on the server it could be :
/home/sites/site168/web/file.php
this file wants to include a file with sensitive data, (or just download
some other
Folks, read the docs please. You can simply pass an array directly to
str_replace() and do this in a single str_replace() call.
-Rasmus
On Thu, 31 Oct 2002, Jonathan Sharp wrote:
> $del = array(' ', "'", '\\', '/'...etc);
> foreach ( $del AS $d )
> {
>$file = str_replace($d, '', $file);
> }
$_FILES['userfile']['name']
$_FILES['userfile']['type']
$_FILES['userfile']['size']
$_FILES['userfile']['tmp_name']
First once you upload file from browser using , the filename is automatically renamed by another one and put
down to the upload_tmp_dir and after you move or copy it into your
destin
Why?
echo "THE VARIABLE ".(please help me right here)." EQUALS ".$tigidizougou;
Obviously the variables name is tigidizougou, so just do this:
echo "THE VARIABLE tigidizougou EQUALS ".$tigidizougou;
Or am I missing something here?
> Theoriquement it is not possible, because you cannot use any
Thanks, but same problem.
alert() will give me the correct values, but it is still not unchecking the
boxes.
Strange, it obviously sees them as the statement
if (document.LevelListForm.elements['rgItems[]'][i].checked == true)
is correctly found for every checked box, but it just can't seem to fin
Theoriquement it is not possible, because you cannot use any variable since
you don't know its name-
But you can cope something with get_defined_vars() in which you set every
variable without distinction into an array- and after you select the
variable you need using some criterias.
like this
$ar
$del = array(' ', "'", '\\', '/'...etc);
foreach ( $del AS $d )
{
$file = str_replace($d, '', $file);
}
-js
rick wrote:
> How could this be written better? Is there a way to do it all in 1 line?
>
> $file = str_replace(" ", "", "$file");
> $file = str_replace("'", "", "$file");
> $file = str
Try this