Re: [PHP] New Server advice

2002-10-31 Thread John Nichel
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

[PHP] Require_once problem

2002-10-31 Thread Kerry Kobashi
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

[PHP] New Server advice

2002-10-31 Thread David Russell
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.

Re: [PHP] Re: counting clicks on a flash ad

2002-10-31 Thread James Redfern
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

[PHP] client-side zip of POST or GET data, auto unzip on server.

2002-10-31 Thread Petre Agenbag
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

[PHP] php development environment

2002-10-31 Thread Simon Taylor
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

Re: [PHP] Displaying Data of a MySQL Table in PHP

2002-10-31 Thread Jason Wong
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

[PHP] PHP-GTK 0.5.2 released

2002-10-31 Thread Andrei Zmievski
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

Re: [PHP] Displaying Data of a MySQL Table in PHP

2002-10-31 Thread John Nichel
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

[PHP] Displaying Data of a MySQL Table in PHP

2002-10-31 Thread Ben 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. ---

Re: [PHP] why does eregi match for whitespace when there is none?

2002-10-31 Thread rija
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

[PHP] why does eregi match for whitespace when there is none?

2002-10-31 Thread Peter J. Schoenster
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

RE: [PHP] number_format question

2002-10-31 Thread John W. Holmes
> 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

[PHP] Re: How to prevent failure email from being sent?

2002-10-31 Thread Manuel Lemos
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

[PHP] Re: Good form class?

2002-10-31 Thread Manuel Lemos
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

[PHP] Re: Help with using phpmailer

2002-10-31 Thread Manuel Lemos
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

RE: [PHP] number_format question

2002-10-31 Thread Martin Towell
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

RE: [PHP] Who can tell me where I can get the cracked Zend Encoder3.0 ?

2002-10-31 Thread Daevid Vincent
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

RE: [PHP] number_format question

2002-10-31 Thread ed
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

RE: [PHP] rename()

2002-10-31 Thread John W. Holmes
> 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

RE: [PHP] PHP - Internal linking in a page

2002-10-31 Thread John W. Holmes
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@;

RE: [PHP] Rearranging Order of Photos

2002-10-31 Thread @ Darwin
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

Re: [PHP] XML to MS Word

2002-10-31 Thread Charles Wiltgen
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

Re: [PHP] Re: counting clicks on a flash ad

2002-10-31 Thread Justin French
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

[PHP] Re: counting clicks on a flash ad

2002-10-31 Thread James Redfern
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

[PHP] Rearranging Order of Photos

2002-10-31 Thread Monty
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

[PHP] Hashing in PHP

2002-10-31 Thread Greg
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

[PHP] Invitation

2002-10-31 Thread Stephen
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

[PHP] storing inc.php outside doc root/security/includes

2002-10-31 Thread rolf vreijdenberger
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

Re: [PHP] str_replace

2002-10-31 Thread Rasmus Lerdorf
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); > }

Re: [PHP] rename()

2002-10-31 Thread rija
$_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

Re: [PHP] How printing the name and value of a variable ?

2002-10-31 Thread PHP List
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

Re: [PHP] Form Question

2002-10-31 Thread PHP List
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

Re: [PHP] How printing the name and value of a variable ?

2002-10-31 Thread rija
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

Re: [PHP] str_replace

2002-10-31 Thread Jonathan Sharp
$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

Re: [PHP] Form Question

2002-10-31 Thread John Nichel
Try this