RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

2002-10-25 Thread vic
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 -

RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

2002-10-25 Thread vic
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

Re: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfofailed: ...

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

RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

2002-10-25 Thread vic
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

Re: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfofailed: ...

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

[PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

2002-10-25 Thread vic
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

RE: [PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

2002-10-25 Thread vic
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

[PHP] ftp_problem - ... php_network_getaddresses: getaddrinfo failed: ...

2002-10-25 Thread victor
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

Re: [PHP] embedding pdf files in website

2002-10-25 Thread @ Edwin
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

RE: [PHP] HTML file to a $var: Pls Help

2002-10-25 Thread eNetwizard Developers Team
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."\");");

Re: [PHP] HTML file to a $var: Pls Help

2002-10-25 Thread eNetwizard Development Team
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."\");");

Re: [PHP] HTML file to a $var: Pls Help

2002-10-25 Thread @ Edwin
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,

[PHP] spyce v1.2.0

2002-10-25 Thread Rimon Barr
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

Re: [PHP] One mail function, multiple recipients

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

[PHP] One mail function, multiple recipients

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

Re: [PHP] HTML filtering

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

Re: [PHP] embedding pdf files in website

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

RE: [PHP] How many is too many?

2002-10-25 Thread Marco Tabini
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

Re: [PHP] HTML file to a $var: Pls Help

2002-10-25 Thread Marco Tabini
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

Re: [PHP] Creating Directories

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

Re: [PHP] Problem with set_time_limit() and uploading large files

2002-10-25 Thread derek fong
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

[PHP] HTML file to a $var: Pls Help

2002-10-25 Thread Shane
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

RE: [PHP] How many is too many?

2002-10-25 Thread Mark Charette
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://

RE: [PHP] extract($_POST)

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

Re: [PHP] extract($_POST)

2002-10-25 Thread @ Edwin
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..

Re: [PHP] extract($_POST)

2002-10-25 Thread Rick Emery
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

[PHP] Re: upload files

2002-10-25 Thread Jason Young
I'm not sure of the backwards compatibility, but if you're running PHP 4.2.x (I think? Maybe it came in earlier) .. use the $_FILES global variable, in place of $HTTP_POST_FILES. The array is exactly the same: $_FILES[name_of_file][attributes] Hopefully this helps? -Jason Cyrille Andres wrote

RE: [PHP] extract($_POST)

2002-10-25 Thread SHEETS,JASON (HP-Boise,ex1)
You can still create a sub-query to do the damage. Jason -Original Message- From: John W. Holmes [mailto:holmes072000@;charter.net] Sent: Friday, October 25, 2002 4:01 PM To: 'Rick Emery'; 'Chris Boget'; [EMAIL PROTECTED]; 'Monty' Subject: RE: [PHP] extract($_POST) No, this can't happen

RE: [PHP] extract($_POST)

2002-10-25 Thread John W. Holmes
This is all really simple, actually. Get in the habit, now, of just using $_POST['var'] directly. Quit assigning it to a simpler variable name. It's really not that hard to type. Next, you should never use an _POST, _GET, or _COOKIE var directly in an SQL query or in anything that echo's it back

[PHP] upload files

2002-10-25 Thread Andres, Cyrille
Hello everybody, I want to allow the client to upload a text file on my web server, so I use this code : Uploaded files details ", $HTTP_POST_FILES["userfile"]["name"]); printf("Temporary Name : %s ", $HTTP_POST_FILES["userfile"]["tmp_name"]); printf("Size : %s ", $HTTP_POST_FILES["userf

RE: [PHP] extract($_POST)

2002-10-25 Thread John W. Holmes
[snip] > There are many places (websites) wherein you can choose the country from a > pulldown menu. This prevents somebody (somehow) from posting something > illegal. Besides, if the values assigned are numbers (e.g. value="100">My Country) then you can check whether the value > is_numeric() or s

RE: [PHP] extract($_POST)

2002-10-25 Thread John W. Holmes
> This thread has been great! I've learned so much useful stuff. > > > For instance, if you expect a variable called $firstname to contain > > a name to be stored in a SQL database, be certain it does not contain > > SQL commands which can damage your database. > > This is another thing I'd be i

RE: [PHP] extract($_POST)

2002-10-25 Thread John W. Holmes
No, this can't happen. There can only be one SQL query per mysql_query(). Google for SQL injection or something and I'm sure you'll find examples. ---John Holmes... > -Original Message- > From: Rick Emery [mailto:remery@;emeryloftus.com] > Sent: Friday, October 25, 2002 4:59 PM > To: Chr

RE: [PHP] Creating Directories

2002-10-25 Thread John W. Holmes
Please do a little reading on your own. Ulink(), I think... it's in the same manual section as mkdir(). ---John Holmes... > -Original Message- > From: Stephen [mailto:webmaster@;melchior.us] > Sent: Friday, October 25, 2002 4:30 PM > To: PHP List > Subject: Re: [PHP] Creating Directories

[PHP] Re: Understanding the =& operator...

2002-10-25 Thread Nick Eby
"Chris Boget" <[EMAIL PROTECTED]> wrote in message news:023501c27c62$23b74dd0$8c01a8c0@;ENTROPY... > Ok, let me see if I have this right: > > When you do: > > $var = new myClass(); > > $var instantiates and holds a copy of myClass. No. The "new" operator makes a new object which is an instance o

Re: [PHP] Problem with set_time_limit() and uploading large files

2002-10-25 Thread @ Edwin
Hello, Just a few ideas... "derek fong" <[EMAIL PROTECTED]> wrote: > Hi, > > I am having a major problem getting set_time_limit() to work at all > with PHP 4.2.3 running as a CGI program under IIS for Windows 2000 (I > originally posted this message to php-win, but am hoping someone here > can s

Re: [PHP] HTML filtering

2002-10-25 Thread Robert Cummings
[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 this? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Doesn't get any simpler...

Re: [PHP] extract($_POST)

2002-10-25 Thread @ Edwin
Hello, "Rick Emery" <[EMAIL PROTECTED]> wrote: > Lets say you have a statement like: > $query = "SELECT * FROM mytable WHERE firstname=$firstname"; > > And if $firstname is set to: > "xyz"; DELETE FROM mytable > > Then this is executed as: SELECT* FROM mytable WHERE firstname="xyz";DELETE FROM

Re: [PHP] mkdir and directory permissions

2002-10-25 Thread @ Edwin
Hello, Just a few comments... And no, I'm not Jason :) "Monty" <[EMAIL PROTECTED]> wrote: > Hi Jason, I have a follow-up question about mkdir. If the files created by > mkdir are owned by 'nobody', does that create a security risk for those > files? No, not really. > If so, how does one get aro

Re: [PHP] extract($_POST)

2002-10-25 Thread Rick Emery
Lets say you have a statement like: $query = "SELECT * FROM mytable WHERE firstname=$firstname"; And if $firstname is set to: "xyz"; DELETE FROM mytable Then this is executed as: SELECT* FROM mytable WHERE firstname="xyz";DELETE FROM mytable This can wipe out your table...a bad thing... ---

Re: [PHP] PHP on WinXP with Apache

2002-10-25 Thread @ Edwin
Hello, "Erich Kolb" <[EMAIL PROTECTED]> wrote: > I am trying to install php-4.2.3-Win32 on MS WinXP using > apache_2.0.43-win32-x86-no_ssl. > > I have followed instructions included in the php package only I have > changed: > LoadModule php4_module "C:/php/sapi/php4apache.dll" > to > LoadModule ph

Re: [PHP] Understanding the =& operator...

2002-10-25 Thread @ Edwin
Hello, "Chris Boget" <[EMAIL PROTECTED]> wrote: > Ok, let me see if I have this right: > > When you do: > > $var = new myClass(); > > $var instantiates and holds a copy of myClass. But when > you do: > > $var =& new myClass(); > > $var instantiates and references that instantiation? > >

Re: [PHP] extract($_POST)

2002-10-25 Thread Chris Boget
This thread has been great! I've learned so much useful stuff. > For instance, if you expect a variable called $firstname to contain > a name to be stored in a SQL database, be certain it does not contain > SQL commands which can damage your database. This is another thing I'd be interested in

Re: [PHP] Creating Directories

2002-10-25 Thread @ Edwin
Hello, Please check the manual first before posting questions. ;) It seems like you're dealing with files/directories so you may want to read up a bit here: http://www.php.net/manual/en/ref.filesystem.php "Stephen" <[EMAIL PROTECTED]> wrote: > Thanks again but one more question. How would yo

[PHP] PHP on WinXP with Apache

2002-10-25 Thread Erich Kolb
I am trying to install php-4.2.3-Win32 on MS WinXP using apache_2.0.43-win32-x86-no_ssl. I have followed instructions included in the php package only I have changed: LoadModule php4_module "C:/php/sapi/php4apache.dll" to LoadModule php4_module "C:/php/sapi/php4apache2.dll" I am receiving: apache

Re: [PHP] HTML filtering

2002-10-25 Thread Rick Emery
You could delete all HTML tags. Then use nl2br() to re-insert the tags - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 3:28 PM Subject: [PHP] HTML filtering I have a problem, I need to filter HTML from data but want to preserve the

Re: [PHP] extract($_POST)

2002-10-25 Thread @ Edwin
Hello, "Monty" <[EMAIL PROTECTED]> wrote: > Okay, I really want to understand how to make $_GET and $_POST more secure > because it means changing a fundamental way my scripts are now working. > > So, it sounds like what I need to do in order to make form data more secure > is something like this

[PHP] HTML filtering

2002-10-25 Thread tony
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 this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating Directories

2002-10-25 Thread Stephen
Thanks again but one more question. How would you then delete a directory? - Original Message - From: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: "Stephen" <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 1:32 PM Subject: Re: [PHP] Creating Directories > www.php.net/mkdir > > ---John

Re: [PHP] extract($_POST)

2002-10-25 Thread Rick Emery
You can still use extract($_POST). It is as safe/vulernable as $_POST['isAdmin']. In either case, use only variables that you know are yours and be certain these contain values which you believe to be safe. For instance, if you expect a variable called $firstname to contain a name to be stored in

Re: [PHP] PHP installation with MySQL Support

2002-10-25 Thread @ Edwin
Hello, "MET" <[EMAIL PROTECTED]> wrote: > Where should you point the command --with-mysql to. The binary, header > files, what? Currently I have MySQL installed at /usr/lib/mysql/. And > this is a RedHat Linux 8.0. > > Suggestions? Try --with-mysql=/usr - E ...[snip]... -- PHP General Ma

[PHP] PHP installation with MySQL Support

2002-10-25 Thread MET
Where should you point the command --with-mysql to. The binary, header files, what? Currently I have MySQL installed at /usr/lib/mysql/. And this is a RedHat Linux 8.0. Suggestions? ~ Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] extract($_POST)

2002-10-25 Thread Monty
Okay, I really want to understand how to make $_GET and $_POST more secure because it means changing a fundamental way my scripts are now working. So, it sounds like what I need to do in order to make form data more secure is something like this... $isAdmin = $_POST['isAdmin']; $myName = $_POST['

[PHP] Understanding the =& operator...

2002-10-25 Thread Chris Boget
Ok, let me see if I have this right: When you do: $var = new myClass(); $var instantiates and holds a copy of myClass. But when you do: $var =& new myClass(); $var instantiates and references that instantiation? If so, then I'm curious - if you do: $var2 =& new myClass(); and you modify

Re: [PHP] mkdir and directory permissions

2002-10-25 Thread Monty
Hi Jason, I have a follow-up question about mkdir. If the files created by mkdir are owned by 'nobody', does that create a security risk for those files? If so, how does one get around accepting files via an upload form that are assigned to a user other than 'nobody'? Monty -- PHP General Mail

Re: [PHP] Creating Directories

2002-10-25 Thread Jason Wong
On Saturday 26 October 2002 01:23, Stephen wrote: > Thanks, but what are the parameters to make the dir? Try searching manual for: > > > mkdir() ?? -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet

Re: [PHP] pass globals to functions???

2002-10-25 Thread Jason Wong
On Friday 25 October 2002 03:52, Shawn McKenzie wrote: > Some have eluded to this but I haven't seen a working example. I would > like to declare globals in my main script and then inside functions that > need these globals just somehow use the $GLOBALS or something to declare > the variables glob

Re: [PHP] extract($_POST)

2002-10-25 Thread John Nichel
Yes, but that's what we've been discussing. Nothing is bulletproof, unless your box has no route to the outside world, no Nic, no modem, etc. But, depending on how security conscience (paranoid *G*) you may be, there are different steps to 'add' security, and keep out all but the most determi

[PHP] embedding pdf files in website

2002-10-25 Thread danny
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. I want my visitor to use the navigation system of my website. (and don't want them to leave my website while re

Re: [PHP] extract($_POST)

2002-10-25 Thread ed
I thought of this was well and into the PHP documentation about this option. Here's a side note that the documentation includes: Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. Even thought it's not a s

Re: [PHP] extract($_POST)

2002-10-25 Thread 1LT John W. Holmes
HTTP_REFERRER can be spoofed, so don't rely on it for much. ---John Holmes... - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Paul Nicholson" <[EMAIL PROTECTED]> Cc: "Johnson, Kirk" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 2:0

[PHP] Re: include_path in php.ini

2002-10-25 Thread Paul Reisinger
please delete "Paul Reisinger" <[EMAIL PROTECTED]> wrote in message news:20021024144642.71222.qmail@;pb1.pair.com... > I think my problem lies in the php.ini file. What should my include_path be > set to in my php.ini file?? > > Whenever I try and include anything I get the error message below. >

Re: [PHP] extract($_POST)

2002-10-25 Thread John Nichel
And if you want to take it a step further, to ensure that the values are submitted from YOUR form, check the $_SERVER['HTTP_REFERER'] to see if it's coming from your domain | page. Paul Nicholson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 25 October 2002 11:23 am, Johnson, K

Re: [PHP] Simple form problem -

2002-10-25 Thread Mario Montag
Thanks for the tip. I have another issue once I click on a form. Could you take a quick look at this one: //--- START OF CODE -- First name: Last name: Address: Position: // -- END OF CODE I open it and I get the following text boxes:

Re: [PHP] Creating Directories

2002-10-25 Thread Stephen
Thanks, but what are the parameters to make the dir? > - Original Message - > From: "John W. Holmes" <[EMAIL PROTECTED]> > To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'" > <[EMAIL PROTECTED]> > Sent: Thursday, October 24, 2002 8:27 PM > Subject: RE: [PHP] Creating Directories > > > > m

Fw: [PHP] Simple form problem -

2002-10-25 Thread Kevin Stone
As was already mentioned, $_SERVER['PHP_SELF'] is what you want. But on a side note you may consider changing the way you're checking for results in that if() statment. You will end up with another error if no records are returned. So instead you should check for the nubmer of records returned w

Re: [PHP] extract($_POST)

2002-10-25 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 25 October 2002 11:23 am, Johnson, Kirk wrote: > > And what should these precautions be? If a malicious user can submit > > his own form and you are looking for a POST variable, how can you > > ensure that $admin came from your form and not

RE: [PHP] Looking for an open source PHP editor on linux

2002-10-25 Thread Tyler Lane
I would also recommend jedit. It is a VERY nice IDE. Supports a TON of language, any operating system that supports Java, syntax highlighting. etc. Tyler Lane [EMAIL PROTECTED] On Fri, 2002-10-25 at 04:14, Clint Tredway wrote: > Have a look at www.jedit.org > > This editor is not specific to PH

[PHP] Re: mkdir and directory permissions

2002-10-25 Thread Matias Silva
Cool! the umask() is what I have to set prior to mkdir() for this to work. Thanks Jason & Marek -Matias "Matias Silva" <[EMAIL PROTECTED]> wrote in message news:20021024225108.24906.qmail@;pb1.pair.com... > Hi-ya all, here's a quickie... > > In my script I create a directory (mysql.backup.tim

Re: [PHP] Simple form problem -

2002-10-25 Thread Vidyut Luther
The simple but potentially wrong..harmful solution is to turn on register globals in php.ini, The right solution is to use $_SERVER['PHP_SELF']; On Fri, 2002-10-25 at 11:48, Mario Montag wrote: > First time playing with PHP, Apache, and MySQL. I have a simple form error > and I don't know ho

[PHP] Re: php and databases

2002-10-25 Thread Mario Montag
I found some products that may be of help to you. http://www.mysql.com/documentation/mysql/bychapter/manual_Contrib.html#SEC67 4 MyAccess is an AddIn for MS Access 97/2000 that allows you to manage MySQL databases from within Access. Main functions are: a.. Create/Modify Tables b.. Execute Qu

[PHP] Ereg Help

2002-10-25 Thread David Pratt
Hi William, try this: ^(#[0-9]{2}-[0-9]{2,4} Item Description: [\$][0-9]{1,3}[\.][0-9]{2})$ I've just been putting a number of expressions together for validation myself. Regards, Dave Pratt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Simple form problem -

2002-10-25 Thread Mario Montag
First time playing with PHP, Apache, and MySQL. I have a simple form error and I don't know how to solve it. I was doing the Webmonkey PHP/MySQL tutorial and when I started using forms with $PHP_SELF I started getting errors with variables not defined. PHP 4.2.3 MySQL 4.0 Windows 2000 Apache 1.3

RE: [PHP] php and databases

2002-10-25 Thread Jay Blanchard
[snip] Is there anyway to have php convert a database from mySQL to Access via a webpage? I have a couple of people here who use Access to do mail merging things with word and it would make my life a ton easier if I did not have to convert the db's everytime they want the info. If anyone has any th

Re: [PHP] php and databases

2002-10-25 Thread John S. Huggins
On Fri, 25 Oct 2002, Tyler Durdin wrote: >-Is there anyway to have php convert a database from mySQL to Access via a >-webpage? I have a couple of people here who use Access to do mail merging >-things with word and it would make my life a ton easier if I did not have to >-convert the db's ever

php-general Digest 25 Oct 2002 16:40:19 -0000 Issue 1665

2002-10-25 Thread php-general-digest-help
php-general Digest 25 Oct 2002 16:40:19 - Issue 1665 Topics (messages 121385 through 121443): Sessions help Please 121385 by: Bryan McLemore 121387 by: Peter Houchin 121389 by: Justin French Re: How many is too many? 121386 by: Justin French 121388 by

[PHP] php and databases

2002-10-25 Thread Tyler Durdin
Is there anyway to have php convert a database from mySQL to Access via a webpage? I have a couple of people here who use Access to do mail merging things with word and it would make my life a ton easier if I did not have to convert the db's everytime they want the info. If anyone has any though

[PHP] Re: writing pdf files to physical files...

2002-10-25 Thread Brian McGarvie
yes it does... /me answered myself again ;) "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message news:20021025145239.65314.qmail@;pb1.pair.com... > I presently generate pdf files as required... > > I use FPDF for writing PDF... > > I require to save these to file... is it a simple case of: > > w

[PHP] DomDocument->dump_file don't work!

2002-10-25 Thread Magnus Stålberg
I can't get the DomDocument->dump_file($file, false, true); to work.! help needed! Everyting else works just fine. Running IIS5 PHP 4.2.3 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cutted values after posting multiple select list

2002-10-25 Thread Rick Emery
use $_POST, not $_REQUEST - Original Message - From: "Heiko Mundle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 10:39 AM Subject: [PHP] cutted values after posting multiple select list Hi i struggling with multiple select lists in HTML forms. The resulting

[PHP] cutted values after posting multiple select list

2002-10-25 Thread Heiko Mundle
Hi i struggling with multiple select lists in HTML forms. The resulting $_REQUEST array cuts some characters from the values. If the value is value="99" i will get "99" after posting... my php file: *** echo "{$_SERVER['REQUEST_URI']} "; echo "First: {$_REQUEST['msel'][0]} "; echo "Co

[PHP] Problem with set_time_limit() and uploading large files

2002-10-25 Thread derek fong
Hi, I am having a major problem getting set_time_limit() to work at all with PHP 4.2.3 running as a CGI program under IIS for Windows 2000 (I originally posted this message to php-win, but am hoping someone here can shed some light on this). I have a form that accepts large files for upload,

RE: [PHP] extract($_POST)

2002-10-25 Thread Johnson, Kirk
> And what should these precautions be? If a malicious user can submit > his own form and you are looking for a POST variable, how can you > ensure that $admin came from your form and not that user's? The problem is when a cracker uses form variables in an attempt to set the values of "flag" v

[PHP] Re: An interesting one!!!

2002-10-25 Thread Hugh Bothwell
"Tim Haynes" <[EMAIL PROTECTED]> wrote in message news:20021023162115.16675.qmail@;pb1.pair.com... > Here is a puzzle, infact it is a game that I need to do in PHP, here is the > spec > > 3 prizes to be won every day over a month by clicking on 24 seperate > windowsand thats it > > How could I

Re: [PHP] Ereg help

2002-10-25 Thread Rick Emery
- Original Message - From: "William Glenn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 10:34 AM Subject: [PHP] Ereg help Hey all, I've been fighting this all night, I need a bit of help. I have a string like. #21-935 Item Description: $35.95 Where the pa

Re: [PHP] Looking for an open source PHP editor on linux

2002-10-25 Thread Brad Pauly
I think Glimmer is pretty good. http://glimmer.sourceforge.net/ Brad On Fri, 2002-10-25 at 07:49, Maxim Maletsky wrote: > > VIM :) > > > > -- > Maxim Maletsky > [EMAIL PROTECTED] > > > www.PHPBeginner.com // PHP for Beginners > www.maxim.cx // my Home > > // my Wish List: ( G

[PHP] Re: Quick way to test series of integers

2002-10-25 Thread Hugh Bothwell
"Paul Kaiser" <[EMAIL PROTECTED]> wrote in message news:58851.208.216.64.17.1035495310.squirrel@;illinimedia.com... > I have around 50 checkboxes on an HTML form. Their "value" is "1". So, > when a user check the box, then no problem -- the value returned by the > form is "1" and I can enter that

[PHP] writing pdf files to physical files...

2002-10-25 Thread Brian McGarvie
I presently generate pdf files as required... I use FPDF for writing PDF... I require to save these to file... is it a simple case of: where the script: generate_stats_view_table_pdf.php generates the PDF... http://www.domain.com/autoreport/generate_stats_view_table_pdf.php'); while (list (

[PHP] Re: Ereg help

2002-10-25 Thread Erwin
> "William Glenn" <[EMAIL PROTECTED]> wrote in message news:003101c27c3b$ff8c61a0$6401a8c0@;cortez.co.charter.net... > Hey all, > I've been fighting this all night, I need a bit of help. I have a string like. > > #21-935 Item Description: $35.95 > > Where the part # could be 10-2034 a combination

[PHP] Ereg help

2002-10-25 Thread William Glenn
Hey all, I've been fighting this all night, I need a bit of help. I have a string like. #21-935 Item Description: $35.95 Where the part # could be 10-2034 a combination of 2 and 3 or 4 digits, and the price could be a combination of 1,2,3 . 2 digits. I want to chop that string into Part # / Des

Re: [PHP] Register Globals Off in .htacces

2002-10-25 Thread Frank W.
well, i found my mistake ;) on windows i forgot to change the name of the .htaccess-files because on win they couldnt have a extentsion without a name. So i've named them now only "htaccess" without the dot and it works fine Frank W. wrote: it works only if i put it in my httpd.conf - yes allo

RE: [PHP] Register Globals Off in .htacces

2002-10-25 Thread Jon Haworth
Hi Frank, > > ServerName localhost > > DocumentRoot /var/www/html/mysite > > php_value register_globals 0 (or 1 for "on") > > it works only if i put it in my httpd.conf - yes > allowoveride is set to all :/ > > i'm using apache 1.3.27 on win2k. Well, you're doing *something* wrong, 'cos it wor

Re: [PHP] Register Globals Off in .htacces

2002-10-25 Thread Frank W.
it works only if i put it in my httpd.conf - yes allowoveride is set to all :/ i'm using apache 1.3.27 on win2k. Jon Haworth wrote: > Hi, > > > >Thx for your reply It is working. > > > No probs, glad to help. > > > >I also found from php.net that it's possible > >to set register_globals to "off"

Re: [PHP] extract($_POST)

2002-10-25 Thread Rick Emery
A determined hacker can get through. Period. Additional safeguards might include username/password authentication against a database. You can only make it more difficult for a hacker to break-in. You can never have absolute certainty he won't. - Original Message - From: "Chri

Re: [PHP] extract($_POST)

2002-10-25 Thread Chris Boget
> The more secure method ensures it MUST come from a form. Be > advised: the user can create his own form with $admin as a variable > and submit it to your PHP script. Therefore, additional precautions > and authentication are warranted. And what should these precautions be? If a malicious u

Re: [PHP] extract($_POST)

2002-10-25 Thread Rick Emery
$_GET is definately insecure because the user can insert values into the URL line, which may expose data which should be secure (depending upon how you've written your scripts). $_POST is more secure, if you add additional protective coding. An excellent example was provided a couple days ag

Re: [PHP] Looking for an open source PHP editor on linux

2002-10-25 Thread Maxim Maletsky
VIM :) -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3 Tariq Murtaza <[EMAIL PROTECTED]> wrote... : > Dear All > > I am wonde

Re: [PHP] Looking for an open source PHP editor on linux

2002-10-25 Thread John Nichel
You can try http://quanta.sourceforge.net or. http://nusphere.com/products/phpadv.htm (this one isn't free) Tariq Murtaza wrote: Thanks Clint Tredway Actually i am looking for syntax highlighting / help feature of PHP in editor. Any body Tariq Clint Tredway wrote: Have a lo

[PHP] re: mail form

2002-10-25 Thread Robert Samuel White
You need to use $_POST["numele"] instead of $numele - that or edit your php.ini file. Now I noticed that I can't take any variable from another file. It's my programs fault or I have to modify something in Apache or PHP? -- Trasca Ion-Catalin "Trasca Ion-Catalin" <[EMAIL PROTECTED]> wrote i

[PHP] PHP with FTP support on a Raq4 Server

2002-10-25 Thread Chris Morrow
Hi People, I am running PHP 4.1.2 on a Cobalt Raq4 server. I'm pretty new to Linux and can't understand why the server has come preinstalled with 2 diffrent versions of PHP. When I run phpinfo() from scripts on the site through my browser it says PHP is installed as an Apache module, but when I ru

  1   2   >